Skip to main content
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 the Authorization header.
Authorization: Bearer <your_jwt_token>

Query Parameters

page
integer
default:"1"
The page number for pagination.
limit
integer
default:"20"
The number of withdrawals per page. Maximum value is 100.
status
string
Filter by withdrawal status. Accepted values: pending, approved, rejected, completed.

Response

withdrawals
array
An array of withdrawal objects.
pagination
object
Pagination metadata.
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
  }
}