Create a cart

Creates a new cart and adds inventory items to it in a single request. Holds the inventory for the customer. - `AssignedSeat` variants always require `quantity: 1` (each seat is unique) - `GeneralAdmission` and `Extra` variants support `quantity > 1` - All items must be from the same event + occurrence. - A cart cannot currently mix general admission and assigned seats. Use a separate cart for each. This is a limitation of how inventory is held today, not of the request format, and is expected to lift. Send the `X-TT-Currency` header to create the cart in that currency: the cart keeps pricing in it on later reads and the order settles in it. Omit the header for base-currency prices. A currency this event is not sold in returns `400`; one it is sold in but that cannot be priced right now (no exchange rate) returns `503`.

Authentication

X-TT-API-Keystring
API Key authentication via header

Headers

X-TT-CurrencystringOptional

ISO 4217 currency to create the cart in. Omit for the event base currency; an unsupported or invalid currency returns 400.

X-TT-PlatformenumRequired
Identifies the platform the request comes from.
Allowed values:

Request

This endpoint expects an object.
itemslist of objectsRequired

Response

Cart created successfully.
idstring
Cart ID
expiresAtstring
UTC timestamp when the cart hold expires and inventory is released. Clients should display a countdown timer and warn users before expiration.
itemslist of objects

Items currently in the cart (held inventory). Does NOT include fees, protection, or credits — see receiptLines for those.

receiptLineslist of objects

Server-ordered display lines for receipt rendering. Iterate in sequence. Always includes SubtotalLine. Conditionally: VoucherLine, ProtectionLine.

totalobject

Monetary amount in minor units (cents for USD). Never uses floating point to avoid precision errors.

protectionobjectOptional
Protection covering all items. Null if not added.
optionsobjectOptional
Options that can be applied to this cart. Each key is present only when that option is available.
voucherobjectOptional
A promo code applied to a cart.
totalTaxesobjectOptional

Monetary amount in minor units (cents for USD). Never uses floating point to avoid precision errors.