curl -X GET "https://olp-api.nipuntheekshana.com/v1/withdrawals?page=1&limit=10" \
-H "Authorization: Bearer <your_jwt_token>"
{
"withdrawals": [
{
"id": "wd_abc123def456",
"amount": 500.00,
"status": "completed",
"bankAccountNumber": "1234567890",
"bankName": "Commercial Bank",
"bankBranch": "Colombo Main",
"createdAt": "2026-03-20T10:00:00Z",
"processedAt": "2026-03-21T09:15:00Z"
},
{
"id": "wd_xyz789ghi012",
"amount": 250.00,
"status": "pending",
"bankAccountNumber": "0987654321",
"bankName": "Sampath Bank",
"bankBranch": "Kandy",
"createdAt": "2026-03-26T14:30:00Z",
"processedAt": null
}
],
"pagination": {
"page": 1,
"limit": 10,
"total": 12,
"totalPages": 2
}
}
Settlements
List Withdrawals
Retrieve a paginated list of withdrawal requests
GET
/
v1
/
withdrawals
curl -X GET "https://olp-api.nipuntheekshana.com/v1/withdrawals?page=1&limit=10" \
-H "Authorization: Bearer <your_jwt_token>"
{
"withdrawals": [
{
"id": "wd_abc123def456",
"amount": 500.00,
"status": "completed",
"bankAccountNumber": "1234567890",
"bankName": "Commercial Bank",
"bankBranch": "Colombo Main",
"createdAt": "2026-03-20T10:00:00Z",
"processedAt": "2026-03-21T09:15:00Z"
},
{
"id": "wd_xyz789ghi012",
"amount": 250.00,
"status": "pending",
"bankAccountNumber": "0987654321",
"bankName": "Sampath Bank",
"bankBranch": "Kandy",
"createdAt": "2026-03-26T14:30:00Z",
"processedAt": null
}
],
"pagination": {
"page": 1,
"limit": 10,
"total": 12,
"totalPages": 2
}
}
Authentication
This endpoint requires a Bearer token in theAuthorization header.
Authorization: Bearer <your_jwt_token>
Query Parameters
integer
default:"1"
The page number for pagination.
integer
default:"20"
The number of withdrawals per page. Maximum value is
100.string
Filter by withdrawal status. Accepted values:
pending, approved, rejected, completed.Response
array
An array of withdrawal objects.
object
curl -X GET "https://olp-api.nipuntheekshana.com/v1/withdrawals?page=1&limit=10" \
-H "Authorization: Bearer <your_jwt_token>"
{
"withdrawals": [
{
"id": "wd_abc123def456",
"amount": 500.00,
"status": "completed",
"bankAccountNumber": "1234567890",
"bankName": "Commercial Bank",
"bankBranch": "Colombo Main",
"createdAt": "2026-03-20T10:00:00Z",
"processedAt": "2026-03-21T09:15:00Z"
},
{
"id": "wd_xyz789ghi012",
"amount": 250.00,
"status": "pending",
"bankAccountNumber": "0987654321",
"bankName": "Sampath Bank",
"bankBranch": "Kandy",
"createdAt": "2026-03-26T14:30:00Z",
"processedAt": null
}
],
"pagination": {
"page": 1,
"limit": 10,
"total": 12,
"totalPages": 2
}
}