<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "PassKit",
  "identifier" : "/documentation/PassKit/PKPass",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "PassKit (Apple Pay and Wallet)"
    ],
    "preciseIdentifier" : "c:objc(cs)PKPass"
  },
  "title" : "PKPass"
}
-->

# PKPass

An object that represents a single pass.

```
class PKPass
```

## Overview

The properties of this class correspond to fields of the pass. For details about what individual fields mean, see <doc://com.apple.documentation/documentation/WalletPasses/Pass>.

## Topics

### Creating a pass

[`init(data:)`](/documentation/PassKit/PKPass/init(data:))

Creates a pass using the data you provide.

### Identifying a pass

[`passType`](/documentation/PassKit/PKPass/passType)

The pass’s type.

[`PKPassType`](/documentation/PassKit/PKPassType)

Types of passes.

[`secureElementPass`](/documentation/PassKit/PKPass/secureElementPass)

The pass that contains an accompanying credential that the device stores in the Secure Element.

[`serialNumber`](/documentation/PassKit/PKPass/serialNumber)

A value that uniquely identifies the pass.

[`passTypeIdentifier`](/documentation/PassKit/PKPass/passTypeIdentifier)

The pass’s pass type identifier.

[`deviceName`](/documentation/PassKit/PKPass/deviceName)

The name of the device that hosts the pass.

[`localizedName`](/documentation/PassKit/PKPass/localizedName)

The localized name for the pass’s template.

[`localizedDescription`](/documentation/PassKit/PKPass/localizedDescription)

The pass’s localized description.

[`isRemotePass`](/documentation/PassKit/PKPass/isRemotePass)

A Boolean value that indicates whether the pass is on a paired device, such as an Apple Watch.

[`paymentPass`](/documentation/PassKit/PKPass/paymentPass)

The underlying payment pass.

### Getting the web service information

[`webServiceURL`](/documentation/PassKit/PKPass/webServiceURL)

The URL for the web service.

[`authenticationToken`](/documentation/PassKit/PKPass/authenticationToken)

The token for authenticating update requests.

### Getting the display attributes

[`icon`](/documentation/PassKit/PKPass/icon)

The pass icon.

[`localizedValue(forFieldKey:)`](/documentation/PassKit/PKPass/localizedValue(forFieldKey:))

Returns the localized value for a specified field of the pass.

[`organizationName`](/documentation/PassKit/PKPass/organizationName)

The name of the organization that creates the pass.

[`relevantDate`](/documentation/PassKit/PKPass/relevantDate)

The date when the pass is most likely to be useful or necessary.

[`PKPassRelevantDate`](/documentation/PassKit/PKPassRelevantDate)

### Getting the Wallet URL

[`passURL`](/documentation/PassKit/PKPass/passURL)

The URL that opens the pass in the Wallet app.

### Providing contextual information

[`userInfo`](/documentation/PassKit/PKPass/userInfo)

Developer-specific custom data.



---

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)
