<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKitTest",
  "identifier" : "/documentation/StoreKitTest/SKTestTransaction/identifier",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "StoreKit Test"
    ],
    "preciseIdentifier" : "c:objc(cs)SKTestTransaction(py)identifier"
  },
  "title" : "identifier"
}
-->

# identifier

The identifier of the transaction in the testing environment.

```
var identifier: Int { get }
```

## Discussion

To get a list of all the transactions available in the testing environment, see [`allTransactions()`](/documentation/StoreKitTest/SKTestSession/allTransactions()).

Use this [`identifier`](/documentation/StoreKitTest/SKTestTransaction/identifier) if you want to perform actions on the transaction in the testing environment, such as:

- [`approveAskToBuyTransaction(identifier:)`](/documentation/StoreKitTest/SKTestSession/approveAskToBuyTransaction(identifier:))
- [`consentToPriceIncreaseForTransaction(identifier:)`](/documentation/StoreKitTest/SKTestSession/consentToPriceIncreaseForTransaction(identifier:))
- [`declineAskToBuyTransaction(identifier:)`](/documentation/StoreKitTest/SKTestSession/declineAskToBuyTransaction(identifier:))
- [`declinePriceIncreaseForTransaction(identifier:)`](/documentation/StoreKitTest/SKTestSession/declinePriceIncreaseForTransaction(identifier:))
- [`deleteTransaction(identifier:)`](/documentation/StoreKitTest/SKTestSession/deleteTransaction(identifier:))
- [`disableAutoRenewForTransaction(identifier:)`](/documentation/StoreKitTest/SKTestSession/disableAutoRenewForTransaction(identifier:))
- [`enableAutoRenewForTransaction(identifier:)`](/documentation/StoreKitTest/SKTestSession/enableAutoRenewForTransaction(identifier:))
- [`refundTransaction(identifier:)`](/documentation/StoreKitTest/SKTestSession/refundTransaction(identifier:))
- [`requestPriceIncreaseConsentForTransaction(identifier:)`](/documentation/StoreKitTest/SKTestSession/requestPriceIncreaseConsentForTransaction(identifier:))
- [`resolveIssueForTransaction(identifier:)`](/documentation/StoreKitTest/SKTestSession/resolveIssueForTransaction(identifier:))

---

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)