Skip to main content
GET
Retrieve a checkout

Authorizations

x-api-key
string
header
required

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

sessionId
string
required

The public session_id (not the internal id UUID).

Response

The checkout, with computed amount and related rows.

id
string<uuid>
required

Internal checkout UUID.

org_id
string<uuid>
required
session_id
string
required

Public ID, used in the checkout URL and as the path parameter for every other call on this resource.

idempotency_key
string | null
required
amount_override
number | null
required

Set only if you passed amount or amountOverride at create.

currency
string
required
metadata
object
required
webhook_url
string | null
required
success_url
string | null
required
cancel_url
string | null
required
tax_rate_id
string<uuid> | null
required
supported_networks
string[]
required
expires_at
string<date-time>
required
status
enum<string>
required
Available options:
open,
completed,
expired,
cancelled
created_at
string<date-time>
required
updated_at
string<date-time>
required
seller_mode
enum<string>
required
Available options:
mor,
crypto
environment
enum<string>
required
Available options:
test,
live
checkoutUrl
string
required

Send your buyer here. Computed, camelCase.

amount
number | null
required

Computed effective price: amount_override, else the linked payment link's amount.

transactions
object[]
required
invoices
object[]
required
invoiceId
string<uuid> | null

The invoice issued with this checkout. Only in the response to POST /gateway/sessions, and absent when no invoice was issued.

invoiceNumber
string | null

That invoice's number. Only in the response to POST /gateway/sessions, and absent when no invoice was issued.

x402Url
string

Agent-to-agent payment URL via the x402 protocol. Computed, camelCase. Most integrations can ignore it.

description
string | null

The checkout's own line text, when it was created with one. Otherwise the product's description applies.

sepa_reference
string | null

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.

charged
object | null

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.

refundRequest
object | null

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.

refundableCaptureId
string | null

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).