PurchaseItem
One line of one order, and the only place a price is stated. Every amount is an immutable snapshot: editing the activity, product or menu afterwards can never change what a buyer was charged.
Fields
idID!kindPurchaseItemKind!nameString!What the line was called at checkout.
quantityInt!How many of this line were bought: tickets, passes, shirts — or, on a line sold as a group package before groups became sets, groups.
admissionsPerUnitInt!How many people each unit admits: 1 on every line sold today. A line sold as a group package — one unit of "Group of 4" at one amount, before groups became per-person prices sold in sets — admits 4. The money is per unit (unitAmount × quantity); the tickets the line minted are quantity × admissionsPerUnit.
unitAmountInt!Price of one unit before discount and tax, in cents, including any per-ticket fee (feeAmount).
feeAmountInt!How much of unitAmount is the price's per-ticket fee, in cents per unit — 0 when there is none. The ticket itself is unitAmount - feeAmount. No discount comes off this portion.
feeNameStringWhat the fee was called at checkout. Null when feeAmount is 0.
entitlementCreditAmountInt!Cents of this line the pass or membership on fundedBy settled instead of money — the whole line, or all of it but the per-ticket fee when the price charged its fee on pass and membership seats. 0 on a line paid in money.
discountAmountInt!taxAmountInt!Tax on this line. Per-line rather than order-level, which is what makes refunding two tickets out of six arithmetic on one row.
totalAmountInt!sessionSessionpricePriceThe price this line was sold at, for the name printed on the receipt.
activityActivityproductProductserviceServicebookingBookingThe booking this line produced, stamped at fulfillment.
fundedByEntitlementThe pass or membership that settled entitlementCreditAmount of this line instead of money — all of it, or all but a per-ticket fee the price charges on pass and membership seats. totalAmount on such a line still states its list price; money taken is totalAmount - entitlementCreditAmount.
creditsUsedIntfulfillmentPhysicalFulfillmentHand-over state. Physical products only — nothing else has one.
addedAfterCompletionAtDateTimeWhen staff added this line to an order that had already completed. Null on every line the buyer checked out with, which is what lets a receipt separate what was booked from what was added on the day.