This shows you how to get fetch transfer details using the chargeID
This endpoint helps you fetch the details of a transfer. By providing the Charge ID
, you can obtain comprehensive details about the transfer, including its status, amount, currency, and other relevant metadata.
curl -X GET "https://api.paychangu.com/mobile-money/payments/{{chargeId}}/details"
-H "Accept: application/json"
-H "Authorization: Bearer {secret_key}"
Fetch response
Here's a sample response
{
"status": "success",
"message": "Transaction retrieved successfully.",
"data": {
"amount": 50.75,
"charge_id": "jvivuiviu",
"ref_id": "87452449015",
"trans_id": "bc35c29a-df2c-45e5-a15e-42d594589b8e",
"first_name": null,
"last_name": null,
"email": null,
"type": "API Payout",
"status": "success",
"mobile": "+265992xxxx20",
"attempts": 1,
"currency": "MK",
"mode": "live",
"created_at": "2024-07-17T21:22:41.000000Z",
"completed_at": "2024-07-17T21:22:44.000000Z",
"event_type": "api.payout",
"mobile_money": {
"name": "Airtel Money",
"ref_id": "20be6c20-adeb-4b5b-a7ba-0769820df4fb",
"country": "Malawi"
},
"transaction_charges": {
"currency": "MK",
"amount": "0.75"
}
}
}