public
GET /v1/pay/invoices/{token}
An invoice, for the person paying it. Unauthenticated.
Doğrulama
Bu nöqtə açıqdır. O, heç bir etimadnamə və təşkilat tələb etmir — bu, öz marketinq saytımızın və süni intellekt cavab mühərriklərimizin oxuduğu hissədir.
Bu endpoint heç bir təşkilat ID-si tələb etmir. Sizin açarınız artıq aid olduğu təşkilatı müəyyən edir və cavab həmin təşkilat üçün məhdudlaşdırılır.
Sınaqdan keçir
Bucaqlı mötərizələrdə olan hór şeyi öz qiymətlərinizlə, açar yertutucusunu isə idarə panelinizdən bir açarla əvəz edin.
curl -X GET https://api.zinndigital.com/v1/pay/invoices/{token}Sistemə daxil olmusunuz? İdarə panelinizdəki API konsolu real təşkilatınızın identifikatorunu və öz açarınızı avtomatik doldurur, sorğunu canlı API-yə qarşı icra edir ki, siz faktiki cavabı görə biləsiniz. Bu son nöqtəni API konsolunda açın
Təfərrüatlar
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.
Parametrlər
| Ad | Tip | Tələb olunur | Nədir |
|---|---|---|---|
token (path) | string | Bəli | — |
Cavab
| Ad | Tip | Tələb olunur | Nədir |
|---|---|---|---|
reference | string | Bəli | — |
status | string<sent, paid> | Bəli | — |
currency | string | Bəli | — |
issue_date | string | Bəli | — |
due_date | string | Xeyr | — |
due_date_display | string | Xeyr | The due date in the reader's own convention, already formatted. |
buyer | object | Bəli | — |
lines | object[] | Bəli | — |
subtotal | string | Bəli | — |
tax_total | string | Bəli | — |
total | string | Bəli | — |
total_minor | integer | Xeyr | — |
amount_due | string | Bəli | 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 | Bəli | — |
notes | string | Xeyr | — |
labels | object | Bəli | Every label on the document, in the reader's language. |
locale | string | Xeyr | — |
direction | string<ltr, rtl> | Bəli | — |
payable | boolean | Bəli | — |
Bu son nöqtənin qaytara biləcəyi xətalar
404 · 429