reseller

GET /v1/reseller/currencies

The currencies your clients are quoted in.

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

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

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

Пошаљите API кључ као bearer токен. Кључ мора имати дозволу reseller.view; кључ без ње се одбија уз 403, а не 404.

Где се уноси ID ваше организације

Ова крајња тачка прихвата org_id као параметар упита. Изоставите га и позив ће обухватити цело подстабло вашег закупа; пошаљите га да бисте сузили позив на једну организацију.

Идентификатор ваше организације се налази на екрану са API кључевима на вашој контролној табли, поред самог кључа. То је исти идентификатор у сваком позиву који упутите.

Испробајте

Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.

curl -X GET https://api.zinndigital.com/v1/reseller/currencies \
  -H "Authorization: Bearer zdk_live_…"

Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли

Детаљи

Every currency we can charge in, with offered saying whether your clients may be quoted in it. offers_all: true means you have made no choice and your clients get the full set — which is the state every programme starts in. sell_in_currency is what you are priced and settled in, which is a different question from what your customers browse in, and it is served only here and never to your clients. switcher: false removes the currency control from their panel entirely, so every one of your clients is quoted in default_currency. Requires reseller.view.

Параметри

НазивТипОбавезноШта је ово
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…

Одговор

НазивТипОбавезноШта је ово
currenciesResellerCurrency[]Да—
offers_allbooleanДаYou have made no choice, so your clients get every currency.
offered_countintegerДа—
total_countintegerДа—
default_currencystringДаWhat a client is quoted in before they choose. Empty means the platform answer — their own inference, then USD.
sell_in_currencystringДаWhat you are priced and settled in, resolved — never empty, and never disclosed to your clients.
switcherbooleanДаWhether the currency control renders in your clients' panel at all. false quotes every client in default_currency.

Грешке које ова крајња тачка може вратити

401 · 403 · 404 · 429