reseller

PATCH /v1/reseller/vendor-policy

Switch between your own vendor keys and Zinn®'s metered pool.

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

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

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

Пошаљите API кључ као bearer токен. Кључ мора имати дозволу reseller.manage; кључ без ње се одбија уз 403, а не 404.

Где се уноси ID ваше организације

Ова крајња тачка прихвата org_id као параметар упита. Изоставите га и позив ће обухватити цело подстабло вашег закупа; пошаљите га да бисте сузили позив на једну организацију.

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

Испробајте

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

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

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

Детаљи

own_keys runs your clients' SEO and indexing lookups on credentials you connect yourself, and nothing is metered against you here. platform_pool runs them on Zinn®'s accounts against the monthly allowance in your programme; when that allowance is spent, further paid checks pause for your clients until the month rolls or the pool is raised — nothing is cancelled, no history is lost, and your clients keep seeing the last reading already paid for. Requires reseller.manage.

Параметри

НазивТипОбавезноШта је ово
org_id (query)UuidНе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…

Тело захтева

НазивТипОбавезноШта је ово
seo_data_modestring<own_keys, platform_pool>Не—

Одговор

НазивТипОбавезноШта је ово
seo_data_modestring<own_keys, platform_pool>Даown_keys runs client SEO and indexing lookups on credentials you connect yourself and is free of charge from us. platform_pool runs them on Zinn®'s accounts against your…
monthly_pool_microsintegerДаYour monthly allowance of Zinn-funded vendor spend, in USD micros (1,000,000 = $1). Read-only — it is a commercial term of your programme. null means no pool has been set,…
alert_at_bpsintegerДаBasis points of the pool at which you are warned. 8000 = 80%.
client_overridesResellerClientVendorRow[]ДаEvery one of your clients, including those you have never capped — a client with no cap set appears with daily_lookup_cap: null.

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

401 · 403 · 404 · 422 · 429