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.
"success": true or false with a message, 120 requests per minute. See Modes and errors.Payments
/paymentscreate a payment; returns token and payment_url/payments/{token}/statusa payment’s status/methodsopen methods by country, cryptos and app settings (?for=payout)| POST /payments field | Required | Default |
|---|---|---|
amount | yes | (integer, 100 to 100,000,000) |
description | no | « Paiement » |
callback_url | no | the app’s webhook |
return_url, cancel_url | no | the page the customer came from |
fees_on_customer | no | the app setting |
env | no | test |
Details: Payments, GET /methods.
Payouts
/payouts/linksReceive: a payout of the customer’s choice (201)/payouts/links/{token}its status/payouts/links/{token}/cancelcancel it, until the customer has withdrawn/disburse/initiatepay a Mobile Money number: prepare/disburse/submitpay a number: send/disburse/statuspay a number: status/payouts/cryptopay a crypto address, idempotent by reference/payouts/crypto/{payout_id}its status and transactionDetails: Receive, Direct payouts.
In-store payments
/terminalsyour customer screens/terminal/paymentssend an amount to a screen (201)/terminal/payments/{id}the status/terminal/payments/{id}/cancelcancel (409 if already paid)Details: In-store payments. For verified Business accounts.
Account
/balanceyour balances by country and in cryptoWeb kit
| Script | Functions |
|---|---|
https://tchin.tech/js/tchin-pay.js | TchinPay.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:
https://tchin.tech/pay/{code}/etata_payer, en_cours or payeRemoved methods
There is one way to take payments through the API: the Tchin sheet, opened on your site. The old ways return 410:
/payments/{token}/chargepay on your own page, by Mobile Money/payments/{token}/cryptopay on your own page, in crypto{
"success": false,
"error": "method_removed",
"message": "Cette méthode n’existe plus. Ouvrez la feuille de paiement Tchin sur votre site : TchinPay.open({ token })."
}- Keep your
POST /paymentscall: it returns the sametoken. - Replace your payment form with one line:
TchinPay.open({ token }). - Your webhook handling does not change: same format, same signature.