<!--
{
  "availability" : [
    "iOS: 18.1.0 -",
    "iPadOS: 18.1.0 -",
    "macOS: 15.1.0 -",
    "tvOS: 18.1.0 -",
    "visionOS: 2.1.0 -",
    "watchOS: 11.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/ExternalPurchaseCustomLink/Token",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "StoreKit"
    ],
    "preciseIdentifier" : "s:8StoreKit26ExternalPurchaseCustomLinkO5TokenV"
  },
  "title" : "ExternalPurchaseCustomLink.Token"
}
-->

# ExternalPurchaseCustomLink.Token

A token you use with the External Purchase custom link API.

```
struct Token
```

## Overview

StoreKit returns an external purchase token of this type when you call the [`token(for:)`](/documentation/StoreKit/ExternalPurchaseCustomLink/token(for:)-6pixj) function.
For more information, see [Receiving and decoding external purchase tokens](/documentation/StoreKit/receiving-and-decoding-external-purchase-tokens).

## Topics

### Getting the token value

[`let value: String`](/documentation/StoreKit/ExternalPurchaseCustomLink/Token/value)

A Base64URL-encoded JSON string that represents the external purchase token.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

---

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)