public
GET /v1/pay/invoices/{token}
An invoice, for the person paying it. Unauthenticated.
Санҷиши ҳаққоният
Ин нуқтаи поёни оммавӣ аст. Он ҳеҷ гуна маълумоти эътимоднок ва ҳеҷ гуна созмонро талаб намекунад — он ҳамон чизест, ки сайти маркетингӣ ва муҳаррикони ҷавоби сунъии худи мо мехонанд.
Ин нуқтаи поёнӣ ягон рақами мушаххаси созмонро талаб намекунад. Калиди шумо аллакай созмонеро, ки ба он тааллуқ дорад, муайян мекунад ва ҷавоб ба он маҳдуд карда мешавад.
Санҷидан
Ҳар чизро дар қаavски кунҷӣ бо қиматҳои худ ва ҷойи нигоҳдорандаи калидро бо калима аз панели идоракунии худ иваз кунед.
curl -X GET https://api.zinndigital.com/v1/pay/invoices/{token}Воarid шудаед? Консоли 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