---
title: "Retrieve a storefront product"
---

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

# Retrieve a storefront product

Path: EdgeCart API › Storefront

`GET /store/products/{id}`

URL: `https://{store_domain}/api/store/products/{id}`

Returns one published product with its variants, prices, options,
images, categories, and collection. Prices are resolved for the region,
currency, quantity, and customer context.

## Authentication

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

## Path parameters

- `id` (`retrieveStorefrontProduct.path.id`; string, required)

## Query parameters

- `region_id` (`retrieveStorefrontProduct.query.region_id`; string, optional)
- `currency_code` (`retrieveStorefrontProduct.query.currency_code`; string, optional)
- `quantity` (`retrieveStorefrontProduct.query.quantity`; integer, optional) — Quantity used to resolve quantity-based prices.
  - minimum: `1`
- `locale` (`retrieveStorefrontProduct.query.locale`; string, optional) — Locale used for translated product fields.

## Code samples

### cURL

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

### TypeScript

```typescript
const url = 'https://your-store.example.com/api/store/products/<id>';
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/products/<id>"

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

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

print(response.text)
```

## Responses

### 200

The product.

#### Example

```json
{
  "product": {
    "id": "string",
    "title": "string",
    "subtitle": "string",
    "description": "string",
    "handle": "string",
    "thumbnail": "string",
    "status": "draft",
    "variants": [
      {
        "id": "string",
        "title": "string",
        "sku": "string",
        "calculated_price": {
          "calculated_amount": 0,
          "original_amount": 0,
          "currency_code": "string",
          "price_list_id": "string",
          "price_list_type": "string"
        },
        "inventory_quantity": 0
      }
    ]
  }
}
```

- `product` (`retrieveStorefrontProduct.response.200.product`; object, required)
  - `id` (`retrieveStorefrontProduct.response.200.product.id`; string, required)
  - `title` (`retrieveStorefrontProduct.response.200.product.title`; string, required)
  - `handle` (`retrieveStorefrontProduct.response.200.product.handle`; string, required)
  - `status` (`retrieveStorefrontProduct.response.200.product.status`; string, required)
    - one of `"draft"`, `"proposed"`, `"published"`, `"rejected"`
  - `variants` (`retrieveStorefrontProduct.response.200.product.variants`; array of object, required)
    - `id` (`retrieveStorefrontProduct.response.200.product.variants.id`; string, required)
    - `title` (`retrieveStorefrontProduct.response.200.product.variants.title`; string, required)
    - `sku` (`retrieveStorefrontProduct.response.200.product.variants.sku`; string | null, optional)
    - `calculated_price` (`retrieveStorefrontProduct.response.200.product.variants.calculated_price`; one of, optional)
      - one of the following:
        - `CalculatedPrice`
          - `calculated_amount` (`CalculatedPrice.calculated_amount`; integer, required) — Price in minor units after price-list and customer rules.
          - `original_amount` (`CalculatedPrice.original_amount`; integer, required)
          - `currency_code` (`CalculatedPrice.currency_code`; string, required)
          - `price_list_id` (`CalculatedPrice.price_list_id`; string | null, optional)
          - `price_list_type` (`CalculatedPrice.price_list_type`; string | null, optional)
        - `null`
    - `inventory_quantity` (`retrieveStorefrontProduct.response.200.product.variants.inventory_quantity`; integer | null, optional)
  - `subtitle` (`retrieveStorefrontProduct.response.200.product.subtitle`; string | null, optional)
  - `description` (`retrieveStorefrontProduct.response.200.product.description`; string | null, optional)
  - `thumbnail` (`retrieveStorefrontProduct.response.200.product.thumbnail`; string | null, 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` (`retrieveStorefrontProduct.response.401.type`; string, required)
- `message` (`retrieveStorefrontProduct.response.401.message`; string, required)
- `code` (`retrieveStorefrontProduct.response.401.code`; string, optional)

### 404

The product is not published or not visible in this sales channel.

#### Example

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

- `type` (`retrieveStorefrontProduct.response.404.type`; string, required)
- `message` (`retrieveStorefrontProduct.response.404.message`; string, required)
- `code` (`retrieveStorefrontProduct.response.404.code`; string, optional)


Source: https://edgecart.dev/api/store/products/retrieve/index.md
