# JeelPay Items Checkout

## Items Checkout <a href="#jeelintegration-directintegration" id="jeelintegration-directintegration"></a>

### API Checkout

The API checkout is a checkout initiated from the API integration. API checkouts receive webhooks for the whole cycle of the checkout process.

In the webhook body, the `checkoutType` property will have the value of:  `ITEMS`

#### Business Flow <a href="#jeelintegration-businessflow" id="jeelintegration-businessflow"></a>

This section explains the sequence and business flow between the systems in the API checkout phase:

1. Merchant website will display the cost breakdown and installment details to the customer if they wish to choose JeelPay as an installment provider.
2. The customer selects JeelPay then the merchant server create a checkout with Jeel.
3. The merchant site redirects the customer to JeelPay checkout platform to (login/register) in JeelPay and finish the KYC and completes the downpayment.
4. JeelPay Site will redirect the customer to the merchant site with the result.
5. JeelPay Server will also send a webhook to merchant server to confirm the same result.

Below is a sequence diagram that illustrates the above

<figure><img src="/files/dQ9K0gUCHCtoVPpOpwXw" alt=""><figcaption></figcaption></figure>

At any step, you can get the status of the request using the endpoint [`/v3/checkout/{id}` -`GET a checkout by ID`](https://docs.jeel.co/api-reference/integration-checkout#get-v3-checkout-id)

## API Documentation <a href="#jeelintegration-examples" id="jeelintegration-examples"></a>

For Items checkout you can use `POST` `/v3/checkout` and `GET` `/v3/checkout/{id}` which can be found detailed out in the API reference link below

Note: for `POST` `/v3/checkout` if your group has more than one entity, `entity_id` becomes required

{% embed url="<https://docs.jeel.co/api-reference>" %}


---

# 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.jeel.co/jeelpay-items-checkout.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.
