Get a Product's Stock

Get All Stock by Product ID

GET https://api.moltin.com/v2/inventories/:productId

Path Parameters

NameTypeDescription

productId

string

The ID for the product you require stock

Headers

NameTypeDescription

Authorization

string

The Bearer token to grant access to the API

{
  "data": {
    "id": "9eda5ba0-4f4a-4074-8547-ccb05d1b5981",
    "type": "stock",
    "total": 20,
    "available": 20,
    "allocated": 0
  }
}
curl -X GET https://api.moltin.com/v2/inventories/:productId \
     -H "Authorization: Bearer XXXX"

Last updated