GET /admin/api/{api_version}/products/{product_id}/variants.json
Retrieves a list of product variants. Note: As of version 2019-10, this endpoint implements pagination by using links that are provided in the response header. Sending the page
parameter will return an error. To learn more, see Making requests to paginated REST Admin API endpoints.
Servers
- https://{store_name}.myshopify.com
- {store_name}.myshopify.com
Path parameters
Name | Type | Required | Description |
---|---|---|---|
api_version |
String | Yes | |
product_id |
String | Yes |
Request headers
Name | Type | Required | Description |
---|---|---|---|
x-shopify-access-token |
String | No |
Query parameters
Name | Type | Required | Description |
---|---|---|---|
limit |
String | No |
Return up to this many results per page(default: 50)(maximum: 250) |
presentment_currencies |
String | No |
Return presentment prices in only certain currencies, specified by a comma-separated list of ISO 4217 currency codes. |
since_id |
String | No |
Restrict results to after the specified ID |
fields |
String | No |
A comma-separated list of fields to include in the response |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.