---
title: transactionId
framework: appstoreserverapi
role: symbol
role_heading: Type
path: appstoreserverapi/transactionid
---

# transactionId

The unique identifier for a transaction, such as an In-App Purchase, restored In-App Purchase, or subscription renewal.

## Declaration

```data
string transactionId
```

## Mentioned in

App Store Server API changelog

## Discussion

Discussion In a purchase transaction, the transactionId matches the original transaction identifier, originalTransactionId. When a customer restores a purchase or renews a subscription, the transactionId differs.

## See Also

### Transaction identifiers

- [originalTransactionId](appstoreserverapi/originaltransactionid.md)
- [webOrderLineItemId](appstoreserverapi/weborderlineitemid.md)
- [anyTransactionId](appstoreserverapi/anytransactionid.md)
