@sumup/sdk
    Preparing search index...

    Type Alias Checkout

    Checkout

    Core checkout resource returned by the Checkouts API. A checkout is created before payment processing and then updated as payment attempts, redirects, and resulting transactions are attached to it.

    type Checkout = {
        amount?: number;
        checkout_reference?: string;
        currency?: Currency;
        customer_id?: string;
        date?: string;
        description?: string;
        hosted_checkout_url?: string;
        id?: string;
        mandate?: MandateResponse;
        merchant_code?: string;
        return_url?: string;
        status?: "PENDING" | "FAILED" | "PAID" | "EXPIRED";
        transactions?: (
            TransactionBase & TransactionCheckoutInfo & {
                entry_mode?: CheckoutEntryMode;
            }
        )[];
        valid_until?: string
        | null;
    }
    Index
    amount?: number

    Amount to be charged to the payer, expressed in major units.

    Format: float

    checkout_reference?: string

    Merchant-defined reference for the checkout. Use it to correlate the SumUp checkout with your own order, cart, subscription, or payment attempt in your systems.

    Max length: 64

    currency?: Currency
    customer_id?: string

    Merchant-scoped identifier of the customer associated with the checkout. Use it when storing payment instruments or reusing saved customer context for recurring and returning-payer flows.

    date?: string

    The timestamp of when the checkout was created.

    Format: date-time

    description?: string

    Short merchant-defined description shown in SumUp tools and reporting. Use it to make the checkout easier to recognize in dashboards, support workflows, and reconciliation.

    hosted_checkout_url?: string

    URL of the SumUp-hosted payment page that handles the payment flow. Returned when Hosted Checkout is enabled for the checkout.

    Format: uri

    id?: string

    Unique SumUp identifier of the checkout resource.

    mandate?: MandateResponse
    merchant_code?: string

    Short unique identifier for the merchant that receives the payment.

    return_url?: string

    Optional backend callback URL for checkout status notifications. SumUp sends an HTTP POST with event_type and the checkout id. Retrieve the checkout to verify its current status before updating your order. See the webhook guide for the payload and response requirements.

    Format: uri

    status?: "PENDING" | "FAILED" | "PAID" | "EXPIRED"

    Current high-level state of the checkout. PENDING means the checkout exists but is not yet completed, PAID means a payment succeeded, FAILED means the latest processing attempt failed, and EXPIRED means the checkout can no longer be processed.

    transactions?: (
        TransactionBase & TransactionCheckoutInfo & {
            entry_mode?: CheckoutEntryMode;
        }
    )[]

    Payment attempts and resulting transaction records linked to this checkout. Use the Transactions endpoints when you need the authoritative payment result and event history.

    Unique items only

    valid_until?: string | null

    Optional expiration timestamp. The checkout must be processed before this moment, otherwise it becomes unusable. If omitted, the checkout does not have an explicit expiry time.

    Format: date-time