public
GET /v1/pay/invoices/{token}
An invoice, for the person paying it. Unauthenticated.
Uwierzytelnianie
Ten punkt końcowy jest publiczny. Nie wymaga żadnych poświadczeń ani organizacji — to z niego korzysta nasza własna strona marketingowa oraz silniki odpowiedzi AI.
Ten punkt końcowy nie wymaga identyfikatora organizacji. Twój klucz już identyfikuje organizację, do której należy, a odpowiedź jest do niej ograniczona.
Wypróbuj
Zastąp wszystko w nawiasach ostrych własnymi wartościami, a zastępczy znacznik klucza kluczem ze swojego pulpitu nawigacyjnego.
curl -X GET https://api.zinndigital.com/v1/pay/invoices/{token}Zalogowany? Konsola API w Twoim panelu uzupełnia rzeczywiste identyfikator organizacji oraz Twój własny klucz i wykonuje żądanie względem aktywnego API, dzięki czemu możesz zobaczyć rzeczywistą odpowiedź. Otwórz ten punkt końcowy w konsoli API
Szczegóły
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.
Parametry
| Nazwa | Typ | Wymagane | Co to jest |
|---|---|---|---|
token (path) | string | Tak | — |
Odpowiedź
| Nazwa | Typ | Wymagane | Co to jest |
|---|---|---|---|
reference | string | Tak | — |
status | string<sent, paid> | Tak | — |
currency | string | Tak | — |
issue_date | string | Tak | — |
due_date | string | Nie | — |
due_date_display | string | Nie | The due date in the reader's own convention, already formatted. |
buyer | object | Tak | — |
lines | object[] | Tak | — |
subtotal | string | Tak | — |
tax_total | string | Tak | — |
total | string | Tak | — |
total_minor | integer | Nie | — |
amount_due | string | Tak | 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 | Tak | — |
notes | string | Nie | — |
labels | object | Tak | Every label on the document, in the reader's language. |
locale | string | Nie | — |
direction | string<ltr, rtl> | Tak | — |
payable | boolean | Tak | — |
Błędy, które ten punkt końcowy może zwrócić
404 · 429