---
title: "List shipping options"
---

> Documentation Index
> Fetch the complete documentation index at: https://edgecart.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# List shipping options

Path: EdgeCart API › Storefront

`GET /store/shipping-options`

URL: `https://{store_domain}/api/store/shipping-options`

Returns shipping options available for a cart, country, currency, or
region. Supply `cart_id` to price options for that cart's items and
address.

## Authentication

- `publishableKey`, apiKey, in header, header `x-publishable-api-key`

## Query parameters

- `cart_id` (`listStorefrontShippingOptions.query.cart_id`; string, optional)
- `country_code` (`listStorefrontShippingOptions.query.country_code`; string, optional)
  - maxLength: `2` · minLength: `2`
- `currency_code` (`listStorefrontShippingOptions.query.currency_code`; string, optional)
- `region_id` (`listStorefrontShippingOptions.query.region_id`; string, optional)

## Code samples

### cURL

```bash
curl --request GET \
  --url https://your-store.example.com/api/store/shipping-options \
  --header 'x-publishable-api-key: <x-publishable-api-key>'
```

### TypeScript

```typescript
const url = 'https://your-store.example.com/api/store/shipping-options';
const options = {
  method: 'GET',
  headers: {'x-publishable-api-key': '<x-publishable-api-key>'}
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://your-store.example.com/api/store/shipping-options"

headers = {"x-publishable-api-key": "<x-publishable-api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

The available shipping options.

#### Example

```json
{
  "shipping_options": [
    {
      "id": "string",
      "name": "string",
      "price_type": "string",
      "data": {},
      "service_zone_id": "string",
      "shipping_profile_id": "string",
      "provider_id": "string",
      "shipping_option_type_id": "string",
      "prices": [
        {
          "id": "string",
          "currency_code": "string",
          "region_id": "string",
          "amount": 0
        }
      ],
      "calculated_price": {
        "calculated_amount": 0,
        "original_amount": 0,
        "currency_code": "string",
        "region_id": "string"
      },
      "metadata": {},
      "created_at": "2019-08-24T14:15:22Z",
      "updated_at": "string"
    }
  ]
}
```

- `shipping_options` (`listStorefrontShippingOptions.response.200.shipping_options`; array of object, required)
  - `id` (`listStorefrontShippingOptions.response.200.shipping_options.id`; string, required)
  - `name` (`listStorefrontShippingOptions.response.200.shipping_options.name`; string, required)
  - `price_type` (`listStorefrontShippingOptions.response.200.shipping_options.price_type`; string, required)
  - `data` (`listStorefrontShippingOptions.response.200.shipping_options.data`; object, optional)
  - `service_zone_id` (`listStorefrontShippingOptions.response.200.shipping_options.service_zone_id`; string | null, optional)
  - `shipping_profile_id` (`listStorefrontShippingOptions.response.200.shipping_options.shipping_profile_id`; string | null, optional)
  - `provider_id` (`listStorefrontShippingOptions.response.200.shipping_options.provider_id`; string | null, optional)
  - `shipping_option_type_id` (`listStorefrontShippingOptions.response.200.shipping_options.shipping_option_type_id`; string | null, optional)
  - `prices` (`listStorefrontShippingOptions.response.200.shipping_options.prices`; array of object, optional)
    - `id` (`listStorefrontShippingOptions.response.200.shipping_options.prices.id`; string, required)
    - `currency_code` (`listStorefrontShippingOptions.response.200.shipping_options.prices.currency_code`; string, required)
    - `amount` (`listStorefrontShippingOptions.response.200.shipping_options.prices.amount`; integer, required)
    - `region_id` (`listStorefrontShippingOptions.response.200.shipping_options.prices.region_id`; string | null, optional)
  - `calculated_price` (`listStorefrontShippingOptions.response.200.shipping_options.calculated_price`; one of, optional)
    - one of the following:
      - `CalculatedShippingPrice`
        - `calculated_amount` (`CalculatedShippingPrice.calculated_amount`; integer, required)
        - `original_amount` (`CalculatedShippingPrice.original_amount`; integer, required)
        - `currency_code` (`CalculatedShippingPrice.currency_code`; string, required)
        - `region_id` (`CalculatedShippingPrice.region_id`; string | null, optional)
      - `null`
  - `metadata` (`listStorefrontShippingOptions.response.200.shipping_options.metadata`; object, optional)
  - `created_at` (`listStorefrontShippingOptions.response.200.shipping_options.created_at`; string, optional)
    - format: `date-time`
  - `updated_at` (`listStorefrontShippingOptions.response.200.shipping_options.updated_at`; string, optional)

### 401

The publishable API key is missing or invalid.

#### Example

```json
{
  "type": "not_found",
  "message": "No active store is available for this deployment",
  "code": "store_not_configured"
}
```

- `type` (`listStorefrontShippingOptions.response.401.type`; string, required)
- `message` (`listStorefrontShippingOptions.response.401.message`; string, required)
- `code` (`listStorefrontShippingOptions.response.401.code`; string, optional)


Source: https://edgecart.dev/api/store/shipping-options/index.md
