টাকা এলো

Search the docs

Pages, sections and error codes

API reference

The payment object

Every field of a payment, as the API and every webhook return it.

JSON
{
  "id": "pay_3kT9xQm2LrV8nB4cW7yZ1aPd",
  "object": "payment",
  "livemode": true,
  "status": "completed",
  "failure_reason": null,
  "review_reason": null,
  "amount": 1250,
  "amount_received": 1250,
  "amount_due": 0,
  "refund_due": 0,
  "currency": "BDT",
  "wallet": "bkash",
  "sender": "01712345678",
  "trx_id": "BK7Q2M9XLA",
  "reference": "ORD-4821",
  "source": "api",
  "link_id": null,
  "invoice_id": null,
  "customer": { "name": "Rahim Uddin", "phone": "01712345678", "email": "" },
  "metadata": { "order_id": "4821" },
  "url": "https://yourshop.takaelo.com/pay/pay_3kT9xQm2LrV8nB4cW7yZ1aPd",
  "created": 1791641454,
  "expires_at": 1791642354,
  "completed_at": 1791641621,
  "refunded_at": null
}

Fields

idstring
pay_ + 24 characters.
objectstring
Always payment.
livemodeboolean
false for test payments.
statusstring
initiated · pending · completed · pending_review · failed · refunded. See Payments.
failure_reasonstring | null
When failed: expired, cancelled or rejected.
review_reasonstring | null
When pending_review: above_limit, trx_claim, amount_mismatch, overpaid or late.
amountnumber
What the checkout asked for, in taka.
amount_receivednumber | null
Everything counted for this payment so far. null until money arrives.
amount_duenumber
Still to pay (a short payment waiting for the rest). 0 once paid.
refund_duenumber
Received more than asked and not yet returned by you. Usually 0.
currencystring
Always BDT.
walletstring | null
How the customer paid, once chosen: bkash, nagad, rocket, upay, cellfin, okwallet, pathaopay, tap, banglaqr or bank. bKash, Nagad and Rocket complete from the shop's phone; the others wait for the shop to confirm.
senderstring
The customer's wallet number. Empty until they choose a wallet.
trx_idstring | null
The wallet's TrxID, once the money is matched.
referencestring
Your order number, as you sent it (a link's title, an invoice's number).
sourcestring
Where it started: api (your server), link (a payment link), invoice, or sandbox (a dashboard test payment).
link_idstring | null
The payment link it came from (lnk_…), when source is link.
invoice_idstring | null
The invoice it pays (inv_…), when source is invoice.
customerobject
name, phone, email — as you sent them (empty strings when not).
metadataobject
Your key/value pairs, as you sent them.
urlstring
The checkout page, on your checkout address.
createdinteger
Unix seconds.
expires_atinteger
When the checkout times out (moves forward once a wallet is chosen).
completed_atinteger | null
When the money was matched or approved.
refunded_atinteger | null
When you recorded a refund.