GET
/
transactions
/
{id}
Get Transaction
curl --request GET \
  --url https://api.mpesaflow.dev/transactions/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "trxn_YGZBY32PBBavYbhL",
  "customerId": "cus_GqfKXLmg61LURZhB",
  "object": "transaction",
  "environment": "development",
  "type": "payment",
  "amount": "1000",
  "currency": "KES",
  "status": "completed",
  "phoneNumber": "254712345678",
  "metadata": {},
  "failureReason": null,
  "createdAt": "2021-01-01T00:00:00Z",
  "paidAt": "2021-01-01T00:00:00Z",
  "failedAt": null
}

Authorizations

Authorization
string
header
required

The API key to use for authentication

Path Parameters

id
string
required

The transaction id

Required string length: 4 - 255
Example:

"trxn_YGZBY32PBBavYbhL"

Response

200
application/json

Get One Transaction

The response is of type object.