OptionalcategoriesCategories the line belongs to. A shared optional structure available to any line; not a per-type field.
Max items: 1000
OptionalfeaturesNamed, typed, type-specific data. New item types add their data here as
features instead of new schema variants. See SaleItemFeature for per-type examples.
Max items: 100
Stable identifier of the line within the sale. Used for linking (e.g. deposits).
Max length: 100
OptionalmodifiersModifiers customise a line (e.g. "oat milk" on a cappuccino). A shared optional structure available to any line; not a per-type field.
Max items: 50
Display name of the line.
Max length: 250
OptionalnoteOptional free-text note attached to the line, visible on receipts.
Max length: 300
The numerical value representing the quantity in the specified unit.
Format: double
Min: 0
OptionalreferencesOptionalservice_The type of service for this line.
Classifies a sale line. Not a schema subclass.
Known values: CATALOG, DEPOSIT, GIFT_CARD, CUSTOM, FEE.
FEE lines represent merchant-charged fees on the sale (e.g. shipping, service
charge, surcharge, cancellation). They participate in sale totals like any other
line; type-specific data is carried in features (see SaleItemFeature for the
conventional feature keys).
This is intentionally an open string, NOT a closed enum: new values are added
over time as pure data and consumers MUST tolerate unknown values, rendering the
line from the generic envelope (name, quantity, price, taxes) and reading any
extra information from features.
A single line of a sale.
The envelope (id, type, name, quantity, unit_of_measure, price) is stable and type-agnostic: any consumer can render and total a line from these fields alone. Type-specific data is in
features. There is no per-type object and no discriminator, so a new item type does not change this schema.