reseller

PUT /v1/reseller/vendor-policy/clients/{orgId}

Cap or pause one client's paid data checks.

Все эндпоинты reseller

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

Отправьте ключ API в качестве токена носителя (bearer token). Ключ должен иметь разрешение reseller.manage; ключ без него отклоняется с кодом 403, а не 404.

Идентификатор вашей организации

Этот эндпоинт принимает идентификатор вашей организации прямо в URL в качестве orgId. Подставьте его в путь — другие заголовки или параметры запроса не могут его заменить.

Идентификатор вашей организации находится на экране ключей API в вашей панели управления, рядом с самим ключом. Это один и тот же идентификатор для каждого вашего запроса.

Попробовать

Замените всё в угловых скобках на собственные значения, а плейсхолдер ключа — на ключ из вашей панели управления.

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

Вошли в систему? Консоль API в вашей панели управления автоматически подставляет реальный идентификатор вашей организации и ваш собственный ключ, а также выполняет запрос к работающему API, чтобы вы могли увидеть актуальный ответ. Откройте эту конечную точку в API-консоли

Подробнее

Per-client control inside your own pool. `daily_lookup_cap` can only ever **reduce** what that client's plan already grants — a number above their plan allowance has no effect, because the smaller of the two is what is applied. `billed_data_enabled: false` stops that client drawing on your pool at all; their plan, their sites and their history are untouched and they still see readings already paid for. An org id that is not one of your clients is a 404. Requires `reseller.manage`.

Параметры

ИмяТипОбязательноЧто это
orgId (path)UuidДаThe client organization to cap. Must be one of your own clients.

Тело запроса

ИмяТипОбязательноЧто это
daily_lookup_capintegerНетDaily research lookups for this client. `null` removes your cap. Can only reduce what their plan grants.
billed_data_enabledbooleanНет

Ответ

ИмяТипОбязательноЧто это
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 mon…
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