Products of a collection
Permission
collections:readRate limit readsEvery product in the collection, drafts included, by position (manual) then name. price_min/price_max are numbers here, not strings; position is null in an automated collection.
Authorization
ESTAGE-API-KeystringheaderrequiredA project key, est_live_…, from Settings → API keys. Call from server code only.
Path parameters
idintegerrequiredRequestcURL
curl --request GET \ --url 'https://api.estage.com/v1/collections/collection-id/products' \ --header 'ESTAGE-API-Key: est_live_your-api-key'
OK
{
"data": [
{
"id": 5012,
"name": "Classic Tee",
"handle": "classic-tee",
"cover": "https://cdn.example.com/tee-front.jpg",
"status": "active",
"product_type": "T-Shirts",
"vendor_name": "Northwind",
"price_min": 25,
"price_max": 27,
"position": 0
},
{
"id": 5013,
"name": "Zip Hoodie",
"handle": "zip-hoodie",
"cover": null,
"status": "draft",
"product_type": "Hoodies",
"vendor_name": "Northwind",
"price_min": 59,
"price_max": 59,
"position": 1
}
]
}Example. Errors are
{ error: { code, message, details } }.