<!--
{
  "availability" : [
    "iOS: 6.0.0 -",
    "iPadOS: 6.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PassKit",
  "identifier" : "/documentation/PassKit/PKPassLibrary/pass(withPassTypeIdentifier:serialNumber:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "PassKit (Apple Pay and Wallet)"
    ],
    "preciseIdentifier" : "c:objc(cs)PKPassLibrary(im)passWithPassTypeIdentifier:serialNumber:"
  },
  "title" : "pass(withPassTypeIdentifier:serialNumber:)"
}
-->

# pass(withPassTypeIdentifier:serialNumber:)

Returns the pass with the specified pass type identifier and serial number.

```
func pass(withPassTypeIdentifier identifier: String, serialNumber: String) -> PKPass?
```

## Parameters

`identifier`

The pass’s pass type identifier.

`serialNumber`

The pass’s serial number.

## Return Value

The pass with the specified pass type identifier and serial number, or `nil` if there isn’t such a pass or if the app doesn’t have the appropriate entitlement.

## Discussion

---

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)