TakaElo

Search the docs

Pages, sections and error codes

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). source says where it came from; link_id / invoice_id say which one.
payment.created — the full delivery
{
  "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

idstring
evt_ + 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.
livemodeboolean
false for test payments.
dataobject
payment.*: the payment object; dispute.*: the dispute object — at the moment of the event.

Headers

TakaElo-Signaturestring
t=<unix seconds>,v1=<hex HMAC-SHA256> — two v1 during a secret change. How to verify.
Content-Typestring
application/json.
User-Agentstring
TakaElo-Webhooks/1.