POST/v1/tenants/{tenantId}/ecom_stores/{eComStoreId}/click_and_collect
Create click & collect reservation
Creates a click & collect reservation at a retail store. Validates the retail store is in the ecom store's click & collect network, creates a cart with the requested SKUs, reserves inventory from the store's warehouse, and parks the cart with the customer's name for later checkout.
Parameters
tenantIdrequiredeComStoreIdrequired
Request body (required)
Click & collect reservation details including retail store ID, customer name, and line items
application/jsoncustomerIdoptionalCustomer ID (optional, will try to match B2C customer by email/phone if not provided)
Example"01234567-89ab-cdef-0123-456789abcdef"lineItemsrequiredList of SKUs to reserve for click & collect
Show item fields
netUnitPriceoptionalNet unit price (excluding VAT) the shopper was shown. Optional: the collecting store prices the reservation by its own sales price and campaigns regardless, and when omitted that store price is also the initial value. Required only for a SKU the store has no sales price for.
- Format: BigDecimal
Example"299.00"quantityrequiredQuantity to reserve
- Format: BigDecimal
Example"2.0"skuIdoptionalSKU ID to reserve (provide either skuId or skuNumber)
Example"01234567-89ab-cdef-0123-456789abcdef"skuNumberoptionalSKU number/code to reserve (provide either skuId or skuNumber)
Example"PROD-BLK-M"vatRateoptionalVAT rate as percentage. Optional: when omitted, the rate for the product's VAT group in the collecting store's country is used.
- Format: BigDecimal
Example"25.00"
reservationEmailoptionalReservation email (optional, used to match B2C customer if customerId not set)
Example"ola@example.com"reservationNamerequiredName for the reservation (typically customer name)
Example"Ola Nordmann"reservationPhoneoptionalReservation phone (optional, used to match B2C customer if customerId not set)
Example"+4712345678"retailStoreIdrequiredID of the retail store where customer will pick up items
Example"01234567-89ab-cdef-0123-456789abcdef"
Responses
application/jsonidrequiredID of the click and collect cart
Example"01234567-89ab-cdef-0123-456789abcdef"
400Bad Request - Invalid input, SKU not found, or insufficient inventory
Bad Request - Invalid input, SKU not found, or insufficient inventory
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"
401Unauthorized - Invalid or missing authentication
Unauthorized - 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"
404Not Found - Retail store not found or not in click & collect network
Not Found - Retail store not found or not in click & collect network
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"
500
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"