Accept deposits and send payouts with one small API
The Chella-Pay company API lets your platform request deposits from players, pay money out, read your balance and transactions, and receive signed webhooks. JSON over HTTPS.
Base URL. Examples in these docs use the placeholder https://api.chellapay.cc with the path prefix /v1. The real API host is given to each company by Chella-Pay. Talk to it directly, not through the payout router.
Deposit model
You ask for a deposit. We give you a wallet number. The player sends the exact amount from their own phone to that wallet number. When the payment arrives, the deposit completes and your balance is credited.
Payout model
You request a payout to a phone number, bank account or merchant code. We hold the amount and fees from your balance, submit it, and report the final status by API and webhook.
Live and test
A sk_live_ key moves real money. A sk_test_ key never reaches telebirr; it runs in a sandbox with its own separate balance.
Conventions
- Money is a string with exactly two decimals in ETB (
"500.00"; no sign, no leading zeros, at most 12 digits before the point). - Times are ISO 8601 UTC.
- A request body is a JSON object of at most 8 KiB, sent with
Content-Type: application/jsonand aContent-Length. Anything else is refused400 bad_request. - Every error answer is
{"code": "<code>"}. See Errors.
2. Quickstart
Everything below uses a test key, so no real money moves. Set two shell variables first (the host is a placeholder; use the one Chella-Pay gave you):
export BASE=https://api.chellapay.cc/v1 export KEY=sk_test_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// Node 18+ (global fetch). Save as quickstart.mjs
const BASE = 'https://api.chellapay.cc/v1';
const KEY = process.env.CHELLA_KEY; // sk_test_...
const headers = (extra = {}) => ({
Authorization: `Bearer ${KEY}`,
'Content-Type': 'application/json',
...extra,
});
# pip install requests
import os, uuid, requests
BASE = "https://api.chellapay.cc/v1"
KEY = os.environ["CHELLA_KEY"] # sk_test_...
def headers(idem=None):
h = {"Authorization": f"Bearer {KEY}", "Content-Type": "application/json"}
if idem:
h["Idempotency-Key"] = idem
return h
Make a test key
In the company portal open Integration and create a test key (owner and developer roles). The key is shown once; copy it now. A company that is not live yet can still use its test keys.
Create a test deposit
Every POST needs an
Idempotency-Key. The phone is the player's phone; the amount is a two-decimal string.curl -X POST "$BASE/deposits" \ -H "Authorization: Bearer $KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: dep-bet-77" \ -d '{"amount":"500.00","player_phone":"0911223344","reference":"bet-77"}'const res = await fetch(`${BASE}/deposits`, { method: 'POST', headers: headers({ 'Idempotency-Key': 'dep-bet-77' }), body: JSON.stringify({ amount: '500.00', player_phone: '0911223344', reference: 'bet-77' }), }); const deposit = await res.json(); // 201 on create, 200 on replay console.log(res.status, deposit);r = requests.post( f"{BASE}/deposits", headers=headers("dep-bet-77"), json={"amount": "500.00", "player_phone": "0911223344", "reference": "bet-77"}, ) deposit = r.json() # 201 on create, 200 on replay print(r.status_code, deposit)The answer has
state: "open", anidlikedr_...,wallet_msisdnandexpires_at. With a test key the wallet is the dummy251900000000.Show the player the wallet and the exact amount
In your UI show
wallet_msisdnand the exactamount. In production the player sends that amount fromplayer_phoneto that wallet beforeexpires_at. In the sandbox nobody pays; you simulate it next.Simulate the payment
Either click Simulate payment in the portal, or call the sandbox endpoint with the test key (body is an empty JSON object):
curl -X POST "$BASE/sandbox/deposits/dr_REPLACE_WITH_ID/pay" \ -H "Authorization: Bearer $KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: pay-dr-1" \ -d '{}'const paid = await fetch(`${BASE}/sandbox/deposits/${deposit.id}/pay`, { method: 'POST', headers: headers({ 'Idempotency-Key': `pay-${deposit.id}` }), body: '{}', }).then((r) => r.json()); console.log(paid.state); // "completed"paid = requests.post( f"{BASE}/sandbox/deposits/{deposit['id']}/pay", headers=headers(f"pay-{deposit['id']}"), json={}, ).json() print(paid["state"]) # "completed"The answer is the completed deposit, with
fee,netandtransaction_nofilled in.Receive and verify the
deposit.completedwebhookIn the portal (Integration) set your webhook URL (https, public host) and create the signing secret. Both must be set before the event happens, or it is never sent. Your endpoint must read the raw bytes of the body, check the signature, dedupe on
id, and answer 2xx within 10 seconds.# Verify by hand in a shell. TS = X-Walletpool-Timestamp, BODY = the raw body, SECRET = your signing secret. TS=1767225600 BODY='{"data":{...},"event":"deposit.completed","id":"wh_..."}' printf '%s.%s' "$TS" "$BODY" | openssl dgst -sha256 -hmac "$SECRET" -hex # compare "sha256=" + that hex with the X-Walletpool-Signature header// Node 18+, no dependencies. node webhook.mjs import http from 'node:http'; import crypto from 'node:crypto'; const SECRET = process.env.WEBHOOK_SECRET; const seen = new Set(); // use a database in production function verify(secret, timestamp, rawBody, header) { const hex = crypto.createHmac('sha256', secret) .update(`${timestamp}.`).update(rawBody).digest('hex'); const a = Buffer.from(`sha256=${hex}`); const b = Buffer.from(header || ''); return a.length === b.length && crypto.timingSafeEqual(a, b); } http.createServer((req, res) => { const chunks = []; req.on('data', (c) => chunks.push(c)); req.on('end', () => { const raw = Buffer.concat(chunks); // raw bytes, do NOT re-serialise const ok = verify(SECRET, req.headers['x-walletpool-timestamp'], raw, req.headers['x-walletpool-signature']); if (!ok) { res.writeHead(401).end(); return; } const evt = JSON.parse(raw.toString('utf8')); if (!seen.has(evt.id)) { seen.add(evt.id); if (evt.event === 'deposit.completed') console.log('credit', evt.data.deposit_id, evt.data.amount); } res.writeHead(200).end('ok'); }); }).listen(3000);# pip install flask import hashlib, hmac, os from flask import Flask, request app = Flask(__name__) SECRET = os.environ["WEBHOOK_SECRET"] seen = set() # use a database in production def verify(secret: str, timestamp: str, raw_body: bytes, header: str) -> bool: mac = hmac.new(secret.encode(), timestamp.encode() + b"." + raw_body, hashlib.sha256).hexdigest() return hmac.compare_digest("sha256=" + mac, header or "") @app.post("/webhook") def webhook(): raw = request.get_data() # raw bytes, do NOT re-serialise if not verify(SECRET, request.headers.get("X-Walletpool-Timestamp", ""), raw, request.headers.get("X-Walletpool-Signature", "")): return "", 401 evt = request.get_json(force=True) if evt["id"] not in seen: seen.add(evt["id"]) if evt["event"] == "deposit.completed": print("credit", evt["data"]["deposit_id"], evt["data"]["amount"]) return "ok", 200Test events arrive at the same URL with
"env": "test". Details in Webhooks.Create a test payout and watch it settle
Test money is a separate balance that starts at zero, so the deposit from step 4 funds it. A test payout is accepted at once (202) and settles about 3 seconds later.
curl -X POST "$BASE/payouts" \ -H "Authorization: Bearer $KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: payout-1001" \ -d '{"target":{"kind":"msisdn","msisdn":"251911000002"},"amount":"100.00"}' # poll until "settled" curl "$BASE/payouts/p2_REPLACE_WITH_ID" -H "Authorization: Bearer $KEY"const payout = await fetch(`${BASE}/payouts`, { method: 'POST', headers: headers({ 'Idempotency-Key': 'payout-1001' }), body: JSON.stringify({ target: { kind: 'msisdn', msisdn: '251911000002' }, amount: '100.00' }), }).then((r) => r.json()); // 202, status "accepted" await new Promise((r) => setTimeout(r, 4000)); const now = await fetch(`${BASE}/payouts/${payout.id}`, { headers: headers() }).then((r) => r.json()); console.log(now.status); // "settled"import time payout = requests.post( f"{BASE}/payouts", headers=headers("payout-1001"), json={"target": {"kind": "msisdn", "msisdn": "251911000002"}, "amount": "100.00"}, ).json() # 202, status "accepted" time.sleep(4) now = requests.get(f"{BASE}/payouts/{payout['id']}", headers=headers()).json() print(now["status"]) # "settled"You also receive
payout.statuswebhooks (forsubmittedandsettled). When you are happy, see Going live.
3. Authentication & keys
Every request carries the header Authorization: Bearer <key>. A key is sk_live_ or sk_test_ followed by 32 lowercase characters (a-z, 2-7). A key is shown once, when it is issued; only a hash is stored, so keep it safe.
- Live keys are issued and revoked by Chella-Pay (Payments HQ) only. A company cannot make one in the portal: it is refused
403 live_keys_by_operator. - Test keys you make and revoke yourself in the portal (Integration; owner and developer roles).
- Test keys never reach telebirr (see Sandbox). A company that is not live yet can still use its test keys.
curl "$BASE/balance" -H "Authorization: Bearer $KEY"
const bal = await fetch(`${BASE}/balance`, { headers: headers() }).then((r) => r.json());
bal = requests.get(f"{BASE}/balance", headers=headers()).json()
Authentication and access answers
| Answer | When |
|---|---|
401 unauthorized | unknown, malformed or revoked key |
403 company_suspended | a live key while the company is suspended |
403 company_not_live | a live key while the company is pending or sandbox |
403 address_not_allowed | the calling address is not in the company's allowed addresses (an empty list allows every address) |
404 not_found | unknown path, or an object that is not yours (or has an unknown id shape) |
405 method_not_allowed | known path, other method |
If company keys are switched off on our side (setting companies.enabled), a company key is treated like any other unknown bearer and gets the answer of the old API (normally 401 unauthorized).
Request logs
Every request whose key was recognised is logged (portal, API requests), including refusals by status, address or route. A request with an unknown, malformed or revoked key is not logged. Logs are kept for 90 days by default.
4. Idempotency
Every POST needs an Idempotency-Key header: 1 to 200 printable characters, unique per company and environment (live and test are separate).
- Same key + same body again: returns the stored object (
200). - Same key + different body:
409 idempotency_conflict. - Keys never expire.
- Missing:
400 idempotency_key_required. Too long, not printable, or starting withsettlement:(reserved):400 invalid_idempotency_key.
So it is always safe to retry a POST after a timeout or a network error: send it again with the same key and the same body.
5. Deposits
| Field | Type | Notes |
|---|---|---|
amount | string | Two-decimal ETB string, e.g. "500.00". |
player_phone | string | A mobile number in any usual form (0911223344, 911223344, +251911223344, 251911223344; numbers start with 9 or 7). Stored as 2519XXXXXXXX. |
reference | string, optional | 1 to 64 printable ASCII characters. |
curl -X POST "$BASE/deposits" \
-H "Authorization: Bearer $KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: dep-bet-77" \
-d '{"amount":"500.00","player_phone":"0911223344","reference":"bet-77"}'
const r = await fetch(`${BASE}/deposits`, {
method: 'POST',
headers: headers({ 'Idempotency-Key': 'dep-bet-77' }),
body: JSON.stringify({ amount: '500.00', player_phone: '0911223344', reference: 'bet-77' }),
});
const deposit = await r.json();
r = requests.post(f"{BASE}/deposits", headers=headers("dep-bet-77"),
json={"amount": "500.00", "player_phone": "0911223344", "reference": "bet-77"})
deposit = r.json()
Answer 201 (200 on a replay, with the stored object in its current state):
{"id": "dr_...", "env": "live", "state": "open", "amount": "500.00", "fee": null, "net": null, "currency": "ETB",
"player_phone": "251911223344", "reference": "bet-77", "wallet_msisdn": "2519XXXXXXXX", "transaction_no": null,
"created_at": "...", "expires_at": "...", "completed_at": null, "expired_at": null}How a deposit completes
- Show the player
wallet_msisdnand the exact amount. - The request completes on the first telebirr payment from
player_phone, for exactly that amount, into that wallet, beforeexpires_at(30 minutes after the request by default). - Then
stateiscompleted;feeis our fee;netis what was credited to your balance (amount - fee);transaction_nois the telebirr transaction. - A request not paid in time becomes
expired. We wait a short grace (2 minutes by default) afterexpires_atbefore marking it, so a payment made just before the deadline still counts. - A payment that matches no request is not lost: Payments HQ sees it and can assign it to you, in which case you get
deposit.completedas for any deposit. - Two open requests for the same player phone and amount are given different wallets, so the payment identifies its request.
Refusals
422: invalid_amount, amount_below_min (1.00), amount_above_max (100000.00 by default), invalid_phone, invalid_reference. 503 no_wallet_available: retry later with the same key.
Read a deposit
Returns the same object. The id is dr_ plus 20 hex characters; you can read your own deposits in the key's environment only.
curl "$BASE/deposits/dr_REPLACE_WITH_ID" -H "Authorization: Bearer $KEY"
const d = await fetch(`${BASE}/deposits/${id}`, { headers: headers() }).then((r) => r.json());
d = requests.get(f"{BASE}/deposits/{dep_id}", headers=headers()).json()
6. Payouts
The target is one of three kinds. currency is optional and must be ETB.
{"target": {"kind": "msisdn", "msisdn": "251911000002"}, "amount": "100.00"}
{"target": {"kind": "bank", "bank_code": "...", "account_number": "..."}, "amount": "100.00"}
{"target": {"kind": "merchant", "merchant_code": "..."}, "amount": "100.00"}curl -X POST "$BASE/payouts" \
-H "Authorization: Bearer $KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: payout-1001" \
-d '{"target":{"kind":"msisdn","msisdn":"251911000002"},"amount":"100.00"}'
const r = await fetch(`${BASE}/payouts`, {
method: 'POST',
headers: headers({ 'Idempotency-Key': 'payout-1001' }),
body: JSON.stringify({ target: { kind: 'msisdn', msisdn: '251911000002' }, amount: '100.00' }),
});
const payout = await r.json(); // 202 (200 on replay)
r = requests.post(f"{BASE}/payouts", headers=headers("payout-1001"),
json={"target": {"kind": "msisdn", "msisdn": "251911000002"}, "amount": "100.00"})
payout = r.json() # 202 (200 on replay)
Answer 202 (200 on a replay):
{"id": "p2_...", "payout_id": "p2_...", "company_id": "co_...", "env": "live", "status": "accepted",
"reason_code": null, "amount": "100.00", "fee": "1.50", "currency": "ETB",
"target": {"kind": "msisdn", "recipient_masked": "2519******02", "bank_code": null},
"transaction_no": null, "created_at": "...", "updated_at": "..."}fee is our fee (a percentage of the amount, at your rate when the payout was made). The telebirr fee is not in this object; it is charged separately when the payout settles.
Balance hold
- On accept we hold amount + our fee + 20.00 (room for the telebirr fee) from your available balance.
409 insufficient_company_balancewhen it is not there. - When the payout settles, the hold is released and you are charged the amount, our fee and the telebirr fee (its own line). The part of the 20.00 not needed (20.00 minus the telebirr fee) goes back to your available balance.
- When it fails or is cancelled, everything is released.
- A payout in
unknownorneeds_reviewposts nothing: its hold stays until it is settled or failed.
Statuses
accepted, preparing, submitted, unknown, needs_review, settled, failed, cancelled. settled, failed and cancelled are final. We never resend a payout whose outcome is unknown.
Refusals
422: invalid_target, invalid_amount, amount_below_min (1.00), amount_above_max (300000.00 by default), currency_unsupported, invalid_bank_account, bank_unavailable, recipient_account_not_found. 409: bank_disabled, merchant_disabled, insufficient_company_balance.
Read a payout
Returns only your own payouts (p2_ plus 20 hex characters). There is no cancel call for company keys.
curl "$BASE/payouts/p2_REPLACE_WITH_ID" -H "Authorization: Bearer $KEY"
const p = await fetch(`${BASE}/payouts/${id}`, { headers: headers() }).then((r) => r.json());
p = requests.get(f"{BASE}/payouts/{payout_id}", headers=headers()).json()
7. Balance & transactions
curl "$BASE/balance" -H "Authorization: Bearer $KEY"
# {"available":"387.50","reserved":"121.50","currency":"ETB","env":"live"}
const bal = await fetch(`${BASE}/balance`, { headers: headers() }).then((r) => r.json());
// { available: "387.50", reserved: "121.50", currency: "ETB", env: "live" }
bal = requests.get(f"{BASE}/balance", headers=headers()).json()
# {"available": "387.50", "reserved": "121.50", "currency": "ETB", "env": "live"}
available can be spent or settled; reserved is held for in-flight payouts and settlements. The balance is for the environment of the key you use.
| Query | Meaning |
|---|---|
type | deposit or payout |
state | a deposit state (open, completed, expired) or a payout status |
from / to | ISO time; from inclusive, to exclusive |
limit | 1 to 100 (default 50) |
cursor | pass the previous answer's next for the following page |
curl "$BASE/transactions?type=deposit&limit=50" -H "Authorization: Bearer $KEY" # next page: add &cursor=<next>
let cursor = null;
do {
const q = new URLSearchParams({ type: 'deposit', limit: '50' });
if (cursor) q.set('cursor', cursor);
const page = await fetch(`${BASE}/transactions?${q}`, { headers: headers() }).then((r) => r.json());
for (const t of page.items) console.log(t.type, t.id, t.state, t.amount);
cursor = page.next; // null on the last page
} while (cursor);
cursor = None
while True:
params = {"type": "deposit", "limit": 50}
if cursor:
params["cursor"] = cursor
page = requests.get(f"{BASE}/transactions", headers=headers(), params=params).json()
for t in page["items"]:
print(t["type"], t["id"], t["state"], t["amount"])
cursor = page["next"] # None on the last page
if not cursor:
break
Answer: {"items": [{"type", "id", "state", "amount", "fee", "currency", "reference", "created_at"}], "next": "<cursor>" | null}, newest first. fee is null until a deposit completes; reference is the deposit's reference (null for payouts).
Refusals: 422 invalid_type, invalid_time, invalid_limit, invalid_cursor.
8. Webhooks
Set the webhook URL and create the signing secret in the portal (Integration). The URL must be https with a public host; addresses that resolve to private or loopback ranges are refused. We POST every event of both environments to that one URL.
Request
Body: {"id": "wh_...", "event": "...", "data": {...}} (sorted keys, no spaces). Headers:
| Header | Value |
|---|---|
X-Walletpool-Event | the event name |
X-Walletpool-Timestamp | Unix seconds |
X-Walletpool-Signature | sha256=<hex>, where hex = HMAC-SHA256(your signing secret, timestamp + "." + raw body) |
Verify, dedupe, answer
- Verify the signature on the raw bytes of the body. Do not parse and re-serialise it first.
- Dedupe on
id: a webhook can arrive twice. - Answer
2xxwithin 10 seconds. Otherwise we retry after 30 s, 2 min, 10 min and 30 min (five attempts in all), then give up. - A live payout's events are sent one at a time, in order. Sandbox (test) payout events carry no ordering guarantee, so order them by
occurred_atand the final status. - Every
datahas"env": "live" | "test".
An event is sent only if your webhook URL and signing secret are both set at the moment it happens. An event that happens while either is missing is never sent, also not after you set them: read the object with GET instead. The portal's "Send test webhook" answers the same way without them, but nothing is sent.
Signature verifier
# bash + openssl. SECRET = signing secret, TS = X-Walletpool-Timestamp header,
# BODY_FILE = the raw request body saved byte-for-byte, SIG = X-Walletpool-Signature header
verify() {
local expected
expected="sha256=$( { printf '%s.' "$TS"; cat "$BODY_FILE"; } | openssl dgst -sha256 -hmac "$SECRET" -hex | awk '{print $NF}' )"
[ "$expected" = "$SIG" ] && echo valid || echo INVALID
}
import crypto from 'node:crypto';
/** rawBody must be the exact bytes received (Buffer), not re-serialised JSON. */
export function verifySignature(secret, timestamp, rawBody, signatureHeader) {
const hex = crypto
.createHmac('sha256', secret)
.update(`${timestamp}.`)
.update(rawBody)
.digest('hex');
const expected = Buffer.from(`sha256=${hex}`);
const given = Buffer.from(signatureHeader || '');
return expected.length === given.length && crypto.timingSafeEqual(expected, given);
}
import hashlib
import hmac
def verify_signature(secret: str, timestamp: str, raw_body: bytes, signature_header: str) -> bool:
"""raw_body must be the exact bytes received, not re-serialised JSON."""
mac = hmac.new(
secret.encode(), timestamp.encode() + b"." + raw_body, hashlib.sha256
).hexdigest()
return hmac.compare_digest("sha256=" + mac, signature_header or "")
Events
| Event | data |
|---|---|
deposit.completed | the deposit object plus deposit_id |
deposit.expired | the deposit object plus deposit_id |
payout.status | payout_id, status, reason_code, amount, fee, currency, transaction_no, occurred_at. Sent for submitted, settled, failed, unknown, cancelled; not for preparing or needs_review. |
settlement.status | settlement_id, id, company_id, amount, state, method, payout_id, external_reference, note, requested_by, resolved_by, requested_at, approved_at, resolved_at (live only). requested_by / resolved_by is "operator" for an action by our operators, otherwise company_user:<id> of the portal user. |
webhook.test | message, sent_at, requested_by (the portal's "Send test webhook"; env is live; requested_by is "operator" when our operators sent it, otherwise company_user:<id>) |
9. Sandbox / test mode
With a test key nothing reaches telebirr or our wallets. Test events are sent to your webhook URL with "env": "test".
Test deposits
A test deposit names a dummy wallet, 251900000000. Complete it with the portal's Simulate payment button, or:
Use a test key, an Idempotency-Key, and the JSON body {}. The answer is the completed deposit. A deposit that is no longer open gives 409 deposit_not_open; with a live key the call is 404.
curl -X POST "$BASE/sandbox/deposits/dr_REPLACE_WITH_ID/pay" \
-H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-H "Idempotency-Key: pay-dr-1" -d '{}'
const done = await fetch(`${BASE}/sandbox/deposits/${id}/pay`, {
method: 'POST', headers: headers({ 'Idempotency-Key': `pay-${id}` }), body: '{}',
}).then((r) => r.json());
done = requests.post(f"{BASE}/sandbox/deposits/{dep_id}/pay",
headers=headers(f"pay-{dep_id}"), json={}).json()
Test payouts
A test payout is accepted at once (202) and settles about 3 seconds later. The last two decimals of the amount decide the outcome:
| Amount ends in | Result |
|---|---|
.13 | status failed, reason_code sandbox_declined |
.17 | becomes unknown (reason_code sandbox_unknown) after about 3 seconds, stays so for 60 seconds, then settles |
| anything else | settles |
Only the amount limits are checked; targets are not looked up.
Test money
- Test money is a separate balance (
env: "test") that starts at zero. Complete test deposits to fill it. - Fees are applied as on live.
- The telebirr fee of a test payout is our estimate: 8.00 wallet, 15.00 bank, 0.00 merchant.
10. Errors
Every error answer is a JSON object with one field: {"code": "<code>"}. Branch on the HTTP status and the code.
| Status | Code | When |
|---|---|---|
| 400 | bad_request | body is not a JSON object of at most 8 KiB with Content-Type: application/json and a Content-Length |
| 400 | idempotency_key_required | POST without Idempotency-Key |
| 400 | invalid_idempotency_key | too long, not printable, or starts with settlement: |
| 401 | unauthorized | unknown, malformed or revoked key |
| 403 | company_suspended | live key while the company is suspended |
| 403 | company_not_live | live key while the company is pending or sandbox |
| 403 | address_not_allowed | calling address not in the company's allowed addresses |
| 403 | live_keys_by_operator | trying to make a live key in the portal |
| 404 | not_found | unknown path, an object that is not yours, or an unknown id shape (also the sandbox pay call with a live key) |
| 405 | method_not_allowed | known path, other method |
| 409 | idempotency_conflict | same Idempotency-Key, different body |
| 409 | insufficient_company_balance | available balance cannot cover amount + our fee + 20.00 |
| 409 | bank_disabled, merchant_disabled | payout refusals |
| 409 | deposit_not_open | sandbox pay on a deposit that is no longer open |
| 422 | invalid_amount | deposits and payouts |
| 422 | amount_below_min, amount_above_max | deposits: 1.00 / 100000.00 by default. Payouts: 1.00 / 300000.00 by default |
| 422 | invalid_phone, invalid_reference | deposits |
| 422 | invalid_target, currency_unsupported, invalid_bank_account, bank_unavailable, recipient_account_not_found | payouts |
| 422 | invalid_type, invalid_time, invalid_limit, invalid_cursor | transactions query |
| 503 | no_wallet_available | deposits: retry later with the same key |
11. Going live
- Ask Chella-Pay for a live key. Live keys are issued and revoked by Chella-Pay (Payments HQ) only. You cannot make one in the portal (
403 live_keys_by_operator). The key is shown once. Until your company is live, a live key answers403 company_not_live(company statuspendingorsandbox). Chella-Pay also gives you the real API host. - Set your webhook URL and signing secret in the portal (Integration). The URL must be
httpson a public host. Set both before you take traffic: events that happen while either is missing are never sent. - Check allowed addresses. Calls from an address that is not in the company's allowed addresses get
403 address_not_allowed. An empty list allows every address. - Switch your code from the
sk_test_key to thesk_live_key. Live and test are separate environments: idempotency keys, balances and webhookenvare separate, so handle"env": "live" | "test"in your webhook handler. - Verify with a small real payment, and use the portal's "Send test webhook" to check your endpoint (it is sent only when URL and secret are set).
Every request with a recognised key is logged in the portal (API requests) for 90 days by default, which helps when debugging.