GET
/
transactions
/
{id}
curl --request GET \
  --url https://api.mpesaflow.com/v1/transactions/{id} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "id": "<string>",
    "customerId": "<string>",
    "object": "<string>",
    "currency": "<string>",
    "fee": "<string>",
    "amount": "<string>",
    "provider": "<string>",
    "providerReference": "<string>",
    "description": "<string>",
    "status": "pending",
    "type": "payment",
    "metadata": "<string>",
    "origin": "web",
    "declineReason": "<string>",
    "createdAt": "<string>",
    "updatedAt": "<string>",
    "refundedAt": "<string>",
    "paidAt": "<string>",
    "failedAt": "<string>",
    "disputedAt": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Authorization
string
required
Example:

"Bearer SECRET"

Path Parameters

id
string
required
Example:

"txn_12345"

Response

200
application/json

Get One Transaction

The response is of type object.