Use the App Store Server API
masterThe App Store Server API is the recommended way to interact with Apple's purchase data.
Environment Selection
- Production:
https://api.storekit.itunes.apple.com/ - Sandbox:
https://api.storekit-sandbox.itunes.apple.com/
Tip: If you are unsure which environment a transactionId belongs to, try the production URL first. If you receive error code 4040010 (TransactionIdNotFoundError), retry using the sandbox URL.