Purchase
One checkout. Every line the buyer bought hangs off it, every source that paid for it, and everything it created.
Fields
idID!statusPurchaseStatus!buyerBuyer!Who bought it. An anonymous buyer is a name and an email on the order, not a manufactured account.
items[PurchaseItem!]!currencyString!ISO 4217 currency code, lowercase.
subtotalInt!Sum of the lines before discounts and tax, in cents.
discountTotalInt!Total taken off by codes and rules, as a positive number.
taxTotalInt!tipTotalInt!Gratuity, added after tax and never itself taxed.
totalInt!What the buyer pays: tax- and tip-inclusive. Every funding is stated against this same number, so they sum to it on a fully paid order.
balanceDueInt!What is still owed — total less what has been funded. Non-zero on a deferred collection, which confirms the booking and collects afterwards.
bookings[Booking!]!entitlements[Entitlement!]!placedAtDateTime!completedAtDateTime