We're using
https://api.appstoreconnect.apple.com/v1/salesReports
to download salesReports everyday and have been running for 4 years.
After 2024/02/22 08:00(GMT+8) the api call started to return 403 error
{ "errors" : [ { "id" : "4e219b15-0d2f-416a-bd66-5c30c314fd44", "status" : "403", "code" : "FORBIDDEN_ERROR", "title" : "This request is forbidden for security reasons", "detail" : "The API key in use does not allow this request" } ] }
we checked our key is still valid, and there's no change about the jwt sign method: https://developer.apple.com/documentation/appstoreconnectapi/generating_tokens_for_api_requests
we tested keys with ADMIN or FINANCE or ACCESS_TO_REPORTS
all return the 403 error above.
Post
Replies
Boosts
Views
Activity
https://api.appstoreconnect.apple.com/v1/users
return a role GENERATE_INDIVIDUAL_KEYS
which is not in
https://developer.apple.com/documentation/appstoreconnectapi/userrole
https://api.appstoreconnect.apple.com/v1/users/2a449234-15b3-4056-bd87-3cfe65711a52/visibleApps
when calling this api, it's response change randomly
calling 100 times,
somtime I got
{
"data" : [ ],
"links" : {
"self" : "https://api.appstoreconnect.apple.com/v1/users/2a449234-15b3-4056-bd87-3cfe65711a52/visibleApps"
},
"meta" : {
"paging" : {
"total" : 0,
"limit" : 50
}
}
}
somtime I got
{
"data" : [ {
"type" : "apps",
"id" : "***",
"attributes" : {
"name" : "***",
"bundleId" : "***",
...
and the data count also random
(no one edit the user role and visibleapps)
this occurred after 2023/08/17 08:40 (GMT+8)
I wonder if it's caused by api met error and return the incomplete data array back?
for example, user A has 3 visible apps
and
app1 <-- fail here
then return "data" : [ ]
app1
app2
app3 <-- fail here
then return "data" : [ {app1 detail}, {app2 detail}]