create_booking
Create a real event booking on an existing event, without collecting card payment.
This writes live data and has customer-visible side effects - it is not a dry run or a preview. Tickets are issued, a confirmation email with the ticket PDF is sent to the customer, live-mode bookings decrement the ticket type's remaining capacity (test-mode bookings do not), the booking.paid webhook fires, and an invoice may be generated. There is no undo through this API: cancellations, refunds and ticket transfers must be done in the Checkout Page dashboard. Confirm the event, the ticket quantities and the customer's email with the merchant before calling it.
Not idempotent - never retry blindly. Every call creates a new booking, so calling again after a timeout or an unclear error can issue duplicate tickets and send a second confirmation email. If the outcome of a call is uncertain, check list_bookings (search by the customer's email) before trying again.
No card payment is collected. There are two booking strategies, and exactly one of them must be supplied:
paymentOption.manualTyperecords the booking asunpaidwith the full amount as its balance due, settled outside checkout by invoice (invoice) or on arrival (cash_on_delivery); a free booking simply has nothing due. Use it for box-office and phone bookings, invoiced corporate registrations, and migrating bookings in.complimentary: truerecords the booking aspaidwithamount,amountPaidandamountDueof 0 andisComplimentary: true. The ticket and add-on lines keep their face value and a matchingcomplimentaryDiscountAmountbrings the total to 0, so the forgone revenue stays visible on the booking and its invoice. Use it for comped guests, speakers, staff and press. No coupon can be applied.
Neither strategy takes a card payment: that belongs on the event's own checkout.
Add-ons (order bumps placed on the event) are booked with orderBumps: [{ productId, quantity }], using the product IDs list_order_bumps returns for the event. Any enabled add-on can be booked, including hidden ones and ones whose display rule is not met. Use a quantity of 1 unless the add-on allows a quantity, and pass payWhatYouWantAmount (smallest currency unit) for a pay-what-you-want add-on. On a complimentary booking the add-ons are free too. Live-mode bookings decrement add-on stock.
Attendees (events that collect attendee details): attendees optionally names who the tickets are for, at most one per ticket, each with ticketTypeId (required, one of the ticket types in tickets), name, email and answers to the event's attendeeQuestions (from get_event) by fieldId. An answer to any other fieldId is refused, and an attendee with answers needs a name or an email. Each attendee takes the next ticket of its type, so the order doesn't matter. Tickets left without an attendee, or attendees left blank, make the booking wait for them: its attendeeStatus is missing and the booker is asked for them. An attendee from another company or a repeated email is accepted (flagged where the event flags it). Ignored on events that don't collect attendee details.
The storefront guards still apply, exactly as they would for a buyer checking out:
409 — the ticket type or its ticket group is sold out, or the requested quantity exceeds remaining capacity.
409 - tickets are not on sale: the sale window has not opened or has closed, or the ticket type or its ticket group is disabled. A disabled ticket cannot be booked by any strategy, complimentary included.
403 — the event's registration limit has been reached.
400 — a required field is missing, a required address sub-field is missing, or the email value is not a valid address.
400 — the seller account is not connected to Stripe.
429 - the store has reached its daily limit on added bookings.
400 - both
paymentOptionandcomplimentary: truewere supplied, or neither was. Exactly one is required.400 - a
couponIdwas supplied on a complimentary booking. A comp is already at zero, so no coupon can be applied.400 - an add-on in
orderBumpsis not enabled on this event, is sold out, has too little stock left, or was given a quantity above 1 when the add-on does not allow a quantity.400 - an attendee's email is not a valid address, an attendee's
ticketTypeIdis not one of the booked ticket types, or there are more attendees of a type than tickets of it.
Example uses:
"Comp two VIP tickets for jane@example.com on the Summer Gala" →
complimentary: true"Register Acme Corp for 10 standard tickets to the conference and invoice them" →
paymentOption: { manualType: 'invoice' }"Add a walk-in booking for the Tuesday workshop, paying cash on arrival" →
paymentOption: { manualType: 'cash_on_delivery' }"Comp a ticket and the dinner add-on for the keynote speaker" →
complimentary: true, orderBumps: [{ productId: '<dinner add-on product ID>', quantity: 1 }]"Book 2 tickets for Acme, for Ann (ann@acme.com) and Bo (bo@acme.com)" →
attendees: [{ ticketTypeId, name: 'Ann', email: 'ann@acme.com' }, { ticketTypeId, name: 'Bo', email: 'bo@acme.com' }]
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"eventId": "<eventId>",
"tickets": "<tickets>",
"fields": "<fields>"
},
"name": "create_booking"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | Values for the event's fields. Must include a value for the event's email field - the booking's customer is created from it. | |
| eventId | Yes | The ID of the event to book onto. | |
| tickets | Yes | Ticket types to book, keyed by ticket type ID with the quantity as the value. Use the event to discover ticket type IDs. A disabled ticket type, or one in a disabled ticket group, cannot be booked. | |
| couponId | No | A coupon to apply to the booking. | |
| attendees | No | Attendees for an event that collects attendee details, at most one per ticket. Each attendee names its ticket type and takes the next ticket of that type, so the order of the list doesn't matter. Tickets without an attendee are left blank, and the booking then waits for them. An attendee with answers must have a `name` or an `email`. Answer the event's `attendeeQuestions` by `id` in `answers`; the name and email address go in `name` and `email`. Ignored for events that don't collect attendee details. | |
| orderBumps | No | Add-ons to book alongside the tickets, by product ID, with a quantity of 1 unless the add-on allows a quantity. Any enabled add-on on the event can be booked, including hidden ones and ones whose display rule is not met. A disabled or sold-out add-on is refused. A pay-what-you-want add-on needs `payWhatYouWantAmount`, in the smallest currency unit. On a complimentary booking the add-ons are free too. | |
| complimentary | No | Issue the tickets, and any `orderBumps`, at no charge. The booking is recorded as `paid` with `amount`, `amountPaid` and `amountDue` of 0, `isComplimentary: true`, and the ticket and add-on lines at their face value with a matching complimentary discount. Mutually exclusive with `paymentOption` and `couponId`. | |
| paymentOption | No | How a manually settled booking is paid for. This endpoint never collects card payment: the booking is recorded as unpaid with the amount as its balance due - for a free booking that balance is zero. Settlement happens outside checkout. Omit it and pass `complimentary: true` instead to issue the tickets at no charge. | |
| queryParameters | No | Attribution or tracking parameters to record against the booking, mirroring the query string a storefront checkout captures from its page link. Stored on the booking and included in exports; not used in pricing. | |
| ticketPwywAmounts | No | Chosen amounts for pay-what-you-want ticket types, keyed by ticket type ID, in the smallest currency unit. Required for any pay-what-you-want ticket type included in `tickets`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |