Dashboard
How it Works Documentation Quick Start PAPI — Pages & Assets MAPI — Dynamic Data Integrations SAPI — Sessions & Forms MCP Server OpenClaw Skill Tools Deploy Dashboard
Inventory Tracker

Inventory Tracker

⚡ Built-in — Platform Built-in

Manage product stock levels. Check availability, atomically decrement on sale, increment on restock/cancellation, set exact quantities, and generate low-stock reports. Works on papi_product_variants.stock_quantity.

⚡ Built-in — No Setup Required This integration is built into the WebsitePublisher platform. All endpoints are available immediately — no API key needed.

Endpoints (5)

GET check-stock

Check stock levels for a product. Returns all variants with stock_quantity and in_stock boolean. For simple products (1 variant), returns a single item. For variable products, returns all variants — optionally filter by variant_id.

No input parameters required.

POST decrement-stock

Atomically decrease stock after a sale. Race-condition safe: uses WHERE stock_quantity >= qty. Fails with error if insufficient stock. For simple products, variant_id is auto-resolved.

No input parameters required.

POST increment-stock

Increase stock for restock or order cancellation. No upper limit.

No input parameters required.

PUT set-stock

Set stock to an exact quantity. Use for inventory counts or corrections. Cannot set negative values.

No input parameters required.

GET low-stock-report

Get all active product variants with stock at or below threshold. Sorted by stock_quantity ascending (lowest first). Useful for restock alerts.

No input parameters required.

MCP Tool Names

When using this integration through an AI assistant (Claude, ChatGPT, Cursor, etc.), the endpoints are available as MCP tools:

EndpointMCP Tool Name
check-stock inventory-tracker_check_stock
decrement-stock inventory-tracker_decrement_stock
increment-stock inventory-tracker_increment_stock
set-stock inventory-tracker_set_stock
low-stock-report inventory-tracker_low_stock_report
← Back to all integrations