# checkout.html

There is no specific variables for checkout.html. All checkout functionality is handled via opening a new [Tebex.js](https://docs.tebex.io/developers/tebex.js) session. To start a new Checkout session, you should do the following:

1. [Add Tebex.js to your store](https://docs.tebex.io/developers/tebex.js)&#x20;
2. [Receive the current baskets ident](#receive-an-ident-for-tebex.js)
3. [Launch the Tebex.js modal](#using-tebex.js)

### Receive an ident for Tebex.js

<mark style="color:green;">`GET`</mark> `/checkout/ident`

This endpoint will return an ident for the current basket, which is required by [Tebex.js](https://docs.tebex.io/developers/tebex.js) when launching a checkout modal.

**Response**

{% tabs %}
{% tab title="200" %}

```json
{
    "ident":"null if customer is not logged in"
}
```

{% endtab %}
{% endtabs %}

### Using Tebex.js

To learn how to add Tebex.js to your store, please view the [associated documentation](https://docs.tebex.io/developers/tebex.js) or view the demo over at <https://js.tebex.io>.


---

# 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.tebex.io/developers/templates/pages/checkout.html.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.
