Skip to main content

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

FieldValueNotes
Urlhttps://adapt.flowlyze.com/api/adp/shopify/shared/products/:IDURL of the endpoint to call, where :ID is the numeric product ID
MethodGETHTTP method used to call the endpoint
Headers :: x-api-key**********API key used to validate interaction with the endpoint
Headers :: x-shopify-graphql-urlhttps://SHOPIFYURL.myshopify.com/URL of the Shopify store to connect to
Headers :: x-shopify-access-tokenshpat_ALPHANUMERICOSecret of the custom app created for the integration
Headers :: channel-codeSHOPIFY_CHANNELCODESales 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, from gid://shopify/Product/1234567890, the ID to use is 1234567890.

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"
}
}
]
}