App Store Connect API

RSS for tag

The App Store Connect API helps you automate tasks usually done on the Apple Developer website and App Store Connect.

App Store Connect API Documentation

Posts under App Store Connect API tag

216 Posts
Sort by:
Post not yet marked as solved
0 Replies
268 Views
I encountered an issue when querying financial data from the AppStore through the API: The error message returned by the API is: { "errors": [ { "status": "500", "code": "UNEXPECTED_ERROR", "title": "An unexpected error occurred.", "detail": "An unexpected error occurred on the server side. If this issue continues, contact us at https://developer.apple.com/contact/." } ] } My request is: curl --location --globoff 'https://api.appstoreconnect.apple.com/v1/financeReports?filter[reportType]=FINANCIAL&filter[regionCode]=US&filter[reportDate]=2023-12&filter[vendorNumber]=90483033' --header 'Authorization: Bearer ***’ What's strange is that this interface was working fine last week. Please help me investigate this issue.
Posted
by Kaichao.
Last updated
.
Post not yet marked as solved
0 Replies
186 Views
Hi, I'm trying to create a response for a review through the Apple Store Connect API, but I receive the following error message when sending the body following this documentation: https://developer.apple.com/documentation/appstoreconnectapi/create_or_update_a_response_to_a_customer_review cURL Request --header 'Authorization: {{MY_BEARER_TOKEN}}' \ --header 'Content-Type: application/json' \ --data '{ "attributes": { "responseBody": "{{MY_RESPONSE}}" }, "relationships": { "review": { "data": { "id": "{{REVIEW_ID}}", "type": "customerReviews" } } }, "type": "customerReviewResponses" }' *I changed the cURL to not display real data, but they are filled in my request. Error message: "errors": [ { "id": "5575b9ef-9005-4db2-9a89-123b1aaa9355", "status": "422", "code": "ENTITY_UNPROCESSABLE", "title": "The request entity is not a valid request document object", "detail": "Unexpected or invalid value at 'attributes'.", "meta": { "position": { "row": 2, "column": 20 } } } ] } Can you help me put together the body correctly if that's the case of the error?
Posted Last updated
.
Post not yet marked as solved
0 Replies
185 Views
On January 30, 2024, an iOS refund for HX Red Xuan was applied for. The refund was successful on January 31, but the game server did not receive a refund push message. The specific information is as follows: Refund information Refund amount: RMB 7.5 Environment: Production environment Order number in Apple order information: MLJQXD3HWD Application Notification Configuration Notification address: The notification URL protocol is https Notification Version: Version 2 Note: Currently, the same address can receive Apple refund notification information from other applications May I ask what problem caused the application server to not receive a refund notification from Apple's service users?
Posted
by LeoWong.
Last updated
.
Post not yet marked as solved
11 Replies
780 Views
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.
Posted Last updated
.
Post not yet marked as solved
1 Replies
225 Views
I am setting up an api endpoint in our server to intake apple store V2 notifications and I'm confused on the section outlining root CAs for the verifyAndDecodeNotification method. Are we suppose to download those certs from https://www.apple.com/certificateauthority/ and store them on our server for reference to use in verifyAndDecodeNotification. Seems odd to reference them locally and convert them to buffers for an api call
Posted
by evandynh.
Last updated
.
Post not yet marked as solved
1 Replies
278 Views
We have a number of App Store Connect API keys that we use for various automation tasks. These keys still show as valid in the App Store Connect portal but in the last couple of weeks they all seem to have stopped working. Is there anyway that a key can become invalid?
Posted Last updated
.
Post marked as solved
4 Replies
466 Views
Last week I've submitted a new update for review doing the standard procedure for iOS, Mac and Vision. When submitting them both the Mac and Vision App switched to Waiting for Review state but the iOS one got stuck in Ready for Review state. I've tried a few times canceling the submission and submitting again and it always gets stuck in the "Ready for Review" state. Under the App Review section shows as Waiting for Review but on the general page shows Ready for Review. I've tried using the App Store Connect the API and the same thing happens. Any suggestions how to fix this?
Posted Last updated
.
Post not yet marked as solved
144 Replies
19k Views
It's not possible to create a new version for any App Store Connect app. To reproduce, I navigate to my app and click the (+) button to create a new version number. I type in a version number, and click "Create." It fails with an error, "An error has occurred. Try again later." When I view it in the Network tab of the Web Inspector, it shows that there's a 500 error. { "errors": [{ "status": "500", "code": "UNEXPECTED_ERROR", "title": "An unexpected error occurred.", "detail": "An unexpected error occurred on the server side. If this issue continues, contact us at https://developer.apple.com/contact/." }] } The same error occurs when I attempt to create an app store version using the App Store Connect API.
Posted
by dfabulich.
Last updated
.
Post not yet marked as solved
1 Replies
167 Views
The API documentations says Don’t use this API to create new apps; instead, create new apps on the App Store Connect website. https://developer.apple.com/documentation/appstoreconnectapi/app_store/apps If I am going to the App Store Connect API documentation, it's not because I want to create things from a UI. Is there any valid reason for not having an endpoint for that? Thanks
Posted Last updated
.
Post marked as solved
4 Replies
675 Views
Recently Xcode Cloud has stopped showing new branches on the branch picker. For example, I still see our main branch on the list, but branches that I pushed recently do not appear when trying to generate a manual build. We have another app where none of the branches appear, and the same app (with a different bundle ID we use for Production, they all appear except for the new ones). The GitHub integration seems fine since when PRs are merged to main, all workflows that listen to changes to main work fine, and on the Settings I can see that the last access to the GitHub repository is from a few minutes ago when pushing new things. The same issue happens on the integration of Xcode Cloud inside Xcode, none of the new branches is listed there. Looks like the issue is on whatever lists the branches available. Has anyone noticed this?
Posted
by xmollv.
Last updated
.
Post not yet marked as solved
0 Replies
269 Views
I'm encountering an issue while attempting to upload my IPA to the App Store. The error message indicates a problem with the datatype of the cfBundleVersion attribute, stating that it's incorrect. Strangely, this was working fine until yesterday. It's the error log: 2024-02-09 22:16:35.852 INFO: Show Progress: Contacting Apple Services… 2024-02-09 22:16:36.729 *** Error: Error [REDACTED]ing '/Users/vagrant/deploy/[REDACTED] - Development.ipa'. 2024-02-09 22:16:36.730 *** Error: An attribute in the provided entity has the wrong type Unexpected json type provided for attribute 'cfBundleVersion'. Expected a STRING but got INTEGER (ID: xxxxx) (409) { NSLocalizedDescription = "An attribute in the provided entity has the wrong type"; NSLocalizedFailureReason = "Unexpected json type provided for attribute 'cfBundleVersion'. Expected a STRING but got INTEGER (ID: xxxxx)"; "original_server_error" = { code = "ENTITY_ERROR.ATTRIBUTE.TYPE"; detail = "Unexpected json type provided for attribute 'cfBundleVersion'. Expected a STRING but got INTEGER"; id = "xxxxx", source = { pointer = "/data/attributes/cfBundleVersion"; }; status = 409; title = "An attribute in the provided entity has the wrong type"; }; } Uploading IPA failed: exit status 1 Here's the relevant snippet from my Info.plist: <string>74</string> I've built the iOS app using React Native and deployed it via Bitrise. Any insights into why this error might be occurring and how to resolve it would be greatly appreciated. Thank you!
Posted
by Ken2026.
Last updated
.
Post not yet marked as solved
1 Replies
246 Views
I'm using AppStoreConnect_Swift_SDK to add achievements to Game Center. Everything looks ok. I'm able to add achievements, localizations, and seem to be sending the images correctly. Yet when I try to update 'isUploaded' to 'true', I get "The request failed with response code 500 UNEXPECTED_ERROR". And while the error says it's server side, I suspect it is something wrong on my side. GCAI.id is the image reservation id. let data = GameCenterAchievementImageUpdateRequest.Data(type: .gameCenterAchievementImages, id: GCAI.id, attributes: .init(isUploaded: true)) let req = GameCenterAchievementImageUpdateRequest(data: data) let request = APIEndpoint.v1.gameCenterAchievementImages.id(GCAI.id).patch(req) let gcaiRes = try await self.provider.request(request).data Other than going through the SDK, this looks like Hubert's Video. So I suspect it doesn't like something else but the error just isn't that informative? I could ask the SDK author but every issue I've worked out so far has just been from misunderstanding the API and not related to the SDK itself.
Posted
by Bill3D.
Last updated
.
Post not yet marked as solved
1 Replies
256 Views
Hi, All of my TestFlight builds expired themselves and I can't submit any new builds for external testing. The general error message I see is "There was an error processing your request. Please try again later." and looking at the console I see a more specific error "API Response Error: TF_BETA_APP_REVIEW_RESPONSE". I've sent a couple of emails to support but I haven't heard anything back yet. What's going on with App Store Connect these days? It's so unreliable.
Posted
by hmandl.
Last updated
.
Post not yet marked as solved
0 Replies
215 Views
Recently Apple has deprecated subscriptions property availableInAllTerritories from the resource 'subscriptions'" Post this, You are not able to update prices to the subscription. As availableInAllTerritories is not set for new subscription. So you have to enable availableInAllTerritories manually to change the prices. So the steps listed in https://developer.apple.com/documentation/appstoreconnectapi/app_store/auto-renewable_subscriptions/managing_auto-renewable_subscriptions will not work out of box.
Posted
by kanishka4.
Last updated
.
Post not yet marked as solved
0 Replies
303 Views
I intend to use Apple Store Connect API for making & updating OFFER CODES in my subscription. I have created the GET requests needed using an API Key I have generated but the POST requests are not going through and getting an error in the process. https://api.appstoreconnect.apple.com/v1/subscriptionOfferCodes This is the API that I am trying to hit using the POST request but the process is not going through for some reason.
Posted Last updated
.
Post not yet marked as solved
0 Replies
226 Views
Hi I have an api which was downloading the apple sales report by using Apple Connect Api in short it used to generate the jwt and then was fetching the report. Some how it stopped working and same code now returns 401. Question is the details which I use to generate the jwt for each request do I need to refresh / renew that ? Is there an expiry date associated with that which I use to generate the jwt or not ? Say you use the private key to create the jwt or ECParameters parameters to generate the key which is used to create the jwt do we need to renew that private key / ECP details or that remains alive / active until it is revoked ? If that is the case how I can refresh that ? I know that the jwt which we need to send to apple connect to get the sale report has maximum 20 mins life. Thanks Khurram
Posted Last updated
.
Post not yet marked as solved
12 Replies
963 Views
Hey, I've been utilizing the v1/salesReports endpoint to retrieve a daily summary sales report. Below is an example of the query I use: Example query https://api.appstoreconnect.apple.com/v1/salesReports?filter[vendorNumber]=***&filter[reportType]=SALES&filter[reportSubType]=SUMMARY&filter[frequency]=DAILY&filter[reportDate]=2024-01-20&filter[version]=1_0 Starting today (23.01.24) I encountered an error stating: : The version parameter you have specified is invalid. The latest version for this report is 1_1. This is confusing because according to the documentation, the SALES report should use version 1_0. I attempted to use version 1_1, but it resulted in a 404 error with the message: There were no sales for the date specified. Interestingly, when I change the frequency to WEEKLY, the request with version 1_0 is processed successfully and contains data. Is this discrepancy a known issue, or has there been a recent change in the API that I might have missed?
Posted Last updated
.