AlmondTill/G3N API

agentChannelCheckout

query · in the family Reading your records

What it does

Read one agent checkout as the platform sees it — the lines, the quote, the delivery options, the status and its messages.

The agent checkout — read: one agent checkout's quote view at NOW. The agent_platform principal reads its OWN channel's checkouts opened by ITS platform (any other → the uniform NOT_FOUND); staff (read) read any checkout of their group's channels. A checkout of another channel, another platform, or an Order that is not an agent checkout is the same uniform NOT_FOUND.

Before you call

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

Capability area: Reading your records — Looking up and listing the records of your organization.

Roles that may call it:

What happens

Reads only.

Arguments

NameTypeRequiredNotes
agentChannelIdID ID!yes
orderIdID ID!yes
linkedConsumerIdIDno

Returns

AgentCheckout AgentCheckout! — The agent checkout view: the draft Order as a UCP checkout session at NOW — status ∈ incomplete | requires_escalation | ready_for_complete | complete_in_progress | completed | canceled (the status rule) over its lines, buyer, consent, fulfillment offer, totals, discounts and messages.

Example request

graphql
query ExampleAgentChannelCheckout($agentChannelId: ID!, $orderId: ID!, $linkedConsumerId: ID) {
  agentChannelCheckout(agentChannelId: $agentChannelId, orderId: $orderId, linkedConsumerId: $linkedConsumerId) {
    orderId
    revision
    revisionNum
    agentChannelId
    organizationId
    platformProfileUrl
    consumerId
    currency
    orderStatus
    status
    validUntil
  }
}

Variables:

json
{
  "agentChannelId": "01900000-0000-7000-8000-57592a610000",
  "orderId": "01900000-0000-7000-8000-18e782370000",
  "linkedConsumerId": "01900000-0000-7000-8000-459fd9ac0000"
}

Example response

json
{
  "data": {
    "agentChannelCheckout": {
      "orderId": "01900000-0000-7000-8000-18e782370000",
      "revision": "01900000-0000-7000-8000-53c6eea90000",
      "revisionNum": 1,
      "agentChannelId": "01900000-0000-7000-8000-57592a610000",
      "organizationId": "01900000-0000-7000-8000-1971e30a0000",
      "platformProfileUrl": "https://example.com/hook",
      "consumerId": "01900000-0000-7000-8000-3cbb3ce90000",
      "currency": "USD",
      "orderStatus": "<order status>",
      "status": "<status>",
      "validUntil": "<valid until>"
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": null,
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

Errors this call can answer