If you filter by Date, the range cannot exceed 30 days.
Authorization: Bearer ********************curl --location -g --request GET '/api/reporting/batches/<dba id>?filter[card.bin.brand]=Visa&filter[date][gte]=2020-03-24&filter[date][lte]=2020-03-24' \
--header 'Authorization: Bearer <token>' {
"items": [
{
"id": "17385312",
"card": {
"number": "531259XXXXXX0736",
"bin": {
"bin": "531259",
"brand": "Mastercard",
"organization": "Bank Of America, National Association",
"type": "Debit",
"category": "Enhanced",
"country": {
"name": "United States",
"code": "US"
}
}
},
"amount": -0.01,
"adjustment": 0,
"type": "credit",
"purchaseId": "SSS-2023032405742994",
"terminal": {
"vNumber": null,
"id": null,
"number": null
},
"batch": {
"id": "xxxxxxx",
"date": "2020-03-22"
},
"date": "2020-03-22"
},
{
"id": "17385309",
"card": {
"number": "483312XXXXXX8992",
"bin": {
"bin": "483312",
"brand": "Visa",
"organization": "Jpmorgan Chase Bank, N.a.",
"type": "Debit",
"category": "Classic",
"country": {
"name": "United States",
"code": "US"
}
}
},
"amount": -0.11,
"adjustment": 0,
"type": "credit",
"purchaseId": "SSS-54552405742994",
"terminal": {
"vNumber": null,
"id": null,
"number": null
},
"batch": {
"id": "xxxxxxx",
"date": "2020-03-22"
},
"date": "2020-03-22"
}
],
"_links": {
"self": {
"href": "https://zendashboard.com/api/reporting/batches/14?page=1"
},
"_meta": {
"totalCount": 2,
"pageCount": 1,
"currentPage": 1,
"perPage": 30
}
}