Run checks in your integration
Continue only when the checker exits with code 0. Code 2 blocks a record for review; code 1 means the check failed. Your workflow controls the write.
Inventory integration · Setup guide
Preview a record, approve its mapping and freshness rule, then check every update before your integration writes. The preview runs locally in your browser.
Choose a source
Select a sample to see how its fields map into the inventory rule.
Run the checker with Node.js 20 or newer on your own computer or integration server. Credentials stay on that machine; the checker reads a record and does not change stock.
Download the standalone inventory checker, then export the variables for your selected source:
After approving the rule, save it beside the checker and run node inventory-check.mjs inventory-rule.json. For a JSON file, append its path. The store adapter records when it reads the item.
Try a local preview
Adjust the sample or paste a record. Nothing is sent to your store.
The selected source determines which SKU and stock fields are checked.
Put the rule to work
Previewing is free and local. Choose a next step when you are ready.
Continue only when the checker exits with code 0. Code 2 blocks a record for review; code 1 means the check failed. Your workflow controls the write.
Download a request for this passing record. A wallet-enabled client can inspect the 402 challenge and authorize up to $0.01 USDC for this call.
Read payment instructionsRun the approved rule on each inventory event, then send the normalized record to a workspace policy before your application writes.
Set up a workspace policy Integration guide