{"openapi":"3.1.0","info":{"title":"Warehouse Bin Move Audit","version":"1.0.0","description":"Replay SKU movements between bins and flag transfers that cannot be supported by the starting stock.","contact":{"email":"jeremy@jeremycarter.ca"}},"servers":[{"url":"https://gptenv-x402-catalog.defcronyke.workers.dev"}],"paths":{"/warehouse-bin-move-audit/v1/check":{"post":{"operationId":"warehouse_bin_move_audit","summary":"Replay SKU movements between bins and flag transfers that cannot be supported by the starting stock.","x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.04"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"stock":{"maxItems":300,"type":"array","items":{"type":"object","properties":{"bin":{"type":"string","minLength":1,"maxLength":80},"sku":{"type":"string","minLength":1,"maxLength":80},"units":{"type":"integer","minimum":0,"maximum":100000000}},"required":["bin","sku","units"],"additionalProperties":false}},"moves":{"maxItems":300,"type":"array","items":{"type":"object","properties":{"from":{"type":"string","minLength":1,"maxLength":80},"to":{"type":"string","minLength":1,"maxLength":80},"sku":{"type":"string","minLength":1,"maxLength":80},"units":{"type":"integer","exclusiveMinimum":0,"maximum":100000000}},"required":["from","to","sku","units"],"additionalProperties":false}}},"required":["stock","moves"],"additionalProperties":false},"example":{"stock":[{"bin":"A","sku":"p","units":10}],"moves":[{"from":"A","to":"B","sku":"p","units":6},{"from":"A","to":"C","sku":"p","units":7}]}}}},"responses":{"200":{"description":"Service result","content":{"application/json":{"schema":{"type":"object"},"example":{"accepted":1,"rejected":[{"line":1,"available":4}],"stock":[{"bin":"A","sku":"p","units":4},{"bin":"B","sku":"p","units":6}]}}}},"400":{"description":"Invalid request"},"402":{"description":"x402 exact payment required on Base"},"503":{"description":"Payment unavailable"}}}}}}