Line Items

With the checkout API, a merchant can send product information to their customers on the checkout page. If the products are declared as line items, they will be shown under the order amount in the show details section.

  • Line Item – Every product on the order is referenced by a record that includes a product name, quantity, and price

The sum of total amounts declared per product is equal to the order amount.

Availability

This feature is available on all merchant accounts.

The line item array is not mandatory when the create checkout is used; however, certain APMs require the usage of line items to validate the order content.

Requirements

Payment method
Required parameters
Type / Description

Card, Apple Pay, Google Pay, MobilePay, Swish, GPP2, Crypto, GiftCard, PLCC, Klarna, Paypal

name

String

Descriptive name of the order line item

Card, Apple Pay, Google Pay, MobilePay, Swish, GPP2, Crypto, GiftCard, PLCC, Klarna, Paypal

total_amount

Number

Price value of a product (with tax - unit_price + tax_rate)

Klarna, Paypal

quantity

Integer

Quantity of the order line item

Klarna, Paypal

unit_price

Number

Unit Price

Klarna

tax_rate

Number

Additional details specific to this type of event

Klarna

total_tax_amount

Number

Total tax amount

Line items code snippet example:

Last updated

Was this helpful?