Skip to content
Sections · Stock

API reference

Stock

Live on-hand, reserved and available quantities.

Endpoints

Paths are relative to https://your-workspace.reevio.app/api/public/v1. Every call needs a bearer token holding the scope shown.

The stock level object

  • productobject

    The product.

    Fields: id, sku, barcode, name · details

  • warehouseobject

    The warehouse holding the stock.

    Fields: id, name · details

  • on_handstring (decimal)

    Quantity physically in the warehouse.

  • reservedstring (decimal)

    Quantity held by orders and reservations still in force.

  • availablestring (decimal)

    What can still be sold here: on_hand minus reserved, never below zero, and 0 where the warehouse does not count as available stock.

  • is_counted_as_availableboolean

    False for warehouses kept out of available stock (quarantine, damaged goods and the like).

Example
{
  "product": {
    "id": "01K2ZQ7M4X8N6P3R9T5V7W1Y2A",
    "sku": "TEA-500",
    "barcode": "6260000000017",
    "name": "Black tea 500 g"
  },
  "warehouse": {
    "id": "01K2ZQ7M4X8N6P3R9T5V7W1Y2A",
    "name": "Main warehouse"
  },
  "on_hand": "2.0000",
  "reserved": "2.0000",
  "available": "2.0000",
  "is_counted_as_available": true
}

Current stock per product and warehouse

GET/stock-levels

Scope inventory.stock_levels.read

A live snapshot, one row per product × warehouse with stock or holds. There is no updated_since: stock holds change and expire without touching any row a sync could watch. Poll, filtered by the products you care about.

available = on_hand − reserved, floored at zero, counted only in warehouses that allow sales reservations. A warehouse excluded from available stock shows its on_hand with available "0" and is_counted_as_available: false.

Filters

  • product_idlist of strings (id)

    Up to 100 product ids, comma-separated.

  • skustring

    Only this SKU.

  • warehouse_idstring (id)

    Only this warehouse, by id.

Returns

Returns a list of stock level objects, a page at a time.

curl "https://your-workspace.reevio.app/api/public/v1/stock-levels" \
  -H "Authorization: Bearer $REEVIO_TOKEN"
Response
{
  "data": [
    {
      "product": {
        "id": "01K2ZQ7M4X8N6P3R9T5V7W1Y2A",
        "sku": "TEA-500",
        "barcode": "6260000000017",
        "name": "Black tea 500 g"
      },
      "warehouse": {
        "id": "01K2ZQ7M4X8N6P3R9T5V7W1Y2A",
        "name": "Main warehouse"
      },
      "on_hand": "2.0000",
      "reserved": "2.0000",
      "available": "2.0000",
      "is_counted_as_available": true
    }
  ],
  "meta": {
    "page_size": 50,
    "has_more": false,
    "next_page_cursor": null
  }
}