<!--
{
  "availability" : [
    "App Store Server Notifications: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppStoreServerNotifications",
  "identifier" : "/documentation/AppStoreServerNotifications/originalTransactionId",
  "metadataVersion" : "0.1.0",
  "role" : "Type",
  "symbol" : {
    "kind" : "Type",
    "modules" : [
      "App Store Server Notifications"
    ],
    "preciseIdentifier" : "data:store_s2s:originalTransactionId"
  },
  "title" : "originalTransactionId"
}
-->

# originalTransactionId

The original transaction identifier of a purchase.

```
string originalTransactionId
```

## Discussion

This value is identical to the transaction identifier ([`transactionId`](/documentation/AppStoreServerNotifications/transactionId)) except when the user restores or renews a subscription.

---

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)