Skip to content

Reference

Hosted checkout

What a hosted checkout page calls.

View as Markdown

Every operation below is also in the OpenAPI document. One that names an MCP tool can be called through the MCP server; one that names none cannot.

What /c/:id renders#

GET /v1/checkout/{id}

Operation id getCheckoutPage.

What a hosted checkout page draws: the event, what is on offer and whether the link is active (an inactive link answers active: false and why).

Who may call it. Whoever holds the id in the path (a hosted checkout link).

ParameterInTypeDescription
id *pathstringAn id starting with chl_.
codequerystringA code to check and to unlock hidden items with. A direct caller sends it in the Tickets-Code header instead, since a request log keeps every URL; an MCP agent passes it here.

Answers 200. The page (an inactive link too: active false, inactive_reason says why).

Fields (CheckoutPage)

FieldTypeDescription
object *"checkout_page"
id *stringAn id starting with chl_.
mode *"test" | "live"test: the page says so and pays only with the test provider.
org *OrgFaceAn org as holders see it: its name, branding, how to reach it, and how My tickets signs in.
event *CheckoutEventThe event as the hosted checkout needs it: what a holder sees, plus every question and consent text the details step asks.
availability *AvailabilityWhat can be bought right now: public items, and hidden ones a sent code unlocks. Comp-only and archived items never show.
code *string | null
discount_on_next_step *booleanThe link's code takes something off that the prices here don't show yet (a per-order cap, or a percentage that doesn't divide evenly): the hold prices it.
active *booleanfalse: the page shows its closed screen (inactive_reason); holds and orders answer checkout_link_inactive.
inactive_reason *"turned_off" | "expired" | "full" | nullturned_off (by the organizer), expired (expires_at passed), full (limit reached); null while active.
expires_at *string | nullAn instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC.

* required

Errors of its own. feature_disabled. The errors every operation can answer are on the errors page.

Hold from the hosted page#

POST /v1/checkout/{id}/holds

Operation id checkoutHold.

A hold made from a hosted checkout page. Only for the link in the path.

Who may call it. Whoever holds the id in the path (a hosted checkout link).

ParameterInTypeDescription
id *pathstringAn id starting with chl_.

Request body (CheckoutHoldInput)

FieldTypeDescription
items *array of HoldItemInput
codestringA promo or access code as typed; case does not matter.
emailstring (email)An email address.
attributionCheckoutTouchInput
replacesstringThis buyer's earlier hold on this link: it does not stand in this one's way, can no longer be paid once this one is taken, and is released when this one exists. Refused, it stays as it was.

* required

JSON
{
  "items": [
    {
      "ticket_type": "tt_ga_weekend",
      "quantity": 2
    }
  ]
}

Answers 201. Held.

Fields (Hold)

FieldTypeDescription
object *"hold"
id *stringAn id starting with hold_.
mode *Modetest or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix.
event *stringAn id starting with evt_.
status *HoldStatusactive, consumed (became an order), released, expired.
items *array of OrderItem
code *string | nullThe code applied. A code with max_uses has one use reserved for this hold while it is active.
price *PriceBreakdownThe authoritative price, computed by us. Show exactly this. Percentages round half up per line, to the minor unit.
email *string | null
attribution *Attribution | null
checkout_link *string | nullThe hosted checkout link it was made through; only that link may turn it into an order.
device *string | nullThe door device that made it (a gate sale); only a door sale may consume it.
expires_at *string (date-time)An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC.
extended *boolean
order *string | nullThe order it became.
created_at *string (date-time)An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC.
released_at *string | nullAn instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC.
expired_at *string | nullAn instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC.
consumed_at *string | nullAn instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC.
metadata *MetadataYour own key-value pairs (up to 50; keys up to 40 characters, values up to 500). We store and return them and never act on them.

* required

Errors of its own. feature_disabled, provider_unavailable, checkout_link_inactive, hold_expired, hold_released, hold_consumed, event_not_on_sale, sold_out, quantity_unavailable, sale_not_started, sale_ended, ticket_type_unavailable, order_minimum_not_met, order_maximum_exceeded, too_many_tickets, code_invalid, code_expired, code_exhausted, code_not_applicable. The errors every operation can answer are on the errors page.

What became of a hold on the hosted page#

GET /v1/checkout/{id}/holds/{hold}

Operation id getCheckoutHold.

What became of a hold on a hosted checkout page: its status and the order it became, for a page that lost the answer to Pay. Nothing about the buyer. Only for the link in the path.

Who may call it. Whoever holds the id in the path (a hosted checkout link).

ParameterInTypeDescription
id *pathstringAn id starting with chl_.
hold *pathstringAn id starting with hold_.

Answers 200. Its status and the order it became. A hold made anywhere but this link answers resource_missing.

Fields (CheckoutHoldStatus)

FieldTypeDescription
object *"checkout_hold_status"
id *stringAn id starting with hold_.
status *"active" | "consumed" | "released" | "expired"active (a payment started on it may still be running), consumed (it became an order), released, expired.
expires_at *string (date-time)An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC.
order *string | nullThe order it became.

* required

Errors of its own. feature_disabled. The errors every operation can answer are on the errors page.

Let go of a hold on the hosted page#

DELETE /v1/checkout/{id}/holds/{hold}

Operation id releaseCheckoutHold.

Lets go of a hold on a hosted checkout page: its tickets and its place on the link go back at once. A hold that became an order, or has a payment running, is left alone and says so. Only for the link in the path.

Who may call it. Whoever holds the id in the path (a hosted checkout link).

ParameterInTypeDescription
id *pathstringAn id starting with chl_.
hold *pathstringAn id starting with hold_.

Answers 200. Its status now: released, or what it already was. A hold with a payment running stays active. A hold made anywhere but this link answers resource_missing.

Fields (CheckoutHoldStatus)

FieldTypeDescription
object *"checkout_hold_status"
id *stringAn id starting with hold_.
status *"active" | "consumed" | "released" | "expired"active (a payment started on it may still be running), consumed (it became an order), released, expired.
expires_at *string (date-time)An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC.
order *string | nullThe order it became.

* required

Errors of its own. feature_disabled. The errors every operation can answer are on the errors page.

Pay on the hosted page#

POST /v1/checkout/{id}/orders

Operation id checkoutOrder.

Pays on a hosted checkout page and answers the buyer's ticket page with its private link. A hold that was not made from this link answers resource_missing.

Who may call it. Whoever holds the id in the path (a hosted checkout link).

ParameterInTypeDescription
id *pathstringAn id starting with chl_.

Request body (CheckoutOrderInput)

FieldTypeDescription
hold *stringAn id starting with hold_.
buyer *BuyerInput
answersAnswersAnswers by question key, at most 250.
attendeesarray of AttendeeInput
payment *objectThe test provider until a processor is connected. free: only for a hold whose total is 0, when no card is asked for.

* required

JSON
{
  "hold": "hold_abc123",
  "buyer": {
    "name": "Jordan Rivera",
    "email": "jordan@example.com"
  },
  "payment": {
    "provider": "test",
    "token": "tok_success"
  }
}

Answers 200. The order this hold already became, to the same buyer email, whatever the link is now.

Fields (HolderView)

FieldTypeDescription
object *"holder_view"
mode *"test" | "live"The mode the tickets are in: a test ticket says so on the page.
org *OrgFaceAn org as holders see it: its name, branding, how to reach it, and how My tickets signs in.
event *PublicEvent | nullThe event (null on My tickets, which spans events: each ticket says its own).
events *array of PublicEventEvery event the tickets belong to.
order *objectThe order, on an order link only (the buyer's): null on a ticket link and on My tickets, where each ticket says its order_number.
tickets *array of HolderTicket
url *string | nullThis page's own link, when it was just made (a transfer accepted).

* required

Answers 201. Paid: the buyer's ticket page, with its link. A hold made anywhere but this link answers resource_missing.

Fields (HolderView)

FieldTypeDescription
object *"holder_view"
mode *"test" | "live"The mode the tickets are in: a test ticket says so on the page.
org *OrgFaceAn org as holders see it: its name, branding, how to reach it, and how My tickets signs in.
event *PublicEvent | nullThe event (null on My tickets, which spans events: each ticket says its own).
events *array of PublicEventEvery event the tickets belong to.
order *objectThe order, on an order link only (the buyer's): null on a ticket link and on My tickets, where each ticket says its order_number.
tickets *array of HolderTicket
url *string | nullThis page's own link, when it was just made (a transfer accepted).

* required

Errors of its own. feature_disabled, checkout_link_inactive, hold_expired, hold_released, hold_consumed, payment_declined, payment_failed, provider_unavailable. The errors every operation can answer are on the errors page.