PayoutsGet Payout Details

Get PayoutDetails

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

endpoint

GET https://backendapi.sayswitchgroup.com/api/v1/payout/{reference}

Sample cURL Request

curl -X GET https://backendapi.sayswitchgroup.com/api/v1/payout/SSW_trf_m47f3023693d6d \
  -H "Authorization: Bearer YOUR_SECRET_KEY"

Sample Response

{
  "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"
  }
}

Response Fields

FieldTypeDescription
successbooleanIndicates if the request was successful.
messagestringMessage describing the outcome.
dataobjectPayout details object.
idintegerUnique identifier of the payout.
referencestringUnique payout reference code.
sessionidstringSession ID (if available).
currencystringCurrency used for the payout (e.g., NGN).
amountstringAmount sent in the payout.
feestringFee deducted for the transaction.
bank_codestringCode of the recipient’s bank.
bank_namestringName of the recipient’s bank.
account_numberstringRecipient’s account number.
account_namestringRecipient’s account name.
countryCodestringCountry code, typically NG for Nigeria.
serviceCodestringAssociated service code, if any.
paymentModestringMode of payment (bank, etc.).
narrationstringNarration or remark for the payout.
senderstringThe originator or system that initiated the payout.
domainstringEnvironment domain (live or test).
requestIpstringIP address of the initiator.
initiatorstringInformation about the initiator (`userId
statusstringPayout status (success, pending, reversed, etc.).
updated_bystringName of the person or system that last updated the record.
updated_onstringTimestamp of last update (human-readable).
beneficiaryintegerIndicates whether it’s a beneficiary record (0 or 1).
subaccountstringSubaccount ID if payout was routed through a subaccount.
gatewaystringPayment gateway used (if applicable).
gateway_responsestringGateway’s response message or code.
batch_idstringBatch ID if payout was part of a batch.
created_atstringISO timestamp of when the payout was created.
updated_atstringISO timestamp of the last update.