# agentChannelCatalogProduct

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

## What it does

One listed product as an agent sees it in full — its variants narrowed by chosen options, each option value marked available or not.

THE AGENT CATALOG — product detail: one identifier (product · variant · SKU · barcode) → the listed product with its variants narrowed by the effective selections (a variant identifier fixes them; else the request's selected, relaxed from the END of preferences until a variant matches), every option value marked available/exists relative to them. product is null when nothing listed matches. The same principal law as the search.

## What happens

Reads only.

## 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:agentChannelCatalogProduct`

## Arguments

| Name | Type | Required | Notes |
| --- | --- | --- | --- |
| `agentChannelId` | [ID](/types/#scalars) `ID!` | yes | No further notes. |
| `id` | [String](/types/#scalars) `String!` | yes | The id of the record. |
| `selected` | [AgentCatalogSelectedOptionInput](/types/AgentCatalogSelectedOptionInput/) `[AgentCatalogSelectedOptionInput!]` | no | No further notes. |
| `preferences` | [String](/types/#scalars) `[String!]` | no | No further notes. |

## Returns

[AgentChannelCatalogDetail](/types/AgentChannelCatalogDetail/) `AgentChannelCatalogDetail!` — The agentChannelCatalogProduct answer — null product when the identifier resolves to nothing listed; selected = the effective selections after relaxation; options carry available/exists relative to them.

## Example request

```graphql
query ExampleAgentChannelCatalogProduct($agentChannelId: ID!, $id: String!, $selected: [AgentCatalogSelectedOptionInput!]) {
  agentChannelCatalogProduct(agentChannelId: $agentChannelId, id: $id, selected: $selected) {
    truncated
  }
}
```

Variables:

```json
{
  "agentChannelId": "01900000-0000-7000-8000-d23fae740000",
  "id": "<id>",
  "selected": [
    {
      "name": "Blue jeans",
      "label": "Blue jeans",
      "id": "01900000-0000-7000-8000-37386ae00000"
    }
  ]
}
```

## Example response

```json
{
  "data": {
    "agentChannelCatalogProduct": {
      "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. ([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/))
