Best practices for backend server transition timing to Production App Store Server API

Hello,

I would like to clarify the best practices and timing for our backend server to transition its main connection to the production App Store Server API.

Currently, we are considering the following approach: We plan to switch our backend’s primary API endpoint from Sandbox to Production once our app passes the App Store review and its status changes to "Ready for Sale."

Could you please confirm if this timing is standard and correct?

Additionally, to handle App Store reviews (which run in the Sandbox environment) and TestFlight tests seamlessly without manual configuration changes, we are planning to implement an automatic fallback mechanism:

  • Our backend always requests the Production App Store Server API first.
  • If it returns a "TransactionNotFound" (e.g., 4040010) error, the backend automatically retries the request using the Sandbox API.

Is this automatic fallback from Production to Sandbox considered a safe and recommended practice by Apple, especially for App Store reviews and post-release testing?

Any advice or insights on backend transition timing and fallback strategies would be highly appreciated.

Thank you!

Best practices for backend server transition timing to Production App Store Server API
 
 
Q