<!--
{
  "availability" : [
    "App Store Server API: 1.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppStoreServerAPI",
  "identifier" : "/documentation/AppStoreServerAPI/orderId",
  "metadataVersion" : "0.1.0",
  "role" : "Type",
  "symbol" : {
    "kind" : "Type",
    "modules" : [
      "App Store Server API"
    ],
    "preciseIdentifier" : "data:app_store_server_api:orderId"
  },
  "title" : "orderId"
}
-->

# orderId

The customer’s order ID from an App Store receipt for in-app purchases.

```
string orderId
```

## Discussion

When customers make one or more in-app purchases in your app, the App Store emails them a receipt. The receipt contains an order ID. Use this order ID to call [`Look Up Order ID`](/documentation/AppStoreServerAPI/Look-Up-Order-ID). Customers can also retrieve their order IDs from their purchase history on the App Store; for more information, see [See your purchase history for the App Store, iTunes store, and more](https://support.apple.com/en-gb/HT204088).

---

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)