Klarna Web SDK v2
    Preparing search index...

    Interface LineItem

    Describe a line item in the purchase. Klarna uses this data for fraud detection and customer communication.

    interface LineItem {
        currency?: string;
        imageUrl?: string;
        lineItemReference?: string;
        name: string;
        productIdentifier?: string;
        productUrl?: string;
        quantity: number;
        shippingReference?: string;
        subscriptionReference?: string;
        totalAmount: number;
        totalTaxAmount?: number;
        unitPrice?: number;
    }
    Index
    currency?: string
    imageUrl?: string

    Provide the URL of the product image.

    lineItemReference?: string

    Unique reference to this line item for correlation with your own system.

    SKU12345
    
    name: string

    Customer-facing name of the product.

    productIdentifier?: string

    Provide the GTIN (UPC, ISBN) of the item.

    productUrl?: string

    Provide the URL of the product page.

    quantity: number

    Specify the quantity of the product.

    1
    
    shippingReference?: string
    subscriptionReference?: string
    totalAmount: number

    Specify the total amount to charge or credit the customer, in minor currency units, including surcharges and deductions. Use a negative value to credit the customer (e.g., for discounts, vouchers, or gift cards).

    totalTaxAmount?: number

    Specify how much of the totalAmount is attributed to sales tax, in minor currency units.

    unitPrice?: number

    Specify the price of one unit in minor currency units.

    Total price of line item is (unitPrice * quantity).