I need to get subscriptions of the previous months, so I query:
https://api.appstoreconnect.apple.com/v1/salesReports?filter\[reportDate\]=2021-11&filter[frequency]=MONTHLY&filter[reportSubType]=SUMMARY&filter[reportType]=SUBSCRIPTION_EVENT&filter[vendorNumber]=*****&filter[version]=1_3
But I get an unexpected:
"status" : "400",
"code" : "PARAMETER_ERROR.INVALID.INVALID_COMBINATION",
"title" : "Some provided parameters cannot be used in this combination.",
"detail" : "Invalid combination of date type and date. For daily and weekly reports, use format YYYY-MM-DD. For monthly, use YYYY-MM. For yearly, use YYYY."
Even though I am using a monthly + YYYY-MM.
Same when I try yearly + 2021.
Only daily works, but I'm interested in more than the last day's report.
Is this a bug in the API ?