Post

Replies

Boosts

Views

Activity

Are there cases where a response to an error returned from the AppStore Server API is considered a subscription cancellation by the user?
According to the following document, when the AppStore Server API is executed and the account does not exist, the response "errorCode: 4040001" is returned. If this response is returned, is it safe to assume that the account has been deleted and treat the subscription as cancelled? Also, please let us know if there are any other error codes other than this error code that can be used to determine that the subscription has been cancelled. https://developer.apple.com/documentation/appstoreserverapi/accountnotfounderror
1
0
121
5d
How to distinguish between subscription purchases made through the app and directly from the App Store
We are wondering if it is possible to distinguish between purchases made through our app and those made directly from the App Store in the subscription process. Does the API information such as Server notifications v2 and Get All Subscription Statuses contain information that can distinguish between these cases? If not, we are thinking of using the appAccountToken included in JWSTransaction to distinguish between them. We are aware that appAccountToken is set when an appAccountToken or applicationUsername is given to an app when purchasing a subscription. Therefore, we believe that the appAccountToken of JWSTransaction is not set when you purchase a subscription directly from the App Store. We think that by setting the appAccountToken for purchases made through our app, we can distinguish whether the subscription was purchased directly from the App Store or not, but is this an appropriate way to do so? Please let us know if there is a case where the appAccountToken is set even if the subscription was purchased directly from the App Store. https://developer.apple.com/documentation/appstoreserverapi/appaccounttoken
1
0
128
1w
The behavior of Storekit1 x ServerNotificationV2.
**Question 1: ** Will ServerNotificationV2 be able to provide real-time notifications regarding Storekit1 contract renewals, and is receiving Storekit1 notifications in ServerNotificationV2 an expected use? (The documentation does not say that receiving Storekit1 notifications is not recommended, so we would like to confirm Apple's assumption.) **Question 2: ** If ServerNotificationV2 is not able to receive Storekit1 notifications in real time, what is the expected time lag?
2
0
426
Mar ’24
When retrieving Sales and Trends Report via AppStoreConnectAPI, occasionally get a 401 error.
When retrieving Sales and Trends Report via AppStoreConnectAPI, occasionally get a 401 error. The following is the error. ""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"" }] It appears as if the JWT token was rejected, but the execution after the next day has been completed normally. Also, the validity time for JWT token creation is set to 20 minutes, and the 401 error occurred about 3 minutes after the start of processing, so we do not think it is due to processing delays. Please allow me to confirm the following. Are there any conditions under which the JWT token is disabled by Apple? If so, what can we do about it? A similar issue has been raised in a Fastlane Issue, and they have responded by getting the JWT back for now. Is this solution correct? https://github.com/fastlane/fastlane/issues/19072 https://github.com/SwiftyMike/fastlane/pull/1/files
1
0
772
Nov ’22