Web Service Endpoint


Send a receipt to the App Store for verification.


POST https://buy.itunes.apple.com/verifyReceipt


The JSON contents submitted with the request.

Response Codes



Validating with the App Store requires a secure connection between your app and your server, and code on your server to validate the receipt with the App Store. Submit an HTTP POST request with the contents detailed in requestBody using the verifyReceipt endpoint to verify receipts with the App Store. Use the receipt fields in the responseBody to validate app and in-app purchases.

For guidance on server-side receipt validation, see Validating Receipts with the App Store.

Alternate URL for Sandbox Testing

The sandbox URL for verifying receipts is:

POST https://sandbox.itunes.apple.com/verifyReceipt

As a best practice, always call the production URL for verifyReceipt first, and proceed to verify with the sandbox URL if you receive a 21007 status code.

See Also

Receipt Verification

object requestBody

The JSON contents you submit with the request to the App Store.

object responseBody

The JSON data returned in the response from the App Store.

object error

Error information returned in the response body when a request is not successful.