POST API/V40/Interactive/Cart/AddItemsAndCheckout

Cart quick checkout

Request Information

URI Parameters

None.

Body Parameters

AddItemsAndCheckoutRequest
NameDescriptionTypeAdditional 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-25T17:26:23.5407758+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

ResponseContainerModel
NameDescriptionTypeAdditional 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": "rO3SSHYN3YgKAAAAAAAAAAAAAAA.EWdpk-ceO-dBGsxw1h5n_wXXetIfzGrILxh6NcYH6TM",
  "responsesIncluded": "responseStatus",
  "responses": [
    {
      "responseStatus": {
        "succeeded": true
      }
    }
  ],
  "status": "Success"
}