# Invoices tools

[All tool areas](/docs/tools.md). 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

- `invoiceId` — string; required. The invoice's id, from list_invoices

#### Output

- `invoice` — object; required. 
  - `invoice.id` — string; required. ivc_…
  - `invoice.kind` — string; required. invoice, or credit_note (December) Allowed: "invoice", "credit\_note"
  - `invoice.portion` — string or null; required. full (the whole order), deposit, or balance (the deposit's other half, issued with it). Null on a credit note Allowed: "full", "deposit", "balance"
  - `invoice.number` — string or null; required. INV-0001: null on a draft, kept once voided
  - `invoice.status` — string; required. What's stored; read `state` for paid, overdue, and the rest Allowed: "draft", "issued", "void"
  - `invoice.state` — string; required. draft (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 Allowed: "draft", "sent", "partly\_paid", "paid", "overdue", "void"
  - `invoice.orderId` — string; required. 
  - `invoice.bookingCode` — string; required. 
  - `invoice.quoteId` — string or null; required. 
  - `invoice.entity` — object; required. 
    - `invoice.entity.id` — string; required. 
    - `invoice.entity.name` — string; required. 
  - `invoice.location` — object; required. 
    - `invoice.location.id` — string; required. 
    - `invoice.location.name` — string; required. 
    - `invoice.location.timeZone` — string; required. 
  - `invoice.session` — object; required. 
    - `invoice.session.id` — string; required. 
    - `invoice.session.startsAt` — string; required.  format: "date-time"
    - `invoice.session.when` — string; required. In the location's time zone
  - `invoice.billTo` — object; required. 
    - `invoice.billTo.name` — string; required. The first name only, without customers:contact
    - `invoice.billTo.company` — string or null; required. 
    - `invoice.billTo.email` — string or null; required. 
    - `invoice.billTo.phone` — string or null; required. 
    - `invoice.billTo.address` — object or null; required. 
      - `invoice.billTo.address.line1` — string; required.  minLength: 1
      - `invoice.billTo.address.line2` — string; optional.  minLength: 1
      - `invoice.billTo.address.city` — string; required.  minLength: 1
      - `invoice.billTo.address.region` — string; required. Province or state code, e.g. ON minLength: 1
      - `invoice.billTo.address.postalCode` — string; required.  minLength: 1
      - `invoice.billTo.address.country` — string; required. ISO 3166-1 alpha-2, e.g. CA pattern: "^\[A-Z\]\{2\}$"
  - `invoice.issuer` — object or null; required. Null on a draft
    - `invoice.issuer.name` — string; required. 
    - `invoice.issuer.legalName` — string; required. 
    - `invoice.issuer.address` — object; required. 
      - `invoice.issuer.address.line1` — string; required.  minLength: 1
      - `invoice.issuer.address.line2` — string; optional.  minLength: 1
      - `invoice.issuer.address.city` — string; required.  minLength: 1
      - `invoice.issuer.address.region` — string; required. Province or state code, e.g. ON minLength: 1
      - `invoice.issuer.address.postalCode` — string; required.  minLength: 1
      - `invoice.issuer.address.country` — string; required. ISO 3166-1 alpha-2, e.g. CA pattern: "^\[A-Z\]\{2\}$"
    - `invoice.issuer.taxRegistrations` — array; required. 
      - `invoice.issuer.taxRegistrations[]` — object; optional. 
        - `invoice.issuer.taxRegistrations[].tax` — string; required. HST, GST, PST, sales tax
        - `invoice.issuer.taxRegistrations[].jurisdiction` — string; required. CA-ON, US-MA
        - `invoice.issuer.taxRegistrations[].number` — string; required. 
  - `invoice.currency` — string; required. 
  - `invoice.amount` — integer or null; required. What it asks for, with tax. Null without orders:amounts
  - `invoice.paid` — integer or null; required. Paid toward it, less refunds of those payments. Null without orders:amounts
  - `invoice.balance` — integer or null; required. What's still owed on it: 0 once paid, on a draft, or once void. Null without orders:amounts
  - `invoice.totals` — object or null; required. Its 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.currency` — string; required. 
    - `invoice.totals.lines` — array; required. 
      - `invoice.totals.lines[]` — one of: object, object, object, object; optional. A booking's tickets, extras, and fees; a gift certificate's order has only its gift_certificate line
        - `invoice.totals.lines[] — object option 1` — object; optional. 
          - `invoice.totals.lines[] — object option 1.kind` — string; required.  Value: "ticket\_type"
          - `invoice.totals.lines[] — object option 1.ticketTypeId` — string; required. 
          - `invoice.totals.lines[] — object option 1.name` — string; required. 
          - `invoice.totals.lines[] — object option 1.quantity` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
          - `invoice.totals.lines[] — object option 1.unitAmount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
          - `invoice.totals.lines[] — object option 1.group` — object; optional. Only on a group option's line: the line is baseAmount plus unitAmount for each seat above includedSeats
            - `invoice.totals.lines[] — object option 1.group.baseAmount` — integer; required. The base charge, covering includedSeats, before fees and tax minimum: -9007199254740991; maximum: 9007199254740991
            - `invoice.totals.lines[] — object option 1.group.includedSeats` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
          - `invoice.totals.lines[] — object option 1.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
          - `invoice.totals.lines[] — object option 1.components` — array; optional. Only 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[]` — object; optional. 
              - `invoice.totals.lines[] — object option 1.components[].addOnId` — string or null; required. The 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[].name` — string; required. 
              - `invoice.totals.lines[] — object option 1.components[].quantity` — integer; required. Units for the whole line (seats for the ticket's own part, seats times the units per seat for an add-on) minimum: -9007199254740991; maximum: 9007199254740991
              - `invoice.totals.lines[] — object option 1.components[].amount` — integer; required. Its part of the line's amount, after discounts, before tax minimum: -9007199254740991; maximum: 9007199254740991
              - `invoice.totals.lines[] — object option 1.components[].taxes` — array; optional. Its 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[]` — object; optional. 
                  - `invoice.totals.lines[] — object option 1.components[].taxes[].name` — string; required. 
                  - `invoice.totals.lines[] — object option 1.components[].taxes[].ratePpm` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
                  - `invoice.totals.lines[] — object option 1.components[].taxes[].amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
        - `invoice.totals.lines[] — object option 2` — object; optional. 
          - `invoice.totals.lines[] — object option 2.kind` — string; required.  Value: "add\_on"
          - `invoice.totals.lines[] — object option 2.addOnId` — string; required. The add-on (a product, prd_…)
          - `invoice.totals.lines[] — object option 2.name` — string; required. 
          - `invoice.totals.lines[] — object option 2.quantity` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
          - `invoice.totals.lines[] — object option 2.unitAmount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
          - `invoice.totals.lines[] — object option 2.menuChoiceId` — string or null; optional. The 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.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
        - `invoice.totals.lines[] — object option 3` — object; optional. 
          - `invoice.totals.lines[] — object option 3.kind` — string; required.  Value: "fee"
          - `invoice.totals.lines[] — object option 3.feeId` — string; required. 
          - `invoice.totals.lines[] — object option 3.name` — string; required. 
          - `invoice.totals.lines[] — object option 3.ratePpm` — integer or null; required.  minimum: -9007199254740991; maximum: 9007199254740991
          - `invoice.totals.lines[] — object option 3.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
        - `invoice.totals.lines[] — object option 4` — object; optional. 
          - `invoice.totals.lines[] — object option 4.kind` — string; required.  Value: "gift\_certificate"
          - `invoice.totals.lines[] — object option 4.name` — string; required. "Gift certificate", or the preset's name
          - `invoice.totals.lines[] — object option 4.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
    - `invoice.totals.subtotal` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
    - `invoice.totals.fees` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
    - `invoice.totals.totalBeforeTax` — integer; required. Subtotal plus fees: the party's total as shown before tax minimum: -9007199254740991; maximum: 9007199254740991
    - `invoice.totals.tax` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
    - `invoice.totals.total` — integer; required. The total with tax, what the guest pays minimum: -9007199254740991; maximum: 9007199254740991
    - `invoice.totals.taxes` — array; required. 
      - `invoice.totals.taxes[]` — object; optional. 
        - `invoice.totals.taxes[].name` — string; required. 
        - `invoice.totals.taxes[].ratePpm` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
        - `invoice.totals.taxes[].amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
        - `invoice.totals.taxes[].base` — integer; required. What 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 minimum: -9007199254740991; maximum: 9007199254740991
    - `invoice.totals.discount` — object or null; optional. The promo code on this hold or order and what it took off, before tax. Each line's `amount` and `subtotal` are already after it. Null without a code. Always present
      - `invoice.totals.discount.code` — string; required. 
      - `invoice.totals.discount.kind` — string; required.  Allowed: "amount\_off", "percent\_off", "set\_price", "waive\_service\_charge"
      - `invoice.totals.discount.amount` — integer; required. What it took off, before tax: off the tickets and extras, or the fees a waive_service_charge code waived minimum: -9007199254740991; maximum: 9007199254740991
      - `invoice.totals.discount.lines` — array; required. What 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 `lines` above
        - `invoice.totals.discount.lines[]` — one of: object, object, object; optional. 
          - `invoice.totals.discount.lines[] — object option 1` — object; optional. 
            - `invoice.totals.discount.lines[] — object option 1.kind` — string; required.  Value: "ticket\_type"
            - `invoice.totals.discount.lines[] — object option 1.ticketTypeId` — string; required. 
            - `invoice.totals.discount.lines[] — object option 1.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
          - `invoice.totals.discount.lines[] — object option 2` — object; optional. 
            - `invoice.totals.discount.lines[] — object option 2.kind` — string; required.  Value: "add\_on"
            - `invoice.totals.discount.lines[] — object option 2.addOnId` — string; required. 
            - `invoice.totals.discount.lines[] — object option 2.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
          - `invoice.totals.discount.lines[] — object option 3` — object; optional. 
            - `invoice.totals.discount.lines[] — object option 3.kind` — string; required.  Value: "fee"
            - `invoice.totals.discount.lines[] — object option 3.feeId` — string; required. 
            - `invoice.totals.discount.lines[] — object option 3.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
    - `invoice.totals.storedValueDiscounts` — array; optional. Free 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 `amount` and `subtotal` are 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 none
      - `invoice.totals.storedValueDiscounts[]` — object; optional. 
        - `invoice.totals.storedValueDiscounts[].source` — string; required.  Allowed: "gift\_certificate", "credit"
        - `invoice.totals.storedValueDiscounts[].code` — string; required. Its code masked (•••• and its last 4)
        - `invoice.totals.storedValueDiscounts[].amount` — integer; required. What it took off, before tax minimum: -9007199254740991; maximum: 9007199254740991
        - `invoice.totals.storedValueDiscounts[].lines` — array; required. What it took off each line: this plus the line's own amount is what the line was before it
          - `invoice.totals.storedValueDiscounts[].lines[]` — one of: object, object; optional. 
            - `invoice.totals.storedValueDiscounts[].lines[] — object option 1` — object; optional. 
              - `invoice.totals.storedValueDiscounts[].lines[] — object option 1.kind` — string; required.  Value: "ticket\_type"
              - `invoice.totals.storedValueDiscounts[].lines[] — object option 1.ticketTypeId` — string; required. 
              - `invoice.totals.storedValueDiscounts[].lines[] — object option 1.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
            - `invoice.totals.storedValueDiscounts[].lines[] — object option 2` — object; optional. 
              - `invoice.totals.storedValueDiscounts[].lines[] — object option 2.kind` — string; required.  Value: "add\_on"
              - `invoice.totals.storedValueDiscounts[].lines[] — object option 2.addOnId` — string; required. 
              - `invoice.totals.storedValueDiscounts[].lines[] — object option 2.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
  - `invoice.matchesOrder` — boolean; required. Whether the order's invoices still add up to the order. False once seats changed after it was issued: void it and issue another
  - `invoice.statement` — array or null; required. What's been paid and given back, as lines after the total that add up to the balance: `amount` plus every line's amount is `balance`. 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:amounts
    - `invoice.statement[]` — object; optional. 
      - `invoice.statement[].kind` — string; required. paid (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) Allowed: "paid", "refunded", "refund\_not\_owed"
      - `invoice.statement[].amount` — integer; required. Signed, in minor units, so the invoice's `amount` plus every line's `amount` is its `balance` minimum: -9007199254740991; maximum: 9007199254740991
      - `invoice.statement[].reason` — string or null; required. Why a refund was given (goodwill, service_issue, …); null on the other kinds Allowed: "seats\_unavailable", "guest\_request", "session\_canceled", "service\_issue", "duplicate", "goodwill", "other"
      - `invoice.statement[].label` — string; required. The line in English: Paid, Refunded (goodwill), Refund not owed again
  - `invoice.payments` — array or null; required. Null without orders:amounts
    - `invoice.payments[]` — object; optional. 
      - `invoice.payments[].id` — string; required. pay_…
      - `invoice.payments[].tender` — string; required.  Allowed: "card", "gift\_certificate", "credit", "card\_terminal", "cash", "debit", "e\_transfer", "cheque", "voucher"
      - `invoice.payments[].status` — string; required.  Allowed: "pending", "processing", "succeeded", "failed", "canceled"
      - `invoice.payments[].amount` — integer; required. Minor units (cents) in the location's currency
      - `invoice.payments[].refunded` — integer; required. Refunded or on its way back (an excess given back, or staff's)
      - `invoice.payments[].createdAt` — string; required.  format: "date-time"
  - `invoice.issuedAt` — string or null; required.  format: "date-time"
  - `invoice.dueOn` — string or null; required. The day it's due, at the location. Null on a credit note format: "date"
  - `invoice.dueAt` — string or null; required. The end of dueOn at the location: overdue from then format: "date-time"
  - `invoice.overdueAt` — string or null; required. When the overdue alert was raised format: "date-time"
  - `invoice.sentAt` — string or null; required. When it was last emailed format: "date-time"
  - `invoice.note` — string or null; required. Shown to the guest
  - `invoice.voidedAt` — string or null; required.  format: "date-time"
  - `invoice.voidReason` — string or null; required.  Allowed: "reissued", "order\_canceled", "issued\_in\_error", "other"
  - `invoice.voidNote` — string or null; required. Staff's own words. Null without orders:amounts
  - `invoice.createdAt` — string; required.  format: "date-time"

### 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

- `orderId` — string; optional. A confirmed booking with something owed. Give orderId or quoteId
- `quoteId` — string; optional. An open quote: invoicing it books the party into its session, whole, as a staff booking (bookings:write too). Give orderId or quoteId
- `portion` — string; optional. full: 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 Allowed: "full", "deposit"; default: "full"
- `deposit` — one of: object, object; optional. Required with portion: deposit
  - `deposit — object option 1` — object; optional. 
    - `deposit — object option 1.amount` — integer; required. The deposit with tax, in minor units exclusiveMinimum: 0
  - `deposit — object option 2` — object; optional. 
    - `deposit — object option 2.percentPpm` — integer; required. A share of the total with tax, in parts per million: 25% is 250000 minimum: 1; maximum: 999999
- `dueOn` — string; optional. The day it's due (the deposit's, with a deposit), at the location: never after the day before the session. Left out: dueInDays format: "date"
- `dueInDays` — integer; optional. Days after today it's due. Left out: the invoiceDueDays setting (7), never later than the day before the session minimum: 0; maximum: 365
- `balanceDueOn` — string; optional. With a deposit: the day the balance is due. Left out: the day before the session format: "date"
- `billTo` — object or null; optional. Left out: the quote's, or the order's contact (its name, email, and phone)
  - `billTo.name` — string; required.  minLength: 1; maxLength: 200
  - `billTo.company` — string; optional.  minLength: 1; maxLength: 200
  - `billTo.email` — string; optional. Where the invoice (or quote) and its reminders go. Left out on an invoice: the order's email format: "email"; maxLength: 254
  - `billTo.phone` — string; optional.  minLength: 1; maxLength: 40
  - `billTo.address` — object; optional. 
    - `billTo.address.line1` — string; required.  minLength: 1
    - `billTo.address.line2` — string; optional.  minLength: 1
    - `billTo.address.city` — string; required.  minLength: 1
    - `billTo.address.region` — string; required. Province or state code, e.g. ON minLength: 1
    - `billTo.address.postalCode` — string; required.  minLength: 1
    - `billTo.address.country` — string; required. ISO 3166-1 alpha-2, e.g. CA pattern: "^\[A-Z\]\{2\}$"
- `note` — string; optional. Shown to the guest on the invoice minLength: 1; maxLength: 2000
- `send` — boolean; optional. true: number it and email it with its pay link. false: a draft, unnumbered and unsent, which send_invoice issues later (and undo removes) default: true

#### Output

- `invoices` — array; required. One, or the deposit and the balance
  - `invoices[]` — object; optional. 
    - `invoices[].id` — string; required. ivc_…
    - `invoices[].kind` — string; required. invoice, or credit_note (December) Allowed: "invoice", "credit\_note"
    - `invoices[].portion` — string or null; required. full (the whole order), deposit, or balance (the deposit's other half, issued with it). Null on a credit note Allowed: "full", "deposit", "balance"
    - `invoices[].number` — string or null; required. INV-0001: null on a draft, kept once voided
    - `invoices[].status` — string; required. What's stored; read `state` for paid, overdue, and the rest Allowed: "draft", "issued", "void"
    - `invoices[].state` — string; required. draft (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 Allowed: "draft", "sent", "partly\_paid", "paid", "overdue", "void"
    - `invoices[].orderId` — string; required. 
    - `invoices[].bookingCode` — string; required. 
    - `invoices[].quoteId` — string or null; required. 
    - `invoices[].entity` — object; required. 
      - `invoices[].entity.id` — string; required. 
      - `invoices[].entity.name` — string; required. 
    - `invoices[].location` — object; required. 
      - `invoices[].location.id` — string; required. 
      - `invoices[].location.name` — string; required. 
      - `invoices[].location.timeZone` — string; required. 
    - `invoices[].session` — object; required. 
      - `invoices[].session.id` — string; required. 
      - `invoices[].session.startsAt` — string; required.  format: "date-time"
      - `invoices[].session.when` — string; required. In the location's time zone
    - `invoices[].billTo` — object; required. 
      - `invoices[].billTo.name` — string; required. The first name only, without customers:contact
      - `invoices[].billTo.company` — string or null; required. 
      - `invoices[].billTo.email` — string or null; required. 
      - `invoices[].billTo.phone` — string or null; required. 
      - `invoices[].billTo.address` — object or null; required. 
        - `invoices[].billTo.address.line1` — string; required.  minLength: 1
        - `invoices[].billTo.address.line2` — string; optional.  minLength: 1
        - `invoices[].billTo.address.city` — string; required.  minLength: 1
        - `invoices[].billTo.address.region` — string; required. Province or state code, e.g. ON minLength: 1
        - `invoices[].billTo.address.postalCode` — string; required.  minLength: 1
        - `invoices[].billTo.address.country` — string; required. ISO 3166-1 alpha-2, e.g. CA pattern: "^\[A-Z\]\{2\}$"
    - `invoices[].issuer` — object or null; required. Null on a draft
      - `invoices[].issuer.name` — string; required. 
      - `invoices[].issuer.legalName` — string; required. 
      - `invoices[].issuer.address` — object; required. 
        - `invoices[].issuer.address.line1` — string; required.  minLength: 1
        - `invoices[].issuer.address.line2` — string; optional.  minLength: 1
        - `invoices[].issuer.address.city` — string; required.  minLength: 1
        - `invoices[].issuer.address.region` — string; required. Province or state code, e.g. ON minLength: 1
        - `invoices[].issuer.address.postalCode` — string; required.  minLength: 1
        - `invoices[].issuer.address.country` — string; required. ISO 3166-1 alpha-2, e.g. CA pattern: "^\[A-Z\]\{2\}$"
      - `invoices[].issuer.taxRegistrations` — array; required. 
        - `invoices[].issuer.taxRegistrations[]` — object; optional. 
          - `invoices[].issuer.taxRegistrations[].tax` — string; required. HST, GST, PST, sales tax
          - `invoices[].issuer.taxRegistrations[].jurisdiction` — string; required. CA-ON, US-MA
          - `invoices[].issuer.taxRegistrations[].number` — string; required. 
    - `invoices[].currency` — string; required. 
    - `invoices[].amount` — integer or null; required. What it asks for, with tax. Null without orders:amounts
    - `invoices[].paid` — integer or null; required. Paid toward it, less refunds of those payments. Null without orders:amounts
    - `invoices[].balance` — integer or null; required. What's still owed on it: 0 once paid, on a draft, or once void. Null without orders:amounts
    - `invoices[].totals` — object or null; required. Its 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.currency` — string; required. 
      - `invoices[].totals.lines` — array; required. 
        - `invoices[].totals.lines[]` — one of: object, object, object, object; optional. A booking's tickets, extras, and fees; a gift certificate's order has only its gift_certificate line
          - `invoices[].totals.lines[] — object option 1` — object; optional. 
            - `invoices[].totals.lines[] — object option 1.kind` — string; required.  Value: "ticket\_type"
            - `invoices[].totals.lines[] — object option 1.ticketTypeId` — string; required. 
            - `invoices[].totals.lines[] — object option 1.name` — string; required. 
            - `invoices[].totals.lines[] — object option 1.quantity` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
            - `invoices[].totals.lines[] — object option 1.unitAmount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
            - `invoices[].totals.lines[] — object option 1.group` — object; optional. Only on a group option's line: the line is baseAmount plus unitAmount for each seat above includedSeats
              - `invoices[].totals.lines[] — object option 1.group.baseAmount` — integer; required. The base charge, covering includedSeats, before fees and tax minimum: -9007199254740991; maximum: 9007199254740991
              - `invoices[].totals.lines[] — object option 1.group.includedSeats` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
            - `invoices[].totals.lines[] — object option 1.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
            - `invoices[].totals.lines[] — object option 1.components` — array; optional. Only 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[]` — object; optional. 
                - `invoices[].totals.lines[] — object option 1.components[].addOnId` — string or null; required. The 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[].name` — string; required. 
                - `invoices[].totals.lines[] — object option 1.components[].quantity` — integer; required. Units for the whole line (seats for the ticket's own part, seats times the units per seat for an add-on) minimum: -9007199254740991; maximum: 9007199254740991
                - `invoices[].totals.lines[] — object option 1.components[].amount` — integer; required. Its part of the line's amount, after discounts, before tax minimum: -9007199254740991; maximum: 9007199254740991
                - `invoices[].totals.lines[] — object option 1.components[].taxes` — array; optional. Its 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[]` — object; optional. 
                    - `invoices[].totals.lines[] — object option 1.components[].taxes[].name` — string; required. 
                    - `invoices[].totals.lines[] — object option 1.components[].taxes[].ratePpm` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
                    - `invoices[].totals.lines[] — object option 1.components[].taxes[].amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
          - `invoices[].totals.lines[] — object option 2` — object; optional. 
            - `invoices[].totals.lines[] — object option 2.kind` — string; required.  Value: "add\_on"
            - `invoices[].totals.lines[] — object option 2.addOnId` — string; required. The add-on (a product, prd_…)
            - `invoices[].totals.lines[] — object option 2.name` — string; required. 
            - `invoices[].totals.lines[] — object option 2.quantity` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
            - `invoices[].totals.lines[] — object option 2.unitAmount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
            - `invoices[].totals.lines[] — object option 2.menuChoiceId` — string or null; optional. The 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.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
          - `invoices[].totals.lines[] — object option 3` — object; optional. 
            - `invoices[].totals.lines[] — object option 3.kind` — string; required.  Value: "fee"
            - `invoices[].totals.lines[] — object option 3.feeId` — string; required. 
            - `invoices[].totals.lines[] — object option 3.name` — string; required. 
            - `invoices[].totals.lines[] — object option 3.ratePpm` — integer or null; required.  minimum: -9007199254740991; maximum: 9007199254740991
            - `invoices[].totals.lines[] — object option 3.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
          - `invoices[].totals.lines[] — object option 4` — object; optional. 
            - `invoices[].totals.lines[] — object option 4.kind` — string; required.  Value: "gift\_certificate"
            - `invoices[].totals.lines[] — object option 4.name` — string; required. "Gift certificate", or the preset's name
            - `invoices[].totals.lines[] — object option 4.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
      - `invoices[].totals.subtotal` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
      - `invoices[].totals.fees` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
      - `invoices[].totals.totalBeforeTax` — integer; required. Subtotal plus fees: the party's total as shown before tax minimum: -9007199254740991; maximum: 9007199254740991
      - `invoices[].totals.tax` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
      - `invoices[].totals.total` — integer; required. The total with tax, what the guest pays minimum: -9007199254740991; maximum: 9007199254740991
      - `invoices[].totals.taxes` — array; required. 
        - `invoices[].totals.taxes[]` — object; optional. 
          - `invoices[].totals.taxes[].name` — string; required. 
          - `invoices[].totals.taxes[].ratePpm` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
          - `invoices[].totals.taxes[].amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
          - `invoices[].totals.taxes[].base` — integer; required. What 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 minimum: -9007199254740991; maximum: 9007199254740991
      - `invoices[].totals.discount` — object or null; optional. The promo code on this hold or order and what it took off, before tax. Each line's `amount` and `subtotal` are already after it. Null without a code. Always present
        - `invoices[].totals.discount.code` — string; required. 
        - `invoices[].totals.discount.kind` — string; required.  Allowed: "amount\_off", "percent\_off", "set\_price", "waive\_service\_charge"
        - `invoices[].totals.discount.amount` — integer; required. What it took off, before tax: off the tickets and extras, or the fees a waive_service_charge code waived minimum: -9007199254740991; maximum: 9007199254740991
        - `invoices[].totals.discount.lines` — array; required. What 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 `lines` above
          - `invoices[].totals.discount.lines[]` — one of: object, object, object; optional. 
            - `invoices[].totals.discount.lines[] — object option 1` — object; optional. 
              - `invoices[].totals.discount.lines[] — object option 1.kind` — string; required.  Value: "ticket\_type"
              - `invoices[].totals.discount.lines[] — object option 1.ticketTypeId` — string; required. 
              - `invoices[].totals.discount.lines[] — object option 1.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
            - `invoices[].totals.discount.lines[] — object option 2` — object; optional. 
              - `invoices[].totals.discount.lines[] — object option 2.kind` — string; required.  Value: "add\_on"
              - `invoices[].totals.discount.lines[] — object option 2.addOnId` — string; required. 
              - `invoices[].totals.discount.lines[] — object option 2.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
            - `invoices[].totals.discount.lines[] — object option 3` — object; optional. 
              - `invoices[].totals.discount.lines[] — object option 3.kind` — string; required.  Value: "fee"
              - `invoices[].totals.discount.lines[] — object option 3.feeId` — string; required. 
              - `invoices[].totals.discount.lines[] — object option 3.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
      - `invoices[].totals.storedValueDiscounts` — array; optional. Free 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 `amount` and `subtotal` are 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 none
        - `invoices[].totals.storedValueDiscounts[]` — object; optional. 
          - `invoices[].totals.storedValueDiscounts[].source` — string; required.  Allowed: "gift\_certificate", "credit"
          - `invoices[].totals.storedValueDiscounts[].code` — string; required. Its code masked (•••• and its last 4)
          - `invoices[].totals.storedValueDiscounts[].amount` — integer; required. What it took off, before tax minimum: -9007199254740991; maximum: 9007199254740991
          - `invoices[].totals.storedValueDiscounts[].lines` — array; required. What it took off each line: this plus the line's own amount is what the line was before it
            - `invoices[].totals.storedValueDiscounts[].lines[]` — one of: object, object; optional. 
              - `invoices[].totals.storedValueDiscounts[].lines[] — object option 1` — object; optional. 
                - `invoices[].totals.storedValueDiscounts[].lines[] — object option 1.kind` — string; required.  Value: "ticket\_type"
                - `invoices[].totals.storedValueDiscounts[].lines[] — object option 1.ticketTypeId` — string; required. 
                - `invoices[].totals.storedValueDiscounts[].lines[] — object option 1.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
              - `invoices[].totals.storedValueDiscounts[].lines[] — object option 2` — object; optional. 
                - `invoices[].totals.storedValueDiscounts[].lines[] — object option 2.kind` — string; required.  Value: "add\_on"
                - `invoices[].totals.storedValueDiscounts[].lines[] — object option 2.addOnId` — string; required. 
                - `invoices[].totals.storedValueDiscounts[].lines[] — object option 2.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
    - `invoices[].matchesOrder` — boolean; required. Whether the order's invoices still add up to the order. False once seats changed after it was issued: void it and issue another
    - `invoices[].statement` — array or null; required. What's been paid and given back, as lines after the total that add up to the balance: `amount` plus every line's amount is `balance`. 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:amounts
      - `invoices[].statement[]` — object; optional. 
        - `invoices[].statement[].kind` — string; required. paid (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) Allowed: "paid", "refunded", "refund\_not\_owed"
        - `invoices[].statement[].amount` — integer; required. Signed, in minor units, so the invoice's `amount` plus every line's `amount` is its `balance` minimum: -9007199254740991; maximum: 9007199254740991
        - `invoices[].statement[].reason` — string or null; required. Why a refund was given (goodwill, service_issue, …); null on the other kinds Allowed: "seats\_unavailable", "guest\_request", "session\_canceled", "service\_issue", "duplicate", "goodwill", "other"
        - `invoices[].statement[].label` — string; required. The line in English: Paid, Refunded (goodwill), Refund not owed again
    - `invoices[].payments` — array or null; required. Null without orders:amounts
      - `invoices[].payments[]` — object; optional. 
        - `invoices[].payments[].id` — string; required. pay_…
        - `invoices[].payments[].tender` — string; required.  Allowed: "card", "gift\_certificate", "credit", "card\_terminal", "cash", "debit", "e\_transfer", "cheque", "voucher"
        - `invoices[].payments[].status` — string; required.  Allowed: "pending", "processing", "succeeded", "failed", "canceled"
        - `invoices[].payments[].amount` — integer; required. Minor units (cents) in the location's currency
        - `invoices[].payments[].refunded` — integer; required. Refunded or on its way back (an excess given back, or staff's)
        - `invoices[].payments[].createdAt` — string; required.  format: "date-time"
    - `invoices[].issuedAt` — string or null; required.  format: "date-time"
    - `invoices[].dueOn` — string or null; required. The day it's due, at the location. Null on a credit note format: "date"
    - `invoices[].dueAt` — string or null; required. The end of dueOn at the location: overdue from then format: "date-time"
    - `invoices[].overdueAt` — string or null; required. When the overdue alert was raised format: "date-time"
    - `invoices[].sentAt` — string or null; required. When it was last emailed format: "date-time"
    - `invoices[].note` — string or null; required. Shown to the guest
    - `invoices[].voidedAt` — string or null; required.  format: "date-time"
    - `invoices[].voidReason` — string or null; required.  Allowed: "reissued", "order\_canceled", "issued\_in\_error", "other"
    - `invoices[].voidNote` — string or null; required. Staff's own words. Null without orders:amounts
    - `invoices[].createdAt` — string; required.  format: "date-time"
- `order` — object; required. 
  - `order.id` — string; required. 
  - `order.code` — string; required. The booking code guests quote
  - `order.status` — string; required.  Allowed: "pending", "confirmed", "canceled"
  - `order.cancelReason` — string or null; required.  Allowed: "seats\_unavailable", "guest\_request", "session\_canceled", "duplicate", "other"
  - `order.cancelNote` — string or null; required. Staff's own words. Null without orders:amounts
  - `order.createdAt` — string; required.  format: "date-time"
  - `order.confirmedAt` — string or null; required.  format: "date-time"
  - `order.canceledAt` — string or null; required.  format: "date-time"
  - `order.customer` — object; required. 
    - `order.customer.id` — string; required. 
    - `order.customer.name` — string; required. The first name only, without customers:contact
    - `order.customer.email` — string or null; required. Null without customers:contact
    - `order.customer.phone` — string or null; required. Null without customers:contact, or when there's none
    - `order.customer.contactHidden` — boolean; required. True 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.product` — object; required. 
    - `order.product.id` — string; required. 
    - `order.product.name` — string; required. 
  - `order.location` — object; required. 
    - `order.location.id` — string; required. 
    - `order.location.name` — string; required. 
    - `order.location.timeZone` — string; required. 
  - `order.session` — object; required. 
    - `order.session.id` — string; required. 
    - `order.session.startsAt` — string; required.  format: "date-time"
    - `order.session.when` — string; required. In the location's time zone
  - `order.partySize` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
  - `order.currency` — string; required. 
  - `order.total` — integer or null; required. Null without orders:amounts
  - `order.paid` — integer or null; required. Null without orders:amounts
  - `order.refunded` — integer or null; required. Refunded or on its way back. Null without orders:amounts
  - `order.kept` — integer or null; required. Fees 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.refundable` — integer or null; required. What 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.refunds` — array; required. 
    - `order.refunds[]` — object; optional. 
      - `order.refunds[].id` — string; required. 
      - `order.refunds[].amount` — integer or null; required. Null without orders:amounts
      - `order.refunds[].status` — string; required. pending (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 Allowed: "pending", "succeeded", "failed", "reversed"
      - `order.refunds[].reason` — string or null; required.  Allowed: "seats\_unavailable", "guest\_request", "session\_canceled", "service\_issue", "duplicate", "goodwill", "other"
      - `order.refunds[].note` — string or null; required. Staff's own words. Null without orders:amounts
      - `order.refunds[].failureReason` — string or null; required. 
      - `order.refunds[].createdAt` — string; required.  format: "date-time"
      - `order.refunds[].tender` — string; optional. What 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 Allowed: "card", "gift\_certificate", "credit", "card\_terminal", "cash", "debit", "e\_transfer", "cheque", "voucher"
      - `order.refunds[].creditId` — string or null; optional. The 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[].giftCertificateId` — string or null; optional. The 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[].issuer` — string or null; optional. Who issued the voucher the refunded payment was (such as Costco); null for any other tender, and without orders:amounts. Always present
  - `order.bookingId` — string or null; optional. Null until it's booked. Always present
  - `order.booker` — string; optional. Who made it: a guest at checkout, or staff. Always present Allowed: "customer", "staff"
  - `order.balanceDue` — integer or null; optional. What'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.overPaid` — integer or null; optional. What's been paid beyond the total: seats removed, which refunds nothing by itself. Null without orders:amounts. Always present
  - `order.paymentStatus` — string or null; optional. unpaid, 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 Allowed: "unpaid", "partly\_paid", "paid", "over\_paid", "refunded", "nothing\_due"
  - `order.staffNote` — string or null; optional. Staff'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

- `state` — string; optional. Only invoices in this state Allowed: "draft", "sent", "partly\_paid", "paid", "overdue", "void"
- `overdue` — boolean; optional. true: only overdue ones
- `orderId` — string; optional. The order's id, from list_bookings or list_orders
- `locationId` — string; optional. The location's id, from get_setup
- `dueFrom` — string; optional. Due on or after this day, at each location format: "date"
- `dueTo` — string; optional. Due on or before this day, at each location format: "date"
- `before` — string; optional. nextBefore from the page before
- `limit` — integer; optional. The most results to return (default 50) minimum: 1; maximum: 100; default: 50

#### Output

- `invoices` — array; required. 
  - `invoices[]` — object; optional. 
    - `invoices[].id` — string; required. ivc_…
    - `invoices[].kind` — string; required. invoice, or credit_note (December) Allowed: "invoice", "credit\_note"
    - `invoices[].portion` — string or null; required. full (the whole order), deposit, or balance (the deposit's other half, issued with it). Null on a credit note Allowed: "full", "deposit", "balance"
    - `invoices[].number` — string or null; required. INV-0001: null on a draft, kept once voided
    - `invoices[].status` — string; required. What's stored; read `state` for paid, overdue, and the rest Allowed: "draft", "issued", "void"
    - `invoices[].state` — string; required. draft (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 Allowed: "draft", "sent", "partly\_paid", "paid", "overdue", "void"
    - `invoices[].orderId` — string; required. 
    - `invoices[].bookingCode` — string; required. 
    - `invoices[].quoteId` — string or null; required. 
    - `invoices[].entity` — object; required. 
      - `invoices[].entity.id` — string; required. 
      - `invoices[].entity.name` — string; required. 
    - `invoices[].location` — object; required. 
      - `invoices[].location.id` — string; required. 
      - `invoices[].location.name` — string; required. 
      - `invoices[].location.timeZone` — string; required. 
    - `invoices[].session` — object; required. 
      - `invoices[].session.id` — string; required. 
      - `invoices[].session.startsAt` — string; required.  format: "date-time"
      - `invoices[].session.when` — string; required. In the location's time zone
    - `invoices[].billTo` — object; required. 
      - `invoices[].billTo.name` — string; required. The first name only, without customers:contact
      - `invoices[].billTo.company` — string or null; required. 
      - `invoices[].billTo.email` — string or null; required. 
      - `invoices[].billTo.phone` — string or null; required. 
      - `invoices[].billTo.address` — object or null; required. 
        - `invoices[].billTo.address.line1` — string; required.  minLength: 1
        - `invoices[].billTo.address.line2` — string; optional.  minLength: 1
        - `invoices[].billTo.address.city` — string; required.  minLength: 1
        - `invoices[].billTo.address.region` — string; required. Province or state code, e.g. ON minLength: 1
        - `invoices[].billTo.address.postalCode` — string; required.  minLength: 1
        - `invoices[].billTo.address.country` — string; required. ISO 3166-1 alpha-2, e.g. CA pattern: "^\[A-Z\]\{2\}$"
    - `invoices[].issuer` — object or null; required. Null on a draft
      - `invoices[].issuer.name` — string; required. 
      - `invoices[].issuer.legalName` — string; required. 
      - `invoices[].issuer.address` — object; required. 
        - `invoices[].issuer.address.line1` — string; required.  minLength: 1
        - `invoices[].issuer.address.line2` — string; optional.  minLength: 1
        - `invoices[].issuer.address.city` — string; required.  minLength: 1
        - `invoices[].issuer.address.region` — string; required. Province or state code, e.g. ON minLength: 1
        - `invoices[].issuer.address.postalCode` — string; required.  minLength: 1
        - `invoices[].issuer.address.country` — string; required. ISO 3166-1 alpha-2, e.g. CA pattern: "^\[A-Z\]\{2\}$"
      - `invoices[].issuer.taxRegistrations` — array; required. 
        - `invoices[].issuer.taxRegistrations[]` — object; optional. 
          - `invoices[].issuer.taxRegistrations[].tax` — string; required. HST, GST, PST, sales tax
          - `invoices[].issuer.taxRegistrations[].jurisdiction` — string; required. CA-ON, US-MA
          - `invoices[].issuer.taxRegistrations[].number` — string; required. 
    - `invoices[].currency` — string; required. 
    - `invoices[].amount` — integer or null; required. What it asks for, with tax. Null without orders:amounts
    - `invoices[].paid` — integer or null; required. Paid toward it, less refunds of those payments. Null without orders:amounts
    - `invoices[].balance` — integer or null; required. What's still owed on it: 0 once paid, on a draft, or once void. Null without orders:amounts
    - `invoices[].totals` — object or null; required. Its 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.currency` — string; required. 
      - `invoices[].totals.lines` — array; required. 
        - `invoices[].totals.lines[]` — one of: object, object, object, object; optional. A booking's tickets, extras, and fees; a gift certificate's order has only its gift_certificate line
          - `invoices[].totals.lines[] — object option 1` — object; optional. 
            - `invoices[].totals.lines[] — object option 1.kind` — string; required.  Value: "ticket\_type"
            - `invoices[].totals.lines[] — object option 1.ticketTypeId` — string; required. 
            - `invoices[].totals.lines[] — object option 1.name` — string; required. 
            - `invoices[].totals.lines[] — object option 1.quantity` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
            - `invoices[].totals.lines[] — object option 1.unitAmount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
            - `invoices[].totals.lines[] — object option 1.group` — object; optional. Only on a group option's line: the line is baseAmount plus unitAmount for each seat above includedSeats
              - `invoices[].totals.lines[] — object option 1.group.baseAmount` — integer; required. The base charge, covering includedSeats, before fees and tax minimum: -9007199254740991; maximum: 9007199254740991
              - `invoices[].totals.lines[] — object option 1.group.includedSeats` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
            - `invoices[].totals.lines[] — object option 1.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
            - `invoices[].totals.lines[] — object option 1.components` — array; optional. Only 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[]` — object; optional. 
                - `invoices[].totals.lines[] — object option 1.components[].addOnId` — string or null; required. The 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[].name` — string; required. 
                - `invoices[].totals.lines[] — object option 1.components[].quantity` — integer; required. Units for the whole line (seats for the ticket's own part, seats times the units per seat for an add-on) minimum: -9007199254740991; maximum: 9007199254740991
                - `invoices[].totals.lines[] — object option 1.components[].amount` — integer; required. Its part of the line's amount, after discounts, before tax minimum: -9007199254740991; maximum: 9007199254740991
                - `invoices[].totals.lines[] — object option 1.components[].taxes` — array; optional. Its 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[]` — object; optional. 
                    - `invoices[].totals.lines[] — object option 1.components[].taxes[].name` — string; required. 
                    - `invoices[].totals.lines[] — object option 1.components[].taxes[].ratePpm` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
                    - `invoices[].totals.lines[] — object option 1.components[].taxes[].amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
          - `invoices[].totals.lines[] — object option 2` — object; optional. 
            - `invoices[].totals.lines[] — object option 2.kind` — string; required.  Value: "add\_on"
            - `invoices[].totals.lines[] — object option 2.addOnId` — string; required. The add-on (a product, prd_…)
            - `invoices[].totals.lines[] — object option 2.name` — string; required. 
            - `invoices[].totals.lines[] — object option 2.quantity` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
            - `invoices[].totals.lines[] — object option 2.unitAmount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
            - `invoices[].totals.lines[] — object option 2.menuChoiceId` — string or null; optional. The 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.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
          - `invoices[].totals.lines[] — object option 3` — object; optional. 
            - `invoices[].totals.lines[] — object option 3.kind` — string; required.  Value: "fee"
            - `invoices[].totals.lines[] — object option 3.feeId` — string; required. 
            - `invoices[].totals.lines[] — object option 3.name` — string; required. 
            - `invoices[].totals.lines[] — object option 3.ratePpm` — integer or null; required.  minimum: -9007199254740991; maximum: 9007199254740991
            - `invoices[].totals.lines[] — object option 3.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
          - `invoices[].totals.lines[] — object option 4` — object; optional. 
            - `invoices[].totals.lines[] — object option 4.kind` — string; required.  Value: "gift\_certificate"
            - `invoices[].totals.lines[] — object option 4.name` — string; required. "Gift certificate", or the preset's name
            - `invoices[].totals.lines[] — object option 4.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
      - `invoices[].totals.subtotal` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
      - `invoices[].totals.fees` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
      - `invoices[].totals.totalBeforeTax` — integer; required. Subtotal plus fees: the party's total as shown before tax minimum: -9007199254740991; maximum: 9007199254740991
      - `invoices[].totals.tax` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
      - `invoices[].totals.total` — integer; required. The total with tax, what the guest pays minimum: -9007199254740991; maximum: 9007199254740991
      - `invoices[].totals.taxes` — array; required. 
        - `invoices[].totals.taxes[]` — object; optional. 
          - `invoices[].totals.taxes[].name` — string; required. 
          - `invoices[].totals.taxes[].ratePpm` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
          - `invoices[].totals.taxes[].amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
          - `invoices[].totals.taxes[].base` — integer; required. What 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 minimum: -9007199254740991; maximum: 9007199254740991
      - `invoices[].totals.discount` — object or null; optional. The promo code on this hold or order and what it took off, before tax. Each line's `amount` and `subtotal` are already after it. Null without a code. Always present
        - `invoices[].totals.discount.code` — string; required. 
        - `invoices[].totals.discount.kind` — string; required.  Allowed: "amount\_off", "percent\_off", "set\_price", "waive\_service\_charge"
        - `invoices[].totals.discount.amount` — integer; required. What it took off, before tax: off the tickets and extras, or the fees a waive_service_charge code waived minimum: -9007199254740991; maximum: 9007199254740991
        - `invoices[].totals.discount.lines` — array; required. What 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 `lines` above
          - `invoices[].totals.discount.lines[]` — one of: object, object, object; optional. 
            - `invoices[].totals.discount.lines[] — object option 1` — object; optional. 
              - `invoices[].totals.discount.lines[] — object option 1.kind` — string; required.  Value: "ticket\_type"
              - `invoices[].totals.discount.lines[] — object option 1.ticketTypeId` — string; required. 
              - `invoices[].totals.discount.lines[] — object option 1.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
            - `invoices[].totals.discount.lines[] — object option 2` — object; optional. 
              - `invoices[].totals.discount.lines[] — object option 2.kind` — string; required.  Value: "add\_on"
              - `invoices[].totals.discount.lines[] — object option 2.addOnId` — string; required. 
              - `invoices[].totals.discount.lines[] — object option 2.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
            - `invoices[].totals.discount.lines[] — object option 3` — object; optional. 
              - `invoices[].totals.discount.lines[] — object option 3.kind` — string; required.  Value: "fee"
              - `invoices[].totals.discount.lines[] — object option 3.feeId` — string; required. 
              - `invoices[].totals.discount.lines[] — object option 3.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
      - `invoices[].totals.storedValueDiscounts` — array; optional. Free 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 `amount` and `subtotal` are 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 none
        - `invoices[].totals.storedValueDiscounts[]` — object; optional. 
          - `invoices[].totals.storedValueDiscounts[].source` — string; required.  Allowed: "gift\_certificate", "credit"
          - `invoices[].totals.storedValueDiscounts[].code` — string; required. Its code masked (•••• and its last 4)
          - `invoices[].totals.storedValueDiscounts[].amount` — integer; required. What it took off, before tax minimum: -9007199254740991; maximum: 9007199254740991
          - `invoices[].totals.storedValueDiscounts[].lines` — array; required. What it took off each line: this plus the line's own amount is what the line was before it
            - `invoices[].totals.storedValueDiscounts[].lines[]` — one of: object, object; optional. 
              - `invoices[].totals.storedValueDiscounts[].lines[] — object option 1` — object; optional. 
                - `invoices[].totals.storedValueDiscounts[].lines[] — object option 1.kind` — string; required.  Value: "ticket\_type"
                - `invoices[].totals.storedValueDiscounts[].lines[] — object option 1.ticketTypeId` — string; required. 
                - `invoices[].totals.storedValueDiscounts[].lines[] — object option 1.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
              - `invoices[].totals.storedValueDiscounts[].lines[] — object option 2` — object; optional. 
                - `invoices[].totals.storedValueDiscounts[].lines[] — object option 2.kind` — string; required.  Value: "add\_on"
                - `invoices[].totals.storedValueDiscounts[].lines[] — object option 2.addOnId` — string; required. 
                - `invoices[].totals.storedValueDiscounts[].lines[] — object option 2.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
    - `invoices[].matchesOrder` — boolean; required. Whether the order's invoices still add up to the order. False once seats changed after it was issued: void it and issue another
    - `invoices[].statement` — array or null; required. What's been paid and given back, as lines after the total that add up to the balance: `amount` plus every line's amount is `balance`. 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:amounts
      - `invoices[].statement[]` — object; optional. 
        - `invoices[].statement[].kind` — string; required. paid (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) Allowed: "paid", "refunded", "refund\_not\_owed"
        - `invoices[].statement[].amount` — integer; required. Signed, in minor units, so the invoice's `amount` plus every line's `amount` is its `balance` minimum: -9007199254740991; maximum: 9007199254740991
        - `invoices[].statement[].reason` — string or null; required. Why a refund was given (goodwill, service_issue, …); null on the other kinds Allowed: "seats\_unavailable", "guest\_request", "session\_canceled", "service\_issue", "duplicate", "goodwill", "other"
        - `invoices[].statement[].label` — string; required. The line in English: Paid, Refunded (goodwill), Refund not owed again
    - `invoices[].payments` — array or null; required. Null without orders:amounts
      - `invoices[].payments[]` — object; optional. 
        - `invoices[].payments[].id` — string; required. pay_…
        - `invoices[].payments[].tender` — string; required.  Allowed: "card", "gift\_certificate", "credit", "card\_terminal", "cash", "debit", "e\_transfer", "cheque", "voucher"
        - `invoices[].payments[].status` — string; required.  Allowed: "pending", "processing", "succeeded", "failed", "canceled"
        - `invoices[].payments[].amount` — integer; required. Minor units (cents) in the location's currency
        - `invoices[].payments[].refunded` — integer; required. Refunded or on its way back (an excess given back, or staff's)
        - `invoices[].payments[].createdAt` — string; required.  format: "date-time"
    - `invoices[].issuedAt` — string or null; required.  format: "date-time"
    - `invoices[].dueOn` — string or null; required. The day it's due, at the location. Null on a credit note format: "date"
    - `invoices[].dueAt` — string or null; required. The end of dueOn at the location: overdue from then format: "date-time"
    - `invoices[].overdueAt` — string or null; required. When the overdue alert was raised format: "date-time"
    - `invoices[].sentAt` — string or null; required. When it was last emailed format: "date-time"
    - `invoices[].note` — string or null; required. Shown to the guest
    - `invoices[].voidedAt` — string or null; required.  format: "date-time"
    - `invoices[].voidReason` — string or null; required.  Allowed: "reissued", "order\_canceled", "issued\_in\_error", "other"
    - `invoices[].voidNote` — string or null; required. Staff's own words. Null without orders:amounts
    - `invoices[].createdAt` — string; required.  format: "date-time"
- `nextBefore` — string or null; required. 
- `totals` — array or null; required. Every 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[]` — object; optional. 
    - `totals[].currency` — string; required. 
    - `totals[].count` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
    - `totals[].amount` — integer; required. Minor units (cents) in the location's currency
    - `totals[].paid` — integer; required. Minor units (cents) in the location's currency
    - `totals[].balance` — integer; required. Minor units (cents) in the location's currency
    - `totals[].overdue` — integer; required. Of 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

- `invoiceId` — string; required. The invoice's id, from list_invoices
- `dueOn` — string; optional. A draft's due day, if it should change. Left out: the draft's own format: "date"

#### Output

- `invoice` — object; required. 
  - `invoice.id` — string; required. ivc_…
  - `invoice.kind` — string; required. invoice, or credit_note (December) Allowed: "invoice", "credit\_note"
  - `invoice.portion` — string or null; required. full (the whole order), deposit, or balance (the deposit's other half, issued with it). Null on a credit note Allowed: "full", "deposit", "balance"
  - `invoice.number` — string or null; required. INV-0001: null on a draft, kept once voided
  - `invoice.status` — string; required. What's stored; read `state` for paid, overdue, and the rest Allowed: "draft", "issued", "void"
  - `invoice.state` — string; required. draft (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 Allowed: "draft", "sent", "partly\_paid", "paid", "overdue", "void"
  - `invoice.orderId` — string; required. 
  - `invoice.bookingCode` — string; required. 
  - `invoice.quoteId` — string or null; required. 
  - `invoice.entity` — object; required. 
    - `invoice.entity.id` — string; required. 
    - `invoice.entity.name` — string; required. 
  - `invoice.location` — object; required. 
    - `invoice.location.id` — string; required. 
    - `invoice.location.name` — string; required. 
    - `invoice.location.timeZone` — string; required. 
  - `invoice.session` — object; required. 
    - `invoice.session.id` — string; required. 
    - `invoice.session.startsAt` — string; required.  format: "date-time"
    - `invoice.session.when` — string; required. In the location's time zone
  - `invoice.billTo` — object; required. 
    - `invoice.billTo.name` — string; required. The first name only, without customers:contact
    - `invoice.billTo.company` — string or null; required. 
    - `invoice.billTo.email` — string or null; required. 
    - `invoice.billTo.phone` — string or null; required. 
    - `invoice.billTo.address` — object or null; required. 
      - `invoice.billTo.address.line1` — string; required.  minLength: 1
      - `invoice.billTo.address.line2` — string; optional.  minLength: 1
      - `invoice.billTo.address.city` — string; required.  minLength: 1
      - `invoice.billTo.address.region` — string; required. Province or state code, e.g. ON minLength: 1
      - `invoice.billTo.address.postalCode` — string; required.  minLength: 1
      - `invoice.billTo.address.country` — string; required. ISO 3166-1 alpha-2, e.g. CA pattern: "^\[A-Z\]\{2\}$"
  - `invoice.issuer` — object or null; required. Null on a draft
    - `invoice.issuer.name` — string; required. 
    - `invoice.issuer.legalName` — string; required. 
    - `invoice.issuer.address` — object; required. 
      - `invoice.issuer.address.line1` — string; required.  minLength: 1
      - `invoice.issuer.address.line2` — string; optional.  minLength: 1
      - `invoice.issuer.address.city` — string; required.  minLength: 1
      - `invoice.issuer.address.region` — string; required. Province or state code, e.g. ON minLength: 1
      - `invoice.issuer.address.postalCode` — string; required.  minLength: 1
      - `invoice.issuer.address.country` — string; required. ISO 3166-1 alpha-2, e.g. CA pattern: "^\[A-Z\]\{2\}$"
    - `invoice.issuer.taxRegistrations` — array; required. 
      - `invoice.issuer.taxRegistrations[]` — object; optional. 
        - `invoice.issuer.taxRegistrations[].tax` — string; required. HST, GST, PST, sales tax
        - `invoice.issuer.taxRegistrations[].jurisdiction` — string; required. CA-ON, US-MA
        - `invoice.issuer.taxRegistrations[].number` — string; required. 
  - `invoice.currency` — string; required. 
  - `invoice.amount` — integer or null; required. What it asks for, with tax. Null without orders:amounts
  - `invoice.paid` — integer or null; required. Paid toward it, less refunds of those payments. Null without orders:amounts
  - `invoice.balance` — integer or null; required. What's still owed on it: 0 once paid, on a draft, or once void. Null without orders:amounts
  - `invoice.totals` — object or null; required. Its 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.currency` — string; required. 
    - `invoice.totals.lines` — array; required. 
      - `invoice.totals.lines[]` — one of: object, object, object, object; optional. A booking's tickets, extras, and fees; a gift certificate's order has only its gift_certificate line
        - `invoice.totals.lines[] — object option 1` — object; optional. 
          - `invoice.totals.lines[] — object option 1.kind` — string; required.  Value: "ticket\_type"
          - `invoice.totals.lines[] — object option 1.ticketTypeId` — string; required. 
          - `invoice.totals.lines[] — object option 1.name` — string; required. 
          - `invoice.totals.lines[] — object option 1.quantity` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
          - `invoice.totals.lines[] — object option 1.unitAmount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
          - `invoice.totals.lines[] — object option 1.group` — object; optional. Only on a group option's line: the line is baseAmount plus unitAmount for each seat above includedSeats
            - `invoice.totals.lines[] — object option 1.group.baseAmount` — integer; required. The base charge, covering includedSeats, before fees and tax minimum: -9007199254740991; maximum: 9007199254740991
            - `invoice.totals.lines[] — object option 1.group.includedSeats` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
          - `invoice.totals.lines[] — object option 1.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
          - `invoice.totals.lines[] — object option 1.components` — array; optional. Only 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[]` — object; optional. 
              - `invoice.totals.lines[] — object option 1.components[].addOnId` — string or null; required. The 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[].name` — string; required. 
              - `invoice.totals.lines[] — object option 1.components[].quantity` — integer; required. Units for the whole line (seats for the ticket's own part, seats times the units per seat for an add-on) minimum: -9007199254740991; maximum: 9007199254740991
              - `invoice.totals.lines[] — object option 1.components[].amount` — integer; required. Its part of the line's amount, after discounts, before tax minimum: -9007199254740991; maximum: 9007199254740991
              - `invoice.totals.lines[] — object option 1.components[].taxes` — array; optional. Its 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[]` — object; optional. 
                  - `invoice.totals.lines[] — object option 1.components[].taxes[].name` — string; required. 
                  - `invoice.totals.lines[] — object option 1.components[].taxes[].ratePpm` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
                  - `invoice.totals.lines[] — object option 1.components[].taxes[].amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
        - `invoice.totals.lines[] — object option 2` — object; optional. 
          - `invoice.totals.lines[] — object option 2.kind` — string; required.  Value: "add\_on"
          - `invoice.totals.lines[] — object option 2.addOnId` — string; required. The add-on (a product, prd_…)
          - `invoice.totals.lines[] — object option 2.name` — string; required. 
          - `invoice.totals.lines[] — object option 2.quantity` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
          - `invoice.totals.lines[] — object option 2.unitAmount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
          - `invoice.totals.lines[] — object option 2.menuChoiceId` — string or null; optional. The 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.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
        - `invoice.totals.lines[] — object option 3` — object; optional. 
          - `invoice.totals.lines[] — object option 3.kind` — string; required.  Value: "fee"
          - `invoice.totals.lines[] — object option 3.feeId` — string; required. 
          - `invoice.totals.lines[] — object option 3.name` — string; required. 
          - `invoice.totals.lines[] — object option 3.ratePpm` — integer or null; required.  minimum: -9007199254740991; maximum: 9007199254740991
          - `invoice.totals.lines[] — object option 3.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
        - `invoice.totals.lines[] — object option 4` — object; optional. 
          - `invoice.totals.lines[] — object option 4.kind` — string; required.  Value: "gift\_certificate"
          - `invoice.totals.lines[] — object option 4.name` — string; required. "Gift certificate", or the preset's name
          - `invoice.totals.lines[] — object option 4.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
    - `invoice.totals.subtotal` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
    - `invoice.totals.fees` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
    - `invoice.totals.totalBeforeTax` — integer; required. Subtotal plus fees: the party's total as shown before tax minimum: -9007199254740991; maximum: 9007199254740991
    - `invoice.totals.tax` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
    - `invoice.totals.total` — integer; required. The total with tax, what the guest pays minimum: -9007199254740991; maximum: 9007199254740991
    - `invoice.totals.taxes` — array; required. 
      - `invoice.totals.taxes[]` — object; optional. 
        - `invoice.totals.taxes[].name` — string; required. 
        - `invoice.totals.taxes[].ratePpm` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
        - `invoice.totals.taxes[].amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
        - `invoice.totals.taxes[].base` — integer; required. What 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 minimum: -9007199254740991; maximum: 9007199254740991
    - `invoice.totals.discount` — object or null; optional. The promo code on this hold or order and what it took off, before tax. Each line's `amount` and `subtotal` are already after it. Null without a code. Always present
      - `invoice.totals.discount.code` — string; required. 
      - `invoice.totals.discount.kind` — string; required.  Allowed: "amount\_off", "percent\_off", "set\_price", "waive\_service\_charge"
      - `invoice.totals.discount.amount` — integer; required. What it took off, before tax: off the tickets and extras, or the fees a waive_service_charge code waived minimum: -9007199254740991; maximum: 9007199254740991
      - `invoice.totals.discount.lines` — array; required. What 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 `lines` above
        - `invoice.totals.discount.lines[]` — one of: object, object, object; optional. 
          - `invoice.totals.discount.lines[] — object option 1` — object; optional. 
            - `invoice.totals.discount.lines[] — object option 1.kind` — string; required.  Value: "ticket\_type"
            - `invoice.totals.discount.lines[] — object option 1.ticketTypeId` — string; required. 
            - `invoice.totals.discount.lines[] — object option 1.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
          - `invoice.totals.discount.lines[] — object option 2` — object; optional. 
            - `invoice.totals.discount.lines[] — object option 2.kind` — string; required.  Value: "add\_on"
            - `invoice.totals.discount.lines[] — object option 2.addOnId` — string; required. 
            - `invoice.totals.discount.lines[] — object option 2.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
          - `invoice.totals.discount.lines[] — object option 3` — object; optional. 
            - `invoice.totals.discount.lines[] — object option 3.kind` — string; required.  Value: "fee"
            - `invoice.totals.discount.lines[] — object option 3.feeId` — string; required. 
            - `invoice.totals.discount.lines[] — object option 3.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
    - `invoice.totals.storedValueDiscounts` — array; optional. Free 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 `amount` and `subtotal` are 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 none
      - `invoice.totals.storedValueDiscounts[]` — object; optional. 
        - `invoice.totals.storedValueDiscounts[].source` — string; required.  Allowed: "gift\_certificate", "credit"
        - `invoice.totals.storedValueDiscounts[].code` — string; required. Its code masked (•••• and its last 4)
        - `invoice.totals.storedValueDiscounts[].amount` — integer; required. What it took off, before tax minimum: -9007199254740991; maximum: 9007199254740991
        - `invoice.totals.storedValueDiscounts[].lines` — array; required. What it took off each line: this plus the line's own amount is what the line was before it
          - `invoice.totals.storedValueDiscounts[].lines[]` — one of: object, object; optional. 
            - `invoice.totals.storedValueDiscounts[].lines[] — object option 1` — object; optional. 
              - `invoice.totals.storedValueDiscounts[].lines[] — object option 1.kind` — string; required.  Value: "ticket\_type"
              - `invoice.totals.storedValueDiscounts[].lines[] — object option 1.ticketTypeId` — string; required. 
              - `invoice.totals.storedValueDiscounts[].lines[] — object option 1.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
            - `invoice.totals.storedValueDiscounts[].lines[] — object option 2` — object; optional. 
              - `invoice.totals.storedValueDiscounts[].lines[] — object option 2.kind` — string; required.  Value: "add\_on"
              - `invoice.totals.storedValueDiscounts[].lines[] — object option 2.addOnId` — string; required. 
              - `invoice.totals.storedValueDiscounts[].lines[] — object option 2.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
  - `invoice.matchesOrder` — boolean; required. Whether the order's invoices still add up to the order. False once seats changed after it was issued: void it and issue another
  - `invoice.statement` — array or null; required. What's been paid and given back, as lines after the total that add up to the balance: `amount` plus every line's amount is `balance`. 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:amounts
    - `invoice.statement[]` — object; optional. 
      - `invoice.statement[].kind` — string; required. paid (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) Allowed: "paid", "refunded", "refund\_not\_owed"
      - `invoice.statement[].amount` — integer; required. Signed, in minor units, so the invoice's `amount` plus every line's `amount` is its `balance` minimum: -9007199254740991; maximum: 9007199254740991
      - `invoice.statement[].reason` — string or null; required. Why a refund was given (goodwill, service_issue, …); null on the other kinds Allowed: "seats\_unavailable", "guest\_request", "session\_canceled", "service\_issue", "duplicate", "goodwill", "other"
      - `invoice.statement[].label` — string; required. The line in English: Paid, Refunded (goodwill), Refund not owed again
  - `invoice.payments` — array or null; required. Null without orders:amounts
    - `invoice.payments[]` — object; optional. 
      - `invoice.payments[].id` — string; required. pay_…
      - `invoice.payments[].tender` — string; required.  Allowed: "card", "gift\_certificate", "credit", "card\_terminal", "cash", "debit", "e\_transfer", "cheque", "voucher"
      - `invoice.payments[].status` — string; required.  Allowed: "pending", "processing", "succeeded", "failed", "canceled"
      - `invoice.payments[].amount` — integer; required. Minor units (cents) in the location's currency
      - `invoice.payments[].refunded` — integer; required. Refunded or on its way back (an excess given back, or staff's)
      - `invoice.payments[].createdAt` — string; required.  format: "date-time"
  - `invoice.issuedAt` — string or null; required.  format: "date-time"
  - `invoice.dueOn` — string or null; required. The day it's due, at the location. Null on a credit note format: "date"
  - `invoice.dueAt` — string or null; required. The end of dueOn at the location: overdue from then format: "date-time"
  - `invoice.overdueAt` — string or null; required. When the overdue alert was raised format: "date-time"
  - `invoice.sentAt` — string or null; required. When it was last emailed format: "date-time"
  - `invoice.note` — string or null; required. Shown to the guest
  - `invoice.voidedAt` — string or null; required.  format: "date-time"
  - `invoice.voidReason` — string or null; required.  Allowed: "reissued", "order\_canceled", "issued\_in\_error", "other"
  - `invoice.voidNote` — string or null; required. Staff's own words. Null without orders:amounts
  - `invoice.createdAt` — string; required.  format: "date-time"

### 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

- `invoiceId` — string; required. The invoice's id, from list_invoices
- `reason` — string; required. issued_in_error, or other (say why in note) Allowed: "issued\_in\_error", "other"
- `note` — string; optional. Staff's own words, never shown to the guest minLength: 1; maxLength: 500

#### Output

- `invoice` — object; required. 
  - `invoice.id` — string; required. ivc_…
  - `invoice.kind` — string; required. invoice, or credit_note (December) Allowed: "invoice", "credit\_note"
  - `invoice.portion` — string or null; required. full (the whole order), deposit, or balance (the deposit's other half, issued with it). Null on a credit note Allowed: "full", "deposit", "balance"
  - `invoice.number` — string or null; required. INV-0001: null on a draft, kept once voided
  - `invoice.status` — string; required. What's stored; read `state` for paid, overdue, and the rest Allowed: "draft", "issued", "void"
  - `invoice.state` — string; required. draft (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 Allowed: "draft", "sent", "partly\_paid", "paid", "overdue", "void"
  - `invoice.orderId` — string; required. 
  - `invoice.bookingCode` — string; required. 
  - `invoice.quoteId` — string or null; required. 
  - `invoice.entity` — object; required. 
    - `invoice.entity.id` — string; required. 
    - `invoice.entity.name` — string; required. 
  - `invoice.location` — object; required. 
    - `invoice.location.id` — string; required. 
    - `invoice.location.name` — string; required. 
    - `invoice.location.timeZone` — string; required. 
  - `invoice.session` — object; required. 
    - `invoice.session.id` — string; required. 
    - `invoice.session.startsAt` — string; required.  format: "date-time"
    - `invoice.session.when` — string; required. In the location's time zone
  - `invoice.billTo` — object; required. 
    - `invoice.billTo.name` — string; required. The first name only, without customers:contact
    - `invoice.billTo.company` — string or null; required. 
    - `invoice.billTo.email` — string or null; required. 
    - `invoice.billTo.phone` — string or null; required. 
    - `invoice.billTo.address` — object or null; required. 
      - `invoice.billTo.address.line1` — string; required.  minLength: 1
      - `invoice.billTo.address.line2` — string; optional.  minLength: 1
      - `invoice.billTo.address.city` — string; required.  minLength: 1
      - `invoice.billTo.address.region` — string; required. Province or state code, e.g. ON minLength: 1
      - `invoice.billTo.address.postalCode` — string; required.  minLength: 1
      - `invoice.billTo.address.country` — string; required. ISO 3166-1 alpha-2, e.g. CA pattern: "^\[A-Z\]\{2\}$"
  - `invoice.issuer` — object or null; required. Null on a draft
    - `invoice.issuer.name` — string; required. 
    - `invoice.issuer.legalName` — string; required. 
    - `invoice.issuer.address` — object; required. 
      - `invoice.issuer.address.line1` — string; required.  minLength: 1
      - `invoice.issuer.address.line2` — string; optional.  minLength: 1
      - `invoice.issuer.address.city` — string; required.  minLength: 1
      - `invoice.issuer.address.region` — string; required. Province or state code, e.g. ON minLength: 1
      - `invoice.issuer.address.postalCode` — string; required.  minLength: 1
      - `invoice.issuer.address.country` — string; required. ISO 3166-1 alpha-2, e.g. CA pattern: "^\[A-Z\]\{2\}$"
    - `invoice.issuer.taxRegistrations` — array; required. 
      - `invoice.issuer.taxRegistrations[]` — object; optional. 
        - `invoice.issuer.taxRegistrations[].tax` — string; required. HST, GST, PST, sales tax
        - `invoice.issuer.taxRegistrations[].jurisdiction` — string; required. CA-ON, US-MA
        - `invoice.issuer.taxRegistrations[].number` — string; required. 
  - `invoice.currency` — string; required. 
  - `invoice.amount` — integer or null; required. What it asks for, with tax. Null without orders:amounts
  - `invoice.paid` — integer or null; required. Paid toward it, less refunds of those payments. Null without orders:amounts
  - `invoice.balance` — integer or null; required. What's still owed on it: 0 once paid, on a draft, or once void. Null without orders:amounts
  - `invoice.totals` — object or null; required. Its 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.currency` — string; required. 
    - `invoice.totals.lines` — array; required. 
      - `invoice.totals.lines[]` — one of: object, object, object, object; optional. A booking's tickets, extras, and fees; a gift certificate's order has only its gift_certificate line
        - `invoice.totals.lines[] — object option 1` — object; optional. 
          - `invoice.totals.lines[] — object option 1.kind` — string; required.  Value: "ticket\_type"
          - `invoice.totals.lines[] — object option 1.ticketTypeId` — string; required. 
          - `invoice.totals.lines[] — object option 1.name` — string; required. 
          - `invoice.totals.lines[] — object option 1.quantity` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
          - `invoice.totals.lines[] — object option 1.unitAmount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
          - `invoice.totals.lines[] — object option 1.group` — object; optional. Only on a group option's line: the line is baseAmount plus unitAmount for each seat above includedSeats
            - `invoice.totals.lines[] — object option 1.group.baseAmount` — integer; required. The base charge, covering includedSeats, before fees and tax minimum: -9007199254740991; maximum: 9007199254740991
            - `invoice.totals.lines[] — object option 1.group.includedSeats` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
          - `invoice.totals.lines[] — object option 1.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
          - `invoice.totals.lines[] — object option 1.components` — array; optional. Only 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[]` — object; optional. 
              - `invoice.totals.lines[] — object option 1.components[].addOnId` — string or null; required. The 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[].name` — string; required. 
              - `invoice.totals.lines[] — object option 1.components[].quantity` — integer; required. Units for the whole line (seats for the ticket's own part, seats times the units per seat for an add-on) minimum: -9007199254740991; maximum: 9007199254740991
              - `invoice.totals.lines[] — object option 1.components[].amount` — integer; required. Its part of the line's amount, after discounts, before tax minimum: -9007199254740991; maximum: 9007199254740991
              - `invoice.totals.lines[] — object option 1.components[].taxes` — array; optional. Its 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[]` — object; optional. 
                  - `invoice.totals.lines[] — object option 1.components[].taxes[].name` — string; required. 
                  - `invoice.totals.lines[] — object option 1.components[].taxes[].ratePpm` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
                  - `invoice.totals.lines[] — object option 1.components[].taxes[].amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
        - `invoice.totals.lines[] — object option 2` — object; optional. 
          - `invoice.totals.lines[] — object option 2.kind` — string; required.  Value: "add\_on"
          - `invoice.totals.lines[] — object option 2.addOnId` — string; required. The add-on (a product, prd_…)
          - `invoice.totals.lines[] — object option 2.name` — string; required. 
          - `invoice.totals.lines[] — object option 2.quantity` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
          - `invoice.totals.lines[] — object option 2.unitAmount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
          - `invoice.totals.lines[] — object option 2.menuChoiceId` — string or null; optional. The 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.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
        - `invoice.totals.lines[] — object option 3` — object; optional. 
          - `invoice.totals.lines[] — object option 3.kind` — string; required.  Value: "fee"
          - `invoice.totals.lines[] — object option 3.feeId` — string; required. 
          - `invoice.totals.lines[] — object option 3.name` — string; required. 
          - `invoice.totals.lines[] — object option 3.ratePpm` — integer or null; required.  minimum: -9007199254740991; maximum: 9007199254740991
          - `invoice.totals.lines[] — object option 3.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
        - `invoice.totals.lines[] — object option 4` — object; optional. 
          - `invoice.totals.lines[] — object option 4.kind` — string; required.  Value: "gift\_certificate"
          - `invoice.totals.lines[] — object option 4.name` — string; required. "Gift certificate", or the preset's name
          - `invoice.totals.lines[] — object option 4.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
    - `invoice.totals.subtotal` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
    - `invoice.totals.fees` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
    - `invoice.totals.totalBeforeTax` — integer; required. Subtotal plus fees: the party's total as shown before tax minimum: -9007199254740991; maximum: 9007199254740991
    - `invoice.totals.tax` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
    - `invoice.totals.total` — integer; required. The total with tax, what the guest pays minimum: -9007199254740991; maximum: 9007199254740991
    - `invoice.totals.taxes` — array; required. 
      - `invoice.totals.taxes[]` — object; optional. 
        - `invoice.totals.taxes[].name` — string; required. 
        - `invoice.totals.taxes[].ratePpm` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
        - `invoice.totals.taxes[].amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
        - `invoice.totals.taxes[].base` — integer; required. What 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 minimum: -9007199254740991; maximum: 9007199254740991
    - `invoice.totals.discount` — object or null; optional. The promo code on this hold or order and what it took off, before tax. Each line's `amount` and `subtotal` are already after it. Null without a code. Always present
      - `invoice.totals.discount.code` — string; required. 
      - `invoice.totals.discount.kind` — string; required.  Allowed: "amount\_off", "percent\_off", "set\_price", "waive\_service\_charge"
      - `invoice.totals.discount.amount` — integer; required. What it took off, before tax: off the tickets and extras, or the fees a waive_service_charge code waived minimum: -9007199254740991; maximum: 9007199254740991
      - `invoice.totals.discount.lines` — array; required. What 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 `lines` above
        - `invoice.totals.discount.lines[]` — one of: object, object, object; optional. 
          - `invoice.totals.discount.lines[] — object option 1` — object; optional. 
            - `invoice.totals.discount.lines[] — object option 1.kind` — string; required.  Value: "ticket\_type"
            - `invoice.totals.discount.lines[] — object option 1.ticketTypeId` — string; required. 
            - `invoice.totals.discount.lines[] — object option 1.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
          - `invoice.totals.discount.lines[] — object option 2` — object; optional. 
            - `invoice.totals.discount.lines[] — object option 2.kind` — string; required.  Value: "add\_on"
            - `invoice.totals.discount.lines[] — object option 2.addOnId` — string; required. 
            - `invoice.totals.discount.lines[] — object option 2.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
          - `invoice.totals.discount.lines[] — object option 3` — object; optional. 
            - `invoice.totals.discount.lines[] — object option 3.kind` — string; required.  Value: "fee"
            - `invoice.totals.discount.lines[] — object option 3.feeId` — string; required. 
            - `invoice.totals.discount.lines[] — object option 3.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
    - `invoice.totals.storedValueDiscounts` — array; optional. Free 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 `amount` and `subtotal` are 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 none
      - `invoice.totals.storedValueDiscounts[]` — object; optional. 
        - `invoice.totals.storedValueDiscounts[].source` — string; required.  Allowed: "gift\_certificate", "credit"
        - `invoice.totals.storedValueDiscounts[].code` — string; required. Its code masked (•••• and its last 4)
        - `invoice.totals.storedValueDiscounts[].amount` — integer; required. What it took off, before tax minimum: -9007199254740991; maximum: 9007199254740991
        - `invoice.totals.storedValueDiscounts[].lines` — array; required. What it took off each line: this plus the line's own amount is what the line was before it
          - `invoice.totals.storedValueDiscounts[].lines[]` — one of: object, object; optional. 
            - `invoice.totals.storedValueDiscounts[].lines[] — object option 1` — object; optional. 
              - `invoice.totals.storedValueDiscounts[].lines[] — object option 1.kind` — string; required.  Value: "ticket\_type"
              - `invoice.totals.storedValueDiscounts[].lines[] — object option 1.ticketTypeId` — string; required. 
              - `invoice.totals.storedValueDiscounts[].lines[] — object option 1.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
            - `invoice.totals.storedValueDiscounts[].lines[] — object option 2` — object; optional. 
              - `invoice.totals.storedValueDiscounts[].lines[] — object option 2.kind` — string; required.  Value: "add\_on"
              - `invoice.totals.storedValueDiscounts[].lines[] — object option 2.addOnId` — string; required. 
              - `invoice.totals.storedValueDiscounts[].lines[] — object option 2.amount` — integer; required. Minor units (cents) minimum: -9007199254740991; maximum: 9007199254740991
  - `invoice.matchesOrder` — boolean; required. Whether the order's invoices still add up to the order. False once seats changed after it was issued: void it and issue another
  - `invoice.statement` — array or null; required. What's been paid and given back, as lines after the total that add up to the balance: `amount` plus every line's amount is `balance`. 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:amounts
    - `invoice.statement[]` — object; optional. 
      - `invoice.statement[].kind` — string; required. paid (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) Allowed: "paid", "refunded", "refund\_not\_owed"
      - `invoice.statement[].amount` — integer; required. Signed, in minor units, so the invoice's `amount` plus every line's `amount` is its `balance` minimum: -9007199254740991; maximum: 9007199254740991
      - `invoice.statement[].reason` — string or null; required. Why a refund was given (goodwill, service_issue, …); null on the other kinds Allowed: "seats\_unavailable", "guest\_request", "session\_canceled", "service\_issue", "duplicate", "goodwill", "other"
      - `invoice.statement[].label` — string; required. The line in English: Paid, Refunded (goodwill), Refund not owed again
  - `invoice.payments` — array or null; required. Null without orders:amounts
    - `invoice.payments[]` — object; optional. 
      - `invoice.payments[].id` — string; required. pay_…
      - `invoice.payments[].tender` — string; required.  Allowed: "card", "gift\_certificate", "credit", "card\_terminal", "cash", "debit", "e\_transfer", "cheque", "voucher"
      - `invoice.payments[].status` — string; required.  Allowed: "pending", "processing", "succeeded", "failed", "canceled"
      - `invoice.payments[].amount` — integer; required. Minor units (cents) in the location's currency
      - `invoice.payments[].refunded` — integer; required. Refunded or on its way back (an excess given back, or staff's)
      - `invoice.payments[].createdAt` — string; required.  format: "date-time"
  - `invoice.issuedAt` — string or null; required.  format: "date-time"
  - `invoice.dueOn` — string or null; required. The day it's due, at the location. Null on a credit note format: "date"
  - `invoice.dueAt` — string or null; required. The end of dueOn at the location: overdue from then format: "date-time"
  - `invoice.overdueAt` — string or null; required. When the overdue alert was raised format: "date-time"
  - `invoice.sentAt` — string or null; required. When it was last emailed format: "date-time"
  - `invoice.note` — string or null; required. Shown to the guest
  - `invoice.voidedAt` — string or null; required.  format: "date-time"
  - `invoice.voidReason` — string or null; required.  Allowed: "reissued", "order\_canceled", "issued\_in\_error", "other"
  - `invoice.voidNote` — string or null; required. Staff's own words. Null without orders:amounts
  - `invoice.createdAt` — string; required.  format: "date-time"
