Create an order (checkout)
Completes checkout for a held reservation. Echo the reservationToken
as the X-Device-ID header and send the quoteReference from the
reservation response. Free (zero-total) orders are
fulfilled immediately and return status: confirmed; paid orders return
status: pending_payment and a checkoutUrl to redirect the attendee
to. After payment the gateway redirects to your callbackUrl with a
reference query parameter. A duplicate order for the same reservation
returns 409.
Authorization
ApiKeyAuth Your public API key (e.g. jt_public_...) passed as a Bearer token.
In: header
Path Parameters
The event's URL slug.
Header Parameters
The reservationToken returned by POST /events/{slug}/reservations,
echoed verbatim. Identifies the attendee's held reservation.
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/events/string/orders" \ -H "X-Device-ID: 497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{ "quoteReference": "string", "email": "user@example.com", "firstName": "string", "lastName": "string", "callbackUrl": "http://example.com" }'{ "status": true, "data": { "status": "confirmed", "reference": "string", "checkoutUrl": "string", "total": 0, "discount": 0, "promoCode": "string", "clientExpiresAt": "2019-08-24T14:15:22Z" }}
