<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/Transaction/originalID",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "StoreKit"
    ],
    "preciseIdentifier" : "s:8StoreKit11TransactionV10originalIDs6UInt64Vvp"
  },
  "title" : "originalID"
}
-->

# originalID

The original transaction identifier of a purchase.

```
let originalID: UInt64
```

## Discussion

The original transaction identifier, [`originalID`](/documentation/StoreKit/Transaction/originalID), is identical to [`id`](/documentation/StoreKit/Transaction/id) except when the user restores a purchase or renews a transaction. You can use this value to:

- Identify one or more renewals for the same subscription.
- Differentiate a purchase transaction from a restore or a renewal transaction. For restore and renewal transactions, the original transaction identifier, [`originalID`](/documentation/StoreKit/Transaction/originalID), and transaction identifier, [`id`](/documentation/StoreKit/Transaction/id), differ.
- Match a transaction in the app with a transaction you receive on your server in an <doc://com.apple.documentation/documentation/AppStoreServerNotifications> event.

---

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)