Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invalid vendor number specified. Try again. - App Store Connect API

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

  https://api.appstoreconnect.apple.com/v1/salesReports

  filter[reportSubType] = OPT_IN
  filter[version] = 1_0
  filter[reportType] = SALES
  filter[frequency] = WEEKLY
  filter[reportDate] = 2018-10-07
  filter[vendorNumber] = XXXXXXXX

Am getting this error. In this API only with this params. Others are working fine for me. Is anyone find the Solution Please answer it.

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

Am following all steps in the documentation but i don't know what am doing wrong. :( sad

like image 655
Boobesh Suresh Appu Avatar asked Nov 30 '18 13:11

Boobesh Suresh Appu


1 Answers

I had the same error occurring, but I'm not sure if my solution was the same as yours. My problem was that I set the reportType to SALES and the reportSubType to DETAILED, which is not allowed as per the table at the bottom of this page:

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

This resulted in a misleading error about the vender ID, similar to what you are seeing

like image 160
Doydle Avatar answered Nov 09 '22 23:11

Doydle