{"uid":"cap_KcT_wU5ODUb0RYs3ubN2g","slug":"inventory-movement-balance-reconciler-5833f348","name":"Inventory Movement Balance Reconciler","description":"An agent that closes a stock period needs opening balance, signed movements, and closing balance reconciled including transient negative stock.","url":"https://detect.halowerk.com/v1/inventory/inventory-movement-balance?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"artifact":{"type":"object","required":["opening","closing","movements"],"properties":{"closing":{"type":"integer","maximum":1000000000,"minimum":0},"opening":{"type":"integer","maximum":1000000000,"minimum":0},"movements":{"type":"array","items":{"type":"object","required":["delta"],"properties":{"delta":{"type":"integer","maximum":1000000000,"minimum":-1000000000}},"additionalProperties":false},"maxItems":512,"minItems":0}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_jWx_rd3UUO5qmKnmdRTdn","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates that opening balance plus signed inventory movements reconciles to the stated closing balance, flagging any discrepancy including transient negative stock.","exampleAgentPrompt":"Can you verify that our stock period closes correctly? Opening balance is 5000 units, we had movements of +200, -150, +80, -300, and the claimed closing balance is 4830 — does that reconcile, and did stock ever go negative in between?","exampleUseCases":[{"title":"Period-end stock close audit","prompt":"We're closing out the inventory period and need to confirm the books balance. Opening stock was 12000 units, movements were +500, -800, +300, -200, +150, and the system is reporting a closing balance of 11950. Can you verify that reconciles correctly and flag if stock went negative at any point?"},{"title":"Warehouse daily balance check","prompt":"Run a daily inventory reconciliation for me — opening balance 350 units, movements were -50, +200, -180, -40, closing balance reported as 280. Does that check out?"},{"title":"Detecting transient negative stock","prompt":"I need to know if our inventory ever dipped below zero during the last shipment cycle. Opening was 100, then we had movements of -120, +250, -80, and closing is 150 — do those balance and did we go negative at any point?"}],"resultDescription":"Returns a reconciliation verdict indicating whether opening balance plus the sum of all signed movement deltas equals the stated closing balance, along with detection of any transient negative stock states that occurred during the movement sequence.","failureModes":["Closing balance does not match computed sum — reconciliation failure returned","Input values exceed maximum allowed integer bounds (1,000,000,000)","More than 512 movement items submitted — request rejected","Missing required fields (opening, closing, or movements array) — validation error","Movement delta outside allowed range (-1,000,000,000 to 1,000,000,000)"],"whenToPreferThis":"Use this endpoint when you need deterministic, arithmetic verification of inventory period close — specifically when you must reconcile an opening balance through a sequence of signed stock movements to a declared closing balance, and need transient negative stock detection. Prefer this over manual computation when movement lists are long or audit trails require a verifiable external check.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-01T00:49:38.182Z","isFirstParty":false,"canonicalSlug":"inventory-movement-balance-reconciler-5833f348"}