reseller

PATCH /v1/reseller/currencies

Choose the currencies, the default, and what you sell in.

Të gjitha pikat e skajshme reseller

Autentifikimi

Drgoni një çelës API si një token mbajtës. Çelësi duhet të ketë lejen reseller.manage; një çelës pa të refuzohet me 403, jo 404.

Ku shkon id i organizatës suaj

Ky endpoint pranon org_id si parametër kërkimi. Lëreni bosh dhe thirrja do të mbulojë të gjithë nëndrurin tuaj të qiramarrjes; dërgojeni atë për ta ngushtuar thirrjen në një organizatë të vetme.

ID-ja e organizatës suaj ndodhet në ekranin e çelësave API në panelin tuaj të kontrollit, pranë vetë çelësit. Është i njëjti ID në çdo thirrje që bëni.

Provoje

Zëvendësoni çdo gjë brenda kllapave këndore me vlerat tuaja dhe vendbanuesin e çelësit me një çelës nga paneli juaj.

curl -X PATCH https://api.zinndigital.com/v1/reseller/currencies \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{  }'

Jeni kyçur? Konsola e API-së në panelin tuaj plotëson ID-në tuaj reale të organizatës dhe çelësin tuaj, dhe ekzekuton kërkesën kundrejt API-së live, kështu që ju mund të shihni përgjigjen aktuale. Hapni këtë pikë fundore në konsolën e API-së

Detajet

`currencies` replaces the list your clients may be quoted in; send an empty array to go back to offering every currency we can charge. `default_currency` is what a client is quoted in before they choose and must be one you offer. `sell_in_currency` is what you are settled in and is deliberately **not** required to be one of them — a reseller may be paid in one currency and sell in others. `switcher: false` hides the control from your clients. A currency no payment gateway can capture is refused rather than dropped, because a currency we can display and cannot charge is a checkout that fails at the last step. Requires `reseller.manage`.

Parametrat

EmriLlojiKërkohetÇfarë është kjo
org_id (query)UuidJoWhich 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…

Trupi i kërkesës

EmriLlojiKërkohetÇfarë është kjo
currenciesstring[]JoReplaces the list your clients may be quoted in. An empty array returns you to offering every currency we can charge.
default_currencystringJoEmpty returns to the platform answer. Must be one you offer.
sell_in_currencystringJoEmpty returns to the platform base currency. Deliberately not required to be one of `currencies`.
switcherbooleanJoWhether the currency control renders in your clients' panel.

Përgjigja

EmriLlojiKërkohetÇfarë është kjo
currenciesResellerCurrency[]Po
offers_allbooleanPoYou have made no choice, so your clients get every currency.
offered_countintegerPo
total_countintegerPo
default_currencystringPoWhat a client is quoted in before they choose. Empty means the platform answer — their own inference, then USD.
sell_in_currencystringPoWhat **you** are priced and settled in, resolved — never empty, and never disclosed to your clients.
switcherbooleanPoWhether the currency control renders in your clients' panel at all. `false` quotes every client in `default_currency`.

Gabimet që ky pikëndalim mund të kthejë

401 · 403 · 404 · 422 · 429