public
GET /v1/pay/invoices/{token}
An invoice, for the person paying it. Unauthenticated.
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
| Naziv | Vrsta | Obavezno | Što je to |
|---|---|---|---|
token (path) | string | Da | — |
Odgovor
| Naziv | Vrsta | Obavezno | Što je to |
|---|---|---|---|
reference | string | Da | — |
status | string<sent, paid> | Da | — |
currency | string | Da | — |
issue_date | string | Da | — |
due_date | string | Ne | — |
due_date_display | string | Ne | The due date in the reader's own convention, already formatted. |
buyer | object | Da | — |
lines | object[] | Da | — |
subtotal | string | Da | — |
tax_total | string | Da | — |
total | string | Da | — |
total_minor | integer | Ne | — |
amount_due | string | Da | Zero once paid. Computed, never stored — a page saying money is due beside a Paid badge is the worst thing this can render. |
amount_due_minor | integer | Da | — |
notes | string | Ne | — |
labels | object | Da | Every label on the document, in the reader's language. |
locale | string | Ne | — |
direction | string<ltr, rtl> | Da | — |
payable | boolean | Da | — |
Pogreške koje ova krajnja točka može vratiti
404 · 429