---
title: appAccountToken
framework: appstoreserverapi
role: symbol
role_heading: Type
path: appstoreserverapi/appaccounttoken
---

# appAccountToken

The UUID that you generate to associate a customer’s In-App Purchase with its resulting App Store transaction.

## Declaration

```data
uuid appAccountToken
```

## Mentioned in

App Store Server API changelog

## Discussion

Discussion When a customer initiates an In-App Purchase in your app, you can optionally generate an app account token and call appAccountToken(_:) to associate it with the purchase. If you use the Original API for In-App Purchase, you can provide a UUID in the applicationUsername property. The App Store returns the same UUID in appAccountToken in the transaction information and subscription renewal information after the customer completes the purchase. To provide an app account token for a transaction that the customer completes outside of your app, or to update the value of an existing app account token, call the Set App Account Token endpoint.

## See Also

### Consumption data types

- [accountTenure](appstoreserverapi/accounttenure.md)
- [consumptionStatus](appstoreserverapi/consumptionstatus.md)
- [customerConsented](appstoreserverapi/customerconsented.md)
- [deliveryStatusV1](appstoreserverapi/deliverystatusv1.md)
- [lifetimeDollarsPurchased](appstoreserverapi/lifetimedollarspurchased.md)
- [lifetimeDollarsRefunded](appstoreserverapi/lifetimedollarsrefunded.md)
- [platform](appstoreserverapi/platform.md)
- [playTime](appstoreserverapi/playtime.md)
- [refundPreferenceV1](appstoreserverapi/refundpreferencev1.md)
- [sampleContentProvided](appstoreserverapi/samplecontentprovided.md)
- [userStatus](appstoreserverapi/userstatus.md)
