# Gift certificates tools

[All tool areas](/docs/tools.md). Each tool acts within your access.

## Gift certificates

### change_gift_certificate_delivery

Change when (`deliverOn`, a local date at its location from today up to 365 days ahead) or where (`recipientEmail`) a gift certificate goes, before it has been sent. Undo puts back what it was, while it still hasn't been sent. Needs bookings:write where it was sold. Returns a preview to confirm.

Changes · Members of an organization · Needs bookings:write

#### Input

- `giftCertificateId` — string; required. The gift certificate's id, from list_gift_certificates
- `deliverOn` — string; optional. A local date at the location, YYYY-MM-DD format: "date"
- `recipientEmail` — string or null; optional. Corrected recipient email; null or absent leaves it unchanged format: "email"; maxLength: 254

#### Output

- `id` — string; required. 
- `code` — string; required. In groups of 4. In full only to someone holding refunds:create and orders:amounts where it was sold; masked (•••• and its last 4) otherwise, since whoever reads it can spend it
- `kind` — string; required.  Allowed: "purchased", "promotional", "refund"
- `reason` — string or null; optional.  Allowed: "comp", "partner", "media", "service\_recovery"
- `issuedBy` — string or null; optional. 
- `status` — string; required. pending (its purchase isn't paid yet), active, voided, or expired (promotional ones past expiresAt) Allowed: "pending", "active", "voided", "expired"
- `entityId` — string; required. The entity it's a liability of
- `locationId` — string or null; required. Where it was sold
- `currency` — string; required. 
- `amount` — integer or null; required. As sold, minor units; null without orders:amounts
- `balance` — integer or null; required. What's left to use; null without orders:amounts
- `orderId` — string or null; required. The purchase's order; null for a promotional one
- `orderCode` — string or null; required. 
- `buyer` — object or null; required. 
  - `buyer.customerId` — string; required. 
  - `buyer.name` — string; required. First name only without customers:contact
- `recipientName` — string or null; required. First name only without customers:contact
- `recipientEmail` — string or null; required. Null without customers:contact, or when none was given
- `message` — string or null; required. 
- `presetName` — string or null; required. 
- `deliverOn` — string or null; required. The local date at its location it goes to the recipient format: "date"
- `deliverAt` — string or null; required. When the delivery job sends it: 9:00 at its location on deliverOn, or the moment it was paid for (or issued) when that was already the day. Show it in timeZone format: "date-time"
- `timeZone` — string or null; required. The time zone of the location it was sold at, where deliverOn is a local date and deliverAt was planned; null without a location
- `deliveredAt` — string or null; required.  format: "date-time"
- `delivery` — object; required. 
  - `delivery.state` — string; required. scheduled: goes at deliverAt; overdue: deliverAt has passed without a send; sent; no_email: nowhere to send it (the buyer's receipt has its card link) Allowed: "scheduled", "overdue", "sent", "no\_email"
  - `delivery.deliverOn` — string or null; required. A local date at the location, YYYY-MM-DD format: "date"
  - `delivery.deliverAt` — string or null; required. When it goes, as deliverAt above format: "date-time"
  - `delivery.timeZone` — string or null; required. Where deliverAt is shown, as timeZone above
  - `delivery.deliveredAt` — string or null; required.  format: "date-time"
- `expiresAt` — string or null; optional.  format: "date-time"
- `voidedAt` — string or null; required.  format: "date-time"
- `voidReason` — string or null; required.  Allowed: "refunded", "fraud", "issued\_in\_error", "other"
- `voidNote` — string or null; required. Staff's own words; null without orders:amounts
- `createdAt` — string; required.  format: "date-time"

### get_gift_certificate

Get one gift certificate, by `giftCertificateId` or `code` (any case, dashes ignored): what list_gift_certificates shows, with the orders it paid (by booking code, each use's amount and payment status, and what was given back), the amounts restored to it by refunds, and its delivery (scheduled, overdue, sent, or nowhere to send it). Masked as list_gift_certificates is.

Reads · Members of an organization · Needs bookings:read

#### Input

- `giftCertificateId` — string; optional. The gift certificate's id, from list_gift_certificates
- `code` — string; optional.  minLength: 4; maxLength: 40

#### Output

- `id` — string; required. 
- `code` — string; required. In groups of 4. In full only to someone holding refunds:create and orders:amounts where it was sold; masked (•••• and its last 4) otherwise, since whoever reads it can spend it
- `kind` — string; required.  Allowed: "purchased", "promotional", "refund"
- `reason` — string or null; optional.  Allowed: "comp", "partner", "media", "service\_recovery"
- `issuedBy` — string or null; optional. 
- `status` — string; required. pending (its purchase isn't paid yet), active, voided, or expired (promotional ones past expiresAt) Allowed: "pending", "active", "voided", "expired"
- `entityId` — string; required. The entity it's a liability of
- `locationId` — string or null; required. Where it was sold
- `currency` — string; required. 
- `amount` — integer or null; required. As sold, minor units; null without orders:amounts
- `balance` — integer or null; required. What's left to use; null without orders:amounts
- `orderId` — string or null; required. The purchase's order; null for a promotional one
- `orderCode` — string or null; required. 
- `buyer` — object or null; required. 
  - `buyer.customerId` — string; required. 
  - `buyer.name` — string; required. First name only without customers:contact
- `recipientName` — string or null; required. First name only without customers:contact
- `recipientEmail` — string or null; required. Null without customers:contact, or when none was given
- `message` — string or null; required. 
- `presetName` — string or null; required. 
- `deliverOn` — string or null; required. The local date at its location it goes to the recipient format: "date"
- `deliverAt` — string or null; required. When the delivery job sends it: 9:00 at its location on deliverOn, or the moment it was paid for (or issued) when that was already the day. Show it in timeZone format: "date-time"
- `timeZone` — string or null; required. The time zone of the location it was sold at, where deliverOn is a local date and deliverAt was planned; null without a location
- `deliveredAt` — string or null; required.  format: "date-time"
- `delivery` — object; required. 
  - `delivery.state` — string; required. scheduled: goes at deliverAt; overdue: deliverAt has passed without a send; sent; no_email: nowhere to send it (the buyer's receipt has its card link) Allowed: "scheduled", "overdue", "sent", "no\_email"
  - `delivery.deliverOn` — string or null; required. A local date at the location, YYYY-MM-DD format: "date"
  - `delivery.deliverAt` — string or null; required. When it goes, as deliverAt above format: "date-time"
  - `delivery.timeZone` — string or null; required. Where deliverAt is shown, as timeZone above
  - `delivery.deliveredAt` — string or null; required.  format: "date-time"
- `expiresAt` — string or null; optional.  format: "date-time"
- `voidedAt` — string or null; required.  format: "date-time"
- `voidReason` — string or null; required.  Allowed: "refunded", "fraud", "issued\_in\_error", "other"
- `voidNote` — string or null; required. Staff's own words; null without orders:amounts
- `createdAt` — string; required.  format: "date-time"
- `discountUses` — array; optional. 
  - `discountUses[]` — object; optional. 
    - `discountUses[].orderId` — string or null; required. 
    - `discountUses[].bookingCode` — string or null; required. 
    - `discountUses[].amount` — integer or null; required. Minor units (cents) in the location's currency
    - `discountUses[].status` — string; required.  Allowed: "reserved", "redeemed", "released", "restored", "forfeited"
    - `discountUses[].at` — string; required.  format: "date-time"
- `uses` — array; required. Oldest first
  - `uses[]` — object; optional. 
    - `uses[].paymentId` — string; required. 
    - `uses[].orderId` — string or null; required. 
    - `uses[].bookingCode` — string or null; required. 
    - `uses[].amount` — integer or null; required. Null without orders:amounts
    - `uses[].status` — string; required. pending: reserved at checkout, its order not paid yet; succeeded: redeemed; canceled: its order was canceled before it was booked, and the balance came back Allowed: "pending", "processing", "succeeded", "failed", "canceled"
    - `uses[].restored` — integer or null; required. Given back to it by refunds of that order; null without orders:amounts
    - `uses[].at` — string; required.  format: "date-time"
- `restores` — array; required. Oldest first
  - `restores[]` — object; optional. 
    - `restores[].refundId` — string; required. 
    - `restores[].orderId` — string or null; required. 
    - `restores[].bookingCode` — string or null; required. 
    - `restores[].amount` — integer or null; required. Minor units (cents) in the location's currency
    - `restores[].reason` — string or null; required.  Allowed: "seats\_unavailable", "guest\_request", "session\_canceled", "service\_issue", "duplicate", "goodwill", "other"
    - `restores[].at` — string; required.  format: "date-time"

### get_gift_certificate_liability

Get what the business owes in gift certificates, per entity and currency, over a range of local dates (the organization's time zone, up to 366 days): outstanding at the start, sold, redeemed (net of what refunds gave back), voided, and outstanding at the end, which always reconcile (start + sold − redeemed − voided = end). Certificate sales aren't sales: they're in no sales, tax, or service charge figure. Promotional certificates are free value and never counted; refund certificates (a guest's refund given as a gift certificate) are, from the day they were issued. Narrow with `entityId`. Needs orders:amounts and bookings:read. `columns` and `rows` give the same figures as a table, to export as a CSV.

Reads · Members of an organization · Needs bookings:read, orders:amounts

#### Input

- `from` — string; required. First local date, inclusive format: "date"
- `to` — string; required. Last local date, inclusive, up to 366 days after `from` format: "date"
- `entityId` — string; optional. The entity's id, from get_setup

#### Output

- `from` — string; required. 
- `to` — string; required. 
- `canExport` — boolean; required. Whether the organization's plan includes CSV export (Growth and up): the screen offers the download only then. The rows are the same either way
- `columns` — array; required. 
  - `columns[]` — object; optional. 
    - `columns[].key` — string; required. 
    - `columns[].label` — string; required. 
    - `columns[].kind` — string; required.  Allowed: "money", "count", "date", "text"
- `rows` — array; required. 
  - `rows[]` — object; optional. 
    - `rows[].entityId` — string; required. 
    - `rows[].entityName` — string; required. 
    - `rows[].currency` — string; required. 
    - `rows[].outstandingAtStart` — integer; required. Balances of active certificates as `from` began minimum: -9007199254740991; maximum: 9007199254740991
    - `rows[].sold` — integer; required. Certificates whose purchase was paid, and refund certificates issued in place of a refund (a booking's refundDestination) minimum: -9007199254740991; maximum: 9007199254740991
    - `rows[].redeemed` — integer; required. Paid with them, less what refunds gave back to them minimum: -9007199254740991; maximum: 9007199254740991
    - `rows[].voided` — integer; required. What voiding took off them minimum: -9007199254740991; maximum: 9007199254740991
    - `rows[].outstandingAtEnd` — integer; required. Balances as `to` ended: outstandingAtStart + sold − redeemed − voided minimum: -9007199254740991; maximum: 9007199254740991

### issue_gift_certificate

Give someone a promotional gift certificate (free value: a comp, for a partner or media, or service recovery). It comes off a booking before tax, like a comp promo code, and can only be used when booking online. It expires: by default promotionalCertificateExpiryMonths after today at the location. A manager is limited to their own locations, a comp or service recovery, up to their refund cap, and an expiry within 90 days. The recipient is emailed it on deliverOn (now, for today). Undo voids it within 15 minutes while it's unused. Returns a preview to confirm.

Changes · Members of an organization · Needs orders:amounts, promos:write

#### Input

- `locationId` — string; required. The location's id, from get_setup
- `amount` — integer; required. Minor units (cents) in the location's currency exclusiveMinimum: 0
- `reason` — string; required. Why it's free: a comp, a partner or media, or service recovery Allowed: "comp", "partner", "media", "service\_recovery"
- `recipient` — object or null; required. 
  - `recipient.name` — string; required.  minLength: 1; maxLength: 200
  - `recipient.email` — string; optional.  format: "email"; maxLength: 254
- `message` — string or null; optional. A short message the recipient reads on the certificate maxLength: 500
- `deliverOn` — string; optional. Send it on this local date; now when left out format: "date"
- `expiresOn` — string; optional. The last local date it can be used; the entity's default when left out format: "date"
- `note` — string or null; optional. Staff's own note; the recipient never sees it minLength: 1; maxLength: 500

#### Output

- `id` — string; required. 
- `code` — string; required. In groups of 4. In full only to someone holding refunds:create and orders:amounts where it was sold; masked (•••• and its last 4) otherwise, since whoever reads it can spend it
- `kind` — string; required.  Allowed: "purchased", "promotional", "refund"
- `reason` — string or null; optional.  Allowed: "comp", "partner", "media", "service\_recovery"
- `issuedBy` — string or null; optional. 
- `status` — string; required. pending (its purchase isn't paid yet), active, voided, or expired (promotional ones past expiresAt) Allowed: "pending", "active", "voided", "expired"
- `entityId` — string; required. The entity it's a liability of
- `locationId` — string or null; required. Where it was sold
- `currency` — string; required. 
- `amount` — integer or null; required. As sold, minor units; null without orders:amounts
- `balance` — integer or null; required. What's left to use; null without orders:amounts
- `orderId` — string or null; required. The purchase's order; null for a promotional one
- `orderCode` — string or null; required. 
- `buyer` — object or null; required. 
  - `buyer.customerId` — string; required. 
  - `buyer.name` — string; required. First name only without customers:contact
- `recipientName` — string or null; required. First name only without customers:contact
- `recipientEmail` — string or null; required. Null without customers:contact, or when none was given
- `message` — string or null; required. 
- `presetName` — string or null; required. 
- `deliverOn` — string or null; required. The local date at its location it goes to the recipient format: "date"
- `deliverAt` — string or null; required. When the delivery job sends it: 9:00 at its location on deliverOn, or the moment it was paid for (or issued) when that was already the day. Show it in timeZone format: "date-time"
- `timeZone` — string or null; required. The time zone of the location it was sold at, where deliverOn is a local date and deliverAt was planned; null without a location
- `deliveredAt` — string or null; required.  format: "date-time"
- `delivery` — object; required. 
  - `delivery.state` — string; required. scheduled: goes at deliverAt; overdue: deliverAt has passed without a send; sent; no_email: nowhere to send it (the buyer's receipt has its card link) Allowed: "scheduled", "overdue", "sent", "no\_email"
  - `delivery.deliverOn` — string or null; required. A local date at the location, YYYY-MM-DD format: "date"
  - `delivery.deliverAt` — string or null; required. When it goes, as deliverAt above format: "date-time"
  - `delivery.timeZone` — string or null; required. Where deliverAt is shown, as timeZone above
  - `delivery.deliveredAt` — string or null; required.  format: "date-time"
- `expiresAt` — string or null; optional.  format: "date-time"
- `voidedAt` — string or null; required.  format: "date-time"
- `voidReason` — string or null; required.  Allowed: "refunded", "fraud", "issued\_in\_error", "other"
- `voidNote` — string or null; required. Staff's own words; null without orders:amounts
- `createdAt` — string; required.  format: "date-time"

### list_gift_certificates

List gift certificates, newest first: code, kind, status, amount and balance, who bought it and for whom, and its delivery. Filter by `status`, `kind`, `entityId`, `locationId` (where it was sold), the buyer's email (`buyerEmail`, needs customers:contact), or `code` (exact, any case, dashes ignored), and page with `before`. Amounts and staff's note need orders:amounts; the code shows in full only to someone holding refunds:create and orders:amounts where it was sold; full names and the recipient's email need customers:contact. Someone limited to a location sees certificates sold there.

Reads · Members of an organization · Needs bookings:read

#### Input

- `status` — string; optional.  Allowed: "pending", "active", "voided", "expired"
- `kind` — string; optional.  Allowed: "purchased", "promotional", "refund"
- `entityId` — string; optional. The entity's id, from get_setup
- `locationId` — string; optional. The location's id, from get_setup
- `buyerEmail` — string; optional.  format: "email"; maxLength: 254
- `code` — string; optional.  minLength: 4; maxLength: 40
- `before` — string; optional. The gift certificate's id, from list_gift_certificates
- `limit` — integer; optional. The most results to return (default 50) minimum: 1; maximum: 200; default: 50

#### Output

- `giftCertificates` — array; required. 
  - `giftCertificates[]` — object; optional. 
    - `giftCertificates[].id` — string; required. 
    - `giftCertificates[].code` — string; required. In groups of 4. In full only to someone holding refunds:create and orders:amounts where it was sold; masked (•••• and its last 4) otherwise, since whoever reads it can spend it
    - `giftCertificates[].kind` — string; required.  Allowed: "purchased", "promotional", "refund"
    - `giftCertificates[].reason` — string or null; optional.  Allowed: "comp", "partner", "media", "service\_recovery"
    - `giftCertificates[].issuedBy` — string or null; optional. 
    - `giftCertificates[].status` — string; required. pending (its purchase isn't paid yet), active, voided, or expired (promotional ones past expiresAt) Allowed: "pending", "active", "voided", "expired"
    - `giftCertificates[].entityId` — string; required. The entity it's a liability of
    - `giftCertificates[].locationId` — string or null; required. Where it was sold
    - `giftCertificates[].currency` — string; required. 
    - `giftCertificates[].amount` — integer or null; required. As sold, minor units; null without orders:amounts
    - `giftCertificates[].balance` — integer or null; required. What's left to use; null without orders:amounts
    - `giftCertificates[].orderId` — string or null; required. The purchase's order; null for a promotional one
    - `giftCertificates[].orderCode` — string or null; required. 
    - `giftCertificates[].buyer` — object or null; required. 
      - `giftCertificates[].buyer.customerId` — string; required. 
      - `giftCertificates[].buyer.name` — string; required. First name only without customers:contact
    - `giftCertificates[].recipientName` — string or null; required. First name only without customers:contact
    - `giftCertificates[].recipientEmail` — string or null; required. Null without customers:contact, or when none was given
    - `giftCertificates[].message` — string or null; required. 
    - `giftCertificates[].presetName` — string or null; required. 
    - `giftCertificates[].deliverOn` — string or null; required. The local date at its location it goes to the recipient format: "date"
    - `giftCertificates[].deliverAt` — string or null; required. When the delivery job sends it: 9:00 at its location on deliverOn, or the moment it was paid for (or issued) when that was already the day. Show it in timeZone format: "date-time"
    - `giftCertificates[].timeZone` — string or null; required. The time zone of the location it was sold at, where deliverOn is a local date and deliverAt was planned; null without a location
    - `giftCertificates[].deliveredAt` — string or null; required.  format: "date-time"
    - `giftCertificates[].delivery` — object; required. 
      - `giftCertificates[].delivery.state` — string; required. scheduled: goes at deliverAt; overdue: deliverAt has passed without a send; sent; no_email: nowhere to send it (the buyer's receipt has its card link) Allowed: "scheduled", "overdue", "sent", "no\_email"
      - `giftCertificates[].delivery.deliverOn` — string or null; required. A local date at the location, YYYY-MM-DD format: "date"
      - `giftCertificates[].delivery.deliverAt` — string or null; required. When it goes, as deliverAt above format: "date-time"
      - `giftCertificates[].delivery.timeZone` — string or null; required. Where deliverAt is shown, as timeZone above
      - `giftCertificates[].delivery.deliveredAt` — string or null; required.  format: "date-time"
    - `giftCertificates[].expiresAt` — string or null; optional.  format: "date-time"
    - `giftCertificates[].voidedAt` — string or null; required.  format: "date-time"
    - `giftCertificates[].voidReason` — string or null; required.  Allowed: "refunded", "fraud", "issued\_in\_error", "other"
    - `giftCertificates[].voidNote` — string or null; required. Staff's own words; null without orders:amounts
    - `giftCertificates[].createdAt` — string; required.  format: "date-time"
- `nextBefore` — string or null; required. 

### resend_gift_certificate

Send a gift certificate to its recipient again, now (a lost email), optionally to a corrected `recipientEmail`, which it keeps. Can't be undone. Needs bookings:write where it was sold. Returns a preview to confirm.

Changes · Members of an organization · Needs bookings:write

#### Input

- `giftCertificateId` — string; required. The gift certificate's id, from list_gift_certificates
- `recipientEmail` — string or null; optional. Corrected recipient email; null or absent leaves it unchanged format: "email"; maxLength: 254

#### Output

- `id` — string; required. 
- `code` — string; required. In groups of 4. In full only to someone holding refunds:create and orders:amounts where it was sold; masked (•••• and its last 4) otherwise, since whoever reads it can spend it
- `kind` — string; required.  Allowed: "purchased", "promotional", "refund"
- `reason` — string or null; optional.  Allowed: "comp", "partner", "media", "service\_recovery"
- `issuedBy` — string or null; optional. 
- `status` — string; required. pending (its purchase isn't paid yet), active, voided, or expired (promotional ones past expiresAt) Allowed: "pending", "active", "voided", "expired"
- `entityId` — string; required. The entity it's a liability of
- `locationId` — string or null; required. Where it was sold
- `currency` — string; required. 
- `amount` — integer or null; required. As sold, minor units; null without orders:amounts
- `balance` — integer or null; required. What's left to use; null without orders:amounts
- `orderId` — string or null; required. The purchase's order; null for a promotional one
- `orderCode` — string or null; required. 
- `buyer` — object or null; required. 
  - `buyer.customerId` — string; required. 
  - `buyer.name` — string; required. First name only without customers:contact
- `recipientName` — string or null; required. First name only without customers:contact
- `recipientEmail` — string or null; required. Null without customers:contact, or when none was given
- `message` — string or null; required. 
- `presetName` — string or null; required. 
- `deliverOn` — string or null; required. The local date at its location it goes to the recipient format: "date"
- `deliverAt` — string or null; required. When the delivery job sends it: 9:00 at its location on deliverOn, or the moment it was paid for (or issued) when that was already the day. Show it in timeZone format: "date-time"
- `timeZone` — string or null; required. The time zone of the location it was sold at, where deliverOn is a local date and deliverAt was planned; null without a location
- `deliveredAt` — string or null; required.  format: "date-time"
- `delivery` — object; required. 
  - `delivery.state` — string; required. scheduled: goes at deliverAt; overdue: deliverAt has passed without a send; sent; no_email: nowhere to send it (the buyer's receipt has its card link) Allowed: "scheduled", "overdue", "sent", "no\_email"
  - `delivery.deliverOn` — string or null; required. A local date at the location, YYYY-MM-DD format: "date"
  - `delivery.deliverAt` — string or null; required. When it goes, as deliverAt above format: "date-time"
  - `delivery.timeZone` — string or null; required. Where deliverAt is shown, as timeZone above
  - `delivery.deliveredAt` — string or null; required.  format: "date-time"
- `expiresAt` — string or null; optional.  format: "date-time"
- `voidedAt` — string or null; required.  format: "date-time"
- `voidReason` — string or null; required.  Allowed: "refunded", "fraud", "issued\_in\_error", "other"
- `voidNote` — string or null; required. Staff's own words; null without orders:amounts
- `createdAt` — string; required.  format: "date-time"

### void_gift_certificate

Void what's left on a gift certificate: its balance goes to 0 and it's voided, with a reason (refunded, fraud, issued_in_error, other) and staff's note, never shown to the guest. What it already paid stays paid. A refund certificate (a guest's refund given as one, under their booking's refund policy) voided unused takes that refund back too, so the booking reads as not refunded that much: for when the card was also refunded in the payment provider (the refund_exceeded alert); one partly used keeps it. Refunding a purchase to the buyer's card is refund_order on its order, which voids the remaining balance first. Can't be undone. Needs refunds:create and orders:amounts where it was sold. Returns a preview to confirm.

Changes · Members of an organization · Needs refunds:create

#### Input

- `giftCertificateId` — string; required. The gift certificate's id, from list_gift_certificates
- `reason` — string; required.  Allowed: "refunded", "fraud", "issued\_in\_error", "other"
- `note` — string; optional.  minLength: 1; maxLength: 500

#### Output

- `id` — string; required. 
- `code` — string; required. In groups of 4. In full only to someone holding refunds:create and orders:amounts where it was sold; masked (•••• and its last 4) otherwise, since whoever reads it can spend it
- `kind` — string; required.  Allowed: "purchased", "promotional", "refund"
- `reason` — string or null; optional.  Allowed: "comp", "partner", "media", "service\_recovery"
- `issuedBy` — string or null; optional. 
- `status` — string; required. pending (its purchase isn't paid yet), active, voided, or expired (promotional ones past expiresAt) Allowed: "pending", "active", "voided", "expired"
- `entityId` — string; required. The entity it's a liability of
- `locationId` — string or null; required. Where it was sold
- `currency` — string; required. 
- `amount` — integer or null; required. As sold, minor units; null without orders:amounts
- `balance` — integer or null; required. What's left to use; null without orders:amounts
- `orderId` — string or null; required. The purchase's order; null for a promotional one
- `orderCode` — string or null; required. 
- `buyer` — object or null; required. 
  - `buyer.customerId` — string; required. 
  - `buyer.name` — string; required. First name only without customers:contact
- `recipientName` — string or null; required. First name only without customers:contact
- `recipientEmail` — string or null; required. Null without customers:contact, or when none was given
- `message` — string or null; required. 
- `presetName` — string or null; required. 
- `deliverOn` — string or null; required. The local date at its location it goes to the recipient format: "date"
- `deliverAt` — string or null; required. When the delivery job sends it: 9:00 at its location on deliverOn, or the moment it was paid for (or issued) when that was already the day. Show it in timeZone format: "date-time"
- `timeZone` — string or null; required. The time zone of the location it was sold at, where deliverOn is a local date and deliverAt was planned; null without a location
- `deliveredAt` — string or null; required.  format: "date-time"
- `delivery` — object; required. 
  - `delivery.state` — string; required. scheduled: goes at deliverAt; overdue: deliverAt has passed without a send; sent; no_email: nowhere to send it (the buyer's receipt has its card link) Allowed: "scheduled", "overdue", "sent", "no\_email"
  - `delivery.deliverOn` — string or null; required. A local date at the location, YYYY-MM-DD format: "date"
  - `delivery.deliverAt` — string or null; required. When it goes, as deliverAt above format: "date-time"
  - `delivery.timeZone` — string or null; required. Where deliverAt is shown, as timeZone above
  - `delivery.deliveredAt` — string or null; required.  format: "date-time"
- `expiresAt` — string or null; optional.  format: "date-time"
- `voidedAt` — string or null; required.  format: "date-time"
- `voidReason` — string or null; required.  Allowed: "refunded", "fraud", "issued\_in\_error", "other"
- `voidNote` — string or null; required. Staff's own words; null without orders:amounts
- `createdAt` — string; required.  format: "date-time"
