Skip to content
Docs
FR Create an account

Resources

API reference

Every endpoint, on https://tchin.tech/api/v1, with the TCHIN-PUBLIC-KEY and TCHIN-PRIVATE-KEY headers. Each group links to its page.

Good to know
Common to all calls: JSON, integer CFA amounts, "success": true or false with a message, 120 requests per minute. See Modes and errors.

Payments

POST/paymentscreate a payment; returns token and payment_url
GET/payments/{token}/statusa payment’s status
GET/methodsopen methods by country, cryptos and app settings (?for=payout)
POST /payments fieldRequiredDefault
amountyes(integer, 100 to 100,000,000)
descriptionno« Paiement »
callback_urlnothe app’s webhook
return_url, cancel_urlnothe page the customer came from
fees_on_customernothe app setting
envnotest

Details: Payments, GET /methods.

Payouts

POST/payouts/linksReceive: a payout of the customer’s choice (201)
GET/payouts/links/{token}its status
POST/payouts/links/{token}/cancelcancel it, until the customer has withdrawn
POST/disburse/initiatepay a Mobile Money number: prepare
POST/disburse/submitpay a number: send
POST/disburse/statuspay a number: status
POST/payouts/cryptopay a crypto address, idempotent by reference
GET/payouts/crypto/{payout_id}its status and transaction

Details: Receive, Direct payouts.

In-store payments

GET/terminalsyour customer screens
POST/terminal/paymentssend an amount to a screen (201)
GET/terminal/payments/{id}the status
POST/terminal/payments/{id}/cancelcancel (409 if already paid)

Details: In-store payments. For verified Business accounts.

Account

GET/balanceyour balances by country and in crypto

Web kit

ScriptFunctions
https://tchin.tech/js/tchin-pay.jsTchinPay.open({ token, onSuccess, onPending, onFailed, onClose, apparence }), TchinPay.receive({ … }), TchinPay.close(). apparence: couleur, accent, panneau (#RRGGBB), logo (orange, noir, accent, aucun).

Webhooks

Form POST to your callback_url, data field, headers Tchin-Signature: v1=… and Tchin-Timestamp. Signature: HMAC-SHA256 with your secret key of timestamp.reference.token.status.amount.net.mode. 5 attempts. Details: Webhooks.

MCP server

On https://tchin.tech/mcp. See Tchin in your AI. A payment’s public status, no key:

GEThttps://tchin.tech/pay/{code}/etata_payer, en_cours or paye

Removed methods

There is one way to take payments through the API: the Tchin sheet, opened on your site. The old ways return 410:

POST/payments/{token}/chargepay on your own page, by Mobile Money
POST/payments/{token}/cryptopay on your own page, in crypto
Response (410)
{
  "success": false,
  "error": "method_removed",
  "message": "Cette méthode n’existe plus. Ouvrez la feuille de paiement Tchin sur votre site : TchinPay.open({ token })."
}
  1. Keep your POST /payments call: it returns the same token.
  2. Replace your payment form with one line: TchinPay.open({ token }).
  3. Your webhook handling does not change: same format, same signature.