Retrieve Product by ID
This endpoint allows you to retrieve the basic information of a Shopify product using its numeric identifier. It is useful when you need to fetch a single product for which you already know the ID.
Request Configuration
| Field | Value | Notes |
|---|---|---|
Url | https://adapt.flowlyze.com/api/adp/shopify/shared/products/:ID | URL of the endpoint to call, where :ID is the numeric product ID |
Method | GET | HTTP method used to call the endpoint |
Headers :: x-api-key | ********** | API key used to validate interaction with the endpoint |
Headers :: x-shopify-graphql-url | https://SHOPIFYURL.myshopify.com/ | URL of the Shopify store to connect to |
Headers :: x-shopify-access-token | shpat_ALPHANUMERICO | Secret of the custom app created for the integration |
Headers :: channel-code | SHOPIFY_CHANNELCODE | Sales channel (optional) |
Note: The product ID must be provided in numeric format, corresponding to the final part of Shopify’s global identifier (
gid). For example, fromgid://shopify/Product/1234567890, the ID to use is1234567890.
Example of Retrieved Information
{
"channel": "Demo",
"id": "gid://shopify/Product/1234567890",
"updatedAt": null,
"title": "Item with 3 variants",
"tags": [
"tag2",
"tag1"
],
"featuredMedia": {
"alt": null,
"url": null
},
"variants": [
{
"sku": "ABCD001-1",
"optionValues": {
"color": "blue"
}
},
{
"sku": "ABCD001-2",
"optionValues": {
"color": "red"
}
},
{
"sku": "ABCD001-3",
"optionValues": {
"color": "green"
}
}
]
}