POST API/V40/Interactive/Cart/AddItemsAndCheckout
Cart quick checkout
Request Information
URI Parameters
None.
Body Parameters
AddItemsAndCheckoutRequestName | Description | Type | Additional information |
---|---|---|---|
CategoryItems | Collection of AddCartItem | ||
Checkout | Checkout | ||
JustValidateDeliveryTime |
If true, the cart does not get submitted, nor the cart added - all we do is validate the delivery time |
boolean | |
SessionToken |
The token associated with this session of API interactions. This token should always be included in API calls, because it contains important session state information. |
string |
Required |
Request Formats
application/json, text/json
Sample:
{ "categoryItems": [ { "itemCode": "sample string 1", "quantity": 2, "posItemCode": "sample string 3", "comments": "sample string 4", "options": [ { "code": "sample string 1", "value": "sample string 2", "posItemCode": "sample string 3" }, { "code": "sample string 1", "value": "sample string 2", "posItemCode": "sample string 3" } ] }, { "itemCode": "sample string 1", "quantity": 2, "posItemCode": "sample string 3", "comments": "sample string 4", "options": [ { "code": "sample string 1", "value": "sample string 2", "posItemCode": "sample string 3" }, { "code": "sample string 1", "value": "sample string 2", "posItemCode": "sample string 3" } ] } ], "checkout": { "pin": "sample string 1", "comment": "sample string 2", "numberOfGuests": 1, "deliveryDateTime": "2024-11-06T08:45:56.746045+00:00", "isDeliveryDateTimeUtc": true, "total": 1.0 }, "justValidateDeliveryTime": true, "sessionToken": "sample string 2" }
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseContainerModelName | Description | Type | Additional information |
---|---|---|---|
SessionToken |
The token associated with this session of API interactions. Generally this is the same token passed with the API request parameters, but under certain circumstances this can be changed before being sent back to the caller. |
string | |
ResponsesIncluded |
A list of response messages names contained in this composite message, for easy pre-parsing. |
string | |
Responses |
A list of response messages contained in this composite message. |
Collection of Object | |
Status |
The success status the composite message. |
CompositeStatus |
Response Formats
application/json, text/json
Sample:
{ "sessionToken": "4fJabj_-3IgKAAAAAAAAAAAAAAA.7Vd_iANmxTXD9PhKEbzdyz3CNXLtRBxbQz8rW3fdvu4", "responsesIncluded": "responseStatus", "responses": [ { "responseStatus": { "succeeded": true } } ], "status": "Success" }