agentChannelCatalogLookup
query · in the family Reading your records
What it does
Resolve product, variant, SKU or barcode identifiers to the listed products an agent would see.
The agent catalog — lookup: resolve up to 50 identifiers (a listed Product id → its featured first variant · a listed Variant id · a listed variant's SKU or barcode → that variant exactly) to listed products whose variants carry inputs; identifiers reaching nothing listed are named in notFound (never an error — the spec's partial-success shape). The same principal law as the search.
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
- An API key whose scope allows
api:agentChannelCatalogLookup
What happens
Reads only. Identifiers that are not listed are named, never an error.
Arguments
Returns
AgentChannelCatalogLookup AgentChannelCatalogLookup! — The agentChannelCatalogLookup answer — every returned variant carries inputs (which identifiers reached it); notFound names the identifiers that resolved to nothing listed (request order).
Example request
query ExampleAgentChannelCatalogLookup($agentChannelId: ID!, $ids: [String!]!) {
agentChannelCatalogLookup(agentChannelId: $agentChannelId, ids: $ids) {
notFound
truncated
}
}Variables:
{
"agentChannelId": "01900000-0000-7000-8000-57592a610000",
"ids": [
"<ids>"
]
}Example response
{
"data": {
"agentChannelCatalogLookup": {
"notFound": [
"<not found>"
],
"truncated": 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)