{
  "name": "Protect inventory updates",
  "guide": "https://zorqelio.xyz/integrations/inventory/",
  "platforms": ["shopify","woocommerce","supplier","generic"],
  "runtime": "Node.js 20+",
  "downloads": ["https://zorqelio.xyz/integrations/inventory/check.mjs","https://zorqelio.xyz/integrations/inventory/rules.mjs"],
  "ruleExample": {"platform":"shopify","trimSku":false,"maxAgeSeconds":300},
  "connections": {
    "shopify":{"access":"read_inventory","environment":["STORE_HOST","SHOPIFY_READ_TOKEN","SHOPIFY_INVENTORY_LEVEL_GID"]},
    "woocommerce":{"access":"Read REST key, stock-managed simple product","environment":["STORE_HOST","WOO_READ_KEY","WOO_READ_SECRET","WOO_PRODUCT_ID"]},
    "supplier":{"fields":["item_code","on_hand","observedAt"]},
    "generic":{"fields":["sku","quantity","observedAt"]}
  },
  "steps":["Choose platform and provide a read credential on the customer host or a JSON file","Preview the original and normalized record","Obtain operator approval for the mapping and freshness limit","Run node check.mjs inventory-rule.json for the store or append a JSON file path","Continue only on exit code 0 and a separate authorized workspace decision before a guarded write"],
  "exitCodes":{"0":"Local rule passed","1":"Check failed","2":"Review blocked record"},
  "singlePaidCheck":{"method":"POST","url":"https://zorqelio.xyz/api/x402/v1/inventory-preflight","fields":["sku","quantity","observedAt","minimumQuantity","maxAgeSeconds"],"authorization":"Inspect HTTP 402 challenge. Require approved wallet spending up to 0.01 USDC on Base. Verify settlement before retrying an ambiguous response."},
  "workspace":{"setup":"https://zorqelio.xyz/dashboard/handoffs/","integration":"https://zorqelio.xyz/docs/inventory-integration/"}
}
