public
GET /v1/pay/invoices/{token}
An invoice, for the person paying it. Unauthenticated.
Kimlik Doğrulama
Bu uç nokta arakatmana açıktır. Kimlik bilgisi ve organizasyon gerektirmez; kendi pazarlama sitemizin ve yapay zeka yanıt motorlarımızın okuduğu yerdir.
Bu uç nokta hiçbir organizasyon kimliği almaz. Anahtarınız zaten ait olduğu organizasyonu tanımlar ve yanıt bu organizasyonla sınırlandırılır.
Dene
Köşeli parantez içindeki her şeyi kendi değerlerinizle ve anahtar yer tutucusunu panonuzdan bir anahtarla değiştirin.
curl -X GET https://api.zinndigital.com/v1/pay/invoices/{token}Oturum açtınız mı? Panonuzdaki API konsolu, gerçek organizasyon kimliğinizi ve kendi anahtarınızı otomatik olarak doldurur ve isteği canlı API üzerinde çalıştırarak gerçek yanıtı görmenizi sağlar. Bu uç noktayı API konsolunda açın
Ayrıntılar
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.
Parametreler
| Ad | Tür | Zorunlu | Ne olduğu |
|---|---|---|---|
token (path) | string | Evet | — |
Yanıt
| Ad | Tür | Zorunlu | Ne olduğu |
|---|---|---|---|
reference | string | Evet | — |
status | string<sent, paid> | Evet | — |
currency | string | Evet | — |
issue_date | string | Evet | — |
due_date | string | Hayır | — |
due_date_display | string | Hayır | The due date in the reader's own convention, already formatted. |
buyer | object | Evet | — |
lines | object[] | Evet | — |
subtotal | string | Evet | — |
tax_total | string | Evet | — |
total | string | Evet | — |
total_minor | integer | Hayır | — |
amount_due | string | Evet | 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 | Evet | — |
notes | string | Hayır | — |
labels | object | Evet | Every label on the document, in the reader's language. |
locale | string | Hayır | — |
direction | string<ltr, rtl> | Evet | — |
payable | boolean | Evet | — |
Bu uç noktanın dönderebileceği hatalar
404 · 429