Stock

Get Stock By SKU

Get the stock status and quantity of a variant by SKU

get/v1/stock/{sku}

Request

  • Base URL: https://api.roastify.app
  • URL: https://api.roastify.app/v1/stock/{sku}
  • Auth: API key in header x-api-key

Path parameters

skustring required

The SKU of the resource

Example:COF-WHB-12O-FHV-BOX

Response

Returns the stock status and quantity of a variant

skustring required

The SKU of the variant

stockQtynumber required

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

inStockboolean required

Boolean indicating whether the variant is in stock

Example response

{
  "sku": "COF-GND-12O-FHV-BOX",
  "stockQty": 100,
  "inStock": true
}

Changes

No recorded changes to this operation across all 1 revision of this API.