public
GET /v1/pay/invoices/{token}
An invoice, for the person paying it. Unauthenticated.
Автентифікація
Ця кінцева точка є публічною. Вона не потребує жодних облікових даних чи організації — це те, що читають наш власний маркетинговий сайт та пошукові системи на основі штучного інтелекту.
Цей кінцевий пункт не потребує ідентифікатора організації. Ваш ключ уже ідентифікує організацію, якій він належить, і відповідь обмежується її межами.
Спробувати
Замініть усе в кутових дужках власними значеннями, а заповнювач ключа — ключем із вашої панелі керування.
curl -X GET https://api.zinndigital.com/v1/pay/invoices/{token}Увійшли в систему? Консоль API у вашій панелі керування автоматично підставляє ваш реальний ідентифікатор організації та ваш власний ключ, а також виконує запит до робочого API, щоб ви могли побачити справжню відповідь. Відкрийте цю кінцеву точку в консолі 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 | Так | — |
Помилки, які може повертати ця кінцева точка
404 · 429