Get Product Variants
GET
/store/variantsRetrieves a list of product variants. The product variants can be filtered by fields such as id
or title
. The product variants can also be paginated.
For accurate and correct pricing of the product variants 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 variants of 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
Filter by a comma-separated list of IDs. If supplied, it overrides the id
parameter.
Filter by one or more IDs. If ids
is supplied, it's overrides the value of this parameter.
"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."
Comma-separated relations that should be expanded in the returned product variants.
Comma-separated fields that should be included in the returned product variants.
The number of products to skip when retrieving the product variants.
Limit the number of product variants returned.
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.
Filter by title
Filter by available inventory quantity