GET /inventory.json

Get the inventory tables for a given product so you know if it is in stock, out of stock or low in stock.

get
Inventory

https://api.reserveinstore.com/api/v1/inventory.json
Get a map of inventory levels (with words) for each location for the current store.
Request
Response
Request
Headers
public_key
required
string
Your store's public API key.
Query Parameters
product_id
required
string
ID of the product you want to pull inventory for. This is the platform (Shopify) product ID.
Response
200: OK
Product found, displays inventory locations
{
// The first key up here is the variant_id
"14390604038197": {
// The second key is the platform_location_id (Shopify's location ID).
"39779853": "low_stock", // This will either be low_stock, in_stock or out_of_stock
"9879289909": "in_stock",
"9879322677": "in_stock",
"9879355445": "in_stock"
},
"14390604070965": {
"39779853": "low_stock",
"9879289909": "in_stock",
"9879322677": "in_stock",
"9879355445": "in_stock"
},
"14390604136501": {
"39779853": "out_of_stock",
"9879289909": "in_stock",
"9879322677": "out_of_stock",
"9879355445": "out_of_stock"
}
}
404: Not Found
Product not found.
null

‚Äč