# 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="https://871955768-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhizHIFUJAg8dDa2gWQUt%2Fuploads%2FyxP8Gm1SYug5JsWz50OM%2Fshipping_countries_en.png?alt=media&#x26;token=fa4fdac4-54e4-4860-b21a-34bcbc324768" 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="https://871955768-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhizHIFUJAg8dDa2gWQUt%2Fuploads%2F8GxItt0nmChJpVONlAK6%2Fshipping_method_en.png?alt=media&#x26;token=0dfe5bb9-d083-4b1a-8612-ce385926f938" 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="https://871955768-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhizHIFUJAg8dDa2gWQUt%2Fuploads%2Ftx0TSJkDGuSpZM1c01JL%2Fpayment_method_en.png?alt=media&#x26;token=234cc937-0e13-4f9c-96bf-c7dcb897f408" alt=""><figcaption><p>List of payment methods on the right side</p></figcaption></figure>
