Reserve In Store Developer Docs
  • Introduction
  • Visual Customization
    • HTML/Liquid Templates
    • Email Templates
    • Custom CSS
    • Custom Integration
      • Product Page Button
      • Cart/Global Button
      • Stock Indicator
  • Behavior Customization
    • Javascript API
      • Methods
      • Events
    • Webhooks
    • REST API
      • GET /locations.json
      • GET /inventory.json
      • GET /reservations.json
Powered by GitBook
On this page

Was this helpful?

  1. Behavior Customization
  2. REST API

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.

Inventory

GET https://app.reserveinstore.com/api/v1/inventory.json

Get a map of inventory levels (with words) for each location for the current store.

Query Parameters

Name
Type
Description

product_id

string

ID of the product you want to pull inventory for. This is the platform (Shopify) product ID.

Headers

Name
Type
Description

public_key

string

Your store's public API key.

{
    // 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"
    }
}
null

PreviousGET /locations.jsonNextGET /reservations.json

Last updated 4 years ago

Was this helpful?