reseller

GET /v1/reseller/currencies

The currencies your clients are quoted in.

Все эндпоинты reseller

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

Отправьте ключ API в качестве токена носителя (bearer token). Ключ должен иметь разрешение reseller.view; ключ без него отклоняется с кодом 403, а не 404.

Идентификатор вашей организации

Этот эндпоинт принимает org_id в качестве параметра запроса. Оставьте его пустым, и вызов охватит все поддерево вашей аренды; передайте его, чтобы сузить область вызова до одной организации.

Идентификатор вашей организации находится на экране ключей API в вашей панели управления, рядом с самим ключом. Это один и тот же идентификатор для каждого вашего запроса.

Попробовать

Замените всё в угловых скобках на собственные значения, а плейсхолдер ключа — на ключ из вашей панели управления.

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

Вошли в систему? Консоль API в вашей панели управления автоматически подставляет реальный идентификатор вашей организации и ваш собственный ключ, а также выполняет запрос к работающему 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 r…

Ответ

ИмяТипОбязательноЧто это
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