AgentChannel
object type
An AgentChannel — the merchant’s controls over the agentic-commerce channel: exactly ONE record per Organization that says what an AI shopping agent may sell over the open Universal Commerce Protocol and HOW — the selling location (prices · stock · tax origin), the listed Collections (empty = nothing listed), an optional agent price plane (a PriceList), discount codes on/off, a checkout cap, the fulfillment methods + flat-rate shipping cards + ship-to countries + pickup locations, the buyer facts required, the pre-approved agent platforms (empty = every platform refused), the buyer-consent defaults, the return/warranty policy texts, the checkout session TTL, and the platform-minted signing keys (the public halves — the private halves live in the credential store, never on the wire). Lifecycle draft → live → paused → live | doomed: publish and resume run the completeness rule record-aware (the channel must be able to sell); pause withholds the channel (agents read unavailable + Retry-After); a live channel never dooms in one step (pause first); doom releases the one-per-org marker so the organization may start over. The protocol doors (the profile, the catalog, the checkout — onward) read this record; the adapter adds no business rule of its own. Payment handlers are never typed here — the profile derives them from the organization’s connected-account facts.
Fields
| Field | Type | Notes |
|---|---|---|
id | ID ID! | The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it. |
sysId | String String! | The human-readable id, shaped like AG-… — stable for the record’s life. |
type | String String! | The kind of record — always AgentChannel here. |
caption | String String! | The record’s display name — what people see it called. |
status | String String! | The record’s current state — one of draft, live, paused or doomed. |
parentId | ID ID! | The parent Organization; rootId = the org group; parentId!== rootId always. |
rootId | ID ID! | The id of your organization group — every record of yours carries the same one. |
createdAt | String String! | When the record was created, as a UTC timestamp. |
updatedAt | String String! | When the record last changed, as a UTC timestamp. |
revisionNum | Int Int! | How many times this record has been edited; the first save is 0. |
revision | ID ID! | The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten. |
refCaptions | RefCaption [RefCaption!]! | The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption. |
logicalFacilityId | ID ID! | Where — the selling location: the LogicalFacility whose stock, prices and tax origin the channel sells from; in-tenant + active at every write and at publish/resume. |
pickupLogicalFacilityIds | ID [ID!]! | Where — the business locations offered for pickup (0..16, distinct, each in-tenant + active); required non-empty when a pickup method is offered; edits replace the set wholesale. |
shipToCountries | String [String!]! | Where — the ISO 3166-1 alpha-2 countries (uppercase) the channel ships to (0..64, distinct); empty = no shipping (an address outside answers address_undeliverable); required non-empty when ship is offered; replaces wholesale. |
collectionIds | ID [ID!]! | What — the listed Collections: the only listing lever — empty = nothing is listed (publish refuses); replaces wholesale. A non-doomed channel blocks a listed collection’s doom. |
divisionId | ID | What — an optional channel-type Division framing the agent channel; null = unframed. |
showStockLevels | Boolean Boolean! | What — whether agents read stock figures (true) or only in/out of stock (false — the strict default). |
excludedVariantIds | ID [ID!]! | What — the hand veto list: Variants never listed whatever their Collections say (0..200, distinct, each in-tenant); replaces wholesale. |
priceListId | ID | Prices — an optional PriceList as the agent price plane (in-tenant + active + selected for the owning organization + unscoped — a customer-scoped contract list refuses); null = the standing sale prices apply. Explicit prices, never blanket percentages. |
allowDiscountCodes | Boolean Boolean! | Prices — whether agents may present discount codes (the UCP discount extension is advertised only when true; the platform’s own coupon gates still apply). Strict default false. |
maxCheckoutTotalMinor | Int | Prices — an optional cap on a single agent checkout in the organization’s currency minor units (1..2147483647); a checkout over it answers eligibility_invalid; null = no cap. |
fulfillmentMethods | AgentChannelFulfillmentMethod [AgentChannelFulfillmentMethod!]! | FULFILLMENT — the offered methods (ship · pickup_instore · pickup_curbside; distinct); empty = the channel cannot complete a checkout (publish refuses). |
shippingOptions | AgentChannelShippingOption [AgentChannelShippingOption!]! | FULFILLMENT — the flat-rate shipping cards (0..16, ids unique): the merchant’s own words and prices; every card’s countries must be ship-to countries; required non-empty when ship is offered; replaces wholesale. |
handlingDays | Int Int! | FULFILLMENT — handling days before a shipment leaves (0..30; default 0). |
requireBuyerEmail | Boolean Boolean! | Payments — the buyer must give an email before completing (strict default true). |
requireBuyerPhone | Boolean Boolean! | Payments — the buyer must give a phone number before completing (default false). |
allowedPlatforms | AgentChannelPlatform [AgentChannelPlatform!]! | Platforms — the pre-approved agent platform registry (0..16, profile URLs unique): a platform is verified against ITS profile’s signing keys and refused (profile_not_trusted) unless listed and active — empty = every platform refused; publish requires at least one active; replaces wholesale. |
rateClass | AgentChannelRateClass AgentChannelRateClass! | Platforms — the canned request-rate class granted to platforms (low · normal · high; default normal). |
consentDefaults | AgentChannelConsentDefaults AgentChannelConsentDefaults! | Consent — the UCP buyer_consent defaults the channel proposes (marketing · analytics · preferences · sale_or_sharing); strict default all false. |
returnPolicy | String | Policies — the return policy text (at most 2000 characters), published in the profile’s policies; null = none published. |
warrantyPolicy | String | Policies — the warranty policy text (at most 2000 characters), published in the profile’s policies; null = none published. |
checkoutTtlMinutes | Int Int! | Session — how long an agent checkout stays open (15..1440 minutes; default 360 — the spec’s 6 h); the draft order’s validUntil derives from it. |
identityLinking | Boolean Boolean! | Session — whether buyer account linking is advertised: the shop host serves its own OAuth 2.0 endpoints and buyers sign in on the shop’s address to link an assistant; default false. |
requireLinkedBuyer | Boolean Boolean! | Session: whether every checkout and order operation requires a linked buyer (the standard’s members-only posture — an unlinked call answers 401 identity_required); default false = guest checkout stands. |
signingKeys | AgentChannelSigningKey [AgentChannelSigningKey!]! | Engine-stamped — the public signing keys (1..4: the current key + the outgoing keys inside their 7-day grace), published as the profile’s keys; minted at birth, grown by rotateAgentChannelKey, never caller-typed. The private halves live in the credential store. |