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