---
title: "Retrieve a checkout"
method: GET
path: "/gateway/sessions/{sessionId}"
tags: ["Checkouts"]
---

# Retrieve a checkout

`GET /gateway/sessions/{sessionId}`

## Request

- Base URL: `https://api.agentaos.ai/api/v1`
- URL: `https://api.agentaos.ai/api/v1/gateway/sessions/{sessionId}`
- Auth: API key in header `x-api-key`

Adds a computed `amount` (the effective price: `amount_override`, else the linked payment link's amount), plus the link's own `link_amount`/`link_currency`/`link_description`, and the checkout's `transactions` and `invoices` arrays.

## Path parameters

- `sessionId` string, required

## Response `200`

The checkout, with computed amount and related rows.

- CheckoutDetail
  - `id` string, uuid, required: Internal checkout UUID.
  - `payment_link_id` string, uuid, nullable, required
  - `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, nullable, required
  - `amount_override` number, nullable, required: Set only if you passed amount or amountOverride at create.
  - `currency` string, required
  - `metadata` object, required
  - `webhook_url` string, nullable, required
  - `success_url` string, nullable, required
  - `cancel_url` string, nullable, required
  - `tax_rate_id` string, uuid, nullable, required
  - `supported_networks` string[], required
  - `expires_at` string, date-time, required
  - `status` 'open' | 'completed' | 'expired' | 'cancelled', required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `seller_mode` 'mor' | 'crypto', required
  - `environment` 'test' | 'live', required
  - `checkoutUrl` string, required: Send your buyer here. Computed, camelCase.
  - `invoiceId` string, uuid, nullable: Set once an invoice has been issued for this session; null until then.
  - `invoiceNumber` string, nullable
  - `amount` number, nullable, required: Computed effective price: amount_override, else the linked payment link's amount.
  - `link_amount` number, nullable, required
  - `link_currency` string, nullable, required
  - `link_description` string, nullable, required
  - `transactions` LinkTransactionRow[], required
    - `id` string, uuid, required
    - `direction` 'inbound' | 'outbound', required
    - `status` string, required
    - `amount` number, required
    - `payment_method` string, nullable
    - `created_at` string, date-time, required
  - `invoices` Invoice[], required
    - `id` string, uuid, required
    - `invoice_number` string, required: Human-readable, e.g. INV-2026-0142.
    - `transaction_id` string, uuid, nullable, required: Linked settled transaction, once paid.
    - `session_id` string, nullable, required: Linked checkout.
    - `amount` number, required: Currency units.
    - `currency` string, required
    - `payment_token` string, required: What the buyer paid (or will pay) with.
    - `status` 'issued' | 'paid' | 'voided', required: issued (created, not yet paid), paid (payment settled), or voided.
    - `fiat_amount` number, nullable, required: EUR/USD equivalent, for stablecoin payments.
    - `fiat_currency` 'EUR' | 'USD' | 'null', nullable, required
    - `exchange_rate` number, nullable, required: Rate applied at settlement.
    - `exchange_rate_source` string, nullable, required
    - `tax_rate` number, nullable, required: Applied rate, e.g. 19 for 19%.
    - `tax_amount` number, nullable, required: Currency units.
    - `tax_name` string, nullable, required: e.g. DE VAT.
    - `tax_inclusive` boolean, nullable, required: Whether amount already includes tax.
    - `merchant_name` string, nullable, required: Seller name on the document.
    - `buyer_email` string, nullable, required
    - `buyer_name` string, nullable, required
    - `buyer_company` string, nullable, required
    - `buyer_country` string, nullable, required: ISO 3166-1 alpha-2.
    - `buyer_vat` string, nullable, required
    - `tx_hash` string, nullable, required: On-chain hash, for crypto payments.
    - `issued_at` string, date-time, required
    - `voided_at` string, date-time, nullable, required
    - `created_at` string, date-time, required

## Other responses

- `401`: Missing or invalid `x-api-key`.
- `403`: The key is valid but the resource belongs to a different organization.
- `404`: Resource not found (or not visible to your key; the two are not distinguished).

---

[API](https://skmtc.dev/agentaos/apis/agentaos-gateway-api.md) · [All operations](https://skmtc.dev/agentaos/apis/agentaos-gateway-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agentaos/apis/agentaos-gateway-api/revisions/3a8ad3c6b965?raw)
