Customers tools
All tool areas. Each tool acts within your access.
Customers
erase_customer
Erase a guest's personal data on their request (PIPEDA): their name, email, phone, and sign-in link, the staff notes on them (add_customer_note), the names of their party's seats, their answers to booking questions (allergies are health data), the buyer's details and message on gift certificates they bought, the name and email they gave on holds before paying (abandoned bookings), the address on their send log rows and emails still stored, and the name, email, and phone in the activity log's entries about their orders. They show as "Erased guest" afterwards, and their marketing consent is withdrawn, so they get no news and offers. What the books need stays: orders, lines, payments, refunds, invoices, and their amounts and codes (tax records are kept for six years), menu choices, and the suppression list. It can't be undone, so the preview lists what goes and what stays. Refused (conflict, saying what to do) while they have an order waiting for payment, a booking still to come, a balance due, money owed back to them, or a gift certificate not yet delivered. Needs customers:privacy across the whole organization (owner and admin). Erasing a guest who is already erased changes nothing. Returns a preview to confirm.
Changes · Members of an organization · Needs customers:privacy
Input
customerIdThe customer's id, from list_customers
Output
customerThe customer (cus_…)
erasedTrue when this call erased them; false when they were already erased and nothing changed
countscounts.ordersOrders kept, with their amounts
counts.participantscounts.answerscounts.giftCertificatescounts.tipscounts.holdsHolds whose saved name and email (given before paying) were cleared
counts.messagescounts.jobscounts.changesetscounts.directCallscounts.eventscounts.notesStaff notes on the customer, deleted
export_customer_data
Export a customer's data for a guest's access request (PIPEDA): contact, consent history, staff's notes on the customer, orders and amounts, payments, refunds, invoices, participants, answers, party seats, menu choices, gift certificates, credits, tips, send log, suppressions, and activity. Includes staff notes (on the customer, and on their orders, payments, and refunds): review these before handing the export to the guest. Never email bodies. Needs customers:privacy, customers:contact, and orders:amounts across the organization.
Reads · Members of an organization · Needs customers:contact, customers:privacy, orders:amounts
Input
customerIdThe customer's id, from list_customers
Output
customercustomer.idThe customer's id, from list_customers
customer.namecustomer.emailcustomer.phonecustomer.createdAtcustomer.erasedAtmarketingConsentmarketingConsent[]marketingConsent[].idThe marketing consent's id
marketingConsent[].statusmarketingConsent[].sourcemarketingConsent[].wordingmarketingConsent[].wordingVersionmarketingConsent[].localemarketingConsent[].orderIdThe order's id, from list_bookings or list_orders
marketingConsent[].createdAtnotesStaff's notes on the customer, newest first. Staff's words: review them before handing the export over
notes[]notes[].idThe customer note's id, from get_customer
notes[].bodynotes[].authorWho wrote it; null when no member is recorded
notes[].author.namenotes[].createdAtnotes[].updatedAtordersorders[]orders[].idThe order's id, from list_bookings or list_orders
orders[].codeThe booking code guests quote
orders[].kindorders[].statusorders[].createdAtorders[].confirmedAtorders[].canceledAtorders[].contactNameorders[].contactPhoneorders[].staffNoteorders[].cancelNoteorders[].productIdThe product's id, from list_products
orders[].locationIdThe location's id, from get_setup
orders[].sessionIdThe session's id, from list_sessions
orders[].sessionAtorders[].totalsorders[].totals.currencyorders[].totals.linesorders[].totals.lines[]A booking's tickets, extras, and fees; a gift certificate's order has only its gift_certificate line
orders[].totals.lines[] — object option 1orders[].totals.lines[] — object option 1.kindorders[].totals.lines[] — object option 1.ticketTypeIdorders[].totals.lines[] — object option 1.nameorders[].totals.lines[] — object option 1.quantityorders[].totals.lines[] — object option 1.unitAmountMinor units (cents)
orders[].totals.lines[] — object option 1.groupOnly on a group option's line: the line is baseAmount plus unitAmount for each seat above includedSeats
orders[].totals.lines[] — object option 1.group.baseAmountThe base charge, covering includedSeats, before fees and tax
orders[].totals.lines[] — object option 1.group.includedSeatsorders[].totals.lines[] — object option 1.amountMinor units (cents)
orders[].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
orders[].totals.lines[] — object option 1.components[]orders[].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
orders[].totals.lines[] — object option 1.components[].nameorders[].totals.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)
orders[].totals.lines[] — object option 1.components[].amountIts part of the line's amount, after discounts, before tax
orders[].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
orders[].totals.lines[] — object option 1.components[].taxes[]orders[].totals.lines[] — object option 1.components[].taxes[].nameorders[].totals.lines[] — object option 1.components[].taxes[].ratePpmorders[].totals.lines[] — object option 1.components[].taxes[].amountMinor units (cents)
orders[].totals.lines[] — object option 2orders[].totals.lines[] — object option 2.kindorders[].totals.lines[] — object option 2.addOnIdThe add-on (a product, prd_…)
orders[].totals.lines[] — object option 2.nameorders[].totals.lines[] — object option 2.quantityorders[].totals.lines[] — object option 2.unitAmountMinor units (cents)
orders[].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
orders[].totals.lines[] — object option 2.amountMinor units (cents)
orders[].totals.lines[] — object option 3orders[].totals.lines[] — object option 3.kindorders[].totals.lines[] — object option 3.feeIdorders[].totals.lines[] — object option 3.nameorders[].totals.lines[] — object option 3.ratePpmorders[].totals.lines[] — object option 3.amountMinor units (cents)
orders[].totals.lines[] — object option 4orders[].totals.lines[] — object option 4.kindorders[].totals.lines[] — object option 4.name"Gift certificate", or the preset's name
orders[].totals.lines[] — object option 4.amountMinor units (cents)
orders[].totals.subtotalMinor units (cents)
orders[].totals.feesMinor units (cents)
orders[].totals.totalBeforeTaxSubtotal plus fees: the party's total as shown before tax
orders[].totals.taxMinor units (cents)
orders[].totals.totalThe total with tax, what the guest pays
orders[].totals.taxesorders[].totals.taxes[]orders[].totals.taxes[].nameorders[].totals.taxes[].ratePpmorders[].totals.taxes[].amountMinor units (cents)
orders[].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
orders[].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 presentorders[].totals.discount.codeorders[].totals.discount.kindorders[].totals.discount.amountWhat it took off, before tax: off the tickets and extras, or the fees a waive_service_charge code waived
orders[].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
linesaboveorders[].totals.discount.lines[]orders[].totals.discount.lines[] — object option 1orders[].totals.discount.lines[] — object option 1.kindorders[].totals.discount.lines[] — object option 1.ticketTypeIdorders[].totals.discount.lines[] — object option 1.amountMinor units (cents)
orders[].totals.discount.lines[] — object option 2orders[].totals.discount.lines[] — object option 2.kindorders[].totals.discount.lines[] — object option 2.addOnIdorders[].totals.discount.lines[] — object option 2.amountMinor units (cents)
orders[].totals.discount.lines[] — object option 3orders[].totals.discount.lines[] — object option 3.kindorders[].totals.discount.lines[] — object option 3.feeIdorders[].totals.discount.lines[] — object option 3.amountMinor units (cents)
orders[].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 noneorders[].totals.storedValueDiscounts[]orders[].totals.storedValueDiscounts[].sourceorders[].totals.storedValueDiscounts[].codeIts code masked (•••• and its last 4)
orders[].totals.storedValueDiscounts[].amountWhat it took off, before tax
orders[].totals.storedValueDiscounts[].linesWhat it took off each line: this plus the line's own amount is what the line was before it
orders[].totals.storedValueDiscounts[].lines[]orders[].totals.storedValueDiscounts[].lines[] — object option 1orders[].totals.storedValueDiscounts[].lines[] — object option 1.kindorders[].totals.storedValueDiscounts[].lines[] — object option 1.ticketTypeIdorders[].totals.storedValueDiscounts[].lines[] — object option 1.amountMinor units (cents)
orders[].totals.storedValueDiscounts[].lines[] — object option 2orders[].totals.storedValueDiscounts[].lines[] — object option 2.kindorders[].totals.storedValueDiscounts[].lines[] — object option 2.addOnIdorders[].totals.storedValueDiscounts[].lines[] — object option 2.amountMinor units (cents)
orders[].paymentsorders[].payments[]orders[].payments[].idorders[].payments[].providerorders[].payments[].statusNull without orders:amounts
orders[].payments[].amountNull without orders:amounts
orders[].payments[].createdAtorders[].payments[].tendercard (online), gift_certificate, credit, or what staff recorded (record_payment): card_terminal (card at the desk), cash, debit, e_transfer, cheque, voucher
orders[].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
orders[].payments[].issuerA voucher's issuer (Costco, WagJag). Null without orders:amounts
orders[].payments[].noteStaff's own note on a recorded payment, never shown to the guest. Null without orders:amounts
orders[].payments[].recordedByThe member (usr_…) who recorded it
orders[].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
orders[].payments[].invoiceIdThe invoice (ivc_…) it counts toward, or null. Always present
orders[].payments[].currencyorders[].refundsorders[].refunds[]orders[].refunds[].idorders[].refunds[].amountNull without orders:amounts
orders[].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
orders[].refunds[].reasonorders[].refunds[].noteStaff's own words. Null without orders:amounts
orders[].refunds[].failureReasonorders[].refunds[].createdAtorders[].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
orders[].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
orders[].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
orders[].refunds[].issuerWho issued the voucher the refunded payment was (such as Costco); null for any other tender, and without orders:amounts. Always present
orders[].refunds[].paymentIdThe payment's id
orders[].refunds[].currencyorders[].invoicesorders[].invoices[]orders[].invoices[].idivc_…
orders[].invoices[].kindinvoice, or credit_note (December)
orders[].invoices[].portionfull (the whole order), deposit, or balance (the deposit's other half, issued with it). Null on a credit note
orders[].invoices[].numberINV-0001: null on a draft, kept once voided
orders[].invoices[].statusWhat's stored; read
statefor paid, overdue, and the restorders[].invoices[].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
orders[].invoices[].orderIdorders[].invoices[].bookingCodeorders[].invoices[].quoteIdorders[].invoices[].entityorders[].invoices[].entity.idorders[].invoices[].entity.nameorders[].invoices[].locationorders[].invoices[].location.idorders[].invoices[].location.nameorders[].invoices[].location.timeZoneorders[].invoices[].sessionorders[].invoices[].session.idorders[].invoices[].session.startsAtorders[].invoices[].session.whenIn the location's time zone
orders[].invoices[].billToorders[].invoices[].billTo.nameorders[].invoices[].billTo.companyorders[].invoices[].billTo.emailorders[].invoices[].billTo.phoneorders[].invoices[].billTo.addressorders[].invoices[].billTo.address.line1orders[].invoices[].billTo.address.line2orders[].invoices[].billTo.address.cityorders[].invoices[].billTo.address.regionProvince or state code, e.g. ON
orders[].invoices[].billTo.address.postalCodeorders[].invoices[].billTo.address.countryISO 3166-1 alpha-2, e.g. CA
orders[].invoices[].issuerNull on a draft
orders[].invoices[].issuer.nameorders[].invoices[].issuer.legalNameorders[].invoices[].issuer.addressorders[].invoices[].issuer.address.line1orders[].invoices[].issuer.address.line2orders[].invoices[].issuer.address.cityorders[].invoices[].issuer.address.regionProvince or state code, e.g. ON
orders[].invoices[].issuer.address.postalCodeorders[].invoices[].issuer.address.countryISO 3166-1 alpha-2, e.g. CA
orders[].invoices[].issuer.taxRegistrationsorders[].invoices[].issuer.taxRegistrations[]orders[].invoices[].issuer.taxRegistrations[].taxHST, GST, PST, sales tax
orders[].invoices[].issuer.taxRegistrations[].jurisdictionCA-ON, US-MA
orders[].invoices[].issuer.taxRegistrations[].numberorders[].invoices[].currencyorders[].invoices[].amountWhat it asks for, with tax. Null without orders:amounts
orders[].invoices[].paidPaid toward it, less refunds of those payments. Null without orders:amounts
orders[].invoices[].balanceWhat's still owed on it: 0 once paid, on a draft, or once void. Null without orders:amounts
orders[].invoices[].totalsIts own lines, frozen when it was made: the order's, or a deposit's or balance's share of each line, tax, and fee. Null without orders:amounts
orders[].invoices[].totals.currencyorders[].invoices[].totals.linesorders[].invoices[].totals.lines[]A booking's tickets, extras, and fees; a gift certificate's order has only its gift_certificate line
orders[].invoices[].totals.lines[] — object option 1orders[].invoices[].totals.lines[] — object option 1.kindorders[].invoices[].totals.lines[] — object option 1.ticketTypeIdorders[].invoices[].totals.lines[] — object option 1.nameorders[].invoices[].totals.lines[] — object option 1.quantityorders[].invoices[].totals.lines[] — object option 1.unitAmountMinor units (cents)
orders[].invoices[].totals.lines[] — object option 1.groupOnly on a group option's line: the line is baseAmount plus unitAmount for each seat above includedSeats
orders[].invoices[].totals.lines[] — object option 1.group.baseAmountThe base charge, covering includedSeats, before fees and tax
orders[].invoices[].totals.lines[] — object option 1.group.includedSeatsorders[].invoices[].totals.lines[] — object option 1.amountMinor units (cents)
orders[].invoices[].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
orders[].invoices[].totals.lines[] — object option 1.components[]orders[].invoices[].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
orders[].invoices[].totals.lines[] — object option 1.components[].nameorders[].invoices[].totals.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)
orders[].invoices[].totals.lines[] — object option 1.components[].amountIts part of the line's amount, after discounts, before tax
orders[].invoices[].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
orders[].invoices[].totals.lines[] — object option 1.components[].taxes[]orders[].invoices[].totals.lines[] — object option 1.components[].taxes[].nameorders[].invoices[].totals.lines[] — object option 1.components[].taxes[].ratePpmorders[].invoices[].totals.lines[] — object option 1.components[].taxes[].amountMinor units (cents)
orders[].invoices[].totals.lines[] — object option 2orders[].invoices[].totals.lines[] — object option 2.kindorders[].invoices[].totals.lines[] — object option 2.addOnIdThe add-on (a product, prd_…)
orders[].invoices[].totals.lines[] — object option 2.nameorders[].invoices[].totals.lines[] — object option 2.quantityorders[].invoices[].totals.lines[] — object option 2.unitAmountMinor units (cents)
orders[].invoices[].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
orders[].invoices[].totals.lines[] — object option 2.amountMinor units (cents)
orders[].invoices[].totals.lines[] — object option 3orders[].invoices[].totals.lines[] — object option 3.kindorders[].invoices[].totals.lines[] — object option 3.feeIdorders[].invoices[].totals.lines[] — object option 3.nameorders[].invoices[].totals.lines[] — object option 3.ratePpmorders[].invoices[].totals.lines[] — object option 3.amountMinor units (cents)
orders[].invoices[].totals.lines[] — object option 4orders[].invoices[].totals.lines[] — object option 4.kindorders[].invoices[].totals.lines[] — object option 4.name"Gift certificate", or the preset's name
orders[].invoices[].totals.lines[] — object option 4.amountMinor units (cents)
orders[].invoices[].totals.subtotalMinor units (cents)
orders[].invoices[].totals.feesMinor units (cents)
orders[].invoices[].totals.totalBeforeTaxSubtotal plus fees: the party's total as shown before tax
orders[].invoices[].totals.taxMinor units (cents)
orders[].invoices[].totals.totalThe total with tax, what the guest pays
orders[].invoices[].totals.taxesorders[].invoices[].totals.taxes[]orders[].invoices[].totals.taxes[].nameorders[].invoices[].totals.taxes[].ratePpmorders[].invoices[].totals.taxes[].amountMinor units (cents)
orders[].invoices[].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
orders[].invoices[].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 presentorders[].invoices[].totals.discount.codeorders[].invoices[].totals.discount.kindorders[].invoices[].totals.discount.amountWhat it took off, before tax: off the tickets and extras, or the fees a waive_service_charge code waived
orders[].invoices[].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
linesaboveorders[].invoices[].totals.discount.lines[]orders[].invoices[].totals.discount.lines[] — object option 1orders[].invoices[].totals.discount.lines[] — object option 1.kindorders[].invoices[].totals.discount.lines[] — object option 1.ticketTypeIdorders[].invoices[].totals.discount.lines[] — object option 1.amountMinor units (cents)
orders[].invoices[].totals.discount.lines[] — object option 2orders[].invoices[].totals.discount.lines[] — object option 2.kindorders[].invoices[].totals.discount.lines[] — object option 2.addOnIdorders[].invoices[].totals.discount.lines[] — object option 2.amountMinor units (cents)
orders[].invoices[].totals.discount.lines[] — object option 3orders[].invoices[].totals.discount.lines[] — object option 3.kindorders[].invoices[].totals.discount.lines[] — object option 3.feeIdorders[].invoices[].totals.discount.lines[] — object option 3.amountMinor units (cents)
orders[].invoices[].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 noneorders[].invoices[].totals.storedValueDiscounts[]orders[].invoices[].totals.storedValueDiscounts[].sourceorders[].invoices[].totals.storedValueDiscounts[].codeIts code masked (•••• and its last 4)
orders[].invoices[].totals.storedValueDiscounts[].amountWhat it took off, before tax
orders[].invoices[].totals.storedValueDiscounts[].linesWhat it took off each line: this plus the line's own amount is what the line was before it
orders[].invoices[].totals.storedValueDiscounts[].lines[]orders[].invoices[].totals.storedValueDiscounts[].lines[] — object option 1orders[].invoices[].totals.storedValueDiscounts[].lines[] — object option 1.kindorders[].invoices[].totals.storedValueDiscounts[].lines[] — object option 1.ticketTypeIdorders[].invoices[].totals.storedValueDiscounts[].lines[] — object option 1.amountMinor units (cents)
orders[].invoices[].totals.storedValueDiscounts[].lines[] — object option 2orders[].invoices[].totals.storedValueDiscounts[].lines[] — object option 2.kindorders[].invoices[].totals.storedValueDiscounts[].lines[] — object option 2.addOnIdorders[].invoices[].totals.storedValueDiscounts[].lines[] — object option 2.amountMinor units (cents)
orders[].invoices[].matchesOrderWhether the order's invoices still add up to the order. False once seats changed after it was issued: void it and issue another
orders[].invoices[].statementWhat's been paid and given back, as lines after the total that add up to the balance:
amountplus every line's amount isbalance. Empty while nothing has been paid or refunded, and on a draft or a void invoice. A refund already given (goodwill, say) shows as its own line with its reason, then comes off again as not owed again. Null without orders:amountsorders[].invoices[].statement[]orders[].invoices[].statement[].kindpaid (minus), refunded (a refund already given, plus: money handed back is owed again), refund_not_owed (minus: the refund leaves nothing owing, so the same amount comes off again)
orders[].invoices[].statement[].amountSigned, in minor units, so the invoice's
amountplus every line'samountis itsbalanceorders[].invoices[].statement[].reasonWhy a refund was given (goodwill, service_issue, …); null on the other kinds
orders[].invoices[].statement[].labelThe line in English: Paid, Refunded (goodwill), Refund not owed again
orders[].invoices[].paymentsNull without orders:amounts
orders[].invoices[].payments[]orders[].invoices[].payments[].idpay_…
orders[].invoices[].payments[].tenderorders[].invoices[].payments[].statusorders[].invoices[].payments[].amountMinor units (cents) in the location's currency
orders[].invoices[].payments[].refundedRefunded or on its way back (an excess given back, or staff's)
orders[].invoices[].payments[].createdAtorders[].invoices[].issuedAtorders[].invoices[].dueOnThe day it's due, at the location. Null on a credit note
orders[].invoices[].dueAtThe end of dueOn at the location: overdue from then
orders[].invoices[].overdueAtWhen the overdue alert was raised
orders[].invoices[].sentAtWhen it was last emailed
orders[].invoices[].noteShown to the guest
orders[].invoices[].voidedAtorders[].invoices[].voidReasonorders[].invoices[].voidNoteStaff's own words. Null without orders:amounts
orders[].invoices[].createdAtparticipantsparticipants[]participants[].positionThe guest's place in the party, as booking questions' answers number them. Positions never renumber: removing seats removes the highest positions not checked in, so a checked-in guest keeps theirs (it can be above the party's size)
participants[].nameNull when nobody's given one. The first name only, without customers:contact
participants[].checkedInAtWhen they arrived: the server's time, or the time the phone queued it for a call replayed after being offline
participants[].checkedInByThe member who checked them in (name, or email)
participants[].bookingIdThe booking's id, from list_bookings
participants[].removedAtparticipants[].claimedAtanswersanswers[]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
partySeatspartySeats[]partySeats[].positionThe guest's place in the party, as booking questions' answers number them. Positions never renumber: removing seats removes the highest positions not checked in, so a checked-in guest keeps theirs (it can be above the party's size)
partySeats[].nameNull when nobody's given one. The first name only, without customers:contact
partySeats[].checkedInAtWhen they arrived: the server's time, or the time the phone queued it for a call replayed after being offline
partySeats[].checkedInByThe member who checked them in (name, or email)
partySeats[].bookingIdThe booking's id, from list_bookings
partySeats[].removedAtpartySeats[].claimedAtmenuChoicesmenuChoices[]menuChoices[].bookingIdThe booking's id, from list_bookings
menuChoices[].positionmenuChoices[].courseIdThe menu course's id, from list_menus
menuChoices[].choiceIdThe menu choice's id, from list_menus
menuChoices[].quantitymenuChoices[].defaultedgiftCertificatesgiftCertificates[]giftCertificates[].idgiftCertificates[].codeIn groups of 4. In full only to someone holding refunds:create and orders:amounts where it was sold; masked (•••• and its last 4) otherwise, since whoever reads it can spend it
giftCertificates[].kindgiftCertificates[].reasongiftCertificates[].issuedBygiftCertificates[].statuspending (its purchase isn't paid yet), active, voided, or expired (promotional ones past expiresAt)
giftCertificates[].entityIdThe entity it's a liability of
giftCertificates[].locationIdWhere it was sold
giftCertificates[].currencygiftCertificates[].amountAs sold, minor units; null without orders:amounts
giftCertificates[].balanceWhat's left to use; null without orders:amounts
giftCertificates[].orderIdThe purchase's order; null for a promotional one
giftCertificates[].orderCodegiftCertificates[].buyergiftCertificates[].buyer.customerIdgiftCertificates[].buyer.nameFirst name only without customers:contact
giftCertificates[].recipientNameFirst name only without customers:contact
giftCertificates[].recipientEmailNull without customers:contact, or when none was given
giftCertificates[].messagegiftCertificates[].presetNamegiftCertificates[].deliverOnThe local date at its location it goes to the recipient
giftCertificates[].deliverAtWhen the delivery job sends it: 9:00 at its location on deliverOn, or the moment it was paid for (or issued) when that was already the day. Show it in timeZone
giftCertificates[].timeZoneThe time zone of the location it was sold at, where deliverOn is a local date and deliverAt was planned; null without a location
giftCertificates[].deliveredAtgiftCertificates[].deliverygiftCertificates[].delivery.statescheduled: goes at deliverAt; overdue: deliverAt has passed without a send; sent; no_email: nowhere to send it (the buyer's receipt has its card link)
giftCertificates[].delivery.deliverOnA local date at the location, YYYY-MM-DD
giftCertificates[].delivery.deliverAtWhen it goes, as deliverAt above
giftCertificates[].delivery.timeZoneWhere deliverAt is shown, as timeZone above
giftCertificates[].delivery.deliveredAtgiftCertificates[].expiresAtgiftCertificates[].voidedAtgiftCertificates[].voidReasongiftCertificates[].voidNoteStaff's own words; null without orders:amounts
giftCertificates[].createdAtcreditscredits[]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[].createdAttipstips[]tips[].idThe tip's id, from list_tips
tips[].orderIdThe order's id, from list_bookings or list_orders
tips[].amounttips[].currencytips[].sourcetips[].contactNametips[].paidAttips[].createdAtmessagesmessages[]messages[].idThe message's id, from list_messages
messages[].notificationmessages[].recipientmessages[].statusmessages[].sendAtmessages[].sentAtmessages[].deliveryStatusmessages[].deliveryAtsuppressionssuppressions[]suppressions[].idsuppressions[].addresssuppressions[].reasonsuppressions[].scopeA hard bounce holds for every organization on Lokl (the address doesn't exist); a complaint only for this one
suppressions[].sincesuppressions[].liftedAtsuppressions[].canLiftA complaint that hasn't been lifted. A hard bounce can't be lifted: the address doesn't exist, and it stops mattering once the guest's email is corrected
activityactivity[]activity[].idactivity[].typeactivity[].actoractivity[].actor.typeactivity[].actor.idactivity[].actor.viaactivity[].actor.nameactivity[].subjectactivity[].subject.typeactivity[].subject.idactivity[].subject.labelactivity[].locationNameactivity[].changesactivity[].changes[]activity[].changes[].fieldactivity[].changes[].beforeactivity[].changes[].afteractivity[].changesetIdactivity[].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
activity[].draftedBy.agentIdactivity[].draftedBy.callIdactivity[].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
activity[].data.*activity[].maskedTrue when
datawas withheldactivity[].createdAt
withdraw_marketing_consent
Record a guest's request to stop news and offers. Booking messages continue. Needs customers:privacy across the organization. Cannot be undone: only the guest can grant consent again. Returns a preview to confirm.
Changes · Members of an organization · Needs customers:privacy
Input
email
Output
statuschanged