public

GET /v1/pay/invoices/{token}

An invoice, for the person paying it. Unauthenticated.

All public endpoints

All developer docs →

Authentication

This endpoint is public. It takes no credential and no organisation — it is what our own marketing site and AI answer engines read.

This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.

Try it

Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.

curl -X GET https://api.zinndigital.com/v1/pay/invoices/{token}

Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console

Details

No authentication and no session. The payer may have no account here at all; the capability token in the path is the whole authorisation and it reaches exactly one invoice. Every string in the response is already translated into the recipient's locale — the one stored on the document, not the one of whoever's browser opened the link. The page that renders this holds no copy of its own. Every refusal answers with the same sentence whatever the cause — a wrong token, a draft, a withdrawn or an unknown one. Distinguishing them would confirm to a stranger that a token is real, which is the oracle that makes a capability URL worth sweeping.

Parameters

NameTypeRequiredWhat it is
token (path)stringYes—

Response

NameTypeRequiredWhat it is
referencestringYes—
statusstring<sent, paid>Yes—
currencystringYes—
railsstring[]YesThe payment methods this invoice may be settled on, in the order to show them, and filtered by its currency. Pass the chosen one back as gateway on the checkout call. Never…
issue_datestringYes—
due_datestringNo—
due_date_displaystringNoThe due date in the reader's own convention, already formatted.
buyerobjectYes—
linesobject[]Yes—
subtotalstringYes—
tax_totalstringYes—
totalstringYes—
total_minorintegerNo—
amount_duestringYesZero once paid. Computed, never stored — a page saying money is due beside a Paid badge is the worst thing this can render.
amount_due_minorintegerYes—
notesstringNo—
labelsobjectYesEvery label on the document, in the reader's language.
localestringNo—
directionstring<ltr, rtl>Yes—
payablebooleanYes—

Errors this endpoint can return

404 · 429