Get Transaction
https://sandboxapi.onbrails.com/api/v1/transactions/{transaction_id} (opens in a new tab)
Get a transaction
Path Parameters
Parameter | type | Required |
---|---|---|
transaction_id | string | ✅ |
Request
Transactions/Get Transaction [GET]
curl --request GET \
--url https://sandboxapi.onbrails.com/api/v1/transactions/transaction_id \
--header 'Authorization: Bearer YOUR_SECRET_KEY' \
--header 'accept: application/json'
Responses
🟢 200 - Result example
{
"status": true,
"message": "fetched transaction successful",
"data": {
"id": "00000000-0000-0000-0000-e000fca0000f",
"type": "DEBIT",
"fees": "0",
"action": "GHS_ACCOUNT_PAYOUT",
"amount": "3.26",
"status": "success",
"channel": "payout",
"createdAt": "2024-06-12T12:21:09.387Z",
"updatedAt": "2024-06-12T12:21:50.692Z",
"reference": "6dd1c917f08f",
"companyId": "00000000-0000-0000-0000-e000fca0000f",
"exchangeRate": "15.35",
"balanceAfter": "255",
"balanceBefore": "581",
"description": "SEND FUND",
"currency": "USD",
"beneficiary": {
"type": "MOBILEMONEY",
"network": "MTN",
"accountName": "Jen Doe",
"accountNumber": "0240000000"
},
"payoutAmount": 50,
"payoutCurrency": "GHS",
"payoutUsdAmount": "0"
}
}