Posts

Post not yet marked as solved
6 Replies
Because this hits exactly the same API with exactly the same code. And every single NodeJS I'm using throws exactly the same error. Even using a package like "appstoreconnect" which takes just three strings (secret, issuer and key) throws a 401.
Post not yet marked as solved
6 Replies
I can't get this to work for me,using curl -v -H "Authorization: Bearer TOKENHERE" https://api.appstoreconnect.apple.com/v1/salesReportsand getting "errors": [{ "status": "401", "code": "NOT_AUTHORIZED", "title": "Authentication credentials are missing or invalid.", "detail": "Provide a properly configured and signed bearer token, and make sure that it has not expired. Learn more about Generating Tokens for API Requests https://developer.apple.com/go/?id=api-generating-tokens" }]Also, Apple's API documentation says expiresIn value cannot be greater than 20 minutes. I've tried countless variations of the above code in both JS and Python, and I keep getting a 401.