<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/AppTransaction/originalAppVersion",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "StoreKit"
    ],
    "preciseIdentifier" : "s:8StoreKit14AppTransactionV08originalC7VersionSSvp"
  },
  "title" : "originalAppVersion"
}
-->

# originalAppVersion

The app version that the customer originally purchased from the App Store.

```
let originalAppVersion: String
```

## Discussion

Use this value to determine which app version the customer first purchased or downloaded. This value is comparable to the [`appVersion`](/documentation/StoreKit/AppTransaction/appVersion) value.

The [`originalAppVersion`](/documentation/StoreKit/AppTransaction/originalAppVersion) remains constant and doesn’t change when the customer upgrades the app. The string value contains the original value of the <doc://com.apple.documentation/documentation/BundleResources/Information-Property-List/CFBundleShortVersionString> for apps running in macOS, and the original value of the <doc://com.apple.documentation/documentation/BundleResources/Information-Property-List/CFBundleVersion> for apps running on all other platforms.

In the sandbox testing environment, the [`originalAppVersion`](/documentation/StoreKit/AppTransaction/originalAppVersion) value is always `1.0`.

For more information about using the [`originalAppVersion`](/documentation/StoreKit/AppTransaction/originalAppVersion), see [Supporting business model changes by using the app transaction](/documentation/StoreKit/supporting-business-model-changes-by-using-the-app-transaction).

---

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)