GET
/
v1
/
variants
/
product
/
{id}
curl --request GET \
  --url https://api.roastify.app/v1/variants/product/{id} \
  --header 'x-api-key: <api-key>'
[
  {
    "id": "clyd67824rn3f78g0f8j9",
    "title": "12oz Coffee Box",
    "size": "<string>",
    "color": "<string>",
    "retailPrice": 123,
    "sku": "COF-GND-12O-COL-BOX",
    "inStock": true,
    "stockQty": 999
  }
]

Authorizations

x-api-key
string
header
required

The API key to authenticate requests provided by Roastify. If you do not have an API key, please contact [email protected]

Path Parameters

id
string
required

The Id of the resource

Minimum length: 1

Response

200
application/json
Get a variant by Id
id
string
required

The id of the variant

title
string
required

The title of the variant

size
string
required

The size of the variant

color
string
required

The color of the variant

retailPrice
number
required

The retail price of the variant

sku
string
required

The SKU of the variant

inStock
boolean
required

Whether the variant is in stock

stockQty
number
required

The quantity of the variant in stock. 999 for unlimited