/products/{productCode}
Resolve a product or variation by code
Scope:
products.read
price / purchase_price fall back to the parent product's value whenever a variation's own value is empty.
| Param | Type | Rules | Description |
|---|---|---|---|
productCode |
string | path | The product or variation code. |
curl "https://dev2025.flowstock.pro/api/v2/products/SKU-001" \
-H "X-Api-Key: fs_xxx" \
-H "X-Api-Email: you@example.com"
{
"data": {
"product_code": "SKU-001",
"product_id": 42,
"variation_id": null,
"name": "Blue Widget",
"product_name": "Blue Widget",
"variation_name": null,
"price": "19.90",
"purchase_price": "8.50",
"supplier_id": 3,
"stock": {
"quantity": 100,
"reserved": 5,
"balance": 95,
"location": "A-12",
"backorder_enabled": false,
"backorder_estimate": null
}
}
}