<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "AppStoreServerAPI",
  "identifier" : "/documentation/AppStoreServerAPI/appAccountToken",
  "metadataVersion" : "0.1.0",
  "role" : "Type",
  "symbol" : {
    "kind" : "Type",
    "modules" : [
      "App Store Server API"
    ],
    "preciseIdentifier" : "data:app_store_server_api:appAccountToken"
  },
  "title" : "appAccountToken"
}
-->

# appAccountToken

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

```
uuid appAccountToken
```

## Discussion

When a customer initiates an In-App Purchase in your app, you can optionally generate an app account token and call <doc://com.apple.documentation/documentation/StoreKit/Product/PurchaseOption/appAccountToken(_:)> to associate it with the purchase. If you use the <doc://com.apple.documentation/documentation/StoreKit/original-api-for-in-app-purchase>, you can provide a UUID in the <doc://com.apple.documentation/documentation/StoreKit/SKMutablePayment/applicationUsername> property. The App Store returns the same UUID in <doc://com.apple.documentation/documentation/StoreKit/Transaction/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`](/documentation/AppStoreServerAPI/Set-App-Account-Token) endpoint.

---

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)