Bookings tools
All tool areas. Each tool acts within your access.
Bookings
change_booking_seats
Add or remove seats on a confirmed booking of individual tickets, under the session's lock, with capacity checked (a ticket type's own too, and the stock of what its seats include). lines says each ticket type's seats from now on. Existing seats keep the price and tax they locked; seats added are a new sale, at what the same party, at its new size, would pay now and today's tax rates, as their own line if either differs. Its fees' rates and a promo code's terms stay as the order locked them, and apply to the new lines too. Seats come off the latest added first. Removing seats refunds nothing: the preview says what's now over-paid, and refund_order is a separate step. A fee sold as non-refundable (the service charge) stays at what was paid toward it, so a removed seat's service charge stays on a paid total; a refundable fee, or one on an unpaid booking, recalculates. The balance due follows. A group or private booking is refused, since its price is for the party. Menu counts follow (a new guest takes the default; the preview says if chosen seats came off). The guest is emailed what changed and the new total (changeEmail); an undo that comes after that email tells them it's back. Undo puts the seats back while nothing has changed or moved since and the seats are still free. Returns a preview to confirm.
Changes · Members of an organization · Needs bookings:write
Input
orderIdThe order's id, from list_bookings or list_orders
linesThe seats per ticket type from now on. A ticket type left out stays as it is
lines[]lines[].ticketTypeIdThe ticket type's id, from get_product
lines[].quantitySeats of this type from now on; 0 takes them all off
Output
bookingbooking.idbooking.codeThe booking code guests quote
booking.statusbooking.cancelReasonbooking.cancelNoteStaff's own words. Null without orders:amounts
booking.createdAtbooking.confirmedAtbooking.canceledAtbooking.customerbooking.customer.idbooking.customer.nameThe first name only, without customers:contact
booking.customer.emailNull without customers:contact
booking.customer.phoneNull without customers:contact, or when there's none
booking.customer.contactHiddenTrue when email and phone are hidden from you (you lack customers:contact here). False with a null email or phone means the guest gave none
booking.productbooking.product.idbooking.product.namebooking.locationbooking.location.idbooking.location.namebooking.location.timeZonebooking.sessionbooking.session.idbooking.session.startsAtbooking.session.whenIn the location's time zone
booking.partySizebooking.currencybooking.totalNull without orders:amounts
booking.paidNull without orders:amounts
booking.refundedRefunded or on its way back. Null without orders:amounts
booking.keptFees sold as non-refundable (the service charge) and their tax, kept on staff refunds, as far as the money is still held: 0 once everything paid has come back, refunded or as a credit in its place (a session the operator moved or called off), and none on an order canceled before it was booked. Null without orders:amounts
booking.refundableWhat staff can still refund: paid, less refunds, less a credit given in place of a refund (a session moved or called off), less what's kept. Null without orders:amounts
booking.refundsbooking.refunds[]booking.refunds[].idbooking.refunds[].amountNull without orders:amounts
booking.refunds[].statuspending (on its way), succeeded, failed, or reversed: given as a credit or gift certificate that was voided unused since, so it was taken back and isn't counted as refunded
booking.refunds[].reasonbooking.refunds[].noteStaff's own words. Null without orders:amounts
booking.refunds[].failureReasonbooking.refunds[].createdAtbooking.refunds[].tenderWhat the refunded payment was made with: card (back to the guest's card), gift_certificate or credit (back to it), or an offline tender (card_terminal, cash, debit, e_transfer, cheque), which staff gave back that way at the desk; a voucher's part is given back as a credit (creditId), and a guest's own refund under the booking's refundDestination as a credit (creditId) or gift certificate (giftCertificateId) instead of back to the card or the desk
booking.refunds[].creditIdThe credit this refund became instead of going back where it was paid: a third party's voucher can't be handed back, so its part is a credit (voucher_refunded); a guest's own cancellation or change under refundDestination credit gives one (guest_change). The same credit the booking's credits list shows. Null for every other refund. Always present
booking.refunds[].giftCertificateIdThe gift certificate (kind refund) this refund became instead of going back where it was paid: a guest's own cancellation or change under refundDestination gift_certificate. Null for every other refund. Always present
booking.refunds[].issuerWho issued the voucher the refunded payment was (such as Costco); null for any other tender, and without orders:amounts. Always present
booking.bookingIdNull until it's booked. Always present
booking.bookerWho made it: a guest at checkout, or staff. Always present
booking.balanceDueWhat's still owing. Above 0 on a staff booking with payment to come, or seats added since: confirmed isn't paid. Null without orders:amounts. Always present
booking.overPaidWhat's been paid beyond the total: seats removed, which refunds nothing by itself. Null without orders:amounts. Always present
booking.paymentStatusunpaid, partly_paid, paid, over_paid, refunded (all but any kept fee has gone back), or nothing_due, from what's actually been paid. A partial refund stays paid. Null without orders:amounts. Always present
booking.staffNoteStaff's own note, never shown to the guest. Null without orders:amounts, or when there's none. Always present
partySizetotalNull without orders:amounts
balanceDueNull without orders:amounts
overPaidNull without orders:amounts
create_staff_booking
Book a party straight into a session for a walk-in or a phone call: seats by ticket type or a group option, extras and menu counts, the customer's name (email and phone optional), a note. It confirms at once, priced by the same engine as guests' bookings, with any promoCode. Capacity and a session taken whole bind staff; the party size limits, the booking window, and sales windows don't (the settings' …AppliesTo can say otherwise), and the preview warns what a guest couldn't have done. It takes no card: a total above 0 is confirmed with that balance due, paymentStatus: unpaid, and staff take payment outside Lokl. With an email the guest gets their confirmation saying what's still to pay; with none, nothing is sent. A private session is booked through its link instead. Undo cancels it if nothing has been built on it. Returns a preview to confirm.
Changes · Members of an organization · Needs bookings:write
Input
productIdThe product's id, from list_products
sessionIdThe session's id, from list_sessions
linesSeats by ticket type. Give this or
grouplines[]lines[].ticketTypeIdThe ticket type's id, from get_product
lines[].quantitygroupA group option for a party. Give this or
linesgroup.groupOptionIdA group option from list_availability
group.partySizeaddOnsaddOns[]addOns[].addOnIdAn add-on from list_availability's addOns
addOns[].quantitymenumenu[]menu[].choiceIdA choice from list_availability's menu
menu[].quantitypromoCodeA promo code as the guest typed it, in any case
customerRequired. It's null only in a stored changeset, which drops it once it's applied
customer.namecustomer.emailFinds their customer record, which is never rewritten; with none, nothing is sent
customer.phonenoteStaff's own note. Never shown to the guest
Output
bookingbooking.idbooking.codeThe booking code guests quote
booking.statusbooking.cancelReasonbooking.cancelNoteStaff's own words. Null without orders:amounts
booking.createdAtbooking.confirmedAtbooking.canceledAtbooking.customerbooking.customer.idbooking.customer.nameThe first name only, without customers:contact
booking.customer.emailNull without customers:contact
booking.customer.phoneNull without customers:contact, or when there's none
booking.customer.contactHiddenTrue when email and phone are hidden from you (you lack customers:contact here). False with a null email or phone means the guest gave none
booking.productbooking.product.idbooking.product.namebooking.locationbooking.location.idbooking.location.namebooking.location.timeZonebooking.sessionbooking.session.idbooking.session.startsAtbooking.session.whenIn the location's time zone
booking.partySizebooking.currencybooking.totalNull without orders:amounts
booking.paidNull without orders:amounts
booking.refundedRefunded or on its way back. Null without orders:amounts
booking.keptFees sold as non-refundable (the service charge) and their tax, kept on staff refunds, as far as the money is still held: 0 once everything paid has come back, refunded or as a credit in its place (a session the operator moved or called off), and none on an order canceled before it was booked. Null without orders:amounts
booking.refundableWhat staff can still refund: paid, less refunds, less a credit given in place of a refund (a session moved or called off), less what's kept. Null without orders:amounts
booking.refundsbooking.refunds[]booking.refunds[].idbooking.refunds[].amountNull without orders:amounts
booking.refunds[].statuspending (on its way), succeeded, failed, or reversed: given as a credit or gift certificate that was voided unused since, so it was taken back and isn't counted as refunded
booking.refunds[].reasonbooking.refunds[].noteStaff's own words. Null without orders:amounts
booking.refunds[].failureReasonbooking.refunds[].createdAtbooking.refunds[].tenderWhat the refunded payment was made with: card (back to the guest's card), gift_certificate or credit (back to it), or an offline tender (card_terminal, cash, debit, e_transfer, cheque), which staff gave back that way at the desk; a voucher's part is given back as a credit (creditId), and a guest's own refund under the booking's refundDestination as a credit (creditId) or gift certificate (giftCertificateId) instead of back to the card or the desk
booking.refunds[].creditIdThe credit this refund became instead of going back where it was paid: a third party's voucher can't be handed back, so its part is a credit (voucher_refunded); a guest's own cancellation or change under refundDestination credit gives one (guest_change). The same credit the booking's credits list shows. Null for every other refund. Always present
booking.refunds[].giftCertificateIdThe gift certificate (kind refund) this refund became instead of going back where it was paid: a guest's own cancellation or change under refundDestination gift_certificate. Null for every other refund. Always present
booking.refunds[].issuerWho issued the voucher the refunded payment was (such as Costco); null for any other tender, and without orders:amounts. Always present
booking.bookingIdNull until it's booked. Always present
booking.bookerWho made it: a guest at checkout, or staff. Always present
booking.balanceDueWhat's still owing. Above 0 on a staff booking with payment to come, or seats added since: confirmed isn't paid. Null without orders:amounts. Always present
booking.overPaidWhat's been paid beyond the total: seats removed, which refunds nothing by itself. Null without orders:amounts. Always present
booking.paymentStatusunpaid, partly_paid, paid, over_paid, refunded (all but any kept fee has gone back), or nothing_due, from what's actually been paid. A partial refund stays paid. Null without orders:amounts. Always present
booking.staffNoteStaff's own note, never shown to the guest. Null without orders:amounts, or when there's none. Always present
get_booking
Get one booking's page: its summary (as list_bookings gives it), its seats by ticket type, extras, menu counts, answers to booking questions, payments, refunds, balance due, and history from the activity log, newest first. By its order id. Without orders:amounts every amount, the payments' status, and the note are null; without customers:contact the guest is a first name; a history entry's data needs both, as in list_activity.
Reads · Members of an organization · Needs bookings:read
Input
orderIdThe order's id, from list_bookings or list_orders
Output
bookingbooking.idbooking.codeThe booking code guests quote
booking.statusbooking.cancelReasonbooking.cancelNoteStaff's own words. Null without orders:amounts
booking.createdAtbooking.confirmedAtbooking.canceledAtbooking.customerbooking.customer.idbooking.customer.nameThe first name only, without customers:contact
booking.customer.emailNull without customers:contact
booking.customer.phoneNull without customers:contact, or when there's none
booking.customer.contactHiddenTrue when email and phone are hidden from you (you lack customers:contact here). False with a null email or phone means the guest gave none
booking.productbooking.product.idbooking.product.namebooking.locationbooking.location.idbooking.location.namebooking.location.timeZonebooking.sessionbooking.session.idbooking.session.startsAtbooking.session.whenIn the location's time zone
booking.partySizebooking.currencybooking.totalNull without orders:amounts
booking.paidNull without orders:amounts
booking.refundedRefunded or on its way back. Null without orders:amounts
booking.keptFees sold as non-refundable (the service charge) and their tax, kept on staff refunds, as far as the money is still held: 0 once everything paid has come back, refunded or as a credit in its place (a session the operator moved or called off), and none on an order canceled before it was booked. Null without orders:amounts
booking.refundableWhat staff can still refund: paid, less refunds, less a credit given in place of a refund (a session moved or called off), less what's kept. Null without orders:amounts
booking.refundsbooking.refunds[]booking.refunds[].idbooking.refunds[].amountNull without orders:amounts
booking.refunds[].statuspending (on its way), succeeded, failed, or reversed: given as a credit or gift certificate that was voided unused since, so it was taken back and isn't counted as refunded
booking.refunds[].reasonbooking.refunds[].noteStaff's own words. Null without orders:amounts
booking.refunds[].failureReasonbooking.refunds[].createdAtbooking.refunds[].tenderWhat the refunded payment was made with: card (back to the guest's card), gift_certificate or credit (back to it), or an offline tender (card_terminal, cash, debit, e_transfer, cheque), which staff gave back that way at the desk; a voucher's part is given back as a credit (creditId), and a guest's own refund under the booking's refundDestination as a credit (creditId) or gift certificate (giftCertificateId) instead of back to the card or the desk
booking.refunds[].creditIdThe credit this refund became instead of going back where it was paid: a third party's voucher can't be handed back, so its part is a credit (voucher_refunded); a guest's own cancellation or change under refundDestination credit gives one (guest_change). The same credit the booking's credits list shows. Null for every other refund. Always present
booking.refunds[].giftCertificateIdThe gift certificate (kind refund) this refund became instead of going back where it was paid: a guest's own cancellation or change under refundDestination gift_certificate. Null for every other refund. Always present
booking.refunds[].issuerWho issued the voucher the refunded payment was (such as Costco); null for any other tender, and without orders:amounts. Always present
booking.bookingIdNull until it's booked. Always present
booking.bookerWho made it: a guest at checkout, or staff. Always present
booking.balanceDueWhat's still owing. Above 0 on a staff booking with payment to come, or seats added since: confirmed isn't paid. Null without orders:amounts. Always present
booking.overPaidWhat's been paid beyond the total: seats removed, which refunds nothing by itself. Null without orders:amounts. Always present
booking.paymentStatusunpaid, partly_paid, paid, over_paid, refunded (all but any kept fee has gone back), or nothing_due, from what's actually been paid. A partial refund stays paid. Null without orders:amounts. Always present
booking.staffNoteStaff's own note, never shown to the guest. Null without orders:amounts, or when there's none. Always present
seatsseats[]seats[].ticketTypeIdseats[].nameseats[].quantityseats[].unitAmountPer seat as sold, before fees and tax; seats added later can have a line of their own at another price. Null without orders:amounts
seats[].groupA group or private line: its base charge covers includedSeats, then unitAmount a seat
seats[].group.baseAmountMinor units (cents) in the location's currency
seats[].group.includedSeatsseats[].amountThe line after any promo code, before fees and tax. Null without orders:amounts
extrasextras[]extras[].addOnIdextras[].nameextras[].quantityextras[].includedInThe ticket type whose package includes it
extras[].menuChoiceIdA menu choice's supplement
extras[].unitAmountNull without orders:amounts
menumenu[]menu[].courseIdmenu[].coursemenu[].choiceIdmenu[].choiceNull for seats still to choose
menu[].quantitymenu[].defaultedanswersanswers[]answers[].orderIdanswers[].codeThe order's booking code
answers[].bookingIdanswers[].sessionIdanswers[].questionIdanswers[].questionanswers[].participantWhich guest (1 to the party size) for a participant question; null for the booking
answers[].valueanswers[].value — array option 4answers[].value — array option 4[]answers[].answeredByanswers[].staffOnlyanswers[].runSheetanswers[].kitchenanswers[].pastPartyThis guest's seat was taken off the booking after it was answered: no guest has this number now (guest numbers never change, and a checked-in guest is never the one removed). A guest number doesn't say who left, so this guest may still be coming: check before relying on it. Always present
guestPositionsThe guest numbers still in the party, for a participant question's answer (numbers never renumber, so after a seat change they may skip). Empty before the booking has its guests: use 1 to the party size then
guestPositions[]questionsThe questions this booking can be asked, as staff see them: its product's active questions everywhere or at its location, staff-only ones included, in their order. Answers are in
answers.questions[]questions[].idquestions[].labelquestions[].helpTextquestions[].scopequestions[].typetext, number, single_choice or multiple_choice (from
choices), or yes_noquestions[].choicesquestions[].choices[]questions[].requiredquestions[].staffOnlyquestions[].kitchencreditsCredits issued for this order (given instead of a refund when its session moved or was cancelled, or by staff), newest first, shown as list_credits shows them
credits[]credits[].idcredits[].codeWhat the guest quotes to use it. In full only to someone who may give a credit there (refunds:create and orders:amounts); masked (•••• and its last 4) otherwise, since whoever reads it can spend it
credits[].statuscredits[].reasonsession_moved, session_canceled: given instead of a refund when the session moved or was called off; service_recovery, goodwill: staff's own; gift_certificate_voided: Given because the gift certificate it was paid with had been cancelled; voucher_refunded: a refund reached what a third party's voucher paid, which can't be handed back, so that part is this credit (the refund's creditId); guest_change: the guest cancelled, removed seats, or moved to a cheaper date on their manage link, and the booking's refund policy gives refunds as credit, so what would have gone back to the card is this credit (the refunds' creditId)
credits[].entityIdThe entity it's a liability of
credits[].currencycredits[].amountMinor units, as issued; null without orders:amounts
credits[].balanceWhat's left to use; null without orders:amounts
credits[].customerIdcredits[].customerNameFirst name only without customers:contact
credits[].orderIdcredits[].orderCodecredits[].sessionIdcredits[].noteStaff's own words; null without orders:amounts
credits[].expiresAtcredits[].createdAtsplitA split booking: the deadline, where it stands, the organizer's saved card, and every share with what's paid and owing and who paid it (amounts null without orders:amounts; first names only). Staff act on it with extend_split_deadline, charge_unpaid_shares, and release_unpaid_seats. Null when the payment isn't split. Always present
split.statusopen: guests are paying, the deadline is ahead. closing and charging: the deadline came and the card is being charged (or seats released). grace: the charge failed, and the organizer can pay until graceUntil. needs_action: the grace ran out; staff decide. settled: nothing is owed. released: the unpaid seats went back on sale. canceled: the booking was canceled
split.payByThe deadline
split.timeZoneThe location's time zone: show the deadline in it, never the viewer's
split.currencyThe booking's currency (ISO 4217), which every amount here is in: the party page has no other money to read it from. Always present
split.unpaidSharesWhat happens at the deadline to what's unpaid: charge_organizer (the saved card) or release_seats (back on sale)
split.maxChargeThe most the saved card can be charged, as the organizer agreed (0 when seats are released instead). Null where amounts aren't shown (staff without orders:amounts)
split.cardThe organizer's saved card ("Visa ending 4242"); null when none is saved (release_seats, not saved yet, or forgotten once settled)
split.card.brandsplit.card.last4split.graceUntilAfter a failed charge: until when the organizer can pay
split.chargedWhat the saved card has been charged so far, against maxCharge. Null without orders:amounts. Always present
split.lastFailureThe saved card's last failed charge, if any. Always present
split.lastFailure.reasonThe words for why the saved card's charge failed ("The card was declined", "The bank asked the cardholder to confirm this payment", "The card is no longer saved")
split.lastFailure.atsplit.balanceDueWhat's owed on the booking (paymentStateOf()); the shares say who owes which part. Null where amounts aren't shown
split.sharessplit.shares[]split.shares[].positionThe seat's number in the party (the party page's spot); the organizer's is 1
split.shares[].organizerThe organizer's own seat
split.shares[].firstNameThe first name the seat was claimed with on the party page (the organizer's seat: theirs); null while it's free
split.shares[].amountWhat the share comes to, with tax. The shares add up to the booking's total to the cent: each guest's part is rounded to the cent for itself, and any cent rounding leaves is on the organizer's share (
rounding). Null without orders:amountssplit.shares[].paidPaid toward it, less refunds. Null without orders:amounts
split.shares[].owingWhat's still owed on it. The shares' owing adds up to the booking's balance due. Null without orders:amounts
split.shares[].roundingThe organizer's share only: the cent or two that rounding each guest's tax and service charge for themselves leaves, so the shares add up to the total (0 on every other share, and usually on the organizer's). Null without orders:amounts. Always present
split.shares[].paidAtWhen it was paid in full (its last payment succeeded); null while something is owed. Always present
split.shares[].statusunpaid: something is still owed on it; processing: a payment for it is on its way (a bank's); paid: nothing is owed on it
split.shares[].paidByWho paid it, once paid: the guest, the organizer (at checkout or from the manage page), or the organizer's saved card at the deadline; null while unpaid
split.shares[].partsWhat it's made of, line by line with tax: for the viewer's own share (the organizer and staff: every share); null otherwise
split.shares[].parts[]split.shares[].parts[].kindticket_type: the seat's ticket; add_on: an extra or menu supplement it holds; group: its equal part of a group or private booking's line; discount: its part of a promo code's discount (negative); fee: its part of the service charge
split.shares[].parts[].namesplit.shares[].parts[].quantitysplit.shares[].parts[].amountBefore tax, minor units; negative for a discount. Null without orders:amounts
split.shares[].parts[].taxNull without orders:amounts
split.shares[].parts[].sharedThe party's, split equally (a group line, an amount-off code, a fixed fee)
invoicesThe booking's invoices, oldest first (a deposit before its balance), with what's paid and owed on each; amounts null without orders:amounts. Empty when none. Always present
invoices[]invoices[].idinvoices[].kindinvoices[].portioninvoices[].numberinvoices[].statedraft (not sent, no number), sent (nothing paid yet, not due), partly_paid (some paid, not due), paid, overdue (something owed past its due date, paid in part or not), void
invoices[].amountMinor units (cents) in the location's currency
invoices[].paidMinor units (cents) in the location's currency
invoices[].balanceMinor units (cents) in the location's currency
invoices[].issuedAtinvoices[].dueOnA local date at the location, YYYY-MM-DD
invoices[].payUrlThe guest's pay link, to copy or text. Null once the invoice is void or paid, for a draft, and without invoices:write, orders:amounts and customers:contact where the booking is: whoever holds it can pay and see the invoice, with its bill-to's name, email and address
acknowledgementsThe statements the booking was sold under, at the versions its hold locked, in the order its guest read them, with when the guest ticked each at checkout;
acceptedAtnull on a staff booking, whose guest wasn't asked. Empty when there were none. Always presentacknowledgements[]acknowledgements[].idacknowledgements[].versionIdThis version: what checkout's
acknowledgementstakesacknowledgements[].versionacknowledgements[].textacknowledgements[].acceptedAtWhen the guest ticked it at checkout; null on a staff booking, whose guest wasn't asked
totalsNull without orders:amounts
totals.subtotalMinor units (cents) in the location's currency
totals.feesMinor units (cents) in the location's currency
totals.taxMinor units (cents) in the location's currency
totals.totalMinor units (cents) in the location's currency
totals.discounttotals.discount.codetotals.discount.amountMinor units (cents) in the location's currency
totals.storedValueDiscountsFree value that came off before tax, after the promo code, in the order given: a promotional gift certificate, or a goodwill or service recovery credit. Empty when none. Always present
totals.storedValueDiscounts[]totals.storedValueDiscounts[].sourcetotals.storedValueDiscounts[].codeMasked: ••••JKLM
totals.storedValueDiscounts[].amountMinor units (cents) in the location's currency
paymentspayments[]payments[].idpayments[].providerpayments[].statusNull without orders:amounts
payments[].amountNull without orders:amounts
payments[].createdAtpayments[].tendercard (online), gift_certificate, credit, or what staff recorded (record_payment): card_terminal (card at the desk), cash, debit, e_transfer, cheque, voucher
payments[].referenceA recorded payment's reference: an e-transfer's, a cheque's number, a voucher's code, a terminal's receipt number. Null without orders:amounts
payments[].issuerA voucher's issuer (Costco, WagJag). Null without orders:amounts
payments[].noteStaff's own note on a recorded payment, never shown to the guest. Null without orders:amounts
payments[].recordedByThe member (usr_…) who recorded it
payments[].codeThe gift certificate's or credit's code it was paid with, masked (••••JKLM), for tenders gift_certificate and credit. Null for every other tender and without orders:amounts. Always present
payments[].invoiceIdThe invoice (ivc_…) it counts toward, or null. Always present
historyhistory[]history[].idhistory[].typehistory[].actorhistory[].actor.typehistory[].actor.idhistory[].actor.viahistory[].actor.namehistory[].subjecthistory[].subject.typehistory[].subject.idhistory[].subject.labelhistory[].locationNamehistory[].changeshistory[].changes[]history[].changes[].fieldhistory[].changes[].beforehistory[].changes[].afterhistory[].changesetIdhistory[].draftedBySet when the command bar's assistant drafted the change this event came from, and the person (the actor) previewed and applied it: the assistant (agt_...) and its model call (aic_...). Always sent; null otherwise
history[].draftedBy.agentIdhistory[].draftedBy.callIdhistory[].dataWhat the event recorded, which can hold amounts and guests' names. Null without both orders:amounts and customers:contact where the event belongs; billing, member/invitation, agent, and API-key events also need billing:read, members:read, agents:read, and api_keys:write respectively at the organization
history[].data.*history[].maskedTrue when
datawas withheldhistory[].createdAthistory[].undohistory[].undo.changesetIdhistory[].undo.untilhistory[].actorNameThe member's name, or email, even once removed; null for the system, an agent, or a guest
historyMoreMore than the 100 newest entries exist: list_activity has the rest
dueWhat this one booking owes, for taking payment at the desk. Given with orders:amounts, and to someone who may book walk-ins here (bookings:write and products:read) though their grant hides the books; null for anyone else. It names no refund, payment history, or other booking
due.totalWhat the booking comes to, with tax
due.paidWhat has been paid on it, net of change given back
due.dueStill owing: 0 when paid in full
due.currencydue.statusunpaid and partly_paid while something is owing; paid once paid in full; nothing_due when nothing was ever to be paid (a total of 0, or a canceled booking), so it never reads paid when nothing was
get_customer
Get one customer's page: their contact details, staff's notes on them (newest first, at most 50; add_customer_note, update_customer_note, remove_customer_note), whether they've agreed to news and offers (marketing), and their bookings, newest first, as list_bookings gives them (pending ones included). Someone limited to a location, entity, or product reaches a customer only through a booking they're covered for, and sees only those bookings; anyone else is not found. Without customers:contact it's a first name with no email or phone, no notes, and no marketing status. Page their bookings back with before.
Reads · Members of an organization · Needs bookings:read
Input
customerIdThe customer's id, from list_customers
limitThe most results to return (default 25)
beforeA order id; returns ones older than it
Output
timeZoneThe organization's time zone for customer dates and staff notes: its oldest location's zone (creation time, then id), or UTC before it has a location
customercustomer.idcustomer.nameThe first name only, without customers:contact. Someone without it across the organization sees what the orders they're covered for hold, never the customer's shared record
customer.emailNull without customers:contact, or when there's none
customer.phoneNull without customers:contact, or when there's none; without it across the organization, the phone on the newest order you're covered for
customer.contactHiddenTrue when email and phone are hidden from you (you lack customers:contact here). False with a null email or phone means the guest gave none
customer.bookingsOrders of theirs you're covered for, canceled ones included
customer.lastSessionAtThe latest session among them
customer.lastSessionTimeZoneThe IANA time zone of that session's location
customer.lastSessionLocationNameThe name of that session's location
customer.createdAtcustomer.notesStaff's notes on the customer, newest first, at most 50; empty without customers:contact where you reach them
customer.notes[]customer.notes[].idThe customer note's id, from get_customer
customer.notes[].bodycustomer.notes[].authorWho wrote it; null when no member is recorded
customer.notes[].author.namecustomer.notes[].createdAtcustomer.notes[].updatedAtcustomer.notes[].canEditWhether you may change or remove it: its author may, and so may someone with customers:privacy across the organization
customer.marketingWhere the customer's email stands on news and offers (CASL): none (never agreed, or a sign-up not confirmed within a week), requested (a sign-up waiting for confirmation), granted, or withdrawn. Null without customers:contact or without an email
bookingsbookings[]bookings[].idbookings[].codeThe booking code guests quote
bookings[].statusbookings[].cancelReasonbookings[].cancelNoteStaff's own words. Null without orders:amounts
bookings[].createdAtbookings[].confirmedAtbookings[].canceledAtbookings[].customerbookings[].customer.idbookings[].customer.nameThe first name only, without customers:contact
bookings[].customer.emailNull without customers:contact
bookings[].customer.phoneNull without customers:contact, or when there's none
bookings[].customer.contactHiddenTrue when email and phone are hidden from you (you lack customers:contact here). False with a null email or phone means the guest gave none
bookings[].productbookings[].product.idbookings[].product.namebookings[].locationbookings[].location.idbookings[].location.namebookings[].location.timeZonebookings[].sessionbookings[].session.idbookings[].session.startsAtbookings[].session.whenIn the location's time zone
bookings[].partySizebookings[].currencybookings[].totalNull without orders:amounts
bookings[].paidNull without orders:amounts
bookings[].refundedRefunded or on its way back. Null without orders:amounts
bookings[].keptFees sold as non-refundable (the service charge) and their tax, kept on staff refunds, as far as the money is still held: 0 once everything paid has come back, refunded or as a credit in its place (a session the operator moved or called off), and none on an order canceled before it was booked. Null without orders:amounts
bookings[].refundableWhat staff can still refund: paid, less refunds, less a credit given in place of a refund (a session moved or called off), less what's kept. Null without orders:amounts
bookings[].refundsbookings[].refunds[]bookings[].refunds[].idbookings[].refunds[].amountNull without orders:amounts
bookings[].refunds[].statuspending (on its way), succeeded, failed, or reversed: given as a credit or gift certificate that was voided unused since, so it was taken back and isn't counted as refunded
bookings[].refunds[].reasonbookings[].refunds[].noteStaff's own words. Null without orders:amounts
bookings[].refunds[].failureReasonbookings[].refunds[].createdAtbookings[].refunds[].tenderWhat the refunded payment was made with: card (back to the guest's card), gift_certificate or credit (back to it), or an offline tender (card_terminal, cash, debit, e_transfer, cheque), which staff gave back that way at the desk; a voucher's part is given back as a credit (creditId), and a guest's own refund under the booking's refundDestination as a credit (creditId) or gift certificate (giftCertificateId) instead of back to the card or the desk
bookings[].refunds[].creditIdThe credit this refund became instead of going back where it was paid: a third party's voucher can't be handed back, so its part is a credit (voucher_refunded); a guest's own cancellation or change under refundDestination credit gives one (guest_change). The same credit the booking's credits list shows. Null for every other refund. Always present
bookings[].refunds[].giftCertificateIdThe gift certificate (kind refund) this refund became instead of going back where it was paid: a guest's own cancellation or change under refundDestination gift_certificate. Null for every other refund. Always present
bookings[].refunds[].issuerWho issued the voucher the refunded payment was (such as Costco); null for any other tender, and without orders:amounts. Always present
bookings[].bookingIdNull until it's booked. Always present
bookings[].bookerWho made it: a guest at checkout, or staff. Always present
bookings[].balanceDueWhat's still owing. Above 0 on a staff booking with payment to come, or seats added since: confirmed isn't paid. Null without orders:amounts. Always present
bookings[].overPaidWhat's been paid beyond the total: seats removed, which refunds nothing by itself. Null without orders:amounts. Always present
bookings[].paymentStatusunpaid, partly_paid, paid, over_paid, refunded (all but any kept fee has gone back), or nothing_due, from what's actually been paid. A partial refund stays paid. Null without orders:amounts. Always present
bookings[].staffNoteStaff's own note, never shown to the guest. Null without orders:amounts, or when there's none. Always present
nextBefore
list_bookings
Find bookings, newest first, for the front desk: search by booking code, guest's name, or email (forgiving small slips in a name), or by sessionId or locationId, a range of local dates (from, to), by default the session's date, or with dateBasis "booked" the date the booking was made (for "bookings made last week", accounting), or status. Leaves out orders still waiting on a guest's payment unless status asks for pending. Each shows the guest, the session, the party, who made it (booker), and the total, what's paid, the balance due, and what's over-paid. Confirmed isn't paid: read paymentStatus. Only bookings your grants cover. Without customers:contact the guest is a first name with no email or phone, and only a booking code or a first name finds one; without orders:amounts every amount, paymentStatus, and the note are null. Page back with before.
Reads · Members of an organization · Needs bookings:read
Input
searchA booking code, a guest's name, or an email
sessionIdThe session's id, from list_sessions
locationIdOnly bookings for sessions at this location
dateBasisWhat
fromandtoapply to. session (default): the session's local date at its location. booked: the date the booking was made, at the session's location (when it was confirmed, or created while it's still pending); then newest made firstfromFrom this date (inclusive), by
dateBasis, at the session's locationtoTo this date (inclusive), by
dateBasis, at the session's locationstatuslimitThe most results to return (default 25)
beforeA order id; returns ones older than it
Output
bookingsbookings[]bookings[].idbookings[].codeThe booking code guests quote
bookings[].statusbookings[].cancelReasonbookings[].cancelNoteStaff's own words. Null without orders:amounts
bookings[].createdAtbookings[].confirmedAtbookings[].canceledAtbookings[].customerbookings[].customer.idbookings[].customer.nameThe first name only, without customers:contact
bookings[].customer.emailNull without customers:contact
bookings[].customer.phoneNull without customers:contact, or when there's none
bookings[].customer.contactHiddenTrue when email and phone are hidden from you (you lack customers:contact here). False with a null email or phone means the guest gave none
bookings[].productbookings[].product.idbookings[].product.namebookings[].locationbookings[].location.idbookings[].location.namebookings[].location.timeZonebookings[].sessionbookings[].session.idbookings[].session.startsAtbookings[].session.whenIn the location's time zone
bookings[].partySizebookings[].currencybookings[].totalNull without orders:amounts
bookings[].paidNull without orders:amounts
bookings[].refundedRefunded or on its way back. Null without orders:amounts
bookings[].keptFees sold as non-refundable (the service charge) and their tax, kept on staff refunds, as far as the money is still held: 0 once everything paid has come back, refunded or as a credit in its place (a session the operator moved or called off), and none on an order canceled before it was booked. Null without orders:amounts
bookings[].refundableWhat staff can still refund: paid, less refunds, less a credit given in place of a refund (a session moved or called off), less what's kept. Null without orders:amounts
bookings[].refundsbookings[].refunds[]bookings[].refunds[].idbookings[].refunds[].amountNull without orders:amounts
bookings[].refunds[].statuspending (on its way), succeeded, failed, or reversed: given as a credit or gift certificate that was voided unused since, so it was taken back and isn't counted as refunded
bookings[].refunds[].reasonbookings[].refunds[].noteStaff's own words. Null without orders:amounts
bookings[].refunds[].failureReasonbookings[].refunds[].createdAtbookings[].refunds[].tenderWhat the refunded payment was made with: card (back to the guest's card), gift_certificate or credit (back to it), or an offline tender (card_terminal, cash, debit, e_transfer, cheque), which staff gave back that way at the desk; a voucher's part is given back as a credit (creditId), and a guest's own refund under the booking's refundDestination as a credit (creditId) or gift certificate (giftCertificateId) instead of back to the card or the desk
bookings[].refunds[].creditIdThe credit this refund became instead of going back where it was paid: a third party's voucher can't be handed back, so its part is a credit (voucher_refunded); a guest's own cancellation or change under refundDestination credit gives one (guest_change). The same credit the booking's credits list shows. Null for every other refund. Always present
bookings[].refunds[].giftCertificateIdThe gift certificate (kind refund) this refund became instead of going back where it was paid: a guest's own cancellation or change under refundDestination gift_certificate. Null for every other refund. Always present
bookings[].refunds[].issuerWho issued the voucher the refunded payment was (such as Costco); null for any other tender, and without orders:amounts. Always present
bookings[].bookingIdNull until it's booked. Always present
bookings[].bookerWho made it: a guest at checkout, or staff. Always present
bookings[].balanceDueWhat's still owing. Above 0 on a staff booking with payment to come, or seats added since: confirmed isn't paid. Null without orders:amounts. Always present
bookings[].overPaidWhat's been paid beyond the total: seats removed, which refunds nothing by itself. Null without orders:amounts. Always present
bookings[].paymentStatusunpaid, partly_paid, paid, over_paid, refunded (all but any kept fee has gone back), or nothing_due, from what's actually been paid. A partial refund stays paid. Null without orders:amounts. Always present
bookings[].staffNoteStaff's own note, never shown to the guest. Null without orders:amounts, or when there's none. Always present
nextBeforecanExportWhether the organization's plan includes CSV export (Growth and up): the screen offers the download only then. The rows are the same either way
list_customers
Find customers, newest first: search by name or email, forgiving small slips in a name. A customer belongs to the organization, so someone limited to a location, entity, or product sees only customers with a booking they're covered for, counts only those, and reads the contact on those bookings rather than the customer's shared record. Without customers:contact a customer is a first name with no email or phone, and only a first name finds one. Page back with before.
Reads · Members of an organization · Needs bookings:read
Input
searchlimitThe most results to return (default 25)
beforeA customer id; returns ones older than it
Output
customerscustomers[]customers[].idcustomers[].nameThe first name only, without customers:contact. Someone without it across the organization sees what the orders they're covered for hold, never the customer's shared record
customers[].emailNull without customers:contact, or when there's none
customers[].phoneNull without customers:contact, or when there's none; without it across the organization, the phone on the newest order you're covered for
customers[].contactHiddenTrue when email and phone are hidden from you (you lack customers:contact here). False with a null email or phone means the guest gave none
customers[].bookingsOrders of theirs you're covered for, canceled ones included
customers[].lastSessionAtThe latest session among them
customers[].lastSessionTimeZoneThe IANA time zone of that session's location
customers[].lastSessionLocationNameThe name of that session's location
customers[].createdAtnextBefore
update_booking_details
Change the contact name, email, and phone on a booking, and staff's note, without rewriting the customer record, which other bookings share: the name and phone are this booking's own, and a new email moves it to that address's record (found or added). Messages still to come go to the new address; ones already sent aren't sent again. Adding an email to a booking that had none starts its confirmation and reminder. Answers to booking questions have their own tool (set_booking_answer). The contact needs customers:contact, and the note orders:amounts. Undo puts them back while they're unchanged. Returns a preview to confirm.
Changes · Members of an organization · Needs bookings:write
Input
orderIdThe order's id, from list_bookings or list_orders
nameThe name on this booking. A booking always has one: null leaves it as it is
emailThe address on this booking: its messages still to come go there. It moves the booking to that address's customer record, and never rewrites a record. Null takes it off, and those messages are skipped
phoneThe phone on this booking; null takes it off
noteStaff's own note; null takes it off. Never shown to the guest
Output
bookingbooking.idbooking.codeThe booking code guests quote
booking.statusbooking.cancelReasonbooking.cancelNoteStaff's own words. Null without orders:amounts
booking.createdAtbooking.confirmedAtbooking.canceledAtbooking.customerbooking.customer.idbooking.customer.nameThe first name only, without customers:contact
booking.customer.emailNull without customers:contact
booking.customer.phoneNull without customers:contact, or when there's none
booking.customer.contactHiddenTrue when email and phone are hidden from you (you lack customers:contact here). False with a null email or phone means the guest gave none
booking.productbooking.product.idbooking.product.namebooking.locationbooking.location.idbooking.location.namebooking.location.timeZonebooking.sessionbooking.session.idbooking.session.startsAtbooking.session.whenIn the location's time zone
booking.partySizebooking.currencybooking.totalNull without orders:amounts
booking.paidNull without orders:amounts
booking.refundedRefunded or on its way back. Null without orders:amounts
booking.keptFees sold as non-refundable (the service charge) and their tax, kept on staff refunds, as far as the money is still held: 0 once everything paid has come back, refunded or as a credit in its place (a session the operator moved or called off), and none on an order canceled before it was booked. Null without orders:amounts
booking.refundableWhat staff can still refund: paid, less refunds, less a credit given in place of a refund (a session moved or called off), less what's kept. Null without orders:amounts
booking.refundsbooking.refunds[]booking.refunds[].idbooking.refunds[].amountNull without orders:amounts
booking.refunds[].statuspending (on its way), succeeded, failed, or reversed: given as a credit or gift certificate that was voided unused since, so it was taken back and isn't counted as refunded
booking.refunds[].reasonbooking.refunds[].noteStaff's own words. Null without orders:amounts
booking.refunds[].failureReasonbooking.refunds[].createdAtbooking.refunds[].tenderWhat the refunded payment was made with: card (back to the guest's card), gift_certificate or credit (back to it), or an offline tender (card_terminal, cash, debit, e_transfer, cheque), which staff gave back that way at the desk; a voucher's part is given back as a credit (creditId), and a guest's own refund under the booking's refundDestination as a credit (creditId) or gift certificate (giftCertificateId) instead of back to the card or the desk
booking.refunds[].creditIdThe credit this refund became instead of going back where it was paid: a third party's voucher can't be handed back, so its part is a credit (voucher_refunded); a guest's own cancellation or change under refundDestination credit gives one (guest_change). The same credit the booking's credits list shows. Null for every other refund. Always present
booking.refunds[].giftCertificateIdThe gift certificate (kind refund) this refund became instead of going back where it was paid: a guest's own cancellation or change under refundDestination gift_certificate. Null for every other refund. Always present
booking.refunds[].issuerWho issued the voucher the refunded payment was (such as Costco); null for any other tender, and without orders:amounts. Always present
booking.bookingIdNull until it's booked. Always present
booking.bookerWho made it: a guest at checkout, or staff. Always present
booking.balanceDueWhat's still owing. Above 0 on a staff booking with payment to come, or seats added since: confirmed isn't paid. Null without orders:amounts. Always present
booking.overPaidWhat's been paid beyond the total: seats removed, which refunds nothing by itself. Null without orders:amounts. Always present
booking.paymentStatusunpaid, partly_paid, paid, over_paid, refunded (all but any kept fee has gone back), or nothing_due, from what's actually been paid. A partial refund stays paid. Null without orders:amounts. Always present
booking.staffNoteStaff's own note, never shown to the guest. Null without orders:amounts, or when there's none. Always present