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 | Այո | — |
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