Klarna Web SDK v2
    Preparing search index...

    Interface OndemandService

    On-Demand Service Data

    interface OndemandService {
        averageAmount?: number;
        currency?: string;
        maximumAmount?: number;
        minimumAmount?: number;
        purchaseInterval?: "DAY" | "WEEK" | "MONTH" | "YEAR";
        purchaseIntervalFrequency?: number;
    }
    Index
    averageAmount?: number

    Your average purchase amount in minor-units (e.g., cents).

    Use this to provide Klarna with typical purchase amounts across your customer base. Can be segmented by customer type, country, or other factors for better risk assessment.

    averageAmount: 2000  // $20.00 average purchase
    averageAmount: 5999 // $59.99 average purchase
    currency?: string

    Provide the currency code in ISO 4217 format (3-letter code).

    maximumAmount?: number

    The maximum purchase amount in minor-units (e.g., cents).

    The highest value you may charge a customer per purchase. This helps Klarna assess risk and determine appropriate payment options for larger transactions.

    maximumAmount: 50000   // $500.00 maximum purchase
    maximumAmount: 100000 // $1,000.00 maximum purchase
    minimumAmount?: number

    The minimum purchase amount in minor-units (e.g., cents).

    The lowest value you may charge a customer per purchase. This helps Klarna understand your pricing boundaries for better payment option presentation.

    minimumAmount: 500   // $5.00 minimum purchase
    minimumAmount: 1000 // $10.00 minimum purchase
    purchaseInterval?: "DAY" | "WEEK" | "MONTH" | "YEAR"

    The typical interval at which customers make purchases.

    Defines the frequency pattern of customer purchases (DAY, WEEK, MONTH, YEAR) to help Klarna understand your business model and customer behavior.

    purchaseInterval: "MONTH"  // Monthly purchases typical
    purchaseInterval: "WEEK" // Weekly purchases typical
    purchaseIntervalFrequency?: number

    How often purchases occur within the specified interval.

    Works together with purchaseInterval to define customer purchase patterns. For example: interval "MONTH" + frequency 2 = purchases every 2 months.

    // Weekly purchases
    { purchaseInterval: "WEEK", purchaseIntervalFrequency: 1 }

    // Every 2 months
    { purchaseInterval: "MONTH", purchaseIntervalFrequency: 2 }

    // Twice per week
    { purchaseInterval: "DAY", purchaseIntervalFrequency: 3 }

    1