Post

Replies

Boosts

Views

Activity

Reply to Unexpected 401 Unauthorized response from production endpoint when using sandbox transactionId with Get Transaction Info API
@App Store Commerce Engineer I understand that before release, accessing the production endpoint returns HTTP 401 Unauthorized. Q1. I would like to confirm: at what point does access to the production App Store Server API become available? (A) Immediately after App Review approval (when the app status is “Ready for Sale,” but before it is actually published on the App Store), or (B) After the app is actually released and visible on the App Store? Also, since purchases during App Review must go through the sandbox environment, I plan to implement a fallback mechanism where, if I receive a 401 from the production API, my server will retry verification using the sandbox API. Q2. For the pre-release (App Review) phase, is this understanding correct — that I should detect 401 and fallback to sandbox? Q3. After the app is released and production API access becomes available, if a sandbox transactionId is sent to the production API during a post-release review, is it correct that the response will be 404 Not Found instead of 401? If so, should I update my fallback logic so that after release, the server falls back to sandbox when 404 is detected (instead of 401)? To summarize my intended behavior: Pre-release review: 401 → fallback to sandbox Post-release review: 404 → fallback to sandbox (if the above assumption is correct) Could you please confirm (A/B) the exact timing when production API access becomes available, and whether I need to change the fallback condition between pre-release and post-release? Thank you for your clarification.
Topic: App & System Services SubTopic: StoreKit Tags:
Nov ’25