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Այո
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