public

GET /v1/pay/invoices/{token}

An invoice, for the person paying it. Unauthenticated.

Све public крајње тачке

Сва документација за програмере →

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

Ова крајња тачка је јавна. Не захтева никакве акредитиве нити организацију — то је оно што читају наш сопствени маркетиншки сајт и машине за одговоре са вештачком интелигенцијом.

Ова крајња тачка не прихвата 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Да—

Одговор

НазивТипОбавезноШта је ово
referencestringДа—
statusstring<sent, paid>Да—
currencystringДа—
railsstring[]ДаThe payment methods this invoice may be settled on, in the order to show them, and filtered by its currency. Pass the chosen one back as gateway on the checkout call. Never…
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