AlmondTill/G3N API

NewAgentChannelInput

input type

Create-input for an AgentChannel. The tenant (org group) derives SERVER-SIDE from the principal; organizationId (the parent) is tenant-scoped server-side and must be ACTIVE; the referenced records gate record-aware IN THE KIT. Every control is optional — an omitted control takes its strict default (nothing listed · no shipping · no pickup · no platforms · stock hidden · codes off · consent all false · email required · normal rate · 6 h).

Fields

FieldTypeRequiredNotes
captionStringnoOptional: when omitted the per-type default applies — the owning organization’s name + ' agent channel'; when supplied it must be non-blank.
organizationIdID ID!yesThe parent Organization (whose channel this is) — tenant-scoped + ACTIVE; exactly one channel per org. Immutable after birth.
logicalFacilityIdID ID!yesThe selling location — tenant-scoped + ACTIVE.
pickupLogicalFacilityIdsID [ID!]noPickup locations (0..16, distinct, each ACTIVE); omitted =.
shipToCountriesString [String!]noShip-to countries (ISO alpha-2 uppercase; 0..64, distinct); omitted = (no shipping).
collectionIdsID [ID!]noThe listed collections (0..24, distinct, each ACTIVE); omitted = (nothing listed).
divisionIdIDnoThe optional CHANNEL-type division (ACTIVE + channel-kind — a different kind refuses).
showStockLevelsBooleannoShow stock figures to agents; omitted = false.
excludedVariantIdsID [ID!]noVariants never listed (0..200, distinct, in-tenant); omitted =.
priceListIdIDnoThe optional agent price list (ACTIVE; selected for the owning organization; unscoped).
allowDiscountCodesBooleannoAccept discount codes from agents; omitted = false.
maxCheckoutTotalMinorIntnoThe optional single-checkout cap in minor units (≥ 1).
fulfillmentMethodsAgentChannelFulfillmentMethod [AgentChannelFulfillmentMethod!]noThe offered methods (distinct); omitted = (publish then refuses until set).
shippingOptionsAgentChannelShippingOptionInput [AgentChannelShippingOptionInput!]noThe flat-rate shipping cards (0..16, ids unique); omitted =.
handlingDaysIntnoHandling days (0..30); omitted = 0.
requireBuyerEmailBooleannoRequire the buyer’s email; omitted = true.
requireBuyerPhoneBooleannoRequire the buyer’s phone; omitted = false.
allowedPlatformsAgentChannelPlatformInput [AgentChannelPlatformInput!]noThe pre-approved platforms (0..16, profile URLs unique, https); omitted = (every platform refused).
rateClassAgentChannelRateClassnoThe request-rate class; omitted = normal.
consentDefaultsAgentChannelConsentDefaultsInputnoThe buyer_consent defaults; omitted = all false.
returnPolicyStringnoThe return policy text (at most 2000 characters).
warrantyPolicyStringnoThe warranty policy text (at most 2000 characters).
checkoutTtlMinutesIntnoThe checkout window (15..1440 minutes); omitted = 360.
identityLinkingBooleannoAdvertise buyer account linking; omitted = false.
requireLinkedBuyerBooleannoRequire a signed-in (linked) buyer for every checkout and order operation; omitted = false.

Used by