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

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

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

Испробајте

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

curl -X POST https://api.zinndigital.com/v1/seo/quota/top-up \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "quantity": <integer> }'

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

Детаљи

Buys a pack of additional lookups, paid from the account credit balance. Purchased lookups do not expire and are spent only once the daily plan allowance is used up. Idempotent on the Idempotency-Key header: repeating a request with the same key returns the same purchase rather than buying a second pack. 422 when the pack size is not sold or the credit balance does not cover it — in which case nothing is charged at all.

Параметри

НазивТипОбавезноШта је ово
Idempotency-Key (header)stringНеCaller-supplied replay key. Strongly recommended: without one, a retried request buys a second pack.

Тело захтева

НазивТипОбавезноШта је ово
quantityintegerДаThe pack size to buy. Must be one offered by GET /v1/seo/quota.

Одговор

НазивТипОбавезноШта је ово
daily_allowanceintegerДаLookups included per day. -1 means unlimited.
used_todayintegerДаPlan-funded lookups run since midnight UTC.
plan_remainingintegerНе—
top_up_remainingintegerНеPurchased lookups still unspent. These do not expire.
remainingintegerДа—
is_unlimitedbooleanНе—
can_look_upbooleanДаWhether a lookup would be permitted right now. Not the same as remaining > 0: a suspended or unpaid account may have lookups left and still be refused.
in_good_standingbooleanНе—
packsobject[]ДаPacks of extra lookups available to buy.

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

401 · 403 · 422