<!--
{
  "availability" : [
    "App Store Receipts: 1.0.0 - 1.7.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppStoreReceipts",
  "identifier" : "/documentation/AppStoreReceipts/Verify-Receipt",
  "metadataVersion" : "0.1.0",
  "role" : "Web Service Endpoint",
  "symbol" : {
    "kind" : "Web Service Endpoint",
    "modules" : [
      "App Store Receipts"
    ],
    "preciseIdentifier" : "rest:store_receipts:post:verifyReceipt"
  },
  "title" : "verifyReceipt"
}
-->

# verifyReceipt

Send a receipt to the App Store for verification.

## Discussion

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

Your server must support the Transport Layer Security (TLS) protocol 1.2 or later to call this endpoint.

For more information about server-side receipt validation, see <doc://com.apple.documentation/documentation/StoreKit/validating-receipts-with-the-app-store>.

### Use the sandbox URL for sandbox testing

The sandbox URL for verifying receipts is:

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

> Important:
> As a best practice, always call the production URL `https://buy.itunes.apple.com/verifyReceipt` first and proceed to verify with the sandbox URL if you receive a `21007` ``doc://com.apple.appstorereceipts/documentation/AppStoreReceipts/status`` code. Following this approach ensures that you don’t have to switch between URLs while your app is in testing, in review by App Review, or live in the App Store.

### Find deprecation date in the HTTP header

The `verifyReceipt` endpoint is deprecated. The HTTP header includes the deprecation date, according to [RFC 8594](https://www.rfc-editor.org/rfc/rfc8594.html).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)