localization
GET /v1/session/offering
The currencies and languages this viewer may be shown.
Uthibitishaji
Tuma ufunguo wa API kama tokeni ya kubeba. Sehemu hii ya mwisho haitaji ruhusa maalum katika maelezo, kwa hivyo ipe ufunguo wako kiwango cha chini kabisa kinachohitajika na uangalie jibu badala ya kukisia.
Endpoint hii haichukui kitambulisho cha shirika. Ufunguo wako tayari unalitambua shirika linalohusika, na jibu limewekewa kikomo kwa shirika hilo pekee.
Jaribu
Badilisha chochote kilicho ndani ya mabano ya pembe na maadili yako mwenyewe, na kishikiliaji cha ufunguo na ufunguo kutoka kwa dashibodi yako.
curl -X GET https://api.zinndigital.com/v1/session/offering \
-H "Authorization: Bearer zdk_live_…"Umeingia kwenye akaunti? Dashibodi yako ya kiweko cha API inajaza kitambulisho chako halisi cha shirika na ufunguo wako mwenyewe, na kuendesha ombi dhidi ya API ya moja kwa moja ili uweze kuona jibu halisi. Fungua sehemu hii ya mwisho (endpoint) kwenye konsole ya API
Maelezo
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.
Majibu
| Jina | Aina | Inayohitajika | Kilicho hiki |
|---|---|---|---|
currencies | string[] | Ndiyo | The currencies this viewer may be quoted in. Never empty. |
default_currency | string | Ndiyo | Always a member of `currencies`. |
currency_switcher | boolean | Ndiyo | `false` means render no currency control at all — not a disabled one. |
locales | string[] | Ndiyo | The languages this viewer may read the panel in. Never empty. |
default_locale | string | Ndiyo | Always a member of `locales`. |
language_switcher | boolean | Ndiyo | `false` means render no language control at all. |
restricted | boolean | Ndiyo | A 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. |
Hitilafu ambazo mwisho huu unaweza kurudisha
429