Skip to content
Docs
FR Create an account

Get started

Modes and errors

Test and live mode, the shape of responses, error codes, limits, and the right way to retry.

Test and live mode

Every create call accepts "env": "test" or "live". Always set it: the default differs from one endpoint to another.

EndpointWithout envTest mode
POST /paymentstestyes
POST /payouts/linksliveyes
POST /terminal/paymentsliveyes (the screen offers “Simulate”)
POST /disburse/initiateliveno: real money, always
POST /payouts/cryptoliveno: real crypto, always
Test modeLive mode
Moneynothing is charged or paid outreal payments, real payouts
Mobile Moneya “Simulate payment” buttonthe customer’s real number and PIN
Cryptoa “Simulate payment” buttona real on-chain transfer
Webhookssent and signed, with "mode": "test"sent and signed, with "mode": "live"

The sheet shows Test mode when the operation is in test. Responses and webhooks always state the mode (env or mode): check it before delivering.

Responses

A successful response has "success": true, with 200 (read, done) or 201 (created). An error has "success": false and a clear message you can show as is:

{ "success": false, "message": "Solde insuffisant sur le pays TG.", "balance": 4200, "required": 5170, "fee": 170 }

A field error returns 422 with details in errors:

{
  "message": "Le champ amount doit être au moins 100.",
  "errors": { "amount": ["Le champ amount doit être au moins 100."] }
}

HTTP codes

CodeMeaningWhat to do
200, 201success (201: created)read the response
400request refused: unsupported network or country, insufficient balance for a payout, network refusalread message; do not retry as is
401missing or wrong keyscheck both headers and your environment variables
403account suspendedcontact support from your account
404not found, or belongs to another appcheck the identifier and the keys used
409the operation can no longer be done (already paid, for example)read the status again
410method removed ("error": "method_removed")use the sheet: see removed methods
422missing or invalid field (errors), or impossible request explained in messagefix the request
423payouts suspended by an account security checkcontact support
429too many requestswait for the seconds in the Retry-After header
5xxerror on Tchin’s sideretry later with increasing delay; see statut.tchin.tech

Limits

LimitValue
Requests120 per minute per public key, and 300 per minute per IP address
A paymentfrom 100 to 100,000,000 CFA
A Mobile Money payout200 CFA minimum, within the recipient network’s limits
Receive (customer’s choice)Mobile Money from 500 to 1,500,000 CFA; in crypto, the chosen coin’s minimum
An in-store paymentfrom 200 to 500,000 CFA
Webhooksto a public HTTPS URL only

Retrying safely

  • Timeout: allow 30 seconds per call. A payout can take a few seconds.
  • Retry only on 429, 5xx or a network failure, with growing delays (1 s, 5 s, 30 s…). Never on 400, 401, 404 or 422.
  • Nothing twice: one payment per order, keep its token. A crypto payout carries your reference: the same reference only sends once. A Mobile Money payout takes two calls: only call submit again if the status tells you to.
  • Source of truth: the status is read from your server (signed webhook or status call), never from the customer’s page.