# 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.&#x20;

* **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.

<div data-with-frame="true"><img src="https://verifone.cloud/sites/default/files/inline-images/1_0.jpg" alt="" height="226" width="486"></div>

<div data-with-frame="true"><img src="https://verifone.cloud/sites/default/files/inline-images/2_70.JPG" alt="" height="485" width="490"></div>

## Availability   <a href="#availability__00a0__00a0" id="availability__00a0__00a0"></a>

This feature is available on all merchant accounts.&#x20;

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 <a href="#requirements" id="requirements"></a>

| 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:

```json
    "line_items": [
        {
            "name": "Product Test 1",
            "quantity": 1,
            "tax_rate": 21.0,
            "total_tax_amount": 2100,
            "total_amount": 12100,
            "unit_price": 10000,
            "image_url": "https://www.snipes.nl/dw/image/v2/BDCB_PRD/on/demandware.static/-/Sites-snse-master-eu/default/dwde1f6084/1650106_P.jpg?sw=300&sh=300&sm=fit&sfrm=png"
        },
        {
            "name": "Product Test 2",
            "quantity": 2,
            "tax_rate": 0.0,
            "total_tax_amount": 0,
            "total_amount": 2000,
            "unit_price": 1000,
            "image_url": "https://www.snipes.nl/dw/image/v2/BDCB_PRD/on/demandware.static/-/Sites-snse-master-eu/default/dw76dba5d4/1884606_P.jpg?sw=300&sh=300&sm=fit&sfrm=png"
        }
    ],
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.verifone.com/online-payments/checkout/line-items.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
