POST API/V40/Interactive/Cart/Checkout

Cart check Out

Request Information

URI Parameters

None.

Body Parameters

The request model.

CheckoutRequest
NameDescriptionTypeAdditional information
Pin

Not yet implemeted - validates against the guests's chosen pin number

string

Comment

string

NumberOfGuests

integer

DeliveryDateTime

date

IsDeliveryDateTimeUtc

Immediate requests can only pass UTC time, as we don't know 100% where the request is coming from Requests for later can only pass local time - guests can't be expected to make the conversion to UTC!

boolean

Total

If not null, this is validated in the checkout against the server-generated total for the cart. If null or absent, no such validation is attempted - to maintain backwards compatibility

decimal number

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:
{
  "pin": "sample string 1",
  "comment": "sample string 2",
  "numberOfGuests": 1,
  "deliveryDateTime": "2024-12-04T08:38:52.3349601+00:00",
  "isDeliveryDateTimeUtc": true,
  "total": 1.0,
  "sessionToken": "sample string 4"
}

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": "YZLxFD8U3YgKAAAAAAAAAAAAAAA.PEf8akK1Wg5vkcFIbFJopM2EJ5m2brLTP9akYlMb2SI",
  "responsesIncluded": "responseStatus",
  "responses": [
    {
      "responseStatus": {
        "succeeded": true
      }
    }
  ],
  "status": "Success"
}