Explain a 3PL stock difference
explain_inventory_gapExplain why SKU.io on hand / available differs from the 3PL for one product at one 3PL warehouse, from the latest 3PL inventory comparison. Returns both sides, the difference history and when it started, on-hand stock by source (receipts, transfers, stock takes, returns), open allocations, and findings with units, evidence and a suggested fix: shipment cancelled at the 3PL but open in SKU.io, allocation on a closed line, stock take posted as an adjustment, change made at the 3PL with no SKU.io event (or in SKU.io with none at the 3PL), pack-size mismatch. Requires the inventory.index permission.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | Yes | Exact product SKU. | |
| warehouse | No | 3PL warehouse name or id. Optional when the product is compared in only one 3PL warehouse. |