public

GET /v1/pay/invoices/{token}

An invoice, for the person paying it. Unauthenticated.

Всички крайни точки в public

Всички документи за разработчици

Упълномощаване

Този крайpoint е публичен. Той не изисква данни за удостоверяване и организация — това е съдържанието, което нашият собствен маркетинг сайт и AI машини за отговори четат.

Този ендпойнт не изисква идентификатор на организация. Вашият ключ вече идентифицира организацията, към която принадлежи, и отговорът е ограничен до нея.

Опитайте

Заменете всичко в квадратни скоби със собствени стойности, а ключовия заместващ символ – с ключ от вашето табло за управление.

curl -X GET https://api.zinndigital.com/v1/pay/invoices/{token}

Влязохте ли в профила си? API конзолата във вашето табло за управление попълва действителното идентификационно число на вашата организация и вашия собствен ключ и изпълнява заявката спрямо реалното API, за да можете да видите действителния отговор. Отворете този крайpoint в 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Да

Отговор

ИмеТипЗадължителноКакво представлява
referencestringДа
statusstring<sent, paid>Да
currencystringДа
issue_datestringДа
due_datestringНе
due_date_displaystringНеThe due date in the reader's own convention, already formatted.
buyerobjectДа
linesobject[]Да
subtotalstringДа
tax_totalstringДа
totalstringДа
total_minorintegerНе
amount_duestringДа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_minorintegerДа
notesstringНе
labelsobjectДаEvery label on the document, in the reader's language.
localestringНе
directionstring<ltr, rtl>Да
payablebooleanДа

Грешки, които този крайpoint може да върне

404 · 429