localization

GET /v1/session/offering

The currencies and languages this viewer may be shown.

Semua titik akhir localization

Autentikasi

Kirimkan kunci API sebagai token bearer. Titik akhir ini tidak menyatakan izin tertentu dalam spesifikasi, jadi berikan kunci Anda izin minimum yang diperlukan dan periksa responsnya alih-alih berasumsi.

Endpoint ini tidak memerlukan id organisasi. Kunci Anda telah mengidentifikasi organisasi tempatnya berafiliasi, dan respons akan dibatasi untuk organisasi tersebut.

Coba

Ganti apa pun di dalam tanda kurung sudut dengan nilai Anda sendiri, dan placeholder kunci dengan kunci dari dasbor Anda.

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

Sudah masuk? Konsol API di dasbor Anda akan mengisi ID organisasi asli dan kunci Anda sendiri, serta menjalankan permintaan terhadap API langsung sehingga Anda dapat melihat respons aktualnya. Buka titik akhir ini di konsol API

Detail

What a storefront, checkout or panel shell may offer the person looking at it, already resolved through their provider's policy. The viewer is identified two ways, in this order: **who they are**, when they are signed in; otherwise **where they are standing**, from the reseller panel hostname in the browser's `Origin`. So an anonymous visitor on a reseller's branded panel gets that reseller's offering, and everybody else — an anonymous visitor to Zinn®, an unrecognised origin, a hostname we no longer serve — gets the platform answer: every currency we can charge and every language we ship. Signing in always wins over the origin, because pricing follows the organisation the rest of the API scopes your reads by. `restricted` says a reseller stands between this viewer and Zinn®; read it rather than inferring one from list lengths, because a reseller who has narrowed nothing returns exactly the same lists as no reseller at all. `currency_switcher: false` means render no control, not a disabled one. Never cached.

Tanggapan

NamaJenisWajibTentang apa ini
currenciesstring[]YaThe currencies this viewer may be quoted in. Never empty.
default_currencystringYaAlways a member of `currencies`.
currency_switcherbooleanYa`false` means render no currency control at all — not a disabled one.
localesstring[]YaThe languages this viewer may read the panel in. Never empty.
default_localestringYaAlways a member of `locales`.
language_switcherbooleanYa`false` means render no language control at all.
restrictedbooleanYaA reseller stands between this viewer and Zinn®. Explicit rather than inferred: a reseller who has narrowed nothing returns identical lists to no reseller at all.

Kesalahan yang dapat dikembalikan oleh titik akhir ini

429