Invoices tools
All tool areas. Each tool acts within your access.
Invoices
get_invoice
Get one invoice: its number, state (draft, sent, partly_paid, paid, overdue, void), who it's billed to and who issued it, its own lines and taxes, what's paid and owed, its payments, due date, and whether the booking's invoices still add up to the booking (matchesOrder). Amounts need orders:amounts; the bill-to's details need customers:contact.
Reads · Members of an organization · Needs bookings:read
Input
invoiceIdThe invoice's id, from list_invoices
Output
invoiceinvoice.idivc_…
invoice.kindinvoice, or credit_note (December)
invoice.portionfull (the whole order), deposit, or balance (the deposit's other half, issued with it). Null on a credit note
invoice.numberINV-0001: null on a draft, kept once voided
invoice.statusWhat's stored; read
statefor paid, overdue, and the restinvoice.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
invoice.orderIdinvoice.bookingCodeinvoice.quoteIdinvoice.entityinvoice.entity.idinvoice.entity.nameinvoice.locationinvoice.location.idinvoice.location.nameinvoice.location.timeZoneinvoice.sessioninvoice.session.idinvoice.session.startsAtinvoice.session.whenIn the location's time zone
invoice.billToinvoice.billTo.nameThe first name only, without customers:contact
invoice.billTo.companyinvoice.billTo.emailinvoice.billTo.phoneinvoice.billTo.addressinvoice.billTo.address.line1invoice.billTo.address.line2invoice.billTo.address.cityinvoice.billTo.address.regionProvince or state code, e.g. ON
invoice.billTo.address.postalCodeinvoice.billTo.address.countryISO 3166-1 alpha-2, e.g. CA
invoice.issuerNull on a draft
invoice.issuer.nameinvoice.issuer.legalNameinvoice.issuer.addressinvoice.issuer.address.line1invoice.issuer.address.line2invoice.issuer.address.cityinvoice.issuer.address.regionProvince or state code, e.g. ON
invoice.issuer.address.postalCodeinvoice.issuer.address.countryISO 3166-1 alpha-2, e.g. CA
invoice.issuer.taxRegistrationsinvoice.issuer.taxRegistrations[]invoice.issuer.taxRegistrations[].taxHST, GST, PST, sales tax
invoice.issuer.taxRegistrations[].jurisdictionCA-ON, US-MA
invoice.issuer.taxRegistrations[].numberinvoice.currencyinvoice.amountWhat it asks for, with tax. Null without orders:amounts
invoice.paidPaid toward it, less refunds of those payments. Null without orders:amounts
invoice.balanceWhat's still owed on it: 0 once paid, on a draft, or once void. Null without orders:amounts
invoice.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
invoice.totals.currencyinvoice.totals.linesinvoice.totals.lines[]A booking's tickets, extras, and fees; a gift certificate's order has only its gift_certificate line
invoice.totals.lines[] — object option 1invoice.totals.lines[] — object option 1.kindinvoice.totals.lines[] — object option 1.ticketTypeIdinvoice.totals.lines[] — object option 1.nameinvoice.totals.lines[] — object option 1.quantityinvoice.totals.lines[] — object option 1.unitAmountMinor units (cents)
invoice.totals.lines[] — object option 1.groupOnly on a group option's line: the line is baseAmount plus unitAmount for each seat above includedSeats
invoice.totals.lines[] — object option 1.group.baseAmountThe base charge, covering includedSeats, before fees and tax
invoice.totals.lines[] — object option 1.group.includedSeatsinvoice.totals.lines[] — object option 1.amountMinor units (cents)
invoice.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
invoice.totals.lines[] — object option 1.components[]invoice.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
invoice.totals.lines[] — object option 1.components[].nameinvoice.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)
invoice.totals.lines[] — object option 1.components[].amountIts part of the line's amount, after discounts, before tax
invoice.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
invoice.totals.lines[] — object option 1.components[].taxes[]invoice.totals.lines[] — object option 1.components[].taxes[].nameinvoice.totals.lines[] — object option 1.components[].taxes[].ratePpminvoice.totals.lines[] — object option 1.components[].taxes[].amountMinor units (cents)
invoice.totals.lines[] — object option 2invoice.totals.lines[] — object option 2.kindinvoice.totals.lines[] — object option 2.addOnIdThe add-on (a product, prd_…)
invoice.totals.lines[] — object option 2.nameinvoice.totals.lines[] — object option 2.quantityinvoice.totals.lines[] — object option 2.unitAmountMinor units (cents)
invoice.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
invoice.totals.lines[] — object option 2.amountMinor units (cents)
invoice.totals.lines[] — object option 3invoice.totals.lines[] — object option 3.kindinvoice.totals.lines[] — object option 3.feeIdinvoice.totals.lines[] — object option 3.nameinvoice.totals.lines[] — object option 3.ratePpminvoice.totals.lines[] — object option 3.amountMinor units (cents)
invoice.totals.lines[] — object option 4invoice.totals.lines[] — object option 4.kindinvoice.totals.lines[] — object option 4.name"Gift certificate", or the preset's name
invoice.totals.lines[] — object option 4.amountMinor units (cents)
invoice.totals.subtotalMinor units (cents)
invoice.totals.feesMinor units (cents)
invoice.totals.totalBeforeTaxSubtotal plus fees: the party's total as shown before tax
invoice.totals.taxMinor units (cents)
invoice.totals.totalThe total with tax, what the guest pays
invoice.totals.taxesinvoice.totals.taxes[]invoice.totals.taxes[].nameinvoice.totals.taxes[].ratePpminvoice.totals.taxes[].amountMinor units (cents)
invoice.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
invoice.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 presentinvoice.totals.discount.codeinvoice.totals.discount.kindinvoice.totals.discount.amountWhat it took off, before tax: off the tickets and extras, or the fees a waive_service_charge code waived
invoice.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
linesaboveinvoice.totals.discount.lines[]invoice.totals.discount.lines[] — object option 1invoice.totals.discount.lines[] — object option 1.kindinvoice.totals.discount.lines[] — object option 1.ticketTypeIdinvoice.totals.discount.lines[] — object option 1.amountMinor units (cents)
invoice.totals.discount.lines[] — object option 2invoice.totals.discount.lines[] — object option 2.kindinvoice.totals.discount.lines[] — object option 2.addOnIdinvoice.totals.discount.lines[] — object option 2.amountMinor units (cents)
invoice.totals.discount.lines[] — object option 3invoice.totals.discount.lines[] — object option 3.kindinvoice.totals.discount.lines[] — object option 3.feeIdinvoice.totals.discount.lines[] — object option 3.amountMinor units (cents)
invoice.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 noneinvoice.totals.storedValueDiscounts[]invoice.totals.storedValueDiscounts[].sourceinvoice.totals.storedValueDiscounts[].codeIts code masked (•••• and its last 4)
invoice.totals.storedValueDiscounts[].amountWhat it took off, before tax
invoice.totals.storedValueDiscounts[].linesWhat it took off each line: this plus the line's own amount is what the line was before it
invoice.totals.storedValueDiscounts[].lines[]invoice.totals.storedValueDiscounts[].lines[] — object option 1invoice.totals.storedValueDiscounts[].lines[] — object option 1.kindinvoice.totals.storedValueDiscounts[].lines[] — object option 1.ticketTypeIdinvoice.totals.storedValueDiscounts[].lines[] — object option 1.amountMinor units (cents)
invoice.totals.storedValueDiscounts[].lines[] — object option 2invoice.totals.storedValueDiscounts[].lines[] — object option 2.kindinvoice.totals.storedValueDiscounts[].lines[] — object option 2.addOnIdinvoice.totals.storedValueDiscounts[].lines[] — object option 2.amountMinor units (cents)
invoice.matchesOrderWhether the order's invoices still add up to the order. False once seats changed after it was issued: void it and issue another
invoice.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:amountsinvoice.statement[]invoice.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)
invoice.statement[].amountSigned, in minor units, so the invoice's
amountplus every line'samountis itsbalanceinvoice.statement[].reasonWhy a refund was given (goodwill, service_issue, …); null on the other kinds
invoice.statement[].labelThe line in English: Paid, Refunded (goodwill), Refund not owed again
invoice.paymentsNull without orders:amounts
invoice.payments[]invoice.payments[].idpay_…
invoice.payments[].tenderinvoice.payments[].statusinvoice.payments[].amountMinor units (cents) in the location's currency
invoice.payments[].refundedRefunded or on its way back (an excess given back, or staff's)
invoice.payments[].createdAtinvoice.issuedAtinvoice.dueOnThe day it's due, at the location. Null on a credit note
invoice.dueAtThe end of dueOn at the location: overdue from then
invoice.overdueAtWhen the overdue alert was raised
invoice.sentAtWhen it was last emailed
invoice.noteShown to the guest
invoice.voidedAtinvoice.voidReasoninvoice.voidNoteStaff's own words. Null without orders:amounts
invoice.createdAt
issue_invoice
Invoice a booking, or a quote (which books the party into its session first, whole for a private game, as a staff booking: bookings:write too). portion: full is one invoice for the booking; deposit with an amount or a percentage issues the deposit and the balance together, which add up to the booking line by line. Due dueOn, or dueInDays from today (default: the invoiceDueDays setting, 7), never later than the day before the session; a deposit's balance is due balanceDueOn, by default the day before the session. Billed to billTo (a name is required), by default the quote's or the booking's contact. send: true (the default) numbers it (INV-0001, the entity's own series) and emails it with its pay link; the entity needs an address, and a registration for each tax it charges. send: false makes a draft, with no number, which send_invoice issues later and undo removes. Payments already on the booking count toward the first invoice. On a booking that already has invoices (one of a deposit and balance was voided), portion: full issues one invoice for what they don't cover yet, line by line: the balance beside an active deposit, the deposit beside an active balance, due as a new one would be; deposit is refused there (void them to split it again), and so is a booking that's fully invoiced. Needs orders:amounts. Refused for a booking with nothing owed, a canceled one, or an expired quote. Returns a preview to confirm.
Changes · Members of an organization · Needs invoices:write
Plan: quotes and invoices
Input
orderIdA confirmed booking with something owed. Give orderId or quoteId
quoteIdAn open quote: invoicing it books the party into its session, whole, as a staff booking (bookings:write too). Give orderId or quoteId
portionfull: one invoice for what's owed, or, on a booking that already has invoices, for what they don't cover yet. deposit: a deposit and the balance, two invoices issued together, which add up to the order line by line
depositRequired with portion: deposit
deposit — object option 1deposit — object option 1.amountThe deposit with tax, in minor units
deposit — object option 2deposit — object option 2.percentPpmA share of the total with tax, in parts per million: 25% is 250000
dueOnThe day it's due (the deposit's, with a deposit), at the location: never after the day before the session. Left out: dueInDays
dueInDaysDays after today it's due. Left out: the invoiceDueDays setting (7), never later than the day before the session
balanceDueOnWith a deposit: the day the balance is due. Left out: the day before the session
billToLeft out: the quote's, or the order's contact (its name, email, and phone)
billTo.namebillTo.companybillTo.emailWhere the invoice (or quote) and its reminders go. Left out on an invoice: the order's email
billTo.phonebillTo.addressbillTo.address.line1billTo.address.line2billTo.address.citybillTo.address.regionProvince or state code, e.g. ON
billTo.address.postalCodebillTo.address.countryISO 3166-1 alpha-2, e.g. CA
noteShown to the guest on the invoice
sendtrue: number it and email it with its pay link. false: a draft, unnumbered and unsent, which send_invoice issues later (and undo removes)
Output
invoicesOne, or the deposit and the balance
invoices[]invoices[].idivc_…
invoices[].kindinvoice, or credit_note (December)
invoices[].portionfull (the whole order), deposit, or balance (the deposit's other half, issued with it). Null on a credit note
invoices[].numberINV-0001: null on a draft, kept once voided
invoices[].statusWhat's stored; read
statefor paid, overdue, and the restinvoices[].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[].orderIdinvoices[].bookingCodeinvoices[].quoteIdinvoices[].entityinvoices[].entity.idinvoices[].entity.nameinvoices[].locationinvoices[].location.idinvoices[].location.nameinvoices[].location.timeZoneinvoices[].sessioninvoices[].session.idinvoices[].session.startsAtinvoices[].session.whenIn the location's time zone
invoices[].billToinvoices[].billTo.nameThe first name only, without customers:contact
invoices[].billTo.companyinvoices[].billTo.emailinvoices[].billTo.phoneinvoices[].billTo.addressinvoices[].billTo.address.line1invoices[].billTo.address.line2invoices[].billTo.address.cityinvoices[].billTo.address.regionProvince or state code, e.g. ON
invoices[].billTo.address.postalCodeinvoices[].billTo.address.countryISO 3166-1 alpha-2, e.g. CA
invoices[].issuerNull on a draft
invoices[].issuer.nameinvoices[].issuer.legalNameinvoices[].issuer.addressinvoices[].issuer.address.line1invoices[].issuer.address.line2invoices[].issuer.address.cityinvoices[].issuer.address.regionProvince or state code, e.g. ON
invoices[].issuer.address.postalCodeinvoices[].issuer.address.countryISO 3166-1 alpha-2, e.g. CA
invoices[].issuer.taxRegistrationsinvoices[].issuer.taxRegistrations[]invoices[].issuer.taxRegistrations[].taxHST, GST, PST, sales tax
invoices[].issuer.taxRegistrations[].jurisdictionCA-ON, US-MA
invoices[].issuer.taxRegistrations[].numberinvoices[].currencyinvoices[].amountWhat it asks for, with tax. Null without orders:amounts
invoices[].paidPaid toward it, less refunds of those payments. Null without orders:amounts
invoices[].balanceWhat's still owed on it: 0 once paid, on a draft, or once void. Null without orders:amounts
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
invoices[].totals.currencyinvoices[].totals.linesinvoices[].totals.lines[]A booking's tickets, extras, and fees; a gift certificate's order has only its gift_certificate line
invoices[].totals.lines[] — object option 1invoices[].totals.lines[] — object option 1.kindinvoices[].totals.lines[] — object option 1.ticketTypeIdinvoices[].totals.lines[] — object option 1.nameinvoices[].totals.lines[] — object option 1.quantityinvoices[].totals.lines[] — object option 1.unitAmountMinor units (cents)
invoices[].totals.lines[] — object option 1.groupOnly on a group option's line: the line is baseAmount plus unitAmount for each seat above includedSeats
invoices[].totals.lines[] — object option 1.group.baseAmountThe base charge, covering includedSeats, before fees and tax
invoices[].totals.lines[] — object option 1.group.includedSeatsinvoices[].totals.lines[] — object option 1.amountMinor units (cents)
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
invoices[].totals.lines[] — object option 1.components[]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
invoices[].totals.lines[] — object option 1.components[].nameinvoices[].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)
invoices[].totals.lines[] — object option 1.components[].amountIts part of the line's amount, after discounts, before tax
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
invoices[].totals.lines[] — object option 1.components[].taxes[]invoices[].totals.lines[] — object option 1.components[].taxes[].nameinvoices[].totals.lines[] — object option 1.components[].taxes[].ratePpminvoices[].totals.lines[] — object option 1.components[].taxes[].amountMinor units (cents)
invoices[].totals.lines[] — object option 2invoices[].totals.lines[] — object option 2.kindinvoices[].totals.lines[] — object option 2.addOnIdThe add-on (a product, prd_…)
invoices[].totals.lines[] — object option 2.nameinvoices[].totals.lines[] — object option 2.quantityinvoices[].totals.lines[] — object option 2.unitAmountMinor units (cents)
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
invoices[].totals.lines[] — object option 2.amountMinor units (cents)
invoices[].totals.lines[] — object option 3invoices[].totals.lines[] — object option 3.kindinvoices[].totals.lines[] — object option 3.feeIdinvoices[].totals.lines[] — object option 3.nameinvoices[].totals.lines[] — object option 3.ratePpminvoices[].totals.lines[] — object option 3.amountMinor units (cents)
invoices[].totals.lines[] — object option 4invoices[].totals.lines[] — object option 4.kindinvoices[].totals.lines[] — object option 4.name"Gift certificate", or the preset's name
invoices[].totals.lines[] — object option 4.amountMinor units (cents)
invoices[].totals.subtotalMinor units (cents)
invoices[].totals.feesMinor units (cents)
invoices[].totals.totalBeforeTaxSubtotal plus fees: the party's total as shown before tax
invoices[].totals.taxMinor units (cents)
invoices[].totals.totalThe total with tax, what the guest pays
invoices[].totals.taxesinvoices[].totals.taxes[]invoices[].totals.taxes[].nameinvoices[].totals.taxes[].ratePpminvoices[].totals.taxes[].amountMinor units (cents)
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
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 presentinvoices[].totals.discount.codeinvoices[].totals.discount.kindinvoices[].totals.discount.amountWhat it took off, before tax: off the tickets and extras, or the fees a waive_service_charge code waived
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
linesaboveinvoices[].totals.discount.lines[]invoices[].totals.discount.lines[] — object option 1invoices[].totals.discount.lines[] — object option 1.kindinvoices[].totals.discount.lines[] — object option 1.ticketTypeIdinvoices[].totals.discount.lines[] — object option 1.amountMinor units (cents)
invoices[].totals.discount.lines[] — object option 2invoices[].totals.discount.lines[] — object option 2.kindinvoices[].totals.discount.lines[] — object option 2.addOnIdinvoices[].totals.discount.lines[] — object option 2.amountMinor units (cents)
invoices[].totals.discount.lines[] — object option 3invoices[].totals.discount.lines[] — object option 3.kindinvoices[].totals.discount.lines[] — object option 3.feeIdinvoices[].totals.discount.lines[] — object option 3.amountMinor units (cents)
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 noneinvoices[].totals.storedValueDiscounts[]invoices[].totals.storedValueDiscounts[].sourceinvoices[].totals.storedValueDiscounts[].codeIts code masked (•••• and its last 4)
invoices[].totals.storedValueDiscounts[].amountWhat it took off, before tax
invoices[].totals.storedValueDiscounts[].linesWhat it took off each line: this plus the line's own amount is what the line was before it
invoices[].totals.storedValueDiscounts[].lines[]invoices[].totals.storedValueDiscounts[].lines[] — object option 1invoices[].totals.storedValueDiscounts[].lines[] — object option 1.kindinvoices[].totals.storedValueDiscounts[].lines[] — object option 1.ticketTypeIdinvoices[].totals.storedValueDiscounts[].lines[] — object option 1.amountMinor units (cents)
invoices[].totals.storedValueDiscounts[].lines[] — object option 2invoices[].totals.storedValueDiscounts[].lines[] — object option 2.kindinvoices[].totals.storedValueDiscounts[].lines[] — object option 2.addOnIdinvoices[].totals.storedValueDiscounts[].lines[] — object option 2.amountMinor units (cents)
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
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:amountsinvoices[].statement[]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)
invoices[].statement[].amountSigned, in minor units, so the invoice's
amountplus every line'samountis itsbalanceinvoices[].statement[].reasonWhy a refund was given (goodwill, service_issue, …); null on the other kinds
invoices[].statement[].labelThe line in English: Paid, Refunded (goodwill), Refund not owed again
invoices[].paymentsNull without orders:amounts
invoices[].payments[]invoices[].payments[].idpay_…
invoices[].payments[].tenderinvoices[].payments[].statusinvoices[].payments[].amountMinor units (cents) in the location's currency
invoices[].payments[].refundedRefunded or on its way back (an excess given back, or staff's)
invoices[].payments[].createdAtinvoices[].issuedAtinvoices[].dueOnThe day it's due, at the location. Null on a credit note
invoices[].dueAtThe end of dueOn at the location: overdue from then
invoices[].overdueAtWhen the overdue alert was raised
invoices[].sentAtWhen it was last emailed
invoices[].noteShown to the guest
invoices[].voidedAtinvoices[].voidReasoninvoices[].voidNoteStaff's own words. Null without orders:amounts
invoices[].createdAtorderorder.idorder.codeThe booking code guests quote
order.statusorder.cancelReasonorder.cancelNoteStaff's own words. Null without orders:amounts
order.createdAtorder.confirmedAtorder.canceledAtorder.customerorder.customer.idorder.customer.nameThe first name only, without customers:contact
order.customer.emailNull without customers:contact
order.customer.phoneNull without customers:contact, or when there's none
order.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
order.productorder.product.idorder.product.nameorder.locationorder.location.idorder.location.nameorder.location.timeZoneorder.sessionorder.session.idorder.session.startsAtorder.session.whenIn the location's time zone
order.partySizeorder.currencyorder.totalNull without orders:amounts
order.paidNull without orders:amounts
order.refundedRefunded or on its way back. Null without orders:amounts
order.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
order.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
order.refundsorder.refunds[]order.refunds[].idorder.refunds[].amountNull without orders:amounts
order.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
order.refunds[].reasonorder.refunds[].noteStaff's own words. Null without orders:amounts
order.refunds[].failureReasonorder.refunds[].createdAtorder.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
order.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
order.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
order.refunds[].issuerWho issued the voucher the refunded payment was (such as Costco); null for any other tender, and without orders:amounts. Always present
order.bookingIdNull until it's booked. Always present
order.bookerWho made it: a guest at checkout, or staff. Always present
order.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
order.overPaidWhat's been paid beyond the total: seats removed, which refunds nothing by itself. Null without orders:amounts. Always present
order.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
order.staffNoteStaff's own note, never shown to the guest. Null without orders:amounts, or when there's none. Always present
list_invoices
List invoices, newest first: by state (draft, sent, partly_paid, paid, overdue, void), overdue, booking, location, or due dates (local, inclusive), only those at bookings the caller may read. totals adds up every matching invoice per currency (amount, paid, balance, and what of the balance is overdue), or is null when some amounts are hidden.
Reads · Members of an organization · Needs bookings:read
Input
stateOnly invoices in this state
overduetrue: only overdue ones
orderIdThe order's id, from list_bookings or list_orders
locationIdThe location's id, from get_setup
dueFromDue on or after this day, at each location
dueToDue on or before this day, at each location
beforenextBefore from the page before
limitThe most results to return (default 50)
Output
invoicesinvoices[]invoices[].idivc_…
invoices[].kindinvoice, or credit_note (December)
invoices[].portionfull (the whole order), deposit, or balance (the deposit's other half, issued with it). Null on a credit note
invoices[].numberINV-0001: null on a draft, kept once voided
invoices[].statusWhat's stored; read
statefor paid, overdue, and the restinvoices[].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[].orderIdinvoices[].bookingCodeinvoices[].quoteIdinvoices[].entityinvoices[].entity.idinvoices[].entity.nameinvoices[].locationinvoices[].location.idinvoices[].location.nameinvoices[].location.timeZoneinvoices[].sessioninvoices[].session.idinvoices[].session.startsAtinvoices[].session.whenIn the location's time zone
invoices[].billToinvoices[].billTo.nameThe first name only, without customers:contact
invoices[].billTo.companyinvoices[].billTo.emailinvoices[].billTo.phoneinvoices[].billTo.addressinvoices[].billTo.address.line1invoices[].billTo.address.line2invoices[].billTo.address.cityinvoices[].billTo.address.regionProvince or state code, e.g. ON
invoices[].billTo.address.postalCodeinvoices[].billTo.address.countryISO 3166-1 alpha-2, e.g. CA
invoices[].issuerNull on a draft
invoices[].issuer.nameinvoices[].issuer.legalNameinvoices[].issuer.addressinvoices[].issuer.address.line1invoices[].issuer.address.line2invoices[].issuer.address.cityinvoices[].issuer.address.regionProvince or state code, e.g. ON
invoices[].issuer.address.postalCodeinvoices[].issuer.address.countryISO 3166-1 alpha-2, e.g. CA
invoices[].issuer.taxRegistrationsinvoices[].issuer.taxRegistrations[]invoices[].issuer.taxRegistrations[].taxHST, GST, PST, sales tax
invoices[].issuer.taxRegistrations[].jurisdictionCA-ON, US-MA
invoices[].issuer.taxRegistrations[].numberinvoices[].currencyinvoices[].amountWhat it asks for, with tax. Null without orders:amounts
invoices[].paidPaid toward it, less refunds of those payments. Null without orders:amounts
invoices[].balanceWhat's still owed on it: 0 once paid, on a draft, or once void. Null without orders:amounts
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
invoices[].totals.currencyinvoices[].totals.linesinvoices[].totals.lines[]A booking's tickets, extras, and fees; a gift certificate's order has only its gift_certificate line
invoices[].totals.lines[] — object option 1invoices[].totals.lines[] — object option 1.kindinvoices[].totals.lines[] — object option 1.ticketTypeIdinvoices[].totals.lines[] — object option 1.nameinvoices[].totals.lines[] — object option 1.quantityinvoices[].totals.lines[] — object option 1.unitAmountMinor units (cents)
invoices[].totals.lines[] — object option 1.groupOnly on a group option's line: the line is baseAmount plus unitAmount for each seat above includedSeats
invoices[].totals.lines[] — object option 1.group.baseAmountThe base charge, covering includedSeats, before fees and tax
invoices[].totals.lines[] — object option 1.group.includedSeatsinvoices[].totals.lines[] — object option 1.amountMinor units (cents)
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
invoices[].totals.lines[] — object option 1.components[]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
invoices[].totals.lines[] — object option 1.components[].nameinvoices[].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)
invoices[].totals.lines[] — object option 1.components[].amountIts part of the line's amount, after discounts, before tax
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
invoices[].totals.lines[] — object option 1.components[].taxes[]invoices[].totals.lines[] — object option 1.components[].taxes[].nameinvoices[].totals.lines[] — object option 1.components[].taxes[].ratePpminvoices[].totals.lines[] — object option 1.components[].taxes[].amountMinor units (cents)
invoices[].totals.lines[] — object option 2invoices[].totals.lines[] — object option 2.kindinvoices[].totals.lines[] — object option 2.addOnIdThe add-on (a product, prd_…)
invoices[].totals.lines[] — object option 2.nameinvoices[].totals.lines[] — object option 2.quantityinvoices[].totals.lines[] — object option 2.unitAmountMinor units (cents)
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
invoices[].totals.lines[] — object option 2.amountMinor units (cents)
invoices[].totals.lines[] — object option 3invoices[].totals.lines[] — object option 3.kindinvoices[].totals.lines[] — object option 3.feeIdinvoices[].totals.lines[] — object option 3.nameinvoices[].totals.lines[] — object option 3.ratePpminvoices[].totals.lines[] — object option 3.amountMinor units (cents)
invoices[].totals.lines[] — object option 4invoices[].totals.lines[] — object option 4.kindinvoices[].totals.lines[] — object option 4.name"Gift certificate", or the preset's name
invoices[].totals.lines[] — object option 4.amountMinor units (cents)
invoices[].totals.subtotalMinor units (cents)
invoices[].totals.feesMinor units (cents)
invoices[].totals.totalBeforeTaxSubtotal plus fees: the party's total as shown before tax
invoices[].totals.taxMinor units (cents)
invoices[].totals.totalThe total with tax, what the guest pays
invoices[].totals.taxesinvoices[].totals.taxes[]invoices[].totals.taxes[].nameinvoices[].totals.taxes[].ratePpminvoices[].totals.taxes[].amountMinor units (cents)
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
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 presentinvoices[].totals.discount.codeinvoices[].totals.discount.kindinvoices[].totals.discount.amountWhat it took off, before tax: off the tickets and extras, or the fees a waive_service_charge code waived
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
linesaboveinvoices[].totals.discount.lines[]invoices[].totals.discount.lines[] — object option 1invoices[].totals.discount.lines[] — object option 1.kindinvoices[].totals.discount.lines[] — object option 1.ticketTypeIdinvoices[].totals.discount.lines[] — object option 1.amountMinor units (cents)
invoices[].totals.discount.lines[] — object option 2invoices[].totals.discount.lines[] — object option 2.kindinvoices[].totals.discount.lines[] — object option 2.addOnIdinvoices[].totals.discount.lines[] — object option 2.amountMinor units (cents)
invoices[].totals.discount.lines[] — object option 3invoices[].totals.discount.lines[] — object option 3.kindinvoices[].totals.discount.lines[] — object option 3.feeIdinvoices[].totals.discount.lines[] — object option 3.amountMinor units (cents)
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 noneinvoices[].totals.storedValueDiscounts[]invoices[].totals.storedValueDiscounts[].sourceinvoices[].totals.storedValueDiscounts[].codeIts code masked (•••• and its last 4)
invoices[].totals.storedValueDiscounts[].amountWhat it took off, before tax
invoices[].totals.storedValueDiscounts[].linesWhat it took off each line: this plus the line's own amount is what the line was before it
invoices[].totals.storedValueDiscounts[].lines[]invoices[].totals.storedValueDiscounts[].lines[] — object option 1invoices[].totals.storedValueDiscounts[].lines[] — object option 1.kindinvoices[].totals.storedValueDiscounts[].lines[] — object option 1.ticketTypeIdinvoices[].totals.storedValueDiscounts[].lines[] — object option 1.amountMinor units (cents)
invoices[].totals.storedValueDiscounts[].lines[] — object option 2invoices[].totals.storedValueDiscounts[].lines[] — object option 2.kindinvoices[].totals.storedValueDiscounts[].lines[] — object option 2.addOnIdinvoices[].totals.storedValueDiscounts[].lines[] — object option 2.amountMinor units (cents)
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
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:amountsinvoices[].statement[]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)
invoices[].statement[].amountSigned, in minor units, so the invoice's
amountplus every line'samountis itsbalanceinvoices[].statement[].reasonWhy a refund was given (goodwill, service_issue, …); null on the other kinds
invoices[].statement[].labelThe line in English: Paid, Refunded (goodwill), Refund not owed again
invoices[].paymentsNull without orders:amounts
invoices[].payments[]invoices[].payments[].idpay_…
invoices[].payments[].tenderinvoices[].payments[].statusinvoices[].payments[].amountMinor units (cents) in the location's currency
invoices[].payments[].refundedRefunded or on its way back (an excess given back, or staff's)
invoices[].payments[].createdAtinvoices[].issuedAtinvoices[].dueOnThe day it's due, at the location. Null on a credit note
invoices[].dueAtThe end of dueOn at the location: overdue from then
invoices[].overdueAtWhen the overdue alert was raised
invoices[].sentAtWhen it was last emailed
invoices[].noteShown to the guest
invoices[].voidedAtinvoices[].voidReasoninvoices[].voidNoteStaff's own words. Null without orders:amounts
invoices[].createdAtnextBeforetotalsEvery invoice the filter matches, not only this page, per currency (never added across currencies). Null unless every one's amounts are shown (orders:amounts wherever they are)
totals[]totals[].currencytotals[].counttotals[].amountMinor units (cents) in the location's currency
totals[].paidMinor units (cents) in the location's currency
totals[].balanceMinor units (cents) in the location's currency
totals[].overdueOf the balance, what's overdue
send_invoice
Send an invoice: a draft is numbered (the entity's own series) and emailed with its pay link, optionally with a new dueOn; an invoice already sent is emailed again, as it is. The entity needs an address, and a registration for each tax it charges. A void invoice is refused. Returns a preview to confirm.
Changes · Members of an organization · Needs invoices:write
Input
invoiceIdThe invoice's id, from list_invoices
dueOnA draft's due day, if it should change. Left out: the draft's own
Output
invoiceinvoice.idivc_…
invoice.kindinvoice, or credit_note (December)
invoice.portionfull (the whole order), deposit, or balance (the deposit's other half, issued with it). Null on a credit note
invoice.numberINV-0001: null on a draft, kept once voided
invoice.statusWhat's stored; read
statefor paid, overdue, and the restinvoice.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
invoice.orderIdinvoice.bookingCodeinvoice.quoteIdinvoice.entityinvoice.entity.idinvoice.entity.nameinvoice.locationinvoice.location.idinvoice.location.nameinvoice.location.timeZoneinvoice.sessioninvoice.session.idinvoice.session.startsAtinvoice.session.whenIn the location's time zone
invoice.billToinvoice.billTo.nameThe first name only, without customers:contact
invoice.billTo.companyinvoice.billTo.emailinvoice.billTo.phoneinvoice.billTo.addressinvoice.billTo.address.line1invoice.billTo.address.line2invoice.billTo.address.cityinvoice.billTo.address.regionProvince or state code, e.g. ON
invoice.billTo.address.postalCodeinvoice.billTo.address.countryISO 3166-1 alpha-2, e.g. CA
invoice.issuerNull on a draft
invoice.issuer.nameinvoice.issuer.legalNameinvoice.issuer.addressinvoice.issuer.address.line1invoice.issuer.address.line2invoice.issuer.address.cityinvoice.issuer.address.regionProvince or state code, e.g. ON
invoice.issuer.address.postalCodeinvoice.issuer.address.countryISO 3166-1 alpha-2, e.g. CA
invoice.issuer.taxRegistrationsinvoice.issuer.taxRegistrations[]invoice.issuer.taxRegistrations[].taxHST, GST, PST, sales tax
invoice.issuer.taxRegistrations[].jurisdictionCA-ON, US-MA
invoice.issuer.taxRegistrations[].numberinvoice.currencyinvoice.amountWhat it asks for, with tax. Null without orders:amounts
invoice.paidPaid toward it, less refunds of those payments. Null without orders:amounts
invoice.balanceWhat's still owed on it: 0 once paid, on a draft, or once void. Null without orders:amounts
invoice.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
invoice.totals.currencyinvoice.totals.linesinvoice.totals.lines[]A booking's tickets, extras, and fees; a gift certificate's order has only its gift_certificate line
invoice.totals.lines[] — object option 1invoice.totals.lines[] — object option 1.kindinvoice.totals.lines[] — object option 1.ticketTypeIdinvoice.totals.lines[] — object option 1.nameinvoice.totals.lines[] — object option 1.quantityinvoice.totals.lines[] — object option 1.unitAmountMinor units (cents)
invoice.totals.lines[] — object option 1.groupOnly on a group option's line: the line is baseAmount plus unitAmount for each seat above includedSeats
invoice.totals.lines[] — object option 1.group.baseAmountThe base charge, covering includedSeats, before fees and tax
invoice.totals.lines[] — object option 1.group.includedSeatsinvoice.totals.lines[] — object option 1.amountMinor units (cents)
invoice.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
invoice.totals.lines[] — object option 1.components[]invoice.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
invoice.totals.lines[] — object option 1.components[].nameinvoice.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)
invoice.totals.lines[] — object option 1.components[].amountIts part of the line's amount, after discounts, before tax
invoice.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
invoice.totals.lines[] — object option 1.components[].taxes[]invoice.totals.lines[] — object option 1.components[].taxes[].nameinvoice.totals.lines[] — object option 1.components[].taxes[].ratePpminvoice.totals.lines[] — object option 1.components[].taxes[].amountMinor units (cents)
invoice.totals.lines[] — object option 2invoice.totals.lines[] — object option 2.kindinvoice.totals.lines[] — object option 2.addOnIdThe add-on (a product, prd_…)
invoice.totals.lines[] — object option 2.nameinvoice.totals.lines[] — object option 2.quantityinvoice.totals.lines[] — object option 2.unitAmountMinor units (cents)
invoice.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
invoice.totals.lines[] — object option 2.amountMinor units (cents)
invoice.totals.lines[] — object option 3invoice.totals.lines[] — object option 3.kindinvoice.totals.lines[] — object option 3.feeIdinvoice.totals.lines[] — object option 3.nameinvoice.totals.lines[] — object option 3.ratePpminvoice.totals.lines[] — object option 3.amountMinor units (cents)
invoice.totals.lines[] — object option 4invoice.totals.lines[] — object option 4.kindinvoice.totals.lines[] — object option 4.name"Gift certificate", or the preset's name
invoice.totals.lines[] — object option 4.amountMinor units (cents)
invoice.totals.subtotalMinor units (cents)
invoice.totals.feesMinor units (cents)
invoice.totals.totalBeforeTaxSubtotal plus fees: the party's total as shown before tax
invoice.totals.taxMinor units (cents)
invoice.totals.totalThe total with tax, what the guest pays
invoice.totals.taxesinvoice.totals.taxes[]invoice.totals.taxes[].nameinvoice.totals.taxes[].ratePpminvoice.totals.taxes[].amountMinor units (cents)
invoice.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
invoice.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 presentinvoice.totals.discount.codeinvoice.totals.discount.kindinvoice.totals.discount.amountWhat it took off, before tax: off the tickets and extras, or the fees a waive_service_charge code waived
invoice.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
linesaboveinvoice.totals.discount.lines[]invoice.totals.discount.lines[] — object option 1invoice.totals.discount.lines[] — object option 1.kindinvoice.totals.discount.lines[] — object option 1.ticketTypeIdinvoice.totals.discount.lines[] — object option 1.amountMinor units (cents)
invoice.totals.discount.lines[] — object option 2invoice.totals.discount.lines[] — object option 2.kindinvoice.totals.discount.lines[] — object option 2.addOnIdinvoice.totals.discount.lines[] — object option 2.amountMinor units (cents)
invoice.totals.discount.lines[] — object option 3invoice.totals.discount.lines[] — object option 3.kindinvoice.totals.discount.lines[] — object option 3.feeIdinvoice.totals.discount.lines[] — object option 3.amountMinor units (cents)
invoice.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 noneinvoice.totals.storedValueDiscounts[]invoice.totals.storedValueDiscounts[].sourceinvoice.totals.storedValueDiscounts[].codeIts code masked (•••• and its last 4)
invoice.totals.storedValueDiscounts[].amountWhat it took off, before tax
invoice.totals.storedValueDiscounts[].linesWhat it took off each line: this plus the line's own amount is what the line was before it
invoice.totals.storedValueDiscounts[].lines[]invoice.totals.storedValueDiscounts[].lines[] — object option 1invoice.totals.storedValueDiscounts[].lines[] — object option 1.kindinvoice.totals.storedValueDiscounts[].lines[] — object option 1.ticketTypeIdinvoice.totals.storedValueDiscounts[].lines[] — object option 1.amountMinor units (cents)
invoice.totals.storedValueDiscounts[].lines[] — object option 2invoice.totals.storedValueDiscounts[].lines[] — object option 2.kindinvoice.totals.storedValueDiscounts[].lines[] — object option 2.addOnIdinvoice.totals.storedValueDiscounts[].lines[] — object option 2.amountMinor units (cents)
invoice.matchesOrderWhether the order's invoices still add up to the order. False once seats changed after it was issued: void it and issue another
invoice.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:amountsinvoice.statement[]invoice.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)
invoice.statement[].amountSigned, in minor units, so the invoice's
amountplus every line'samountis itsbalanceinvoice.statement[].reasonWhy a refund was given (goodwill, service_issue, …); null on the other kinds
invoice.statement[].labelThe line in English: Paid, Refunded (goodwill), Refund not owed again
invoice.paymentsNull without orders:amounts
invoice.payments[]invoice.payments[].idpay_…
invoice.payments[].tenderinvoice.payments[].statusinvoice.payments[].amountMinor units (cents) in the location's currency
invoice.payments[].refundedRefunded or on its way back (an excess given back, or staff's)
invoice.payments[].createdAtinvoice.issuedAtinvoice.dueOnThe day it's due, at the location. Null on a credit note
invoice.dueAtThe end of dueOn at the location: overdue from then
invoice.overdueAtWhen the overdue alert was raised
invoice.sentAtWhen it was last emailed
invoice.noteShown to the guest
invoice.voidedAtinvoice.voidReasoninvoice.voidNoteStaff's own words. Null without orders:amounts
invoice.createdAt
void_invoice
Void an invoice nothing has been paid toward: it keeps its number, its pay link stops taking payments, and its reminders stop. The booking stays, with its balance due; issue another invoice for it if needed. reason is issued_in_error or other (say why in note, staff's own words). One with payments toward it is refused for now. Returns a preview to confirm.
Changes · Members of an organization · Needs invoices:write
Input
invoiceIdThe invoice's id, from list_invoices
reasonissued_in_error, or other (say why in note)
noteStaff's own words, never shown to the guest
Output
invoiceinvoice.idivc_…
invoice.kindinvoice, or credit_note (December)
invoice.portionfull (the whole order), deposit, or balance (the deposit's other half, issued with it). Null on a credit note
invoice.numberINV-0001: null on a draft, kept once voided
invoice.statusWhat's stored; read
statefor paid, overdue, and the restinvoice.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
invoice.orderIdinvoice.bookingCodeinvoice.quoteIdinvoice.entityinvoice.entity.idinvoice.entity.nameinvoice.locationinvoice.location.idinvoice.location.nameinvoice.location.timeZoneinvoice.sessioninvoice.session.idinvoice.session.startsAtinvoice.session.whenIn the location's time zone
invoice.billToinvoice.billTo.nameThe first name only, without customers:contact
invoice.billTo.companyinvoice.billTo.emailinvoice.billTo.phoneinvoice.billTo.addressinvoice.billTo.address.line1invoice.billTo.address.line2invoice.billTo.address.cityinvoice.billTo.address.regionProvince or state code, e.g. ON
invoice.billTo.address.postalCodeinvoice.billTo.address.countryISO 3166-1 alpha-2, e.g. CA
invoice.issuerNull on a draft
invoice.issuer.nameinvoice.issuer.legalNameinvoice.issuer.addressinvoice.issuer.address.line1invoice.issuer.address.line2invoice.issuer.address.cityinvoice.issuer.address.regionProvince or state code, e.g. ON
invoice.issuer.address.postalCodeinvoice.issuer.address.countryISO 3166-1 alpha-2, e.g. CA
invoice.issuer.taxRegistrationsinvoice.issuer.taxRegistrations[]invoice.issuer.taxRegistrations[].taxHST, GST, PST, sales tax
invoice.issuer.taxRegistrations[].jurisdictionCA-ON, US-MA
invoice.issuer.taxRegistrations[].numberinvoice.currencyinvoice.amountWhat it asks for, with tax. Null without orders:amounts
invoice.paidPaid toward it, less refunds of those payments. Null without orders:amounts
invoice.balanceWhat's still owed on it: 0 once paid, on a draft, or once void. Null without orders:amounts
invoice.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
invoice.totals.currencyinvoice.totals.linesinvoice.totals.lines[]A booking's tickets, extras, and fees; a gift certificate's order has only its gift_certificate line
invoice.totals.lines[] — object option 1invoice.totals.lines[] — object option 1.kindinvoice.totals.lines[] — object option 1.ticketTypeIdinvoice.totals.lines[] — object option 1.nameinvoice.totals.lines[] — object option 1.quantityinvoice.totals.lines[] — object option 1.unitAmountMinor units (cents)
invoice.totals.lines[] — object option 1.groupOnly on a group option's line: the line is baseAmount plus unitAmount for each seat above includedSeats
invoice.totals.lines[] — object option 1.group.baseAmountThe base charge, covering includedSeats, before fees and tax
invoice.totals.lines[] — object option 1.group.includedSeatsinvoice.totals.lines[] — object option 1.amountMinor units (cents)
invoice.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
invoice.totals.lines[] — object option 1.components[]invoice.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
invoice.totals.lines[] — object option 1.components[].nameinvoice.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)
invoice.totals.lines[] — object option 1.components[].amountIts part of the line's amount, after discounts, before tax
invoice.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
invoice.totals.lines[] — object option 1.components[].taxes[]invoice.totals.lines[] — object option 1.components[].taxes[].nameinvoice.totals.lines[] — object option 1.components[].taxes[].ratePpminvoice.totals.lines[] — object option 1.components[].taxes[].amountMinor units (cents)
invoice.totals.lines[] — object option 2invoice.totals.lines[] — object option 2.kindinvoice.totals.lines[] — object option 2.addOnIdThe add-on (a product, prd_…)
invoice.totals.lines[] — object option 2.nameinvoice.totals.lines[] — object option 2.quantityinvoice.totals.lines[] — object option 2.unitAmountMinor units (cents)
invoice.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
invoice.totals.lines[] — object option 2.amountMinor units (cents)
invoice.totals.lines[] — object option 3invoice.totals.lines[] — object option 3.kindinvoice.totals.lines[] — object option 3.feeIdinvoice.totals.lines[] — object option 3.nameinvoice.totals.lines[] — object option 3.ratePpminvoice.totals.lines[] — object option 3.amountMinor units (cents)
invoice.totals.lines[] — object option 4invoice.totals.lines[] — object option 4.kindinvoice.totals.lines[] — object option 4.name"Gift certificate", or the preset's name
invoice.totals.lines[] — object option 4.amountMinor units (cents)
invoice.totals.subtotalMinor units (cents)
invoice.totals.feesMinor units (cents)
invoice.totals.totalBeforeTaxSubtotal plus fees: the party's total as shown before tax
invoice.totals.taxMinor units (cents)
invoice.totals.totalThe total with tax, what the guest pays
invoice.totals.taxesinvoice.totals.taxes[]invoice.totals.taxes[].nameinvoice.totals.taxes[].ratePpminvoice.totals.taxes[].amountMinor units (cents)
invoice.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
invoice.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 presentinvoice.totals.discount.codeinvoice.totals.discount.kindinvoice.totals.discount.amountWhat it took off, before tax: off the tickets and extras, or the fees a waive_service_charge code waived
invoice.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
linesaboveinvoice.totals.discount.lines[]invoice.totals.discount.lines[] — object option 1invoice.totals.discount.lines[] — object option 1.kindinvoice.totals.discount.lines[] — object option 1.ticketTypeIdinvoice.totals.discount.lines[] — object option 1.amountMinor units (cents)
invoice.totals.discount.lines[] — object option 2invoice.totals.discount.lines[] — object option 2.kindinvoice.totals.discount.lines[] — object option 2.addOnIdinvoice.totals.discount.lines[] — object option 2.amountMinor units (cents)
invoice.totals.discount.lines[] — object option 3invoice.totals.discount.lines[] — object option 3.kindinvoice.totals.discount.lines[] — object option 3.feeIdinvoice.totals.discount.lines[] — object option 3.amountMinor units (cents)
invoice.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 noneinvoice.totals.storedValueDiscounts[]invoice.totals.storedValueDiscounts[].sourceinvoice.totals.storedValueDiscounts[].codeIts code masked (•••• and its last 4)
invoice.totals.storedValueDiscounts[].amountWhat it took off, before tax
invoice.totals.storedValueDiscounts[].linesWhat it took off each line: this plus the line's own amount is what the line was before it
invoice.totals.storedValueDiscounts[].lines[]invoice.totals.storedValueDiscounts[].lines[] — object option 1invoice.totals.storedValueDiscounts[].lines[] — object option 1.kindinvoice.totals.storedValueDiscounts[].lines[] — object option 1.ticketTypeIdinvoice.totals.storedValueDiscounts[].lines[] — object option 1.amountMinor units (cents)
invoice.totals.storedValueDiscounts[].lines[] — object option 2invoice.totals.storedValueDiscounts[].lines[] — object option 2.kindinvoice.totals.storedValueDiscounts[].lines[] — object option 2.addOnIdinvoice.totals.storedValueDiscounts[].lines[] — object option 2.amountMinor units (cents)
invoice.matchesOrderWhether the order's invoices still add up to the order. False once seats changed after it was issued: void it and issue another
invoice.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:amountsinvoice.statement[]invoice.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)
invoice.statement[].amountSigned, in minor units, so the invoice's
amountplus every line'samountis itsbalanceinvoice.statement[].reasonWhy a refund was given (goodwill, service_issue, …); null on the other kinds
invoice.statement[].labelThe line in English: Paid, Refunded (goodwill), Refund not owed again
invoice.paymentsNull without orders:amounts
invoice.payments[]invoice.payments[].idpay_…
invoice.payments[].tenderinvoice.payments[].statusinvoice.payments[].amountMinor units (cents) in the location's currency
invoice.payments[].refundedRefunded or on its way back (an excess given back, or staff's)
invoice.payments[].createdAtinvoice.issuedAtinvoice.dueOnThe day it's due, at the location. Null on a credit note
invoice.dueAtThe end of dueOn at the location: overdue from then
invoice.overdueAtWhen the overdue alert was raised
invoice.sentAtWhen it was last emailed
invoice.noteShown to the guest
invoice.voidedAtinvoice.voidReasoninvoice.voidNoteStaff's own words. Null without orders:amounts
invoice.createdAt