public
GET /v1/pay/invoices/{token}
An invoice, for the person paying it. Unauthenticated.
Упълномощаване
Този крайpoint е публичен. Той не изисква данни за удостоверяване и организация — това е съдържанието, което нашият собствен маркетинг сайт и AI машини за отговори четат.
Този ендпойнт не изисква идентификатор на организация. Вашият ключ вече идентифицира организацията, към която принадлежи, и отговорът е ограничен до нея.
Опитайте
Заменете всичко в квадратни скоби със собствени стойности, а ключовия заместващ символ – с ключ от вашето табло за управление.
curl -X GET https://api.zinndigital.com/v1/pay/invoices/{token}Влязохте ли в профила си? API конзолата във вашето табло за управление попълва действителното идентификационно число на вашата организация и вашия собствен ключ и изпълнява заявката спрямо реалното API, за да можете да видите действителния отговор. Отворете този крайpoint в API конзолата
Детайли
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.
Параметри
| Име | Тип | Задължително | Какво представлява |
|---|---|---|---|
token (path) | string | Да | — |
Отговор
| Име | Тип | Задължително | Какво представлява |
|---|---|---|---|
reference | string | Да | — |
status | string<sent, paid> | Да | — |
currency | string | Да | — |
issue_date | string | Да | — |
due_date | string | Не | — |
due_date_display | string | Не | The due date in the reader's own convention, already formatted. |
buyer | object | Да | — |
lines | object[] | Да | — |
subtotal | string | Да | — |
tax_total | string | Да | — |
total | string | Да | — |
total_minor | integer | Не | — |
amount_due | string | Да | 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 | Да | — |
notes | string | Не | — |
labels | object | Да | Every label on the document, in the reader's language. |
locale | string | Не | — |
direction | string<ltr, rtl> | Да | — |
payable | boolean | Да | — |
Грешки, които този крайpoint може да върне
404 · 429