public

GET /v1/pay/invoices/{token}

An invoice, for the person paying it. Unauthenticated.

Все эндпоинты public

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

Аутентификация

Этот эндпоинт является публичным. Он не требует учетных данных и организации — его читают наш собственный маркетинговый сайт и поисковые системы на базе ИИ.

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

Попробовать

Замените всё в угловых скобках на собственные значения, а плейсхолдер ключа — на ключ из вашей панели управления.

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Да

Ответ

ИмяТипОбязательноЧто это
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Да

Ошибки, которые может возвращать этот эндпоинт

404 · 429