SbPublicApiCartResponse

snowbee.ecom.cart.SbPublicApiCartResponse

customerIdoptional

The customer the cart is bound to, once the shopper has logged in. Priced on their loyalty membership and used for the order at checkout.

idrequired

Keep it in a cookie or request body, never in a URL.

linesrequired

Cart lines in the order they were added

Show item fields
idrequired
pricingoptional

Current pricing of the line. Null when the line cannot be priced (no current sales price or VAT rate) or the store is not B2C.

Show child fields
basicGrossUnitPricerequired

The sku's ordinary gross unit price before any campaign

  • Format: BigDecimal
  • Pattern: ^-?\d+(\.\d{1,2})?$
Example"299"
basicNetUnitPricerequired

The sku's ordinary net unit price before any campaign, up to 4 decimals

  • Format: BigDecimal
  • Pattern: ^-?\d+(\.\d{1,4})?$
Example"239.2"
campaignoptional
Show child fields
appliesrequired

True when this campaign changed the line charge

Exampletrue
campaignTyperequired

NORMAL sets the unit price; THREE_FOR_TWO discounts the basket

Allowed values"NORMAL""THREE_FOR_TWO"
Example"THREE_FOR_TWO"
coderequired

Campaign code, the value to send as campaignCode when the order is created

Example"SUMMER24"
idrequired
namerequired
netUnitPriceoptional

The campaign's own net unit price, up to 4 decimals. For a 3 for 2 the blended net unit price after the offer, or null when the offer did not bite.

  • Format: BigDecimal
  • Pattern: ^-?\d+(\.\d{1,4})?$
Example"191.2"
grossLineAmountrequired

Gross amount for the whole line quantity

  • Format: BigDecimal
  • Pattern: ^-?\d+(\.\d{1,2})?$
Example"598"
grossUnitPricerequired

Gross unit price charged

  • Format: BigDecimal
  • Pattern: ^-?\d+(\.\d{1,2})?$
Example"299"
netLineAmountrequired

Net amount for the whole line quantity

  • Format: BigDecimal
  • Pattern: ^-?\d+(\.\d{1,2})?$
Example"478.4"
netUnitPricerequired

Net unit price charged, up to 4 decimals. Send this as netUnitPrice when the order is created.

  • Format: BigDecimal
  • Pattern: ^-?\d+(\.\d{1,4})?$
Example"239.2"
vatRaterequired

VAT rate in percent

  • Format: BigDecimal
  • Pattern: ^-?\d+(\.\d{1,2})?$
Example"25"
quantityrequired
  • Format: int32
Example2
skurequired

The sku and its product, for display

Show child fields
barcodeoptional
colorNameoptional

Color name by language code

Show child fields
valuerequired
Show dictionary values

Each dictionary key maps to .

idrequired
mainImageUrloptional

Delivery URL of the product's main image

productIdrequired

Product ID; fetch details with GET /products/{productId}

productNamerequired

Product name by language code

Show child fields
valuerequired
Show dictionary values

Each dictionary key maps to .

productNumberrequired
Example"100234"
sizeNameoptional

Size name by language code

Show child fields
valuerequired
Show dictionary values

Each dictionary key maps to .

skuNumberrequired
Example"100234-BLK-L"
skuIdrequired
paymentRequiredrequired

Whether the store takes web payment: checkout then requires a completed payment session

pricingoptional

Totals over the priced lines. Null for stores that are not B2C.

Show child fields
completerequired

False when at least one line has no pricing; the totals then exclude it

Exampletrue
currencyIsoCoderequired

ISO 4217 currency of every amount in the cart

Example"NOK"
grossAmountrequired

Gross amount of the cart, what the shopper pays before freight

  • Format: BigDecimal
  • Pattern: ^-?\d+(\.\d{1,2})?$
Example"598"
netAmountrequired
  • Format: BigDecimal
  • Pattern: ^-?\d+(\.\d{1,2})?$
Example"478.4"
vatAmountrequired
  • Format: BigDecimal
  • Pattern: ^-?\d+(\.\d{1,2})?$
Example"119.6"
progressrequired

Only ACTIVE carts can be changed.

Allowed values"ACTIVE""CONVERTED""EXPIRED"
View raw schema
{
  "type": "object",
  "properties": {
    "customerId": {
      "type": [
        "null",
        "string"
      ],
      "description": "The customer the cart is bound to, once the shopper has logged in. Priced on their loyalty membership and used for the order at checkout.",
      "title": "String"
    },
    "id": {
      "type": "string",
      "description": "Keep it in a cookie or request body, never in a URL.",
      "title": "String"
    },
    "lines": {
      "type": "array",
      "description": "Cart lines in the order they were added",
      "items": {
        "$ref": "#/components/schemas/snowbee.ecom.cart.SbPublicApiCartLineResponse"
      },
      "title": "List<SbPublicApiCartLineResponse>"
    },
    "paymentRequired": {
      "type": "boolean",
      "description": "Whether the store takes web payment: checkout then requires a completed payment session",
      "title": "Boolean"
    },
    "pricing": {
      "description": "Totals over the priced lines. Null for stores that are not B2C.",
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/snowbee.ecom.cart.SbPublicApiCartPricing"
        }
      ]
    },
    "progress": {
      "$ref": "#/components/schemas/snowbee.ecom.cart.SbPublicApiCartProgress",
      "description": "Only ACTIVE carts can be changed."
    }
  },
  "required": [
    "id",
    "lines",
    "paymentRequired",
    "progress"
  ],
  "title": "SbPublicApiCartResponse"
}