WalletSettlement Details

Get Settlement Details

This endpoint allows you to retrieve the details of a specific settlement using its batch ID.

Endpoint GET https://backendapi.sayswitchgroup.com/api/v1/settlement/details/:{batchid}

Example cURL Request

curl -X GET https://backendapi.sayswitchgroup.com/api/v1/settlement/details/1919376216134 \
  -H "Authorization: Bearer YOUR_SECRET_KEY"

Sample Response

{
    "success": true,
    "message": "Settlement retrieved",
    "data": {
        "id": 173,
        "batchid": "64d146687312e",
        "currency": "NGN",
        "total_amount": "101.2",
        "settled_amount": "100",
        "domain": "live",
        "status": "success",
        "subaccount": null,
        "created_at": "2025-05-21T01:31:02.000000Z",
        "updated_at": "2025-05-21T01:31:02.000000Z"
    },
    "transactions": []
}

Response Fields

FieldTypeDescription
successbooleanIndicates if the request was successful.
messagestringA descriptive message about the status of the request.
dataobjectAn object containing the settlement details.
data.idintegerThe unique ID of the settlement record.
data.batchidstringThe unique batch ID for the settlement.
data.currencystringThe currency of the settlement (e.g., “NGN”).
data.total_amountstringThe total amount involved in the settlement before any deductions.
data.settled_amountstringThe actual amount that was settled.
data.domainstringThe environment where the settlement occurred (e.g., “live”).
data.statusstringThe status of the settlement (e.g., “success”).
data.subaccountstring \n nullThe subaccount associated with the settlement. Can be null if not applicable.
data.created_atstringThe timestamp when the settlement record was created (ISO 8601 format).
data.updated_atstringThe timestamp when the settlement record was last updated (ISO 8601 format).
transactionsarrayAn array of transactions included in this settlement. Empty if not requested or not linked.