seo
POST /v1/seo/quota/top-up
Buy extra domain lookups.
Аутентификација
Пошаљите 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. |
Тело захтева
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
quantity | integer | Да | The pack size to buy. Must be one offered by GET /v1/seo/quota. |
Одговор
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
daily_allowance | integer | Да | Lookups included per day. -1 means unlimited. |
used_today | integer | Да | Plan-funded lookups run since midnight UTC. |
plan_remaining | integer | Не | — |
top_up_remaining | integer | Не | Purchased lookups still unspent. These do not expire. |
remaining | integer | Да | — |
is_unlimited | boolean | Не | — |
can_look_up | boolean | Да | 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_standing | boolean | Не | — |
packs | object[] | Да | Packs of extra lookups available to buy. |
Грешке које ова крајња тачка може вратити
401 · 403 · 422