@sumup/sdk
    Preparing search index...

    Type Alias SaleItem

    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.

    type SaleItem = {
        categories?: SaleItemCategory[];
        features?: SaleItemFeature[];
        id: string;
        modifiers?: ModifierItem[];
        name: string;
        note?: string;
        price: SaleItemPrice;
        quantity: number;
        references?: SaleItemReferences;
        service_type?: "IN_HOUSE" | "TAKE_AWAY";
        type: string;
        unit_of_measure: UnitOfMeasure;
    }
    Index
    categories?: SaleItemCategory[]

    Categories the line belongs to. A shared optional structure available to any line; not a per-type field.

    Max items: 1000

    features?: SaleItemFeature[]

    Named, 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

    id: string

    Stable identifier of the line within the sale. Used for linking (e.g. deposits).

    Max length: 100

    modifiers?: ModifierItem[]

    Modifiers 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

    name: string

    Display name of the line.

    Max length: 250

    note?: string

    Optional free-text note attached to the line, visible on receipts.

    Max length: 300

    quantity: number

    The numerical value representing the quantity in the specified unit.

    Format: double

    Min: 0

    references?: SaleItemReferences
    service_type?: "IN_HOUSE" | "TAKE_AWAY"

    The type of service for this line.

    type: string

    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.

    unit_of_measure: UnitOfMeasure