curl --location '/payments/fetch' \
--header 'Authorization: Bearer {{bearerToken}}' \
--header 'Authorization: Bearer {{bearerToken}}' \
--header 'Accept: application/json' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"pagination": {
"page": 0,
"size": 50
},
"filters": [
{
"propertyName": "fromDate",
"operation": "GREATER_THAN_OR_EQUAL",
"value": "2026-11-01"
},
{
"propertyName": "toDate",
"operation": "LESS_THAN_OR_EQUAL",
"value": "2026-11-30"
},
{
"propertyName": "paymentMethod",
"operation": "IN",
"values": [
"Credit/Debit Card",
"Cheque",
"Credit"
]
}
],
"sort": [
{
"propertyName": "paymentDate",
"direction": "DESC"
}
]
}'{
"content": [
{
"paymentDate": [
2026,
11,
14,
10,
32,
5
],
"paymentRefNumber": "pi_3QxYzAbCdEf",
"paymentType": "Payment Gateway",
"paymentMethod": "Credit/Debit Card",
"paymentAmount": 1000,
"invoiceId": "c41d9b7e-1a2b-4c3d-8e9f-0a1b2c3d4e5f",
"invoiceNumber": "INV-0001001",
"invoiceAmount": 1500,
"currencyIsoCode": "USD",
"customerId": "9585bba0-5cad-408d-a533-e7ef9134fe03",
"customerName": "Acme Corp"
},
{
"paymentDate": [
2026,
11,
12,
0,
0
],
"paymentRefNumber": "CHQ-55821",
"paymentType": "Manual",
"paymentMethod": "Cheque",
"paymentAmount": 500,
"invoiceId": "e63f1d90-3c4d-4e5f-a0b1-2c3d4e5f6071",
"invoiceNumber": "INV-0000998",
"invoiceAmount": 800,
"currencyIsoCode": "USD",
"customerId": "1b2c3d4e-5f60-7182-93a4-b5c6d7e8f901",
"customerName": "Globex"
},
{
"paymentDate": [
2026,
11,
10,
8,
0
],
"paymentType": "Customer Credit",
"paymentMethod": "Credit",
"paymentAmount": 500,
"invoiceId": "c41d9b7e-1a2b-4c3d-8e9f-0a1b2c3d4e5f",
"invoiceNumber": "INV-0001001",
"invoiceAmount": 1500,
"currencyIsoCode": "USD",
"customerId": "9585bba0-5cad-408d-a533-e7ef9134fe03",
"customerName": "Acme Corp"
}
],
"pageNumber": 0,
"pageSize": 50,
"totalElements": 3,
"totalPages": 1,
"first": true,
"last": true,
"numberOfElements": 3,
"empty": false
}