API Reference
Stock
Get stock levels for Roastify products and SKUs
GET/v1/stock
Get Stock List
Get the stock status and quantity of all available variants
Authorization
x-api-key
Required<token>
The API key to authenticate requests provided by Roastify. If you do not have an API key, please contact [email protected]
In: header
Status code | Description |
---|---|
200 | Returns the stock list |
400 | Returns an error |
401 | Unauthorized |
404 | Not Found |
422 | Data Validation Error |
500 | Internal Server Error |
GET/v1/stock/{sku}
Get Stock By SKU
Get the stock status and quantity of a variant by SKU
Authorization
x-api-key
Required<token>
The API key to authenticate requests provided by Roastify. If you do not have an API key, please contact [email protected]
In: header
Path Parameters
sku
Requiredstring
The SKU of the resource
Example:"COF-WHB-12O-FHV-BOX"
Minimum length: 1
Status code | Description |
---|---|
200 | Returns the stock status and quantity of a variant |
400 | Returns an error |
401 | Unauthorized |
404 | Not Found |
422 | Data Validation Error |
500 | Internal Server Error |