Accept payments
In-store payments
Your till software sends the amount to a customer screen, a tablet or phone facing the customer. The customer shows their face, types their Tchin PIN, and it is paid.
Good to know
For verified Business accounts. The customer pays from their Tchin account: their face must be enrolled and face payment enabled. From 200 to 500,000 CFA per payment.
How it works
- Pair a screen: in Tchin, Face payment page › Customer screens › Add. A 6-digit code appears (10 minutes). On the tablet, open
tchin.tech/caisseand type the code. The screen stays paired, even after a restart. - Your till sends the amount to that screen (
terminal_id) through the API. - The screen shows the amount and opens the camera. The customer shows their face; Tchin recognises them, then asks for their Tchin PIN.
- Your till is notified: signed webhook, or status call. You print the receipt.
If the face is not recognised, the screen allows up to 3 retries. The payment waits 5 minutes for the customer, then expires.
List your screens
GET
/api/v1/terminals{
"success": true,
"data": [
{ "id": "ecr_y9umcepnvrwbomtjst0f", "name": "Caisse 1", "paired": true, "online": true, "last_seen": "2026-11-23T09:12:40+00:00" }
]
}Send a payment to a screen
POST
/api/v1/terminal/payments| Field | Type | Description |
|---|---|---|
terminal_id | string | required. The customer screen (ecr_…). |
amount | integer | required. From 200 to 500,000 CFA. |
reference | string | your reference (receipt number). |
callback_url | URL | your webhook. |
env | string | live (default) or test: in test, the screen offers “Simulate: paid / declined”. |
curl -X POST https://tchin.tech/api/v1/terminal/payments \
-H "TCHIN-PUBLIC-KEY: $TCHIN_PUBLIC_KEY" -H "TCHIN-PRIVATE-KEY: $TCHIN_PRIVATE_KEY" \
-H "Content-Type: application/json" -H "Accept: application/json" \
-d '{"terminal_id": "ecr_y9umcepnvrwbomtjst0f", "amount": 2500, "reference": "Ticket 0042",
"callback_url": "https://wintg.group/webhook-tchin"}'const r = await fetch('https://tchin.tech/api/v1/terminal/payments', {
method: 'POST',
headers: { 'TCHIN-PUBLIC-KEY': process.env.TCHIN_PUBLIC_KEY, 'TCHIN-PRIVATE-KEY': process.env.TCHIN_PRIVATE_KEY,
'Content-Type': 'application/json', 'Accept': 'application/json' },
body: JSON.stringify({ terminal_id: 'ecr_y9umcepnvrwbomtjst0f', amount: 2500, reference: 'Ticket 0042' }),
});
const { data } = await r.json(); // data.id : pvc_…Response (201)
{
"success": true,
"data": {
"id": "pvc_kqvfoxms4hn1ccvm5uwtdfou",
"reference": "Ticket 0042",
"terminal_id": "ecr_y9umcepnvrwbomtjst0f",
"amount": 2500,
"currency": "XOF",
"status": "pending",
"mode": "live",
"customer": null,
"failure_reason": null,
"created_at": "2026-11-23T09:15:02+00:00",
"completed_at": null
}
}A screen shows one payment at a time: a new payment cancels the one still waiting on the same screen.
Track and cancel
GET
/api/v1/terminal/payments/{id}POST
/api/v1/terminal/payments/{id}/cancelpossible until the customer has paid; otherwise 409| status | Meaning |
|---|---|
pending | the screen is waiting for the customer’s face |
processing | recognition or payment in progress |
awaiting_pin | customer recognised: typing their Tchin PIN |
completed | paid; customer gives their Tchin ID and name |
failed | declined (reason in failure_reason) |
expired | the customer did not show up (5 min) or did not type their PIN (2 min) |
canceled | cancelled by your till, or replaced |
Webhook
On each outcome, your callback_url receives the same fields as the response, with kind = "terminal" and event = "terminal_payment.completed" (etc.). For the signature, token is the pvc_… id: verify it like payments, see Webhooks.
Errors
| Response | Meaning |
|---|---|
| 422 “Business verified accounts only” | the account is not Business, or not verified |
| 422 “Amount from 200 to 500000 FCFA” | amount out of range |
| 422 “Customer screen not found” | unknown terminal_id, or another account’s |
| 422 “Screen not paired yet” | type its code on tchin.tech/caisse |
| 409 on cancel | the customer already paid |