When attempting to list sandbox testers and clear purchase history through the App Store Connect API, the API Server returns a 403 forbidden error. I have set a correct token in the Authorization header, allowing me to list apps, users and bundleIds. Furthermore, I was able to list sandbox testers and clear purchase history successfully until two weeks ago.
OK
- https://api.appstoreconnect.apple.com/v1/apps
- https://api.appstoreconnect.apple.com/v1/users
- https://api.appstoreconnect.apple.com/v1/bundleIds
NG
- https://developer.apple.com/documentation/appstoreconnectapi/list_sandbox_testers
- https://developer.apple.com/documentation/appstoreconnectapi/clear_purchase_history_for_a_sandbox_tester
use expired token
{
"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"
}
]
}
use not expired token
{
"servlet": "jersey",
"message": "Forbidden",
"url": "/iris/v2/sandboxTesters",
"status": "403"
}