When making Klarna payments, you need to specify price and product information when:
- Making a payment request.
- Making a partial capture request.
- Making a partial refund request.
- Applying a discount.
- Adjusting an authorization.
Make a payment request
For any payment request, include price and product information in lineItems.
When adding price and product information, note that:
- Klarna will only approve the payment if the total amount specified in
lineItems
matches theamount.value
. productUrl
andimageUrl
are optional fields.
Make a partial capture request
For a partial capture request, include the price and product information in
additionalData.openinvoicedata
.
Although the field names are different, the information in additionalData.openinvoicedata
is the same as what you provided in lineItems
when making a payment request. The following table shows the corresponding fields.
openinvoicedata | lineItems | Required | Description |
---|---|---|---|
itemAmount |
amountExcludingTax |
![]() |
The price for one item, without the tax, in minor units. |
itemVatPercentage |
taxPercentage |
![]() |
The tax percentage, in minor units. |
itemVatAmount |
taxAmount |
The tax amount for one item, in minor units. |
For Klarna to approve a partial capture, the value
specified in the modificationAmount
has to match the total amount calculated from the invoice lines.
Below is an example of how you can make a partial capture if the shopper only kept one pair of socks from the two included in the original payment request.