Search code examples
apiapp-store-connect

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


Solution

  • 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