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 کنسول ستاسو د اصلي سازمان ID او ستاسو خپله کیلي ډکوي، او غوښتنه د ژوندی API په وړاندې پرمخ وړي ترڅو تاسو وکولی شئ اصلي ځواب وګورئ. دا پای ټکی (endpoint) د 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