Retrieve a checkout
Adds a computed amount (the effective price: amount_override, else the linked payment link’s amount) and charged (what this checkout actually took, off the transaction it booked — a different figure whenever an intro price or a discount is involved), plus the link’s own link_amount/link_currency/link_description, and the checkout’s transactions and invoices arrays.
Authorizations
Your secret key, from app.agentaos.ai -> Settings -> Developers -> API Keys. The key's prefix is both its identity and its environment: sk_test_... (sandbox, free, no verification) or sk_live_... (real money, requires business verification). A missing or invalid key returns 401.
Path Parameters
The public session_id (not the internal id UUID).
Response
The checkout, with computed amount and related rows.
Internal checkout UUID.
Public ID, used in the checkout URL and as the path parameter for every other call on this resource.
Set only if you passed amount or amountOverride at create.
open, completed, expired, cancelled mor, crypto test, live Send your buyer here. Computed, camelCase.
Computed effective price: amount_override, else the linked payment link's amount.
The invoice issued with this checkout. Only in the response to POST /gateway/sessions, and absent when no invoice was issued.
That invoice's number. Only in the response to POST /gateway/sessions, and absent when no invoice was issued.
Agent-to-agent payment URL via the x402 protocol. Computed, camelCase. Most integrations can ignore it.
The checkout's own line text, when it was created with one. Otherwise the product's description applies.
The reference the buyer puts on a bank transfer to this checkout. Null until a bank transfer is chosen.
List only (GET /gateway/sessions): the product's amount, currency and description. Null for a checkout with no product.
What this checkout ACTUALLY took, read off the transaction the payment booked. Not the same figure as amount above, which is the plan's list price: a subscription sold with an intro price charges the intro price today and the full price at renewal, and a discount code moves it again. Every value is an integer count of minor units in currency. Null when nothing was charged, which is what a trial with no intro price looks like — a card on file and no payment to describe.
The refund request on this sale, if one was made. Refunds are two steps: you ask, AgentaOS refunds the buyer in full or declines with a note. Null when nobody asked.
The sale you may still ask to refund — pass it to POST /gateway/transactions/{id}/refund-request. Null once a request exists, and when the sale cannot be refunded (already refunded, disputed, or not a card sale AgentaOS was merchant of record for).