@sumup/sdk
    Preparing search index...

    Type Alias CheckoutCreateRequest

    Checkout Create Request

    Request body for creating a checkout before processing payment. Define the payment amount, currency, merchant, and optional customer or redirect behavior here.

    type CheckoutCreateRequest = {
        amount: number;
        checkout_reference: string;
        currency: Currency;
        customer_id?: string;
        description?: string;
        hosted_checkout?: HostedCheckout;
        merchant_code: string;
        purpose?: "CHECKOUT" | "SETUP_RECURRING_PAYMENT";
        redirect_url?: string;
        return_url?: string;
        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 new checkout, up to 64 characters. Use it to correlate the checkout with an order or payment attempt in your own system. If a checkout already exists for the supplied unique parameters, creation returns 409 with DUPLICATED_CHECKOUT; see the conflict response.

    Max length: 64

    currency: Currency
    customer_id?: string

    Merchant-scoped customer identifier. Required when setting up recurring payments and useful when the checkout should be linked to a returning payer.

    description?: string

    Short merchant-defined description shown in SumUp tools and reporting for easier identification of the checkout.

    hosted_checkout?: HostedCheckout
    merchant_code: string

    Short unique identifier for the merchant that should receive the payment.

    purpose?: "CHECKOUT" | "SETUP_RECURRING_PAYMENT"

    Business purpose of the checkout. Use CHECKOUT for a standard payment and SETUP_RECURRING_PAYMENT when collecting consent and payment details for future recurring charges.

    Default: "CHECKOUT"

    redirect_url?: string

    URL where the payer should be sent after a redirect-based payment or SCA flow completes. This is required for APMs and recommended for card checkouts that may require 3DS. If it is omitted, the Payment Widget can render the challenge in an iframe instead of using a full-page redirect.

    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

    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