cURL
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 }
Get a transaction in the business
The API key to use for authentication
The transaction id
4 - 255
"trxn_YGZBY32PBBavYbhL"
Get One Transaction
The response is of type object.
object
Was this page helpful?