Developers

Create cart

2 min read
Try this endpoint live with your API key.
POST
Create cart
Create a cart and return a checkout URL for this guest session.
https://api.tablelist.com/2025-03/venues/{venueId}/carts
Authorization
Path Parameters
Header Parameters
Request Body
cURL
curl --request POST \ \
  --url "https://api.tablelist.com/2025-03/venues/{venueId}/carts"
Response
Run a request to see the response.

Create a cart and return a checkout URL for this guest session.

  • Method: POST
  • Path: /venues/{venueId}/carts
  • Operation ID: createCart
  • Tags: Carts

Path Parameters

NameTypeRequiredDescription
venueIdstringYes

Header Parameters

NameTypeRequiredDescription
x-tl-api-keystringYes

Request Body

application/json

Schema: object

FieldTypeRequiredDescription
itemsarray<object>YesItems to include in the cart
previousCartIdstringNoPrevious cart id to retire before creating this replacement cart.

Responses

201

Cart response object.

  • Content-Type: application/json
    • Schema: object
FieldTypeRequiredDescription
idstringYes
createdstringYes
modifiedstringYes
venueIdstringNo
orderstringNo
statusstringYes
expiresAtstringNo
pricingBreakdownobjectNo
itemsarray<object>Yes
checkoutUrlstringYesCheckout URL for this cart on the buy host; includes the prospect token required to access the cart.

default

unexpected error

  • Content-Type: application/json
    • Schema: object
FieldTypeRequiredDescription
messagestringYes
errorsarray<object>Yes
errorDataobjectNo