تصدیقهویت
د بیارر ټوکن په توګه یو API کي وسپارئ. دا پای ټکی په مشخصاتو کې کوم ځانګړی اجازه لیک نه بیانوي، نو خپل کیلي ته لږترلږه هغه څه ورکړئ چې ورته اړتیا لري او د فرض کولو پر ځای ځواب وپلټئ.
دا پای نقطه د سازمان هېڅ آی ډي نه اخلي. ستاسو کیلي مخکې تر مخکې هغه سازمان په ګوته کوي چې پورې اړه لري، او ځواب ورته محدود دی.
هڅه وکړئ
د انګلیسي په زاوي پنسونو کې هرڅه د خپلو ارزښتونو سره بدل کړئ، او د کلي ځای لرونکی ستاسو د ډشبورډ د کلي سره.
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 په وړاندې پرمخ وړي ترڅو تاسو وکولی شئ اصلي ځواب وګورئ. دا پای ټکی (endpoint) د 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