wallet
9 endpoints · /api/callcenter/v1/wallet
Request examples are generated from each endpoint's REAL method and path. 9 endpoints have no hand-verified body example yet; their skeleton has no body — we do not invent field names.
Pre-call fail-CLOSED kredi-gate: bakiye > 0 mı? Çağrı-başında çağrılır → yetersizse yeni-çağrı
Oturum
reddedilir (over-draw'u ≤ bir in-flight çağrıya sınırlar). SF11-live: kredi-limiti + tahmini-cost.
İstek
curl -X GET "https://{slug}.call.blesyum.app/api/callcenter/v1/wallet/check" \
-H "Authorization: Bearer <oturum-token>" \
-H "Accept: application/json"Yanıt
{
"data": "…",
"trace_id": "01JC…"
}SF11 — metering (IDEMPOTENT fail-CLOSED debit): destinationa rate-card (longest-prefix) uygula → maliyet
Oturum
→ append-only ledger debit. event_key tekrar gelirse ÇİFT-DÜŞÜM YOK (mevcut düşümü döndürür).
advisory-lock TOCTOU serialize. Rate-card yoksa fail-CLOSED (400 — ücretsiz-geçiş engellenir).
İstek
curl -X POST "https://{slug}.call.blesyum.app/api/callcenter/v1/wallet/meter" \
-H "Authorization: Bearer <oturum-token>" \
-H "Accept: application/json"Yanıt
{
"data": "…",
"trace_id": "01JC…"
}Bu sayfa işine yaradı mı?