Retrieve an invoice
Same fields as the list, plus earnings: a fee/VAT/net breakdown, present only for a card/bank Merchant-of-Record sale with a linked, settled transaction. null otherwise (crypto sales, or a not-yet-paid issued invoice).
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
Invoice UUID.
Response
The invoice, with its earnings breakdown.
Human-readable, e.g. INV-2026-0142.
Linked settled transaction, once paid.
Linked checkout.
Currency units.
What the buyer paid (or will pay) with.
issued (created, not yet paid), paid (payment settled), or voided.
issued, paid, voided EUR/USD equivalent, for stablecoin payments.
EUR, USD, null Rate applied at settlement.
Applied rate, e.g. 19 for 19%.
Currency units.
e.g. DE VAT.
Whether amount already includes tax.
Seller name on the document.
ISO 3166-1 alpha-2.
On-chain hash, for crypto payments.
Present only for a card/bank Merchant-of-Record sale with a linked, settled transaction. null otherwise.
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.
List rows only. Currency for resolved_amount.
The business that issued the invoice.
The mode the invoice was issued in.
test, live The buyer's customer record, when there is one.
The subscription this invoice bills, when it bills one.
The line text of the invoice.
The due date the merchant set, when they set one.
When the invoice was paid. Null while unpaid.
The receipt number, once a receipt was issued.
When the receipt was issued.
aristokrates_ou when AgentaOS sold as merchant of record; merchant when the business sold directly.
merchant, aristokrates_ou, null How the buyer paid, for example card or bank_transfer.
The card brand, for a card payment.
The last 4 digits of the card, for a card payment.
Why no VAT was charged (reverse charge, out of scope), when none was.
The buyer's address as it prints on the invoice.
The business's address as it prints on the invoice.
The business's VAT number as it prints on the invoice.
For a crypto invoice: the business's receiving wallet.
For a crypto payment: the payer's wallet.
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).
For a crypto invoice: the chain.
For a crypto invoice: the chain id.
For a crypto invoice: the token contract address.
When exchange_rate was taken.
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.
The amounts the invoice PDF and the receipt print, in currency units. Render these; do not recompute them.