SbPublicApiCartCheckoutRequest

snowbee.ecom.cart.SbPublicApiCartCheckoutRequest

Turn the cart into an order. The cart is re-quoted and its lines are handed to order intake priced, with the campaign each line was sold under; the cart id becomes the order's external id.

customerIdoptional

Customer to place the order for; the store's default customer when omitted

deliveryAddressrequired
Show child fields
cityrequired
Example"Oslo"
countryIsoCoderequired

ISO 3166-1 alpha-2 country code

Example"NO"
emailoptional

Contact email for delivery notifications

Example"ola.nordmann@example.com"
namerequired

Recipient name

Example"Ola Nordmann"
phoneoptional

Contact phone for delivery

Example"+4790123456"
postCoderequired
Example"0123"
streetrequired

Street address including house number

Example"Storgata 1"
externalOrderNumberoptional

Order number shown to the shopper by the storefront, if any

freightoptional

Freight as chosen and priced in the carrier's checkout UI: carrier codes, net amount and VAT rate. Omit for orders without freight.

Show child fields
carrierAgreementCoderequired
Example"6838716034162098000"
carrierCoderequired
Example"porterbuddy"
carrierNameoptional
Example"Porterbuddy"
carrierProductCoderequired
Example"8747679326213767168"
carrierProductNameoptional
Example"Evening delivery"
carrierProductPayloadoptional

Provider-specific extra data

Show child fields
partnerNameoptional

Partner name from provider

partnerNumberoptional

Partner number from provider

freightVatRateoptional

VAT rate for freight as a percentage

  • Format: BigDecimal
Example"25.00"
netFreightAmountoptional

Net freight/shipping cost amount (excl. VAT)

  • Format: BigDecimal
Example"49.00"
invoiceAddressrequired
Show child fields
cityrequired
Example"Oslo"
countryIsoCoderequired

ISO 3166-1 alpha-2 country code

Example"NO"
emailrequired

Email for invoice delivery

Example"ola.nordmann@example.com"
namerequired

Recipient name

Example"Ola Nordmann"
postCoderequired
Example"0123"
streetrequired

Street address including house number

Example"Storgata 1"
paymentoptional

The payment session the shopper completed. Required when the store takes web payments, rejected otherwise.

Show child fields
paymentIdrequired

paymentId from POST /carts/{cartId}/payment_session

sessionResultrequired

sessionResult the Drop-in reported on completion

View raw schema
{
  "type": "object",
  "description": "Turn the cart into an order. The cart is re-quoted and its lines are handed to order intake priced, with the campaign each line was sold under; the cart id becomes the order's external id.",
  "properties": {
    "customerId": {
      "type": [
        "null",
        "string"
      ],
      "description": "Customer to place the order for; the store's default customer when omitted",
      "title": "String"
    },
    "deliveryAddress": {
      "$ref": "#/components/schemas/snowbee.SbPublicApiDeliveryAddressRequest"
    },
    "externalOrderNumber": {
      "type": [
        "null",
        "string"
      ],
      "description": "Order number shown to the shopper by the storefront, if any",
      "title": "String"
    },
    "freight": {
      "description": "Freight as chosen and priced in the carrier's checkout UI: carrier codes, net amount and VAT rate. Omit for orders without freight.",
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/snowbee.SbPublicApiFreightInfo"
        }
      ]
    },
    "invoiceAddress": {
      "$ref": "#/components/schemas/snowbee.SbPublicApiInvoiceAddressRequest"
    },
    "payment": {
      "description": "The payment session the shopper completed. Required when the store takes web payments, rejected otherwise.",
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/snowbee.ecom.cart.SbPublicApiCartCheckoutPaymentRequest"
        }
      ]
    }
  },
  "required": [
    "deliveryAddress",
    "invoiceAddress"
  ],
  "title": "SbPublicApiCartCheckoutRequest"
}