---
title: orderId
framework: appstoreserverapi
role: symbol
role_heading: Type
path: appstoreserverapi/orderid
---

# orderId

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

## Declaration

```data
string orderId
```

## Discussion

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. 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.

## See Also

### Order ID lookup

- [Look Up Order ID](appstoreserverapi/look-up-order-id.md)
- [OrderLookupResponse](appstoreserverapi/orderlookupresponse.md)
