This endpoint is used to retrieve a paginated list of payments for a specific customer within a date range. Users can specify the start date and end date to filter the payments. If not provided, default values will be used. This endpoint is a critical tool for monitoring and verifying the progress of payments over a specific time period.

curl 'https://api.demo.getontop.com/payment-agent/payments?startDate=2023-09-01T00:00:00Z&endDate=2023-09-30T23:59:59Z&page=0&size=20' \
--header 'Authorization: Bearer xxxxxxxxxxxxxxxxxx'

HTTP 200
{
  "content": [
    {
      "id": 231,
      "description": "Worker n1",
      "amount": 10.00,
      "worker_email": "[email protected]",
      "paylist_id": 23,
      "idempotence_key": "2ffa2c706ab068dce719b38d1a795544",
      "creation_date": "2023-09-28T14:48:46.771546Z",
      "update_date": "2023-09-28T14:48:48.212830Z",
      "status": "SUCCESS",
      "cause": null
    },
    ...
  ],
  "pageable": {
    "sort": {
      "sorted": true,
      "unsorted": false,
      "empty": false
    },
    "offset": 0,
    "pageNumber": 0,
    "pageSize": 20,
    "paged": true,
    "unpaged": false
  },
  "totalElements": 100
}