Skip to content
Checkout: public page
GET/v0/checkout/{invoiceId}

Fetch the public checkout view

What the payer is shown: the price, the merchant’s name and theme, the status and the active attempt. Readable with the invoice ID alone, which carries 22+ characters of randomness, so it never returns the merchant’s settlement address or net amount.

The invoice’s client secret, in the x-client-secret header. It reaches this one invoice’s public endpoints and nothing else, and expires with the invoice.

  • invoiceIdRequired · path
  • 200The public view of the invoice
curl
curl https://api.intents.fi/v0/checkout/inv_3QkR7mVt9zLpXdB2hJn6Yw \
-H 'x-client-secret: $CLIENT_SECRET'
TypeScript
const response = await fetch("https://api.intents.fi/v0/checkout/inv_3QkR7mVt9zLpXdB2hJn6Yw", {
method: "GET",
headers: {
"x-client-secret": clientSecret,
},
});
if (!response.ok) {
const { error } = await response.json();
throw new Error(`${error.code}: ${error.message}`);
}
const data = await response.json();
Python
import httpx
response = httpx.get(
"https://api.intents.fi/v0/checkout/inv_3QkR7mVt9zLpXdB2hJn6Yw",
headers={"x-client-secret": client_secret},
)
response.raise_for_status()
data = response.json()
{ "error": { "code": "INVOICE_EXPIRED", "message": "This invoice has expired" } }

Switch on code, not on the message: every code has a page under Error codes. Base URL https://api.intents.fi; the whole reference is on one page.