AlmondTill/G3N API

resumeAgentChannel

mutation · in the family Agent channel

What it does

Put a paused agent channel back live — the configuration re-checks first.

Resume a paused AgentChannel: the completeness rule re-runs record-aware (something referenced may have gone missing or inactive while paused — the resume refuses rather than serving a broken channel).

Before you call

A bearer session from an API key (see Authentication and key hygiene) or a signed-in user.

Capability area: System and integration setup — Registers, connections and the settings your systems run on.

Roles that may call it:

Careful

Refused if something referenced went missing or inactive while paused, or the channel can no longer sell.

Arguments

NameTypeRequiredNotes
idID ID!yesThe id of the record.
revisionID ID!yesThe revision id you read on the record; the change is refused if an edit landed in the meantime.
reasonStringno

Concurrency

Send the record’s current revision from your last read as revision. A stale revision is refused as CONFLICT/REVISION_STALE — read the record again and retry with the new value.

Returns

AgentChannel AgentChannel! — 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.

Example request

graphql
mutation ExampleResumeAgentChannel($id: ID!, $revision: ID!, $reason: String) {
  resumeAgentChannel(id: $id, revision: $revision, reason: $reason) {
    id
    sysId
    type
    caption
    status
    parentId
    rootId
    createdAt
    updatedAt
    revisionNum
    revision
    logicalFacilityId
    pickupLogicalFacilityIds
    shipToCountries
    collectionIds
    divisionId
    showStockLevels
    excludedVariantIds
    priceListId
    allowDiscountCodes
    maxCheckoutTotalMinor
    fulfillmentMethods
    handlingDays
    requireBuyerEmail
    requireBuyerPhone
    rateClass
    returnPolicy
    warrantyPolicy
    checkoutTtlMinutes
    identityLinking
    requireLinkedBuyer
  }
}

Variables:

json
{
  "id": "01900000-0000-7000-8000-57592a610000",
  "revision": "01900000-0000-7000-8000-b7960e180000",
  "reason": "Correcting a miscount."
}

Send it with the envelope naming the version: "extensions": {"at": {"version": {"name":"genesis","number":0}}}.

Example response

json
{
  "data": {
    "resumeAgentChannel": {
      "id": "01900000-0000-7000-8000-57592a610000",
      "sysId": "AG-EXMP-0000-000F",
      "type": "AgentChannel",
      "caption": "Blue jeans",
      "status": "live",
      "parentId": "01900000-0000-7000-8000-eacdfcfd0000",
      "rootId": "01900000-0000-7000-8000-a1295a650000",
      "createdAt": "2027-01-31T00:00:00.000Z",
      "updatedAt": "2027-01-31T00:00:00.000Z",
      "revisionNum": 1,
      "revision": "01900000-0000-7000-8000-53c6eea90000",
      "logicalFacilityId": "01900000-0000-7000-8000-10c08c590000",
      "pickupLogicalFacilityIds": [
        "01900000-0000-7000-8000-515e4f390000"
      ],
      "shipToCountries": [
        "<ship to countries>"
      ],
      "collectionIds": [
        "01900000-0000-7000-8000-66cfa8b10000"
      ],
      "divisionId": "01900000-0000-7000-8000-a5e990060000",
      "showStockLevels": true,
      "excludedVariantIds": [
        "01900000-0000-7000-8000-93ddfd180000"
      ],
      "priceListId": "01900000-0000-7000-8000-41fd9d260000",
      "allowDiscountCodes": true,
      "maxCheckoutTotalMinor": 1250,
      "fulfillmentMethods": [
        "ship"
      ],
      "handlingDays": 1,
      "requireBuyerEmail": true,
      "requireBuyerPhone": true,
      "rateClass": "low",
      "returnPolicy": "<return policy>",
      "warrantyPolicy": "<warranty policy>",
      "checkoutTtlMinutes": 1,
      "identityLinking": true,
      "requireLinkedBuyer": true
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": {
          "name": "genesis",
          "number": 0
        },
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

Errors this call can answer