Change to Reports API

Hi.

Up to the 15th of September, the following was working fine.

{
“dateRangeStart”: “2022-01-01T00:00:00.000”,
“dateRangeEnd”: “2022-12-31T23:59:59.000”,
“detailedFilter”: {
“page”: 1,
“pageSize”: 1000,
“sortColumn”: “DATE”,
“options”: {
“totals”: “EXCLUDE”
}
},
“sortOrder”: “ASCENDING”,
“exportType”: “JSON”,
“rounding”: false,
“amountShown”: “EARNED”,
“timeZone”: “America/Los_Angeles”,
“invoicingState”: “ALL”,
“approvalState”: “ALL”,
“userGroups”: null,

“tasks”: null,
}

However, now it is saying invalid. Can anyone see where the issue is with the above, or what it should look like?

Thanks!

Found it, thanks to Damian in Support. It was the trailing comma after tasks": null**,**

{
“dateRangeStart”: “2022-01-01T00:00:00.000”,
“dateRangeEnd”: “2022-12-31T23:59:59.000”,
“detailedFilter”: {
“page”: 1,
“pageSize”: 1000,
“sortColumn”: “DATE”,
“options”: {
“totals”: “EXCLUDE”
}
},
“sortOrder”: “ASCENDING”,
“exportType”: “JSON”,
“rounding”: false,
“amountShown”: “EARNED”,
“timeZone”: “America/Los_Angeles”,
“invoicingState”: “ALL”,
“approvalState”: “ALL”,
“userGroups”: null,

“tasks”: null**,**
}