I also still getting the same error from sandbox
"x": "Invalid response: Client error: GET https://api.storekit-sandbox.itunes.apple.com/inApps/v1/transactions/2000000632845273 resulted in a 401 Unauthorized response",
while for production url
"x": "Invalid response: Client error: GET https://api.storekit.itunes.apple.com/inApps/v1/transactions/2000000632845273 resulted in a 404 Not Found response:\n{"errorCode":4040010,"errorMessage":"Transaction id not found."}\n",
App Store Connect API
RSS for tagThe App Store Connect API helps you automate tasks usually done on the Apple Developer website and App Store Connect.
Post
Replies
Boosts
Views
Activity
Apple Connect API keeps getting 401 errors. Can you tell me in detail what the problem is?
And I'm sending you an es256 type jwt to use Apple API, so could you update the exact location of the key file I use at?
I've been facing a 401 error for a few days now.
The data thrown from Apple's server is difficult to pinpoint and the document is too complicated. Please also provide developmental support.
Currently, I am sending from node to axios.
Apple Connect API keeps getting 401 errors. Can you tell me in detail what the problem is? And I'm sending you an es256 type jwt to use Apple API, so could you update the exact location of the key file I use at? I've been facing a 401 error for a few days now. The data thrown from Apple's server is difficult to pinpoint and the document is too complicated. Please also provide developmental support. Currently, I am sending from node to axios.
Hi, is it possible to use the "List All Customer Reviews for an App" API to get the reviews for someone else's app (not ours)? Or is it only possible to get reviews for our own app?
https://developer.apple.com/documentation/appstoreconnectapi/list_all_customer_reviews_for_an_app
We're considering to join Developer Program if it is possible to return SOMEONE(not ours)'s APP review data as well.
Thank you in advance.
There does not seem to be an easy way to add an initial price (or customer price) to a blank subscription whether that is during creation or updating after. I have been successful in initiating a price change after I set a random price first by hand, but even after following Apples guidelines, I seem to be using the wrong endpoint or json data to give the subscription a new price from an empty one.
I am trying to use this endpoint to add a price point with all of the possible territories.
PATCH https://api.appstoreconnect.apple.com/v1/subscriptions/{id}
A price change will work if the price has been previously set and POST https://api.appstoreconnect.apple.com/v1/subscriptionPrices is called
but, setting the initial price with the api is the issue.
Any Information would be helpful. Thanks!
Hello,
I am currently running into issues while using the "List All Customer Reviews for an App" API.
https://developer.apple.com/documentation/appstoreconnectapi/list_all_customer_reviews_for_an_app
From both Postman and cURL, I am running into the below error when making requests to the endpoint.
{
"errors" : [ {
"id" : "088cf5a0-5ea1-447c-ad21-e3de2f6e8ead",
"status" : "403",
"code" : "FORBIDDEN_ERROR",
"title" : "This request is forbidden for security reasons",
"detail" : "The API key in use does not allow this request"
} ]
}
The API Key in question is an Admin role API Key that is capable of making other requests to the App Store Connect API such as Creating Beta Groups, Submitting Builds, downloading Sales data, etc. The same requests were working two weeks ago, but then stopped working last week sometime.
Has anyone else run into the above issue? Any thoughts on things to try to get around this issue with Admin API Keys?
Thanks in advance for any guidance or thoughts that can be shared!
I need help updating the description, keywords, what's new, and promotional text for my app on the App Store using the App Store Connect API through Postman. I already have my access token.
I need to update the data for each language, I changed to PATCH, but what is the url to patch? And what json should I send?
Apple has deprecated the https://buy.itunes.apple.com/verifyReceipt API and encourages users to migrate to the new https://api.storekit.itunes.apple.com/inApps/v1/transactions/{transactionId} API. However, during the migration, a problem was discovered. Previously, with the verifyReceipt API, the 21007 status code could be used to distinguish between the sandbox and production environments. Now, with the new API, if the {transactionId} is from the sandbox environment, it will directly return {"errorCode":4040010,"errorMessage":"Transaction id not found."}.
How can I distinguish whether a {transactionId} is generated in the sandbox environment or the production environment?
I'm trying to automate the process of resuming, or completing a phased release using the "PATCH /v1/appStoreVersionPhasedReleases/{id}" endpoint.
When sending a request to update the PhasedReleaseState, I am seeing a 409 error that states:
An attribute value is not acceptable for the current resource state. You cannot change the state of a phased release in the current version state.
Source: {'pointer': '/data/attributes/pendingDeveloperRelease'}
Apparently PENDING_DEVELOPER_RELEASE is an invalid state.
Based on the "App and submission statuses" document, the PENDING_DEVELOPER_RELEASE state means:
Your app was approved, but you still need to release it for distribution on the App Store.
I'm a bit surprised that it would fail, when releasing the app for distribution is exactly what I'm trying to do by modifying the PhasedReleaseState to ACTIVE, or COMPLETE.
In addition, the "Release a version update in phases" document lists it as a valid state:
When you release a version update of your iOS, macOS, tvOS, or universal app, you can choose to release it to the App Store in stages. This option is available if you're submitting a version update and your app has one of the following app statuses;
Prepare for Submission
Waiting for Review
In Review
Waiting for Export Compliance
Pending Developer Release
Developer Rejected
Rejected
Metadata Rejected
Notably, some of the other states seem like they shouldn't be valid states to rollout an app (e.g. Rejected, Waiting for Review, etc.). So this makes me think that this document doesn't necessarily cover the list of valid states; more so, they tell you that you have the capability to perform a phased rollout for your app.
So, my question is, what are the valid app version states required for me to be able to successfully modify a phased rollout?
Any help, or pointers would be greatly appreciated. Thank you!
API Endpoint URL:
https://developer.apple.com/documentation/appstoreconnectapi/modify_an_app_store_version_phased_release
App and submission statuses document:
https://developer.apple.com/help/app-store-connect/reference/app-and-submission-statuses
Release a version update in phases document:
https://developer.apple.com/help/app-store-connect/update-your-app/release-a-version-update-in-phases
Hi there, I'm implementing in app purchase in Electron following docs here: https://www.electronjs.org/zh/docs/latest/tutorial/in-app-purchases
But :
getProducts returns []
calls to purchaseProduct, nothing happend(no dialog, no login)
calls to restoreCompletedTransactions , a login dialog appears, and I can login my sandbox tester account. The account even appears int the Apple Store.
More info list as follow.
Packaging using electron builder, configuration is :
"masDev": {
"type":"development",
"identity": "York Chan",
"hardenedRuntime": false,
"gatekeeperAssess": false,
"entitlements": "./build/entitlements.mas.plist",
"entitlementsInherit": "./build/entitlements.mas.inherit.plist",
"provisioningProfile": './build/provisionloginsight.provisionprofile', //development的描述文件,确保系统描述文件里已经安装好
},
"mas": {
"type": "distribution",
"identity": "York Chan",
"hardenedRuntime": false,
"entitlements": "./build/entitlements.mas.plist",
"entitlementsInherit": "./build/entitlements.mas.inherit.plist",
"entitlementsLoginHelper": "./build/entitlements.mas.loginhelper.plist", //如果需要testflight则该项必须
"provisioningProfile": './build/provisionloginsightappstore.provisionprofile', //distribution描述文件
},
"mac": {
"artifactName": "${productName}_${version}.${ext}",
"identity":null,
"type": "development", //mas - distribution; mas-dev - development,
"icon": "./icons/icon512.icns",
"target": [
{
"target": "mas-dev",//mas
"arch": [
"universal"
],
}
],
"extendInfo":{
}
},
I wrap StoreKit API into 'Platform' class, and call from render process to main process using ipcRender.invoke
If I create a Xcode project, and set bundler identifier to the same one, configure the storekit in schema, I can successfully 'purchase', and seeing [Enviroment: Xcode].
Someone can help me please ?
As of the latest available information, Apple does not directly provide an endpoint for checking refund history for multiple transactions in a single request via their App Store Server API. The endpoint
https://api.storekit.itunes.apple.com/inApps/v2/refund/lookup/{transactionId}
allows you to check the refund status for a single transaction ID at a time. What if you have 8000 subscribers? Are we going to send 8k requests everyday? What's the solution for this scenario? We don't want to implement the notifications by the way. Any solutions?
Hello
I get rejected from Apple Store Connect because because "Your app uses or references the following non-public or deprecated APIs:
Contents/Resources/YYYYYYYYY.app/Contents/UE/Engine/Binaries/ThirdParty/Apple/MetalShaderConverter/Mac/libmetalirconverter.dylib
Symbols:
• __dyld_get_image_uuid
In Terminal, I get this:
otool -Iv /Users/XXXXXXXX/Desktop/XXXXXXXXX/Mac15/YYYYYYYY.app/Contents/UE/Engine/Binaries/ThirdParty/Apple/MetalShaderConverter/Mac/libmetalirconverter.dylib | grep __dyld_get_image_uuid
0x00000000012c62a0 374767 __dyld_get_image_uuid
0x00000000015e8468 374767 __dyld_get_image_uuid
The question is, how to find what is using the __dyld_get_image_uuid in Unreal?
The game is Mac only, not iOS. Any help highly appreciated because I have tried to solve this a month now with no luck.
Unreal 5.4.2, Mac 14.4.1, Xcode 15.4
Thank you in advance and all the best,
Ramili
Not Found In-App Purchase?????
I'm using Expo EAS to try and submit a build to Test Flight. During the submission, there's two paths I've tried and both fail with the same error:
"This request is forbidden for security reasons - The API key in use does not allow this request"
The first way, it asks "Generate a new App Store Connect API Key" which I respond yes and it fails with the above message.
The second way, I respond no to the above question and specify a path to the API Key that I manually created under "Individual API Key" in my Apple Connect account.
Is this the correct place to have created this API Key? Is there a different type of API Key I should be using? Or is this a permission issue with my Apple account? I am not the account owner but it looks like I have the correct permissions as far as I can tell. TIA!
I'm trying following endpoint to get instances of a report, https://api.appstoreconnect.apple.com/v1/analyticsReports/{id}/instances
but getting an empty response:
{'data': [], 'links': {'self': 'https://api.appstoreconnect.apple.com/v1/analyticsReports/r8-4433f324-ba58-44d0-8b7f-f8976ef36646/instances'}, 'meta': {'paging': {'total': 0, 'limit': 50}}}
I'm accessing "App Sessions Standard" report and correctly passing the instance id to get instances of this report. Also made sure that the App I'm accessing have App sessions data in the console.
code.txt
This is the order of api requests I implemented:
'https://api.appstoreconnect.apple.com/v1/analyticsReportRequests'
'https://api.appstoreconnect.apple.com/v1/analyticsReportRequests/{report_id}/reports'
'https://api.appstoreconnect.apple.com/v1/analyticsReports/{report_id}/instances'
Source code is provided in the attached file.
Would be grateful if someone can help resolve this issue.
Hi all, I am developing new things on my existing .Net core application. I want to create a new page and with this page, the users will create a new app and write important informations. But I cant create a new app with sending post request with connect API. Here is my Postman requests and body.
Sending request to :
https://api.appstoreconnect.apple.com/v1/apps
Body :
{
"data": {
"type": "apps",
"attributes": {
"bundleId": "com.test.testtest",
"name": "Test Test",
"primaryLocale": "en-US",
"sku": "test2024",
"platform": "IOS"
}
}
}
Also I am using a bearer token, and this token has a admin role. When I send a post request, I am getting below error.
{
"errors": [
{
"id": "35f9631f-b8d8-408c-8dfd-adaef043d062",
"status": "403",
"code": "FORBIDDEN_ERROR",
"title": "The given operation is not allowed",
"detail": "The resource 'apps' does not allow 'CREATE'. Allowed operations are: GET_COLLECTION, GET_INSTANCE, UPDATE"
}
]
}
How can I fix this. Pls help.
Thanks.
Hello,
I am trying for a few days to get daily reports for a specific app_id but it seems the process is not working. I manage to get a list of my apps, then of my current reports, but when I try to request a https://api.appstoreconnect.apple.com/v1/analyticsReportInstances/{id} from the report list I am returning above I get a 404. I was wondering if you have any actual guide on how to get daily reports updated from the api for a specific type (downloads or installs for example)?
I am attempting to download subscriber reports for my app. I'm using the following URL with vendorNumber redacted: https://api.appstoreconnect.apple.com/v1/salesReports?filter[frequency]=DAILY&filter[reportSubType]=DETAILED&filter[reportType]=SUBSCRIBER&filter[reportDate]=2024-04-04&filter[vendorNumber]=xxxxxxxx&filter[version]=1_3
I am getting the following response:
"id": "92183ac5-7881-436c-ac66-5d89673c5070",
"status": "400",
"code": "PARAMETER_ERROR.INVALID",
"title": "A parameter has an invalid value",
"detail": "Invalid vendor number specified. Try again.",
"source": {
"parameter": "filter[vendorNumber]"
}
However when I use the same vendor number for the sales summary report: https://api.appstoreconnect.apple.com/v1/salesReports?filter[frequency]=MONTHLY&filter[reportDate]=2023-09&filter[reportSubType]=SUMMARY&filter[reportType]=SALES&filter[vendorNumber]=xxxxxxxx&filter[version]=1_0
I get a proper response. I believe I should be getting a 404 on this response, but am not. This issue can be tracked back to 2019, can we please get some detail about this response?
Hello,
I am developing App Store Server to Server Notifications.
(The app has already been deployed and is in operation.)
Test notifications in both the Sandbox and Production environments have been working correctly.
Additionally, I tested in-app purchases using a Sandbox account and confirmed that the server notifications are received.
However, when an actual purchase is made in the live app, the server notifications are not received.
Please provide the possible causes and solutions for this issue.
I try API but can't connect