DELETE/v1/tenants/{tenantId}/ecom_stores/{eComStoreId}/carts/{cartId}/customer
Unbind a cart from its shopper Experimental
Lines are kept; pricing goes back to non-member.
Parameters
tenantIdrequiredeComStoreIdrequiredcartIdrequired
Responses
application/jsoncustomerIdoptionalThe customer the cart is bound to, once the shopper has logged in. Priced on their loyalty membership and used for the order at checkout.
idrequiredKeep it in a cookie or request body, never in a URL.
linesrequiredCart lines in the order they were added
Show item fields
idrequiredpricingoptionalCurrent 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
basicGrossUnitPricerequiredThe sku's ordinary gross unit price before any campaign
- Format: BigDecimal
- Pattern: ^-?\d+(\.\d{1,2})?$
Example"299"basicNetUnitPricerequiredThe sku's ordinary net unit price before any campaign, up to 4 decimals
- Format: BigDecimal
- Pattern: ^-?\d+(\.\d{1,4})?$
Example"239.2"campaignoptionalShow child fields
appliesrequiredTrue when this campaign changed the line charge
ExampletruecampaignTyperequiredNORMAL sets the unit price; THREE_FOR_TWO discounts the basket
Further nesting is omitted. See the schema for the full definition.
Allowed values"NORMAL""THREE_FOR_TWO"Example"THREE_FOR_TWO"coderequiredCampaign code, the value to send as campaignCode when the order is created
Example"SUMMER24"idrequirednamerequirednetUnitPriceoptionalThe 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"
grossLineAmountrequiredGross amount for the whole line quantity
- Format: BigDecimal
- Pattern: ^-?\d+(\.\d{1,2})?$
Example"598"grossUnitPricerequiredGross unit price charged
- Format: BigDecimal
- Pattern: ^-?\d+(\.\d{1,2})?$
Example"299"netLineAmountrequiredNet amount for the whole line quantity
- Format: BigDecimal
- Pattern: ^-?\d+(\.\d{1,2})?$
Example"478.4"netUnitPricerequiredNet 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"vatRaterequiredVAT rate in percent
- Format: BigDecimal
- Pattern: ^-?\d+(\.\d{1,2})?$
Example"25"
quantityrequired- Format: int32
Example2skurequiredThe sku and its product, for display
Show child fields
barcodeoptionalcolorNameoptionalColor name by language code
Show child fields
valuerequiredShow dictionary values
Each dictionary key maps to .
idrequiredmainImageUrloptionalDelivery URL of the product's main image
productIdrequiredProduct ID; fetch details with GET /products/{productId}
productNamerequiredProduct name by language code
Show child fields
valuerequiredShow dictionary values
Each dictionary key maps to .
productNumberrequired- Example
"100234" sizeNameoptionalSize name by language code
Show child fields
valuerequiredShow dictionary values
Each dictionary key maps to .
skuNumberrequired- Example
"100234-BLK-L"
skuIdrequired
paymentRequiredrequiredWhether the store takes web payment: checkout then requires a completed payment session
pricingoptionalTotals over the priced lines. Null for stores that are not B2C.
Show child fields
completerequiredFalse when at least one line has no pricing; the totals then exclude it
ExampletruecurrencyIsoCoderequiredISO 4217 currency of every amount in the cart
Example"NOK"grossAmountrequiredGross 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"
progressrequiredOnly ACTIVE carts can be changed.
Allowed values"ACTIVE""CONVERTED""EXPIRED"
400Malformed body or ID
Malformed body or ID
application/jsonerrorrequiredStable error code
Example"INVALID_REQUEST"messagerequiredHuman-readable error message
Example"Invalid customer ID format"resolutionrequiredSuggested next action
Example"Correct the customer ID and retry the request"
401Invalid or missing authentication
Invalid or missing authentication
application/jsonerrorrequiredStable error code
Example"INVALID_REQUEST"messagerequiredHuman-readable error message
Example"Invalid customer ID format"resolutionrequiredSuggested next action
Example"Correct the customer ID and retry the request"
403
application/jsonerrorrequiredStable error code
Example"INVALID_REQUEST"messagerequiredHuman-readable error message
Example"Invalid customer ID format"resolutionrequiredSuggested next action
Example"Correct the customer ID and retry the request"
404Cart or line does not exist in this store
Cart or line does not exist in this store
application/jsonerrorrequiredStable error code
Example"INVALID_REQUEST"messagerequiredHuman-readable error message
Example"Invalid customer ID format"resolutionrequiredSuggested next action
Example"Correct the customer ID and retry the request"
409The cart is no longer active
The cart is no longer active
application/jsonerrorrequiredStable error code
Example"INVALID_REQUEST"messagerequiredHuman-readable error message
Example"Invalid customer ID format"resolutionrequiredSuggested next action
Example"Correct the customer ID and retry the request"
422For example, a non-positive quantity or SKU outside the assortment
For example, a non-positive quantity or SKU outside the assortment
application/jsonerrorrequiredStable error code
Example"INVALID_REQUEST"messagerequiredHuman-readable error message
Example"Invalid customer ID format"resolutionrequiredSuggested next action
Example"Correct the customer ID and retry the request"