Ìfàṣẹ́pọ̀

Fi bọ́ọ̀lù (bearer token) ranṣẹ gẹ́gẹ́ bí kọ́kọ́rọ́ API. Kọ́kọ́rọ́ náà gbọ́dọ̀ ní ìyọ̀ǹda billing.payment.manage; a ó kọ̀ ọ́ silẹ pẹlu 403, kii ṣe 404, ti kọ́kọ́rọ́ náà kò bá ní i.

Ojú abánisọ̀rọ̀ yìí kò gba id ajọ kankan. Kọ́kọ́rọ́ rẹ ti mọ ajọ ti o jẹ ti e, a o si fèsì nipa rẹ̀.

Gbiyanju rẹ

Rọ́pọ̀ èyíkéyìí nínú àwọn àmì ìtọ́ka < > pẹ̀lú iye tirẹ̀, àti àmì ìdánimọ̀ bọ́tìnnì náà pẹ̀lú bọ́tìnnì kan láti inú dásibọ̀ọ̀dù rẹ.

curl -X PUT https://api.zinndigital.com/v1/ai/credits/settings \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "auto_topup_enabled": <boolean> }'

Ṣé o ti wọlé? Iwọ̀n api ní nú ìgbékalẹ̀ rẹ kún id àjọ gidi rẹ ati bọtini tirẹ, o si nṣiṣẹ ibeere na lòdì si api gidi ki o le rii esi gidi na. Ṣí ojú abáná yìí sílẹ̀ nínú kọnsólù API

Àwọn kúlẹ̀kúlẹ̀

Automatic top-up is off by default and only the customer can turn it on. When it is on, running below the threshold buys the chosen pack once, with an hour between attempts so a declining card cannot be retried in a loop. Requires billing.payment.manage — turning this on is a decision to let us charge a saved card, which is the same audience as managing a provider key.

Akoonu ibeere naa

OrúkọIruTí a nílòKini o jẹ
auto_topup_enabledbooleanBẹẹni
auto_topup_pack_codestringBẹẹkọ
auto_topup_threshold_microsintegerBẹẹkọ0 keeps the shared low-balance threshold. Any other value below min_threshold_micros is a 422 — but only when auto_topup_enabled is true: refusing to let somebody…
auto_topup_monthly_cap_microsintegerBẹẹkọ0 uses the computed default. A ceiling smaller than one top-up is a 422: it is not a strict setting, it is an off switch wearing one — every attempt would exceed it and…

Idahun

OrúkọIruTí a nílòKini o jẹ
stateAiCreditStateBẹẹni
packsAiCreditPack[]Bẹẹni
settingsAiCreditSettingsBẹẹniThe customer's standing instruction about topping up, and what has become of it. Owner, 2026-08-24, reading /ai on production:…
historyAiCreditHistoryLine[]BẹẹniThe 25 most recent movements, newest first.
funding_routesAiProviderFunding[]BẹẹniWho pays for the next call, per provider. Read on the SAME request as the balance, so a screen cannot render a funding claim from one moment beside a balance from another.
spendsAiCreditSpend[]BẹẹniEverything this credit buys — the metered surfaces derived from the engine's own meter, the credit-only spends that write no usage row, and the fixed-price AI products.

Awọn aṣiṣe ti ibudo ipari yii le da pada

401 · 403 · 422 · 429