Klarna Web SDK v1/r6
    Preparing search index...

    Type Alias LineItem

    type LineItem = {
        imageUrl?: string;
        name: string;
        productIdentifier?: string;
        productUrl?: string;
        quantity: number;
        reference?: string;
        totalAmount: number;
        totalTaxAmount?: number;
        unitPrice?: number;
    }
    Index

    Properties

    imageUrl?: string

    URL of product image.

    name: string

    Customer facing name of the product.

    productIdentifier?: string

    GTIN (UPC, ISBN) of the item.

    productUrl?: string

    URL of the product page.

    quantity: number

    Quantity of the product.

    1
    
    reference?: string

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

    SKU12345
    
    totalAmount: number

    Total amount attributed to sales tax in minor currency units.

    totalTaxAmount?: number

    Total amount to charge/credit the consumer, in minor currency units, including any surcharges and deductions. To credit the consumer for discounts, vouchers, gift cards, etc. use a negative total amount.

    unitPrice?: number

    Price of one unit in minor currency units.

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