@sumup/sdk
    Preparing search index...

    Type Alias Sale

    Sale

    Core model of the Sales API. Returned by GET /sales and GET /sales/{sale_id}.

    Non-finalised sales are never returned; only fully-paid sales.

    Item lines are SaleItem. Merchant fees appear as type: "FEE" lines; extra fee data is in features.

    type Sale = {
        closed_at: string;
        created_at: string;
        currency: SalesActivityCurrency;
        id: string;
        items: SaleItem[];
        name?: string;
        note?: string;
        payments: SalePayment[];
        price: SaleTotals;
        source: SaleSource;
        state: SaleLifecycleState;
        tax_mode: TaxMode;
        user_id?: string;
    }
    Index
    closed_at: string

    Instant when the sale was closed. Always present: non-finalised sales are never returned.

    Format: date-time

    created_at: string

    Instant when the sale was created.

    Format: date-time

    id: string

    The ID of the sale.

    items: SaleItem[]

    The lines sold in this sale, in the order they were added to the cart. Includes merchant fees (type: "FEE") when present; fee details are in features.

    Min items: 1

    Max items: 1000

    name?: string

    Human-readable name of the sale (not unique, not the sale id).

    Max length: 160

    note?: string

    Optional note attached to the sale, visible on receipts and the UI.

    Max length: 300

    payments: SalePayment[]

    Payments on this sale, in the order they were recorded.

    Max items: 1000

    price: SaleTotals
    source: SaleSource
    tax_mode: TaxMode
    user_id?: string

    Identity UUID of the cashier who processed the sale. Omitted when the cashier identity is unknown.

    Format: uuid