Checkout tools
All tool areas. Each tool acts within your access.
Checkout
preview_hold
Preview what a party would pay for these seats right now, without holding anything (what place_hold would charge): each line's price per person, the totals with fees and each tax, and the seats left. The booking card's total for the guest's party comes from here (fees and tax round on the whole order, so a per-person price times the party can be off by cents). Takes place_hold's input (lines as JSON in the query string) and refuses what place_hold would refuse, with the same issues. Seats aren't held, so a hold placed later can still find them gone. A guest who holds seats and hasn't checked out sends the Idempotency-Key header their hold was placed with (at least 16 characters): the preview leaves that hold out, as place_hold's swap (replacesHoldKey) would: its seats in its own session and its add-ons' stock at its location. Prices still count it, as anyone booking now would pay. It takes no promo code: a code goes in through place_hold, apply_promo_code, or checkout. Public.
Reads · No sign-in needed
Input
organizationThe organization's slug
sessionIdThe session's id, from list_sessions
linesplace_hold's lines, as a JSON array in the query string: [{"ticketTypeId":"tkt_…","quantity":2}]; give this or
grouplines[]lines[].ticketTypeIdThe ticket type's id, from get_product
lines[].quantitygroupplace_hold's group, as JSON in the query string: {"groupOptionId":"bkm_…","partySize":45}; give one of lines, group, or private
group.groupOptionIdA group option from list_availability
group.partySizeprivateplace_hold's private, as JSON in the query string: {"token":"ses_…","partySize":30}; give one of lines, group, or private
private.tokenThe private booking link's token (get_private_session)
private.partySizeaddOnsplace_hold's addOns, as JSON in the query string: [{"addOnId":"prd_…","quantity":2}]
addOns[]addOns[].addOnIdAn add-on from list_availability's addOns
addOns[].quantitymenuplace_hold's menu, as JSON in the query string: [{"choiceId":"mch_…","quantity":2}]
menu[]menu[].choiceIdA choice from list_availability's menu
menu[].quantitypreviewA preview link's token (get_product_preview_link): the read is of that product's sessions whatever its status. place_hold refuses any hold that carries one
Output
sessionIdpartySizewholeSessionA whole-session group option: the session would be the party's alone
seatsLeftSeats left in the session when read, before this party; null when capacity doesn't limit guests
pricesIncludeTaxWhether
priceincludes tax (the organization's or entity's setting). When false, show the tax's name beside it ("+ HST")taxNamesThe taxes charged, by name, for "+ HST" (empty when untaxed)
taxNames[]lineslines[]lines[].ticketTypeIdlines[].quantitylines[].unitAmountPer seat, before fees and tax (a group option's: per seat above its included seats)
lines[].pricePer person as shown to guests under the operator's setting: the service charge and other fees in, and tax in only when pricesIncludeTax is on. A party's total isn't this times the party: preview_hold gives it
lines[].priceWithTaxPer person with fees and tax
lines[].taxNamesThe taxes this ticket type's seats are charged, by name, for "+ HST" beside its price (empty when untaxed): the product's, plus those of the add-ons its package includes with a share of its price (a VIP including a wine pairing in BC: GST and PST, where the dinner alone is GST). Show these beside this price, not the session's taxNames. Always present
lines[].taxNames[]lines[].groupOnly on a group option's line: the line is baseAmount plus unitAmount for each seat above includedSeats
lines[].group.baseAmountThe base charge, covering includedSeats, before fees and tax
lines[].group.includedSeatslines[].group.basePriceThe base charge as shown to guests (fees in; tax in only when pricesIncludeTax)
lines[].group.basePriceWithTaxMinor units (cents)
addOnsAdd-ons: the ones the guest chose and the ones its seats include (always present)
addOns[]addOns[].addOnIdThe add-on (a product, prd_…)
addOns[].nameaddOns[].quantityaddOns[].unitAmountPer unit, before fees and tax
addOns[].pricePer person as shown to guests under the operator's setting: the service charge and other fees in, and tax in only when pricesIncludeTax is on. A party's total isn't this times the party: preview_hold gives it
addOns[].priceWithTaxPer person with fees and tax
addOns[].includedInThe ticket type whose seats include it (a package such as VIP): its price is in theirs, so it's 0 here. Null for an add-on the guest chose
addOns[].menuChoiceIdThe menu choice it's the supplement of (for the guests who picked it); null otherwise. Always present
menuChoicesMenu counts for the party, by course (empty when the product has no menu). Always present
menuChoices[]menuChoices[].courseIdmenuChoices[].coursemenuChoices[].choiceIdNull: seats left unchosen (the course has no default)
menuChoices[].choicemenuChoices[].quantitymenuChoices[].defaultedThe course's default, filling the seats the organizer left
totalstotals.currencytotals.linestotals.lines[]A booking's tickets, extras, and fees; a gift certificate's order has only its gift_certificate line
totals.lines[] — object option 1totals.lines[] — object option 1.kindtotals.lines[] — object option 1.ticketTypeIdtotals.lines[] — object option 1.nametotals.lines[] — object option 1.quantitytotals.lines[] — object option 1.unitAmountMinor units (cents)
totals.lines[] — object option 1.groupOnly on a group option's line: the line is baseAmount plus unitAmount for each seat above includedSeats
totals.lines[] — object option 1.group.baseAmountThe base charge, covering includedSeats, before fees and tax
totals.lines[] — object option 1.group.includedSeatstotals.lines[] — object option 1.amountMinor units (cents)
totals.lines[] — object option 1.componentsOnly on a package whose price is split by tax class (a VIP ticket including a wine pairing): its parts, the ticket's own first, each taxed by its own class. Their amounts add up to the line's. Show them under the line
totals.lines[] — object option 1.components[]totals.lines[] — object option 1.components[].addOnIdThe included add-on (prd_…) this part is; null for the ticket's own part, named for its product
totals.lines[] — object option 1.components[].nametotals.lines[] — object option 1.components[].quantityUnits for the whole line (seats for the ticket's own part, seats times the units per seat for an add-on)
totals.lines[] — object option 1.components[].amountIts part of the line's amount, after discounts, before tax
totals.lines[] — object option 1.components[].taxesIts own taxes, by the add-on's tax class (the product's for the ticket's own part). Only on refunded lines
totals.lines[] — object option 1.components[].taxes[]totals.lines[] — object option 1.components[].taxes[].nametotals.lines[] — object option 1.components[].taxes[].ratePpmtotals.lines[] — object option 1.components[].taxes[].amountMinor units (cents)
totals.lines[] — object option 2totals.lines[] — object option 2.kindtotals.lines[] — object option 2.addOnIdThe add-on (a product, prd_…)
totals.lines[] — object option 2.nametotals.lines[] — object option 2.quantitytotals.lines[] — object option 2.unitAmountMinor units (cents)
totals.lines[] — object option 2.menuChoiceIdThe menu choice (mch_…) this line is the supplement of, for the guests who picked it; null for an add-on bought on its own. One add-on can have both lines in one order: label each by this, never by its add-on and quantity. Always present
totals.lines[] — object option 2.amountMinor units (cents)
totals.lines[] — object option 3totals.lines[] — object option 3.kindtotals.lines[] — object option 3.feeIdtotals.lines[] — object option 3.nametotals.lines[] — object option 3.ratePpmtotals.lines[] — object option 3.amountMinor units (cents)
totals.lines[] — object option 4totals.lines[] — object option 4.kindtotals.lines[] — object option 4.name"Gift certificate", or the preset's name
totals.lines[] — object option 4.amountMinor units (cents)
totals.subtotalMinor units (cents)
totals.feesMinor units (cents)
totals.totalBeforeTaxSubtotal plus fees: the party's total as shown before tax
totals.taxMinor units (cents)
totals.totalThe total with tax, what the guest pays
totals.taxestotals.taxes[]totals.taxes[].nametotals.taxes[].ratePpmtotals.taxes[].amountMinor units (cents)
totals.taxes[].baseWhat this tax was charged on: the lines carrying this rate, after discounts, before tax. Less than the subtotal before tax when part of it (a service charge) isn't taxed
totals.discountThe promo code on this hold or order and what it took off, before tax. Each line's
amountandsubtotalare already after it. Null without a code. Always presenttotals.discount.codetotals.discount.kindtotals.discount.amountWhat it took off, before tax: off the tickets and extras, or the fees a waive_service_charge code waived
totals.discount.linesWhat it took off each line: this plus the line's own amount is what the line was before it. A waived fee has no line of its own in
linesabovetotals.discount.lines[]totals.discount.lines[] — object option 1totals.discount.lines[] — object option 1.kindtotals.discount.lines[] — object option 1.ticketTypeIdtotals.discount.lines[] — object option 1.amountMinor units (cents)
totals.discount.lines[] — object option 2totals.discount.lines[] — object option 2.kindtotals.discount.lines[] — object option 2.addOnIdtotals.discount.lines[] — object option 2.amountMinor units (cents)
totals.discount.lines[] — object option 3totals.discount.lines[] — object option 3.kindtotals.discount.lines[] — object option 3.feeIdtotals.discount.lines[] — object option 3.amountMinor units (cents)
totals.storedValueDiscountsFree value an order took off before tax, after the promo code, in the order given: a promotional gift certificate, or a goodwill or service recovery credit. Each line's
amountandsubtotalare already after it; show each as its own row before the fees and tax, like the promo code's. Never on a hold. Always present: empty when there's nonetotals.storedValueDiscounts[]totals.storedValueDiscounts[].sourcetotals.storedValueDiscounts[].codeIts code masked (•••• and its last 4)
totals.storedValueDiscounts[].amountWhat it took off, before tax
totals.storedValueDiscounts[].linesWhat it took off each line: this plus the line's own amount is what the line was before it
totals.storedValueDiscounts[].lines[]totals.storedValueDiscounts[].lines[] — object option 1totals.storedValueDiscounts[].lines[] — object option 1.kindtotals.storedValueDiscounts[].lines[] — object option 1.ticketTypeIdtotals.storedValueDiscounts[].lines[] — object option 1.amountMinor units (cents)
totals.storedValueDiscounts[].lines[] — object option 2totals.storedValueDiscounts[].lines[] — object option 2.kindtotals.storedValueDiscounts[].lines[] — object option 2.addOnIdtotals.storedValueDiscounts[].lines[] — object option 2.amountMinor units (cents)
policiesThe policies, terms, and acknowledgements a hold would lock now, for the booking card: the summary, which terms (their text comes with place_hold, or get_terms), and the statements to tick
policies.summaryThe policies as guests read them:
linesby code (refunds, date changes, age, arrival), andtext, the same in Englishpolicies.summary.linespolicies.summary.lines[]policies.summary.lines[] — object option 1policies.summary.lines[] — object option 1.codepolicies.summary.lines[] — object option 2policies.summary.lines[] — object option 2.codepolicies.summary.lines[] — object option 2.percent100 is a full refund
policies.summary.lines[] — object option 2.hoursBeforeHours before the session starts (0: until it starts)
policies.summary.lines[] — object option 2.lessFeesThe non-refundable fees that apply here, by their own names in lower case ("service charge"): the line says they aren't refunded. Absent when none applies
policies.summary.lines[] — object option 2.lessFees[]policies.summary.lines[] — object option 3policies.summary.lines[] — object option 3.codepolicies.summary.lines[] — object option 3.destinationpolicies.summary.lines[] — object option 4policies.summary.lines[] — object option 4.codepolicies.summary.lines[] — object option 5policies.summary.lines[] — object option 5.codepolicies.summary.lines[] — object option 5.hoursBeforeHours before the session starts (0: until it starts)
policies.summary.lines[] — object option 5.timesHow many times the date can change; null: no limit
policies.summary.lines[] — object option 6policies.summary.lines[] — object option 6.codepolicies.summary.lines[] — object option 6.agepolicies.summary.lines[] — object option 6.withAdultYounger guests down to this age can come with an adult
policies.summary.lines[] — object option 7policies.summary.lines[] — object option 7.codepolicies.summary.lines[] — object option 7.minutespolicies.summary.lines[] — object option 8policies.summary.lines[] — object option 8.codepolicies.summary.lines[] — object option 8.minutespolicies.summary.textpolicies.termspolicies.terms.idpolicies.terms.versionpolicies.terms.publishedAtWhen this version was published. Guests are shown this date, never the version number
policies.acknowledgementsThe statements a hold would lock now, which checkout asks the guest to tick: place_hold's are the ones to send. Always present
policies.acknowledgements[]policies.acknowledgements[].idpolicies.acknowledgements[].versionIdThis version: what checkout's
acknowledgementstakespolicies.acknowledgements[].versionpolicies.acknowledgements[].text