---
title: "appAccountToken(_:)"
framework: storekit
role: symbol
role_heading: Type Method
path: "storekit/product/purchaseoption/appaccounttoken(_:)"
---

# appAccountToken(_:)

Sets a UUID to associate the purchase with an account in your system.

## Declaration

```swift
static func appAccountToken(_ token: UUID) -> Product.PurchaseOption
```

## Parameters

- `token`: A UUID you provide to associate with the purchase.

## Return Value

Return Value An instance of Product.PurchaseOption to use in purchase(options:).

## Discussion

Discussion When you set the app account token in the purchase options, the App Store returns the same app account token value in the resulting transaction, in appAccountToken.

## See Also

### Setting the purchase options

- [winBackOffer(_:)](storekit/product/purchaseoption/winbackoffer(_:).md)
- [promotionalOffer(offerID:keyID:nonce:signature:timestamp:)](storekit/product/purchaseoption/promotionaloffer(offerid:keyid:nonce:signature:timestamp:).md)
- [promotionalOffer(offerID:signature:)](storekit/product/purchaseoption/promotionaloffer(offerid:signature:).md)
- [quantity(_:)](storekit/product/purchaseoption/quantity(_:).md)
