# verifyInventoryItem

query · in the family [Reading your records](/reference/reading-your-records/)

## What it does

Reconcile one item’s ledger against its cached balances — “do the books add up?”.

The two-way reconciliation read: recompute the bucket balances from the ACTIVE Stock-Card entries and compare against the II cached balances — the bounded per-II verify (the standing auditor is the catalogued escalation). Since ALSO reconciles the StockRecord shards against the relocate entries and reports the binned/un-binned split. Requires authentication; reads null on a cross-tenant/missing id.

## What happens

Reads and compares two ways; answers consistent or names the difference. Changes nothing.

## Who may call it

Capability area: **Reading your records** — Looking up and listing the records of your organization.

- Owner
- System Administrator
- Manager
- Associate Manager
- Warehouse Associate
- Sales Associate
- An API key whose scope allows `api:verifyInventoryItem`

## Arguments

| Name | Type | Required | Notes |
| --- | --- | --- | --- |
| `inventoryItemId` | [ID](/types/#scalars) `ID!` | yes | No further notes. |

## Returns

[InventoryVerification](/types/InventoryVerification/) — The two-way reconciliation report: the Stock-Card sum per bucket (ACTIVE entries; to minus from) vs the cached balances on the II.

## Example request

```graphql
query ExampleVerifyInventoryItem($inventoryItemId: ID!) {
  verifyInventoryItem(inventoryItemId: $inventoryItemId) {
    entryCount
    consistent
    recordCount
    recordsConsistent
    openTransferReservedQty
    reservedConsistent
  }
}
```

Variables:

```json
{
  "inventoryItemId": "01900000-0000-7000-8000-9307d9650000"
}
```

## Example response

```json
{
  "data": {
    "verifyInventoryItem": {
      "entryCount": 1,
      "consistent": true,
      "recordCount": 1,
      "recordsConsistent": true,
      "openTransferReservedQty": "<open transfer reserved qty>",
      "reservedConsistent": true
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": null,
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}
```

## Errors this call can answer

- `VALIDATION/INVALID` — Something in the request is not valid. ([VALIDATION](/errors/VALIDATION/))
- `AUTHN/REQUIRED` — Sign in to do this. ([AUTHN](/errors/AUTHN/))
- `AUTHZ/FORBIDDEN` — Your role does not allow this action. ([AUTHZ](/errors/AUTHZ/))
- `RATE_LIMIT/THROTTLED` — Too many requests in a short time. ([RATE_LIMIT](/errors/RATE_LIMIT/))
- `NOT_FOUND/*` — That record could not be found. ([NOT_FOUND](/errors/NOT_FOUND/))

## Used in

- [Stock an item at a location](/use-cases/stock-an-item-at-a-location/)
