localization

GET /v1/session/offering

The currencies and languages this viewer may be shown.

Све localization крајње тачке

Сва документација за програмере →

Аутентификација

Пошаљите API кључ као bearer токен. Ова крајња тачка не наводи конкретну дозволу у спецификацији, па свом кључу доделите најмања неопходна овлашћења и проверите одговор уместо да претпостављате.

Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.

Испробајте

Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.

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

Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли

Детаљи

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.

Одговор

НазивТипОбавезноШта је ово
currenciesstring[]ДаThe currencies this viewer may be quoted in. Never empty.
default_currencystringДаAlways a member of currencies.
currency_switcherbooleanДаfalse means render no currency control at all — not a disabled one.
localesstring[]ДаThe languages this viewer may read the panel in. Never empty.
default_localestringДаAlways a member of locales.
language_switcherbooleanДаfalse means render no language control at all.
restrictedbooleanДа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.

Грешке које ова крајња тачка може вратити

429