Skip to main content
GET
Retrieve an invoice

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

invoiceId
string<uuid>
required

Invoice UUID.

Response

The invoice, with its earnings breakdown.

id
string<uuid>
required
invoice_number
string
required

Human-readable, e.g. INV-2026-0142.

transaction_id
string<uuid> | null
required

Linked settled transaction, once paid.

session_id
string | null
required

Linked checkout.

amount
number
required

Currency units.

currency
string
required
payment_token
string
required

What the buyer paid (or will pay) with.

status
enum<string>
required

issued (created, not yet paid), paid (payment settled), or voided.

Available options:
issued,
paid,
voided
fiat_amount
number | null
required

EUR/USD equivalent, for stablecoin payments.

fiat_currency
enum<string> | null
required
Available options:
EUR,
USD,
null
exchange_rate
number | null
required

Rate applied at settlement.

exchange_rate_source
string | null
required
tax_rate
number | null
required

Applied rate, e.g. 19 for 19%.

tax_amount
number | null
required

Currency units.

tax_name
string | null
required

e.g. DE VAT.

tax_inclusive
boolean | null
required

Whether amount already includes tax.

merchant_name
string | null
required

Seller name on the document.

buyer_email
string | null
required
buyer_name
string | null
required
buyer_company
string | null
required
buyer_country
string | null
required

ISO 3166-1 alpha-2.

buyer_vat
string | null
required
tx_hash
string | null
required

On-chain hash, for crypto payments.

issued_at
string<date-time>
required
voided_at
string<date-time> | null
required
created_at
string<date-time>
required
earnings
object | null
required

Present only for a card/bank Merchant-of-Record sale with a linked, settled transaction. null otherwise.

resolved_amount
number

List rows only (GET /gateway/invoices). The render-ready gross to display: the linked capture's settled earnings when one is available in the invoice's own fiat currency, else fiat_amount, else amount. Already resolved server-side -- never recompute this.

resolved_currency
string

List rows only. Currency for resolved_amount.

org_id
string<uuid>

The business that issued the invoice.

environment
enum<string>

The mode the invoice was issued in.

Available options:
test,
live
customer_id
string<uuid> | null

The buyer's customer record, when there is one.

subscription_id
string<uuid> | null

The subscription this invoice bills, when it bills one.

description
string | null

The line text of the invoice.

due_date
string | null

The due date the merchant set, when they set one.

paid_at
string<date-time> | null

When the invoice was paid. Null while unpaid.

receipt_number
string | null

The receipt number, once a receipt was issued.

receipt_issued_at
string<date-time> | null

When the receipt was issued.

seller_of_record
enum<string> | null

aristokrates_ou when AgentaOS sold as merchant of record; merchant when the business sold directly.

Available options:
merchant,
aristokrates_ou,
null
payment_method
string | null

How the buyer paid, for example card or bank_transfer.

payment_method_brand
string | null

The card brand, for a card payment.

payment_method_last4
string | null

The last 4 digits of the card, for a card payment.

tax_exemption_reason
string | null

Why no VAT was charged (reverse charge, out of scope), when none was.

buyer_address
string | null

The buyer's address as it prints on the invoice.

merchant_address
string | null

The business's address as it prints on the invoice.

merchant_vat
string | null

The business's VAT number as it prints on the invoice.

merchant_wallet
string | null

For a crypto invoice: the business's receiving wallet.

payer_address
string | null

For a crypto payment: the payer's wallet.

payer_metadata
object | null

Who the invoice is for. On an invoice the business created, the bill-to details it entered (for example name, email). On an invoice for a bank-transfer payment, what the payment carried: the payer's name and bank account (iban).

network
string | null

For a crypto invoice: the chain.

chain_id
integer | null

For a crypto invoice: the chain id.

token_address
string | null

For a crypto invoice: the token contract address.

exchange_rate_at
string<date-time> | null

When exchange_rate was taken.

dispute
object | null

The dispute state of the sale behind this invoice, derived on every read. The date is disputedAt on the list and disputed_at on a retrieved invoice.

amounts
object

The amounts the invoice PDF and the receipt print, in currency units. Render these; do not recompute them.