get https://api.demo.getontop.com/payment-agent/paylists/23/payments
This is a paginated endpoint that exposes the list of payments involved in a previously created paylist. It can be traversed using page and/or size query parameters.
curl 'https://api.demo.getontop.com/payment-agent/paylists/23/payments?page=1&size=20' \
--header 'Authorization: Bearer xxxxxxxxxxxxxxxxxx'
{
"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
},
{
"id":232,
"description":"Worker n2",
"amount":30.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":{
"unsorted":false,
"sorted":true,
"empty":false
},
"pageNumber":0,
"pageSize":20,
"offset":0,
"paged":true,
"unpaged":false
},
"totalPages":1,
"totalElements":2,
"last":true,
"numberOfElements":2,
"size":20,
"number":0,
"sort":{
"unsorted":false,
"sorted":true,
"empty":false
},
"first":true,
"empty":false
}