Authenticatie
Stuur een API-sleutel mee als bearer token. Dit eindpunt vermeldt geen specifieke toestemming in de specificatie, dus geef uw sleutel de minimale rechten die nodig zijn en controleer het antwoord in plaats van zomaar wat aan te nemen.
Dit eindpunt vereist geen organisatie-id. Uw sleutel identificeert al de organisatie waartoe deze behoort, en het antwoord is hierop afgestemd.
Probeer het
Vervang alles tussen punthaakjes door uw eigen waarden en de sleutelplaatsvervanger door een sleutel uit uw dashboard.
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> }'Ingelogd? De API-console in je dashboard vult je echte organisatie-id en je eigen sleutel in, en voert het verzoek uit tegen de live API zodat je de daadwerkelijke respons kunt zien. Open dit eindpunt in de API-console
Details
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.
Parameters
| Naam | Type | Verplicht | Wat dit is |
|---|---|---|---|
Idempotency-Key (header) | string | Nee | Caller-supplied replay key. Strongly recommended: without one, a retried request buys a second pack. |
Aanvraaglichaam
| Naam | Type | Verplicht | Wat dit is |
|---|---|---|---|
quantity | integer | Ja | The pack size to buy. Must be one offered by `GET /v1/seo/quota`. |
Reactie
| Naam | Type | Verplicht | Wat dit is |
|---|---|---|---|
daily_allowance | integer | Ja | Lookups included per day. `-1` means unlimited. |
used_today | integer | Ja | Plan-funded lookups run since midnight UTC. |
plan_remaining | integer | Nee | — |
top_up_remaining | integer | Nee | Purchased lookups still unspent. These do not expire. |
remaining | integer | Ja | — |
is_unlimited | boolean | Nee | — |
can_look_up | boolean | Ja | 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 | Nee | — |
packs | object[] | Ja | Packs of extra lookups available to buy. |
Fouten die dit eindpunt kan retourneren
401 · 403 · 422