> For the complete documentation index, see [llms.txt](https://wiki.theshop.dev/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.theshop.dev/docs/frontstore/basic-selling-flow/checkout.md).

# Checkout

Checkout is the third (last) step in the final order sequence:

1. Shopping cart (Basket)
2. Shipping and payment
3. **Checkout**

## Checkout

In the Checkout section, new order is created in the database.

[This API call](https://demo.theshop.dev/api-documentation/v1#/cart/0cfe1f5d4a41b0c061554482c09bd485) creates new order in database.

## Customer details form

Customers need to fill all fields that are required by the API.

## Summary

By listing the Shopping cart, you can build the summary for a customer.

[This API call](https://demo.theshop.dev/api-documentation/v1#/cart/9b4d1b8ef233906f1447070be083c6d9) returns cart processed by backend.

<figure><img src="/files/U7CDfNWVSP1fxqLNnIQU" alt=""><figcaption><p>Customer details form (left) and Shopping cart summary (right)</p></figcaption></figure>


---

# 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://wiki.theshop.dev/docs/frontstore/basic-selling-flow/checkout.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.
