---
title: latestTransaction
framework: storekit
role: symbol
role_heading: Instance Property
path: storekit/advancedcommerceproduct/latesttransaction
---

# latestTransaction

The most recent transaction associated with the generic product ID, if it exists.

## Declaration

```swift
var latestTransaction: VerificationResult<Transaction>? { get async }
```

## Discussion

Discussion This value is nil if the customer hasn’t made any purchases associated with the generic product ID.

## See Also

### Getting transactions and entitlements

- [allTransactions](storekit/advancedcommerceproduct/alltransactions.md)
- [currentEntitlements](storekit/advancedcommerceproduct/currententitlements.md)
