API reference
The webhook event
The envelope every webhook delivery carries, and a full delivery of each of the ten event types.
Opt-in — tick it in Developers › Webhooks to receive it.
- When
- A checkout was opened — by your server, a payment link or an invoice. Links and invoices are made inside TakaElo, so this is how your system first hears of them.
- Your code
- Record the payment against the order (or create the order, for a link).
sourcesays where it came from;link_id/invoice_idsay which one.
{
"id": "evt_1Bq8Lw3Zn6Vc2Tx9Kp4Rm7Hd",
"type": "payment.created",
"created": 1791641454,
"livemode": true,
"data": {
"id": "pay_5Rt8Kq2Wz7Nc1Vb4Lx9Hm3Pd",
"object": "payment",
"livemode": true,
"status": "initiated",
"failure_reason": null,
"review_reason": null,
"amount": 1250,
"amount_received": null,
"amount_due": 1250,
"refund_due": 0,
"currency": "BDT",
"wallet": null,
"sender": "",
"trx_id": null,
"reference": "Kurti — blue",
"source": "link",
"link_id": "lnk_9Vb3Qx7Lw2Zt5Nc8Kr1Hm4Pd",
"invoice_id": null,
"customer": { "name": "Rahim Uddin", "phone": "01712345678", "email": "" },
"metadata": {},
"url": "https://yourshop.takaelo.com/pay/pay_5Rt8Kq2Wz7Nc1Vb4Lx9Hm3Pd",
"created": 1791641454,
"expires_at": 1791643254,
"completed_at": null,
"refunded_at": null
}
}Fields
idstringevt_+ 24 characters. The same on every retry of this delivery — use it to process once.typestring- One of the ten event types. The four outcomes are sent by default; the rest when the endpoint chose them.
createdinteger- When the event happened, unix seconds.
livemodebooleanfalsefor test payments.dataobjectpayment.*: the payment object;dispute.*: the dispute object — at the moment of the event.
Headers
TakaElo-Signaturestringt=<unix seconds>,v1=<hex HMAC-SHA256>— twov1during a secret change. How to verify.Content-Typestringapplication/json.User-AgentstringTakaElo-Webhooks/1.