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
Example:

"clyd67824rn3f78g0f8j9"

Response

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

The id of the variant

Example:

"clyd67824rn3f78g0f8j9"

title
string
required

The title of the variant

Example:

"12oz Coffee Box"

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

Example:

"COF-GND-12O-COL-BOX"

inStock
boolean
required

Whether the variant is in stock

stockQty
number
required

The quantity of the variant in stock. 999 for unlimited

Example:

999