reseller
GET /v1/reseller/languages
The languages your clients' panel offers.
Kimlik Doğrulama
Bearer token olarak bir API anahtarı gönderin. Anahtar reseller.view iznine sahip olmalıdır; bu izne sahip olmayan bir anahtar 404 ile değil, 403 ile reddedilir.
Kurum kimliğinizin yazılacağı yer
Bu uç nokta, org_id parametresini bir sorgu parametresi olarak alır. Bu parametreyi dışarıda bırakırsanız çağrı tüm kiracı alt ağacınızı kapsar; çağrıyı tek bir kuruluşa daraltmak için gönderin.
Kuruluş kimliğiniz (id), kontrol panelinizdeki API anahtarları ekranında, anahtarın hemen yanında yer alır. Yaptığınız her çağrıda aynı kimlik kullanılır.
Dene
Köşeli parantez içindeki her şeyi kendi değerlerinizle ve anahtar yer tutucusunu panonuzdan bir anahtarla değiştirin.
curl -X GET https://api.zinndigital.com/v1/reseller/languages \
-H "Authorization: Bearer zdk_live_…"Oturum açtınız mı? Panonuzdaki API konsolu, gerçek organizasyon kimliğinizi ve kendi anahtarınızı otomatik olarak doldurur ve isteği canlı API üzerinde çalıştırarak gerçek yanıtı görmenizi sağlar. Bu uç noktayı API konsolunda açın
Ayrıntılar
Every language the panel ships in, with `offered` saying whether your clients see it. All of them are included in your programme at no extra cost; narrowing the list is a presentation choice for a reseller selling into one market. `offers_all: true` means you have made no choice and your clients get the full set. Requires `reseller.view`.
Parametreler
| Ad | Tür | Zorunlu | Ne olduğu |
|---|---|---|---|
org_id (query) | Uuid | Hayır | 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… |
Yanıt
| Ad | Tür | Zorunlu | Ne olduğu |
|---|---|---|---|
languages | ResellerLanguage[] | Evet | — |
offers_all | boolean | Evet | You have made no choice, so your clients get every language. |
offered_count | integer | Evet | — |
total_count | integer | Evet | — |
default_locale | string | Evet | What a new client account starts in. Empty means the platform default. |
switcher | boolean | Hayır | Whether the language control renders in your clients' panel at all. `false` shows every client the panel in `default_locale`; it never removes their right to change their own ac… |
Bu uç noktanın dönderebileceği hatalar
401 · 403 · 404 · 429