resolveIdentifier
query · in the family Reading your records
What it does
Scan lookup — which variant does this barcode belong to?
The locked resolution: current + ledgered values as ONE namespace per kind — a historical match still resolves to its variant (outdated-flagged); ALL matches, most-recent-first. organizationId required for plu/gtin, refused for sku. Zero matches → NOT_FOUND/IDENTIFIER. Requires authentication.
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:
- Owner
- System Administrator
- Manager
- Associate Manager
- Warehouse Associate
- Sales Associate
- Cashier
- An API key whose scope allows
api:resolveIdentifier
What happens
Reads only — the till’s scan path.
Arguments
Returns
IdentifierResolutionMatch [IdentifierResolutionMatch!]! — One resolution hit: the ledgered entry + its hydrated bearer Variant + the current/outdated flag.
Example request
query ExampleResolveIdentifier($kind: String!, $value: String!, $organizationId: ID) {
resolveIdentifier(kind: $kind, value: $value, organizationId: $organizationId) {
current
}
}Variables:
{
"kind": "<kind>",
"value": "<value>",
"organizationId": "01900000-0000-7000-8000-1971e30a0000"
}Example response
{
"data": {
"resolveIdentifier": [
{
"current": 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. Retry: no. (VALIDATION)AUTHN/REQUIRED— Sign in to do this. Retry: no. (AUTHN)AUTHZ/FORBIDDEN— Your role does not allow this action. Retry: no. (AUTHZ)RATE_LIMIT/THROTTLED— Too many requests in a short time. Retry: yes. (RATE_LIMIT)NOT_FOUND/*— That record could not be found. Retry: no. (NOT_FOUND)