<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "ExternalPurchaseServerAPI",
  "identifier" : "/documentation/ExternalPurchaseServerAPI/externalPurchaseId",
  "metadataVersion" : "0.1.0",
  "role" : "Type",
  "symbol" : {
    "kind" : "Type",
    "modules" : [
      "External Purchase Server API"
    ],
    "preciseIdentifier" : "data:external_purchase_server_api:externalPurchaseId"
  },
  "title" : "externalPurchaseId"
}
-->

# externalPurchaseId

The unique identifier of an external purchase token.

```
string externalPurchaseId
```

## Discussion

Decode an external purchase token to get its [`externalPurchaseId`](/documentation/ExternalPurchaseServerAPI/externalPurchaseId). For more information, see <doc://com.apple.documentation/documentation/StoreKit/receiving-and-decoding-external-purchase-tokens>.

---

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)