@sumup/sdk
    Preparing search index...

    Type Alias SaleSearchItem

    SaleSearchItem

    Summary row for a sale in search results. Use GET /sales/{sale_id} for the full Sale.

    type SaleSearchItem = {
        closed_at: string;
        created_at: string;
        currency: SalesActivityCurrency;
        id: string;
        name?: string;
        state: SaleLifecycleState;
        tax_mode: TaxMode;
        total_amount: number;
        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

    Sale identifier.

    name?: string

    Display name of the sale when set; otherwise a concatenation of item names with quantities. Omitted when neither is available.

    tax_mode: TaxMode

    Checkout tax mode for the sale. Same values as Sale.tax_mode.

    total_amount: number

    Final sale gross total after discounts and taxes, excluding tips. Same value as Sale.price.gross_amount, in minor units according to currency.scale. Payment amounts include tips and can therefore differ from this total.

    The value of the amount in minor units of the currency according to the Sale.currency.scale. value can get large for some currencies and applications. Use Long type or a similar data type when parsing value.

    Format: int64

    user_id?: string

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

    Format: uuid