AlmondTill/G3N API

verifyInventoryItem

query · in the family 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.

Before you call

A bearer session from an API key (see Authentication and key hygiene) or a signed-in user.

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

Roles that may call it:

What happens

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

Arguments

NameTypeRequiredNotes
inventoryItemIdID ID!yes

Returns

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-ab0d13b80000"
}

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

Used in