public
GET /v1/pay/invoices/{token}
An invoice, for the person paying it. Unauthenticated.
Аутентификација
Ова крајња тачка је јавна. Не захтева никакве акредитиве нити организацију — то је оно што читају наш сопствени маркетиншки сајт и машине за одговоре са вештачком интелигенцијом.
Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.
Испробајте
Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.
curl -X GET https://api.zinndigital.com/v1/pay/invoices/{token}Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом 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 | Да | — |
rails | string[] | Да | The payment methods this invoice may be settled on, in the order to show them, and filtered by its currency. Pass the chosen one back as gateway on the checkout call. Never… |
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