Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sales reports report type SALES freq DAILY requires version 1_1 #62

Open
Ella6882 opened this issue Jan 23, 2024 · 3 comments
Open

Sales reports report type SALES freq DAILY requires version 1_1 #62

Ella6882 opened this issue Jan 23, 2024 · 3 comments

Comments

@Ella6882
Copy link

There is a bug being discussed here (https://forums.developer.apple.com/forums/thread/745052) regarding this error:

appstoreconnect.api.APIError: The version parameter you have specified is invalid. The latest version for this report is 1_1.

when attempting to download the download_sales_and_trends_reports with a frequency of DAILY.

It looks like the API versions are hard-coded in this repo.

	def download_sales_and_trends_reports(self, filters=None, save_to=None):
		# setup required filters if not provided
		default_versions = {
			'SALES': '1_0',...
		}

https://github.com/Ponytech/appstoreconnectapi/blob/master/appstoreconnect/api.py#L668

If we could get this upgraded to 1_1 that would be fantastic.

@SueeiiiZhu
Copy link

Can you use the 1_1 version of the API to get the last two days of sales data?
ERROR:appstoreconnect.api.APIError: There were no sales for the date specified.

@dsaxton-1password
Copy link

It's possible that removing the version filter will fix the issue, according to this thread: https://forums.developer.apple.com/forums/thread/745052

@SueeiiiZhu
Copy link

SueeiiiZhu commented Jan 25, 2024

Yes, The version number was modified back by Apple and became "1_0"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants