PayoutsGet Payouts

Get Payouts

The Get Payouts endpoint retrieves a history of all payout transactions processed on the platform. This includes detailed information such as the amount paid, status, account details, sender, and other transaction metadata. It’s commonly used for auditing, tracking, and displaying payout records to admins or users.

Endpoint

GET https://backendapi.sayswitchgroup.com/api/v1/payout

Sample cURL Response

{
  "success": true,
  "message": "Payout retrieved",
  "data": [
    {
      "id": 644,
      "reference": "186f575026447_subaccount",
      "sessionid": "000017250405023102736775422250",
      "currency": "NGN",
      "amount": "15.18",
      "fee": "0",
      "bank_code": "100004",
      "bank_name": "PAYCOM",
      "account_number": "8080976685",
      "account_name": "John Doe",
      "countryCode": "NG",
      "paymentMode": "bank",
      "narration": "Split Payment on SSW_17437701414070124",
      "sender": "SAYSWITCH",
      "domain": "live",
      "status": "success",
      "created_at": "2025-04-05T01:31:03.000000Z",
      "updated_at": "2025-04-05T01:31:05.000000Z"
    }
    // more records...
  ]
}
FieldTypeDescription
successbooleanIndicates if the request was successful.
messagestringA short message about the request.
dataarrayList of payout records. Each record includes:
idintegerUnique ID of the payout record.
referencestringUnique transaction reference.
sessionidstringPayment session ID.
currencystringCurrency used in the payout (e.g., NGN).
amountstringAmount transferred.
feestringFee charged for the payout.
bank_codestringCode of the recipient’s bank.
bank_namestringName of the recipient’s bank.
account_numberstringBeneficiary’s account number.
account_namestringBeneficiary’s account name.
countryCodestringCountry code (e.g., NG).
paymentModestringPayment mode (e.g., bank).
narrationstringDescription or narration attached to the payout.
senderstringThe initiator of the payout, e.g., “SAYSWITCH”.
domainstringEnvironment domain, e.g., live.
statusstringStatus of the payout (success, reversed, etc).
created_atstringISO 8601 timestamp when the payout was created.
updated_atstringISO 8601 timestamp when the payout was last updated.