---
title: ExternalPurchaseCustomLink.TokenType
framework: StoreKit
role: symbol
role_heading: Structure
platforms: [iOS 27.2+, iPadOS 27.2+, Mac Catalyst 27.2+, macOS 27.2+, tvOS 27.2+, visionOS 27.2+, watchOS 27.2+]
path: storekit/externalpurchasecustomlink/tokentype
---

# ExternalPurchaseCustomLink.TokenType

Values that represent the external purchase token types.

## Declaration

```swift
struct TokenType
```

## Discussion

Discussion Provide a token type value when you call token(for:).

## Topics

### Token types

- [withinApp](storekit/externalpurchasecustomlink/tokentype/withinapp.md)
- [outOfApp](storekit/externalpurchasecustomlink/tokentype/outofapp.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Getting external purchase tokens

- [token(for:)](storekit/externalpurchasecustomlink/token(for:)-6pixj.md)
- [ExternalPurchaseCustomLink.Token](storekit/externalpurchasecustomlink/token.md)
- [Receiving and decoding external purchase tokens](storekit/receiving-and-decoding-external-purchase-tokens.md)
