Commerce
Inventory
Track and adjust inventory levels for products and variants. Supports atomic increment/decrement operations and reservation holds.
Get inventory
GET
/modules/commerce/inventory/{inventory_id}
Retrieve a single inventory record.
curl
curl https://api.saasignal.saastemly.com/modules/commerce/inventory/{inventory_id} \
-H "Authorization: Bearer sk_live_..."
json — 200 OK
{ "status": "ok" }
Path param
Type
Description
inventory_id requiredstring
Error responses
401 Unauthorized
402 Insufficient tokens
404 Not found
429 Rate limited
Update inventory
PATCH
/modules/commerce/inventory/{inventory_id}
Update inventory quantity or incoming.
curl
curl -X PATCH https://api.saasignal.saastemly.com/modules/commerce/inventory/{inventory_id} \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-d '{}'
json — 200 OK
{ "status": "ok" }
Path param
Type
Description
inventory_id requiredstring
Body field
Type
Description
quantityinteger
range ≥-9007199254740991 .. ≤9007199254740991
incominginteger
range ≥-9007199254740991 .. ≤9007199254740991
Error responses
401 Unauthorized
402 Insufficient tokens
404 Not found
429 Rate limited
Adjust inventory
POST
/modules/commerce/inventory/{inventory_id}/adjust
Adjust inventory by a delta amount.
curl
curl -X POST https://api.saasignal.saastemly.com/modules/commerce/inventory/{inventory_id}/adjust \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-d '{"adjustment":1}'
json — 200 OK
{ "status": "ok" }
Path param
Type
Description
inventory_id requiredstring
Body field
Type
Description
adjustment requiredinteger
range ≥-9007199254740991 .. ≤9007199254740991
reasonstring
Error responses
401 Unauthorized
402 Insufficient tokens
404 Not found
422 Unprocessable entity
429 Rate limited
List inventory
GET
/modules/commerce/inventory
List inventory records.
curl
curl https://api.saasignal.saastemly.com/modules/commerce/inventory \
-H "Authorization: Bearer sk_live_..."
json — 200 OK
{ "status": "ok" }
Query param
Type
Description
product_idstring
low_stock_onlyboolean
limitinteger
range ≥1 .. ≤100default
25cursorstring
Error responses
401 Unauthorized
402 Insufficient tokens
429 Rate limited