# AgentCheckout

object type

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.

## Fields

| Field | Type | Notes |
| --- | --- | --- |
| `orderId` | [ID](/types/#scalars) `ID!` | No further notes. |
| `revision` | [ID](/types/#scalars) `ID!` | No further notes. |
| `revisionNum` | [Int](/types/#scalars) `Int!` | No further notes. |
| `agentChannelId` | [ID](/types/#scalars) `ID!` | No further notes. |
| `organizationId` | [ID](/types/#scalars) `ID!` | No further notes. |
| `platformProfileUrl` | [String](/types/#scalars) | The platform that opened it — absent on a staff test drive. |
| `consumerId` | [ID](/types/#scalars) | THE LINKED BUYER: the Consumer this checkout is stamped with — the platform's user token named them (or a staff test drive did); absent on a guest checkout. |
| `currency` | [String](/types/#scalars) `String!` | No further notes. |
| `orderStatus` | [String](/types/#scalars) `String!` | The draft Order's own status (draft · sent · accepted · expired · cancelled). |
| `status` | [String](/types/#scalars) `String!` | No further notes. |
| `validUntil` | [String](/types/#scalars) | The session's expiry (the draft's validUntil = birth + the channel's checkout TTL). |
| `lines` | [AgentCheckoutLine](/types/AgentCheckoutLine/) `[AgentCheckoutLine!]!` | No further notes. |
| `buyer` | [AgentCheckoutBuyer](/types/AgentCheckoutBuyer/) | No further notes. |
| `consent` | [AgentCheckoutConsent](/types/AgentCheckoutConsent/) `[AgentCheckoutConsent!]!` | No further notes. |
| `fulfillment` | [AgentCheckoutFulfillment](/types/AgentCheckoutFulfillment/) `AgentCheckoutFulfillment!` | No further notes. |
| `totals` | [AgentCheckoutTotals](/types/AgentCheckoutTotals/) `AgentCheckoutTotals!` | No further notes. |
| `discounts` | [AgentCheckoutDiscounts](/types/AgentCheckoutDiscounts/) `AgentCheckoutDiscounts!` | The discount extension's view: the codes + the applied discounts; always present on the wire. |
| `messages` | [AgentCheckoutMessage](/types/AgentCheckoutMessage/) `[AgentCheckoutMessage!]!` | No further notes. |
| `order` | [AgentCheckoutOrderRef](/types/AgentCheckoutOrderRef/) | The minted sale — present iff status is completed. |
| `payment` | [AgentCheckoutPayment](/types/AgentCheckoutPayment/) | The instrument that paid — display-safe (never a credential); present iff the checkout completed. |

## Used by

- [agentChannelCheckout](/reference/reading-your-records/agentChannelCheckout/)
- [agentChannelCheckoutCancel](/reference/selling/agentChannelCheckoutCancel/)
- [agentChannelCheckoutComplete](/reference/selling/agentChannelCheckoutComplete/)
- [agentChannelCheckoutCreate](/reference/selling/agentChannelCheckoutCreate/)
- [agentChannelCheckoutUpdate](/reference/selling/agentChannelCheckoutUpdate/)
