<!--
{
  "availability" : [
    "App Store Receipts: 1.5.0 - 1.7.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppStoreReceipts",
  "identifier" : "/documentation/AppStoreReceipts/app_account_token",
  "metadataVersion" : "0.1.0",
  "role" : "Type",
  "symbol" : {
    "kind" : "Type",
    "modules" : [
      "App Store Receipts"
    ],
    "preciseIdentifier" : "data:store_receipts:app_account_token"
  },
  "title" : "app_account_token"
}
-->

# app_account_token

The UUID that an app optionally generates to map a customer’s in-app purchase with its resulting App Store transaction.

```
string app_account_token
```

## Discussion

When a customer initiates an in-app purchase, you can optionally generate an <doc://com.apple.documentation/documentation/StoreKit/Product/PurchaseOption/appAccountToken(_:)> and send it to the App Store. The App Store returns the same value in <doc://com.apple.documentation/documentation/StoreKit/Transaction/appAccountToken> in the transaction information after the customer completes the purchase.

If you’re using the <doc://com.apple.documentation/documentation/StoreKit/original-api-for-in-app-purchase> and provide a UUID in the <doc://com.apple.documentation/documentation/StoreKit/SKMutablePayment/applicationUsername> property, then the [`app_account_token`](/documentation/AppStoreReceipts/app_account_token) field contains that value.

---

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)