@sumup/sdk
    Preparing search index...

    Type Alias SaleSearchRequest

    SaleSearchRequest

    Filter and pagination criteria for POST /sales/search. Filters from different categories stack with logical AND; multiple values in one array field stack with logical OR. Results cover the merchant’s last two years of sales (narrow further with start_date / end_date). Results are sorted newest first by sale close date.

    type SaleSearchRequest = {
        end_date?: string;
        pagination_limit?: number;
        pagination_token?: string;
        payment_statuses?: SalePaymentStatusFilter[];
        sale_statuses?: SaleLifecycleState[];
        sales_channels?: SaleChannelFilter[];
        start_date?: string;
    }
    Index
    end_date?: string

    Sale created on or before this instant (inclusive).

    Format: date-time

    pagination_limit?: number

    Maximum number of results per page.

    Default: 10

    Min: 1

    Max: 25

    pagination_token?: string

    Opaque token from the previous search response. To load the next page, send it with the same filters. Not interchangeable with tokens from GET /sales.

    payment_statuses?: SalePaymentStatusFilter[]

    Filters rows by payment outcome. Multiple values match any of them (OR). The search row does not echo this value.

    sale_statuses?: SaleLifecycleState[]

    Filters rows by sale lifecycle (state). Multiple values match any of them (OR). Uses the same values as Sale.state. Non-finalised sales are never returned; only fully-paid sales.

    sales_channels?: SaleChannelFilter[]

    Sales channel filter. Multiple values match any of them (OR).

    start_date?: string

    Sale created on or after this instant (inclusive).

    Format: date-time