public

GET /v1/pay/invoices/{token}

An invoice, for the person paying it. Unauthenticated.

Svi public krajnji točke

Sva developerska dokumentacija

Autentifikacija

Ova je krajnja točka javna. Ne zahtijeva nikakve vjerodajnice ni organizaciju – to je ono što čitaju naše vlastite marketinške stranice i AI strojevi za odgovore.

Ova krajnja točka ne prihvaća ID organizacije. Vaš ključ već identificira organizaciju kojoj pripada, a odgovor je ograničen na nju.

Isprobajte

Zamijenite sve unutar šiljastih zagrada svojim vlastitim vrijednostima, a rezervirano mjesto za ključ s ključem iz vaše nadzorne ploče.

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

Prijavljeni ste? API konzola na vašoj nadzornoj ploči automatski unosi stvarni ID vaše organizacije i vaš vlastiti ključ te šalje zahtjev prema aktivnom API-ju kako biste mogli vidjeti stvarni odgovor. Otvori ovu krajnju točku u API konzoli

Pojedinosti

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.

Parametri

NazivVrstaObaveznoŠto je to
token (path)stringDa

Odgovor

NazivVrstaObaveznoŠto je to
referencestringDa
statusstring<sent, paid>Da
currencystringDa
issue_datestringDa
due_datestringNe
due_date_displaystringNeThe due date in the reader's own convention, already formatted.
buyerobjectDa
linesobject[]Da
subtotalstringDa
tax_totalstringDa
totalstringDa
total_minorintegerNe
amount_duestringDaZero once paid. Computed, never stored — a page saying money is due beside a Paid badge is the worst thing this can render.
amount_due_minorintegerDa
notesstringNe
labelsobjectDaEvery label on the document, in the reader's language.
localestringNe
directionstring<ltr, rtl>Da
payablebooleanDa

Pogreške koje ova krajnja točka može vratiti

404 · 429