@sumup/sdk
    Preparing search index...

    Type Alias SalePayment

    SalePayment

    Payment on a closed sale, for bookkeeping and reconciliation.

    Acquirer/processing cost is not on this object. Merchant-charged fees (shipping, service charge, etc.) appear as type: "FEE" item lines in Sale.items.

    type SalePayment = {
        amount: number;
        apm_type?: string;
        card?: SalePaymentCard;
        gift_card?: SaleGiftCardPayment;
        method: string;
        processed_at: string;
        reference: string;
        status: "FAILED" | "SUCCESSFUL" | "CANCELED";
        type: string;
    }
    Index
    amount: number

    The amount of the payment including tips. The value of the amount in minor units of Sale.currency.

    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

    Min: 0

    apm_type?: string

    Alternative payment method type when method is apm. Gift card is not an APM on this API. Values use lowercase snake_case. Known values are qr_code_pix, sepa_dd, paypal, sumup_pay, twint, and iris. Additional values may be returned as new alternative payment methods become available.

    Max length: 20

    method: string

    Payment method on public sales read API v1.0. Digital wallets are first-class methods. Gift card payments use gift_card, not apm. Values use lowercase snake_case. Known values are card, cash, apm, external, apple_pay, google_pay, whatsapp_pay, and gift_card. Additional values may be returned as new payment methods become available.

    Max length: 20

    processed_at: string

    UTC date-time when SumUp recorded this payment’s exposed status (successful, failed, or canceled). Server processed time when available; otherwise the payment provider’s transaction time. Not the device clock.

    Format: date-time

    reference: string

    The reference to the actual payment used for this sale, e.g. the sumup transaction code.

    Max length: 50

    status: "FAILED" | "SUCCESSFUL" | "CANCELED"

    The status of the payment.

    type: string

    Payment operation type. This is distinct from the payment instrument in method. Values use lowercase snake_case. Known values are purchase for a normal purchase and unreferenced_refund for negative sales such as deposit returns.

    Default: "purchase"