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
| Name | Type | Required | Description |
|---|---|---|---|
venueId | string | Yes |
Header Parameters
| Name | Type | Required | Description |
|---|---|---|---|
x-tl-api-key | string | Yes |
Request Body
application/json
Schema: object
| Field | Type | Required | Description |
|---|---|---|---|
items | array<object> | Yes | Items to include in the cart |
previousCartId | string | No | Previous cart id to retire before creating this replacement cart. |
Responses
201
Cart response object.
- Content-Type:
application/json- Schema:
object
- Schema:
| Field | Type | Required | Description |
|---|---|---|---|
id | string | Yes | |
created | string | Yes | |
modified | string | Yes | |
venueId | string | No | |
order | string | No | |
status | string | Yes | |
expiresAt | string | No | |
pricingBreakdown | object | No | |
items | array<object> | Yes | |
checkoutUrl | string | Yes | Checkout 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
- Schema:
| Field | Type | Required | Description |
|---|---|---|---|
message | string | Yes | |
errors | array<object> | Yes | |
errorData | object | No |