Skip to content

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!
nameString!

What the line was called at checkout.

quantityInt!
unitAmountInt!

Price of one unit before discount and tax, in cents.

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!
activityActivity
productProduct
serviceService
bookingBooking

The booking this line produced, stamped at fulfillment.

fundedByEntitlement

The pass or membership that settled this line instead of money.

creditsUsedInt

Hand-over state. Physical products only — nothing else has one.

Used in