List Products
GET
/store/productsRetrieves a list of products. The products can be filtered by fields such as id
or q
. The products can also be sorted or paginated.
This API Route can also be used to retrieve a product by its handle.
For accurate and correct pricing of the products based on the customer's context, it's highly recommended to pass fields such asregion_id
, currency_code
, and cart_id
when available.
Passing sales_channel_id
ensures retrieving only products available in the specified sales channel.
You can alternatively use a publishable API key in the request header instead of passing a sales_channel_id
.
Request
term used to search products' title, description, variant's title, variant's sku, and collection's title.
Filter by IDs.
Filter by sales channel IDs. When provided, only products available in the selected sales channels are retrieved. Alternatively, you can pass a publishable API key in the request header and this will have the same effect.
Filter by product collection IDs. When provided, only products that belong to the specified product collections are retrieved.
Filter by product type IDs. When provided, only products that belong to the specified product types are retrieved.
Filter by product tag IDs. When provided, only products that belong to the specified product tags are retrieved.
Filter by title.
Filter by description
Filter by handle.
Whether to retrieve regular products or gift-card products.
filter by dates less than this date
filter by dates greater than this date
filter by dates less than or equal to this date
filter by dates greater than or equal to this date
Filter by product category IDs. When provided, only products that belong to the specified product categories are retrieved.
Whether to include child product categories when filtering using the category_id
field.
The number of products to skip when retrieving the products.
Limit the number of products returned.
Comma-separated relations that should be expanded in the returned products.
Comma-separated fields that should be included in the returned products.
A product field to sort-order the retrieved products by.
The ID of the cart. This is useful for accurate pricing based on the cart's context.
The ID of the region. This is useful for accurate pricing based on the selected region.
A 3 character ISO currency code. This is useful for accurate pricing based on the selected currency.
Request samples
Responses
The total number of items available
The number of products skipped when retrieving the products.
The number of items per page
An array of products details.
The product's ID
A title that can be displayed for easy identification of the Product.
An optional subtitle that can be used to further specify the Product.
A short description of the Product.
A unique identifier for the Product (e.g. for slug structure).
Whether the Product represents a Gift Card. Products that represent Gift Cards will automatically generate a redeemable Gift Card code once they are purchased.
A URL to an image file that can be used to identify the Product.
The ID of the shipping profile that the product belongs to. The shipping profile has a set of defined shipping options that can be used to fulfill the product.
The weight of the Product Variant. May be used in shipping rate calculations.
The length of the Product Variant. May be used in shipping rate calculations.
The height of the Product Variant. May be used in shipping rate calculations.
The width of the Product Variant. May be used in shipping rate calculations.
The Harmonized System code of the Product Variant. May be used by Fulfillment Providers to pass customs information to shipping carriers.
The country in which the Product Variant was produced. May be used by Fulfillment Providers to pass customs information to shipping carriers.
The Manufacturers Identification code that identifies the manufacturer of the Product Variant. May be used by Fulfillment Providers to pass customs information to shipping carriers.
The material and composition that the Product Variant is made of, May be used by Fulfillment Providers to pass customs information to shipping carriers.
The ID of the product collection that the product belongs to.
The ID of the product type that the product belongs to.
Whether the Product can be discounted. Discounts will not apply to Line Items of this Product when this flag is set to false
.
The external ID of the product
The date with timezone at which the resource was created.
The date with timezone at which the resource was updated.
The date with timezone at which the resource was deleted.
The status of the product
An optional key-value map with additional details
The details of the product categories that this product belongs to.
A Shipping Profile has a set of defined Shipping Options that can be used to fulfill a given set of Products. For example, gift cards are shipped differently than physical products, so a shipping profile with the type gift_card
groups together the shipping options that can only be used for gift cards.
Available if the relation profiles
is expanded.
A Product Collection allows grouping together products for promotional purposes. For example, an admin can create a Summer collection, add products to it, and showcase it on the storefront.
A Product Type can be added to Products for filtering and reporting purposes.
The details of the product tags used in this product.
The details of the product's images.
The details of the Product Options that are defined for the Product. The product's variants will have a unique combination of values of the product's options.
The details of the sales channels this product is available in.
The product variants and their prices.