Skip to main content
POST

Create Checkout Session

Opens a checkout session and returns a priced cart.
Requires checkout: write, an allowlisted partner key, and a signed request. See Agentic Commerce.

Headers

string
2025-09-12. Always send it. A different value is refused with unsupported_api_version; an absent one is treated as the current version.
string
required
Base64 HMAC-SHA256 over {timestamp}.{raw_body}.
string
required
RFC 3339, within 5 minutes of our clock.
string
Recommended. Echoed back on the response.

Body

array
required
1–20 lines.
object
The whole object may be omitted at create and supplied later with update — but the session will not reach ready_for_payment without it.
array
Up to 50 answers to the event’s registration questions. A Gomry extension to ACP: additive and optional, so a conforming client that never sends it still works — but an event with required questions reports them as blocking messages until they arrive.
object
Accepted for spec conformance. ACP is shaped for physical goods; a ticket does not ship. Stored for the record, never used to fulfil — except for posted tickets, where it is required.
Unknown fields are rejected with 400 invalid_body, not ignored. A body carrying something like card_number must fail loudly rather than be quietly accepted into our logs. No field on this API ever carries a card number.

Response

201 with a checkout session. Read status first:

One session, one event

All items must belong to the same event and the same currency. Mixing them returns multiple_events or currency_mismatch. Sell two events as two sessions.