AlmondTill/G3N API

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

FieldTypeNotes
idID ID!The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it.
sysIdString String!The human-readable id, shaped like AG-… — stable for the record’s life.
typeString String!The kind of record — always AgentChannel here.
captionString String!The record’s display name — what people see it called.
statusString String!The record’s current state — one of draft, live, paused or doomed.
parentIdID ID!The parent Organization; rootId = the org group; parentId!== rootId always.
rootIdID ID!The id of your organization group — every record of yours carries the same one.
createdAtString String!When the record was created, as a UTC timestamp.
updatedAtString String!When the record last changed, as a UTC timestamp.
revisionNumInt Int!How many times this record has been edited; the first save is 0.
revisionID 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.
refCaptionsRefCaption [RefCaption!]!The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption.
logicalFacilityIdID 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.
pickupLogicalFacilityIdsID [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.
shipToCountriesString [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.
collectionIdsID [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.
divisionIdIDWhat — an optional channel-type Division framing the agent channel; null = unframed.
showStockLevelsBoolean Boolean!What — whether agents read stock figures (true) or only in/out of stock (false — the strict default).
excludedVariantIdsID [ID!]!What — the hand veto list: Variants never listed whatever their Collections say (0..200, distinct, each in-tenant); replaces wholesale.
priceListIdIDPrices — 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.
allowDiscountCodesBoolean 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.
maxCheckoutTotalMinorIntPrices — 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.
fulfillmentMethodsAgentChannelFulfillmentMethod [AgentChannelFulfillmentMethod!]!FULFILLMENT — the offered methods (ship · pickup_instore · pickup_curbside; distinct); empty = the channel cannot complete a checkout (publish refuses).
shippingOptionsAgentChannelShippingOption [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.
handlingDaysInt Int!FULFILLMENT — handling days before a shipment leaves (0..30; default 0).
requireBuyerEmailBoolean Boolean!Payments — the buyer must give an email before completing (strict default true).
requireBuyerPhoneBoolean Boolean!Payments — the buyer must give a phone number before completing (default false).
allowedPlatformsAgentChannelPlatform [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.
rateClassAgentChannelRateClass AgentChannelRateClass!Platforms — the canned request-rate class granted to platforms (low · normal · high; default normal).
consentDefaultsAgentChannelConsentDefaults AgentChannelConsentDefaults!Consent — the UCP buyer_consent defaults the channel proposes (marketing · analytics · preferences · sale_or_sharing); strict default all false.
returnPolicyStringPolicies — the return policy text (at most 2000 characters), published in the profile’s policies; null = none published.
warrantyPolicyStringPolicies — the warranty policy text (at most 2000 characters), published in the profile’s policies; null = none published.
checkoutTtlMinutesInt 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.
identityLinkingBoolean 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.
requireLinkedBuyerBoolean 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.
signingKeysAgentChannelSigningKey [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.

Used by