API Reference
Variants
Get variant information for Roastify products and blends.
GET/v1/variants/{sku}
Get Variant by SKU
Get 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 | Get a variant by SKU |
400 | Returns an error |
401 | Unauthorized |
404 | Not Found |
422 | Data Validation Error |
500 | Internal Server Error |
GET/v1/variants/product/{id}
Get Variants by Product ID
Get all variants for a product by using the product's Id
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
id
Requiredstring
The Id of the resource
Example:"clyd67824rn3f78g0f8j9"
Minimum length: 1
Status code | Description |
---|---|
200 | Get a variant by Id |
400 | Returns an error |
401 | Unauthorized |
404 | Not Found |
422 | Data Validation Error |
500 | Internal Server Error |
GET/v1/variants/blend/{id}
Get Variants by Blend ID
Get all variants for a blend by using the blend's Id
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
id
Requiredstring
The Id of the resource
Example:"clyd67824rn3f78g0f8j9"
Minimum length: 1
Status code | Description |
---|---|
200 | All variants for a blend |
400 | Returns an error |
401 | Unauthorized |
404 | Not Found |
422 | Data Validation Error |
500 | Internal Server Error |