Payouts
Get PayoutDetails
GET
https://backendapi.sayswitchgroup.com/api/v1/payout/{reference}This endpoint is used to retrieve the full details of a specific payout transaction using its unique reference. It’s ideal for tracking payout status, viewing transaction metadata, and displaying individual payout summaries
Sample cURL Request
cURL
curl -X GET https://backendapi.sayswitchgroup.com/api/v1/payout/SSW_trf_m47f3023693d6d \
-H "Authorization: Bearer YOUR_SECRET_KEY"Sample Response
JSON
{
"success": true,
"message": "Payout retrieved",
"data": {
"id": 2,
"reference": "SSW_trf_m47f3023693d6d",
"sessionid": null,
"currency": "NGN",
"amount": "50",
"fee": "10",
"bank_code": "000013",
"bank_name": "GTBank",
"account_number": "0176448496",
"account_name": "John Doe",
"countryCode": "NG",
"serviceCode": null,
"paymentMode": "bank",
"narration": "Test",
"sender": "SAYSWITCH",
"domain": "live",
"requestIp": "102.88.35.88",
"initiator": "7|John Doe",
"status": "reversed",
"updated_by": "dg marious",
"updated_on": "2024-07-22 15:22:19",
"beneficiary": 0,
"subaccount": null,
"gateway": null,
"gateway_response": null,
"batch_id": "4d18123078162",
"created_at": "2024-07-02T13:06:53.000000Z",
"updated_at": "2024-07-22T14:22:19.000000Z"
}
}