filter[vendorNumber] Invalid vendor number specified. Try again.

Hi All,

I am connecting the apple store api for fetching report data fine with "SALES"

api.appstoreconnect.apple.com/v1/salesReports?filter[frequency]=DAILY&filter[reportSubType]=DETAILED&filter[reportType]=SALES&filter[vendorNumber]=xxxxxxxx&filter[reportDate]=2020-07-01&filter[version]=10

but getting issue with "PRE
ORDER"

api.appstoreconnect.apple.com/v1/salesReports?filter[frequency]=DAILY&filter[reportSubType]=DETAILED&filter[reportType]=PREORDER&filter[vendorNumber]=xxxxxxxx&filter[reportDate]=2020-07-01&filter[version]=10


error message like,
{
"errors" : [ {
"id" : "xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"status" : "400",
"code" : "PARAMETER_ERROR.INVALID",
"title" : "A parameter has an invalid value",
"detail" : "Invalid vendor number specified. Try again.",
"source" : {
"parameter" : "filter[vendorNumber]"
}
} ]
}

Please advice

I have the same issue, any advance on this?
Finally I found the solution, what happens is that the error do not point you to the right direction.

What really happens is that you are using a not allowed combination of parameters as listed in:

https://developer.apple.com/documentation/appstoreconnectapi/download_sales_and_trends_reports

You should use a different reportSubType:

api.appstoreconnect.apple.com/v1/salesReports?filter[frequency]=DAILY&filter[reportSubType]=SUMMARY&filter[reportType]=SALES&filter[vendorNumber]=xxxxxxxx&filter[reportDate]=2020-07-01&filter[version]=10

api.appstoreconnect.apple.com/v1/salesReports?filter[frequency]=DAILY&filter[reportSubType]=SUMMARY&filter[reportType]=PREORDER&filter[vendorNumber]=xxxxxxxx&filter[reportDate]=2020-07-01&filter[version]=10


Same here. This is so messed up. It looks to me as nobody cares about this API @ Apple :(
filter[vendorNumber] Invalid vendor number specified. Try again.
 
 
Q