AlmondTill/G3N API

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

FieldTypeNotes
orderIdID ID!No further notes.
revisionID ID!No further notes.
revisionNumInt Int!No further notes.
agentChannelIdID ID!No further notes.
organizationIdID ID!No further notes.
platformProfileUrlStringThe platform that opened it — absent on a staff test drive.
consumerIdIDTHE 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.
currencyString String!No further notes.
orderStatusString String!The draft Order's own status (draft · sent · accepted · expired · cancelled).
statusString String!No further notes.
validUntilStringThe session's expiry (the draft's validUntil = birth + the channel's checkout TTL).
linesAgentCheckoutLine [AgentCheckoutLine!]!No further notes.
buyerAgentCheckoutBuyerNo further notes.
consentAgentCheckoutConsent [AgentCheckoutConsent!]!No further notes.
fulfillmentAgentCheckoutFulfillment AgentCheckoutFulfillment!No further notes.
totalsAgentCheckoutTotals AgentCheckoutTotals!No further notes.
discountsAgentCheckoutDiscounts AgentCheckoutDiscounts!The discount extension's view: the codes + the applied discounts; always present on the wire.
messagesAgentCheckoutMessage [AgentCheckoutMessage!]!No further notes.
orderAgentCheckoutOrderRefThe minted sale — present iff status is completed.
paymentAgentCheckoutPaymentThe instrument that paid — display-safe (never a credential); present iff the checkout completed.

Used by