400 Invalid frequency/date combo for subscription events report

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 ?

Hi, did you find any solution? It's happening the same thing to me.

At Sales Reports documentation page see Allowed Values Based on Sales Report Type paragraph which contains valid combination of parameters per report type. Here you can see that for SUBSCRIPTION_EVENT the only valid frequency is DAILY, so this is the issue in your case. And API just returns incorrect error, while it should rather state that specified frequency is incorrect for this report type.

According to this webpage, reportType: SUBSCRIPTION_EVENT only supports frecuency DAILY at version 1_3 ; doesn't support fecuency MONTHLY.

But you can get more days if you use the filter[reportDate] parameter and, by code, iterate over a date range.

https://api.appstoreconnect.apple.com/v1/salesReports?filter[reportDate]=2021-11-01&filter[frequency]=DAILY&filter[reportSubType]=SUMMARY&filter[reportType]=SUBSCRIPTION_EVENT&filter[vendorNumber]=*****&filter[version]=1_3

According to this webpage,

reportType: SUBSCRIPTION_EVENT only supports frecuency DAILY at version 1_3; doesn't support fecuency MONTHLY.

But you can get more days if you use the filter[reportDate] parameter and, by code, iterate over a date range.

https://api.appstoreconnect.apple.com/v1/salesReports?filter\[reportDate\]=2021-11-01&filter[frequency]=DAILY&filter[reportSubType]=SUMMARY&filter[reportType]=SUBSCRIPTION_EVENT&filter[vendorNumber]=*****&filter[version]=1_3
400 Invalid frequency/date combo for subscription events report
 
 
Q