This shows you how to get charge details using the chargeID
This endpoint allows you to retrieve detailed information about a specific transaction. By providing the Charge ID
, you can obtain comprehensive details about the transaction, 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}"
Verification response
Here's a sample verification response
{
"status": "successful",
"message": "Payment authorized and completed successfully.",
"data": {
"amount": 65,
"charge_id": "TRAU28987693",
"ref_id": "40725788795",
"trans_id": "83822270-958d-4fb7-a370-ec132e8c5b06",
"first_name": "Kim",
"last_name": "Darry",
"email": "[email protected]",
"status": "successful",
"mobile": "+265992xxxx20",
"attempts": 1,
"currency": "MWK",
"mode": "live",
"created_at": "2024-06-14T15:43:25.000000Z",
"completed_at": "2024-06-14T15:43:58.000000Z",
"mobile_money": {
"name": "Airtel Money",
"ref_id": "20be6c20-adeb-4b5b-a7ba-0769820df4fb",
"country": "Malawi"
}
}