cURL
curl --request GET \ --url https://api.roastify.app/v1/variants/{sku} \ --header 'x-api-key: <api-key>'
{ "id": "clyd67824rn3f78g0f8j9", "title": "Whole Bean", "size": "12oz", "retailPrice": 1200, "sku": "COF-GND-12O-COL-BOX", "inStock": true, "stockQty": 999, "plan": "pro" }
Get a variant by SKU
The API key to authenticate requests provided by Roastify. A Base or Pro plan is required to use the API.
The SKU of the resource
1
"COF-WHB-12O-FHV-BOX"
The response is of type object.
object