# Shipping and payment

Shipping and payment is the second of the three steps in the final order sequence:

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

After you have items in the Shopping cart, Shipping and payment section should be filled.

The following sections must be filled in a sequence:

1. [Shipping country](#1.-shipping-country)
2. [Shipping method](#2.-shipping-method)
3. [Payment method](#3.-payment-method)

## 1. Shipping country

First of all, the shipping country must be selected and provided for next API calls. You can offer a list of countries, or set a default one.

[This API call](https://demo.theshop.dev/api-documentation/v1#/shipping/5c85a67a1f17a27ac9290247289ab91a) returns a list of available shipping countries.

<figure><img src="/files/mRGlD9F21uHkF9l7YvmU" alt=""><figcaption><p>List of shipping countries</p></figcaption></figure>

## 2. Shipping method

After selecting the Shipping country, you can get the list of available shipping types.

[This API call](https://demo.theshop.dev/api-documentation/v1#/shipping/ecaafb146d443b2c82875308075b40d0) returns all active shipping types defined for shipping country.

<figure><img src="/files/kPLykiyiWe5JbFswuGfh" alt=""><figcaption><p>List of shipping methods (types)</p></figcaption></figure>

## 3. Payment method

#### List all available payment methods

[This API call](https://demo.theshop.dev/api-documentation/v1#/shipping/3124198ebd70c61cd0b0038d4caee801) returns all payment types for selected shipping country, shipping type, catalog, and currency.

#### Provide only available payment types

After selecting the Shipping type, you can provide only available payment types.

[This API call](https://demo.theshop.dev/api-documentation/v1#/shipping/297922f6da5e98fa8e329daf21d2cac0) returns all available payment types for shipping country.

<figure><img src="/files/F2XuGcA41zonNkxyA7QS" alt=""><figcaption><p>List of payment methods on the right side</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/shipping-and-payment.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.
