> For the complete documentation index, see [llms.txt](https://docs.verifone.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.verifone.com/online-payments/checkout/line-items.md).

# 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"><figure><img src="/files/S0PNot3DwvmvcyerQJTt" alt=""><figcaption></figcaption></figure></div>

<div data-with-frame="true"><figure><img src="/files/KOYeVqnWJOQ764uKy6Sc" alt=""><figcaption></figcaption></figure></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>

<table><thead><tr><th width="274.99993896484375">Payment method</th><th width="177">Required parameters</th><th>Type / Description</th></tr></thead><tbody><tr><td>Card, Apple Pay, Google Pay, MobilePay, Swish, GPP2, Crypto, GiftCard, PLCC, Klarna, Paypal</td><td><code>name</code></td><td><p><strong>String</strong></p><p>Descriptive name of the order line item</p></td></tr><tr><td>Card, Apple Pay, Google Pay, MobilePay, Swish, GPP2, Crypto, GiftCard, PLCC, Klarna, Paypal</td><td><code>total_amount</code></td><td><p><strong>Number</strong></p><p>Price value of a product (with tax - unit_price + tax_rate)</p></td></tr><tr><td>Klarna, Paypal</td><td><code>quantity</code></td><td><p><strong>Integer</strong></p><p>Quantity of the order line item</p></td></tr><tr><td>Klarna, Paypal</td><td><code>unit_price</code></td><td><p><strong>Number</strong></p><p>Unit Price</p></td></tr><tr><td>Klarna</td><td><code>tax_rate</code></td><td><p><strong>Number</strong></p><p>Additional details specific to this type of event</p></td></tr><tr><td>Klarna</td><td><code>total_tax_amount</code></td><td><p><strong>Number</strong></p><p>Total tax amount</p></td></tr></tbody></table>

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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
