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