salesReports and redirect to idmsac.corp.apple.com

I am currently trying to fetch sales reports from the App Store Connect API.

Fetching /v1/financeReports gives a response to work with, but when fetching /v1/SalesReports I get forwarded to idmsac.corp.apple.com which cannot be resolved, thus the request fails.

The url is as follows

https://api.appstoreconnect.apple.com/v1/SalesReports?filter[reportType]=SALES&filter[reportSubType]=SUMMARY&filter[frequency]=DAILY&filter[vendorNumber]=xxx&filter[reportDate]=2021-04-01

Changing any of the parameters does not help either.

Answered by ThePsyjo in 714241022

Neither the API not Apple tech support (within the last 4 months) was able to tell that the endpoint in the URL above is wrong. Instead of /v1/SalesReports is has to be /v1/salesReports; note the lowercase s.

Accepted Answer

Neither the API not Apple tech support (within the last 4 months) was able to tell that the endpoint in the URL above is wrong. Instead of /v1/SalesReports is has to be /v1/salesReports; note the lowercase s.

salesReports and redirect to idmsac.corp.apple.com
 
 
Q