GET
/
v1
/
stock
curl --request GET \
  --url https://api.roastify.app/v1/stock \
  --header 'x-api-key: <api-key>'
[
  {
    "sku": "COF-GND-12O-FHV-BOX",
    "stockQty": 100,
    "inStock": true
  }
]

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]

Response

200
application/json
Returns the stock list
sku
string
required

The SKU of the variant

Example:

"COF-GND-12O-FHV-BOX"

stockQty
number
required

The stock quantity of the variant. If the quantity is 999, it means the stock is considered unlimited.

Example:

100

inStock
boolean
required

Boolean indicating whether the variant is in stock

Example:

true