<!--
{
  "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",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "StoreKit"
    ],
    "preciseIdentifier" : "s:8StoreKit14AppTransactionV"
  },
  "title" : "AppTransaction"
}
-->

# AppTransaction

Information that represents the customer’s purchase of the app, cryptographically signed by the App Store.

```
struct AppTransaction
```

## Overview> Related sessions from WWDC22:
> Session 10007:  [What’s new with in-app purchase](https://developer.apple.com/videos/play/wwdc2022/10007/)

## Topics

### Getting the signed app transaction

[`shared`](/documentation/StoreKit/AppTransaction/shared)

Gets the App Store-signed app transaction information for the app.

### Getting the app transaction identifier

[`appTransactionID`](/documentation/StoreKit/AppTransaction/appTransactionID)

The unique identifier of the app download transaction.

### Getting the environment

[`environment`](/documentation/StoreKit/AppTransaction/environment)

The server environment that signs the app transaction.

[`AppStore.Environment`](/documentation/StoreKit/AppStore/Environment)

Constants that represent the App Store server environment.

### Getting app and version information

[`bundleID`](/documentation/StoreKit/AppTransaction/bundleID)

The bundle identifier that the app transaction applies to.

[`appVersion`](/documentation/StoreKit/AppTransaction/appVersion)

The app version that the app transaction applies to.

[`originalAppVersion`](/documentation/StoreKit/AppTransaction/originalAppVersion)

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

[`appID`](/documentation/StoreKit/AppTransaction/appID)

The unique identifier the App Store uses to identify the app.

[`appVersionID`](/documentation/StoreKit/AppTransaction/appVersionID)

The number that the App Store uses to uniquely identify the version of the app.

### Getting the original platform

[`originalPlatform`](/documentation/StoreKit/AppTransaction/originalPlatform)

The platform on which the customer originally purchased the app.

[`AppStore.Platform`](/documentation/StoreKit/AppStore/Platform)

Values that represent Apple platforms.

### Getting purchase dates

[`originalPurchaseDate`](/documentation/StoreKit/AppTransaction/originalPurchaseDate)

The date the customer originally purchased the app from the App Store.

[`preorderDate`](/documentation/StoreKit/AppTransaction/preorderDate)

The date the customer placed an order for the app before it’s available in the App Store.

### Verifying the app transaction

[`deviceVerification`](/documentation/StoreKit/AppTransaction/deviceVerification)

The device verification value to use to verify whether the app transaction belongs to the device.

[`deviceVerificationNonce`](/documentation/StoreKit/AppTransaction/deviceVerificationNonce)

The UUID used to compute the device verification value.

[`signedDate`](/documentation/StoreKit/AppTransaction/signedDate)

The date that the App Store signed the JWS app transaction.

### Getting app transaction information in JSON format

[`jsonRepresentation`](/documentation/StoreKit/AppTransaction/jsonRepresentation)

The JSON representation of the app transaction information.

### Getting app transaction from the server

[`refresh()`](/documentation/StoreKit/AppTransaction/refresh())

Gets the App Store-signed app transaction information from the App Store server.

### Deprecated

[`originalPlatformStringRepresentation`](/documentation/StoreKit/AppTransaction/originalPlatformStringRepresentation)

The string representation of the platform on which the customer originally purchased the app.



---

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)