reseller

GET /v1/wallet/top-ups/estimate

What a top-up will actually credit, before you pay.

Ҳамаи нуқтаҳои ниҳоии reseller

Ҳамаи ҳуҷҷатҳои таҳиякунандагон

Санҷиши ҳаққоният

Kaliti API-ро ҳамчун рамзи доранда (bearer token) фиристед. Калит бояд дорои иҷозати billing.view бошад; калиди бидуни он бо хатои 403 рад карда мешавад, на 404.

Ҷое, ки рақами мушаххаси ташкилоти шумо ҷойгир аст

Ин нуқтаи поёнӣ org_id-ро ҳамчун параметри дархостӣ қабул мекунад. Онро хориҷ кунед ва даъват тамоми зердарахти иҷораи шуморо фаро мегирад; барои маҳдуд кардани даъват ба як созмон онро фиристед.

Rakami муайянкунандаи ташкилоти шумо дар экрани калидҳои API дар панели идоракунии шумо, дар паҳлӯи худи калид ҷойгир аст. Ин як раками муайянкунанда дар ҳар یک дархосте, ки шумо иҷро мекунед, якхела аст.

Санҷидан

Ҳар чизро дар қаavски кунҷӣ бо қиматҳои худ ва ҷойи нигоҳдорандаи калидро бо калима аз панели идоракунии худ иваз кунед.

curl -X GET https://api.zinndigital.com/v1/wallet/top-ups/estimate?amount_minor=<amount_minor> \
  -H "Authorization: Bearer zdk_live_…"

Воarid шудаед? Консоли API дар панели идоракунии шумо рақами мушаххаси ташкилоти воқеӣ ва калиди худро пур мекунад ва дархостро бар зидди API-и фаъол иҷро мекунад, то шумо посухи воқеиро бубинед. Ин нуқтаи ниҳоиро дар консоли API кушоед

Тафсилот

The pre-purchase disclosure. Returns what we expect to put in your balance for a given amount and rail, and whether that figure can still move. ⚖️ Zinn® credits what actually settles, net of fees, at the real settlement rate (owner ruling 2026-08-22). On a card that is exactly the amount you asked for. On a crypto rail it can be less, because the value of the coin moves between the quote and the confirmation and the network takes a fee — so is_estimate is true and the figure is indicative. ⛔ A screen that renders expected_credit_minor without also reading is_estimate turns a disclosure into a promise. refundable and expires are both always false and are returned here, at the point of sale, because that is where a non-refundable purchase has to be disclosed. Requires billing.view.

Параметрҳо

НомНамудТалаб карда мешавадИн чӣ аст
amount_minor (query)integerБалеThe amount you want to add, in integer minor units.
currency (query)stringНеISO-4217 code. A wallet is per-currency; an unknown code is a 422.
gateway (query)stringНеWhich rail — stripe, paypal or nowpayments. Determines whether the estimate is exact or indicative; it is the crypto rail that settles at a moving rate.
org_id (query)UuidНеWhich of your organizations this applies to. Required only when you belong to more than one here — otherwise it is inferred, and an id outside your direct memberships is a 404…

Ҷавоб

НомНамудТалаб карда мешавадИн чӣ аст
currencystringБале
gatewaystringБале
quoted_minorintegerБалеWhat the customer asked to add.
expected_credit_minorintegerБалеWhat we expect to put in their balance.
is_estimatebooleanБалеNot decoration. true on a rail that settles at a moving rate (crypto), where the amount credited can be less than the amount quoted because we credit what actually…
refundablebooleanБале⚖️ Always false for Zinn® credit. "credit is not returnable ever, even on account closure etc." — owner, 2026-08-22. Returned at the point of sale because that is where a…
expiresbooleanБале⚖️ Always false. Credit never expires — the deliberate other half of never refundable: "you cannot have it back" is only defensible alongside "and you never lose it".

Хатоҳое, ки ин нуқтаи ниҳоӣ метавонад баргардонад

401 · 403 · 422 · 429