reseller
GET /v1/reseller/currencies
The currencies your clients are quoted in.
Autentifikacija
Pošaljite API ključ kao nosivi token. Ključ mora imati dozvolu reseller.view; ključ bez nje se odbija s kodom 403, a ne 404.
Gdje dolazi ID vaše organizacije
Ova krajnja točka uzima org_id kao parametar upita. Izostavite ga i poziv obuhvaćett cijelo stablo vašeg najma; pošaljite ga kako biste suzili poziv na jednu organizaciju.
ID vaše organizacije nalazi se na zaslonu API ključeva u vašoj nadzornoj ploči, pored samog ključa. To je isti ID u svakom pozivu koji uputite.
Isprobajte
Zamijenite sve unutar šiljastih zagrada svojim vlastitim vrijednostima, a rezervirano mjesto za ključ s ključem iz vaše nadzorne ploče.
curl -X GET https://api.zinndigital.com/v1/reseller/currencies \
-H "Authorization: Bearer zdk_live_…"Prijavljeni ste? API konzola na vašoj nadzornoj ploči automatski unosi stvarni ID vaše organizacije i vaš vlastiti ključ te šalje zahtjev prema aktivnom API-ju kako biste mogli vidjeti stvarni odgovor. Otvori ovu krajnju točku u API konzoli
Pojedinosti
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`.
Parametri
| Naziv | Vrsta | Obavezno | Što je to |
|---|---|---|---|
org_id (query) | Uuid | Ne | 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… |
Odgovor
| Naziv | Vrsta | Obavezno | Što je to |
|---|---|---|---|
currencies | ResellerCurrency[] | Da | — |
offers_all | boolean | Da | You have made no choice, so your clients get every currency. |
offered_count | integer | Da | — |
total_count | integer | Da | — |
default_currency | string | Da | What a client is quoted in before they choose. Empty means the platform answer — their own inference, then USD. |
sell_in_currency | string | Da | What **you** are priced and settled in, resolved — never empty, and never disclosed to your clients. |
switcher | boolean | Da | Whether the currency control renders in your clients' panel at all. `false` quotes every client in `default_currency`. |
Pogreške koje ova krajnja točka može vratiti
401 · 403 · 404 · 429