WalletGet Settlements

Get Settlements

The Settlements API allows you to retrieve a list of payments that have been settled in your account.

Endpoint

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

This endpoint returns a paginated list of all settled payments in your account, including details about each settlement.

Example cURL Request

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

Sample Response

{
    "success": true,
    "message": "Settlement retrieved",
    "data": [
       
        {
            "id": 80,
            "batchid": "17681d32e1503",
            "currency": "NGN",
            "total_amount": "101.2",
            "settled_amount": "100",
            "domain": "live",
            "status": "success",
            "subaccount": null,
            "created_at": "2025-03-26T01:31:02.000000Z",
            "updated_at": "2025-03-26T01:31:02.000000Z"
        },
        {
            "id": 42,
            "batchid": "0718219978657",
            "currency": "NGN",
            "total_amount": "20.24",
            "settled_amount": "20",
            "domain": "live",
            "status": "success",
            "subaccount": null,
            "created_at": "2024-09-10T01:31:02.000000Z",
            "updated_at": "2024-09-10T01:31:02.000000Z"
        },
        {
            "id": 26,
            "batchid": "077b766557663",
            "currency": "NGN",
            "total_amount": "50.6",
            "settled_amount": "50",
            "domain": "live",
            "status": "success",
            "subaccount": null,
            "created_at": "2024-08-13T01:31:02.000000Z",
            "updated_at": "2024-08-13T01:31:02.000000Z"
        },
        {
            "id": 16,
            "batchid": "9f8ac86615a25",
            "currency": "NGN",
            "total_amount": "121.68",
            "settled_amount": "120",
            "domain": "live",
            "status": "success",
            "subaccount": null,
            "created_at": "2024-07-28T01:31:02.000000Z",
            "updated_at": "2024-07-28T01:31:02.000000Z"
        },
 
        // and more
        
    ],
    "meta": {
        "total": 4
    }
}

Explanation of the response

FieldTypeDescription
successbooleanIndicates whether the API request was successful
messagestringHuman-readable status message about the operation
dataarrayContains the list of settlement records
idintegerUnique identifier for the settlement record
batchidstringUnique identifier for the batch of transactions
currencystringCurrency code of the settlement (ISO 4217 format)
total_amountstringOriginal transaction amount before any deductions
settled_amountstringActual amount that was settled after deductions
domainstringIndicates the environment where settlement occurred (live/test)
statusstringCurrent status of the settlement (success/pending/failed)
subaccountnullPlaceholder for subaccount information when applicable
created_atstringTimestamp when the settlement record was created (ISO 8601 format)
updated_atstringTimestamp when the settlement record was last updated