You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 2, 2024. It is now read-only.
I seem to be the only one with that issue but constructing the URL with the searchParams left me with App Store Connect telling me it's a bad request.
My ugly fix is to template the URL like that https://api.appstoreconnect.apple.com/v1/salesReports?filter[frequency]=${frequency}&filter[reportDate]=${filterReportDate}&filter[reportSubType]=SUMMARY&filter[reportType]=SALES&filter[vendorNumber]=${opts.vendorId}&filter[version]=1_0 without the need for search params.
I seem to be the only one with that issue but constructing the URL with the searchParams left me with App Store Connect telling me it's a bad request.
My ugly fix is to template the URL like that
https://api.appstoreconnect.apple.com/v1/salesReports?filter[frequency]=${frequency}&filter[reportDate]=${filterReportDate}&filter[reportSubType]=SUMMARY&filter[reportType]=SALES&filter[vendorNumber]=${opts.vendorId}&filter[version]=1_0
without the need for search params.Since there are no other issues like this I suppose I'm at fault somewhere but if it helps feel free to check out https://github.com/Reiszecke/node-appstore-connect/blob/master/src/index.ts#L262
The text was updated successfully, but these errors were encountered: