---
title: "pass(withPassTypeIdentifier:serialNumber:)"
framework: passkit
role: symbol
role_heading: Instance Method
path: "passkit/pkpasslibrary/pass(withpasstypeidentifier:serialnumber:)"
---

# pass(withPassTypeIdentifier:serialNumber:)

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

## Declaration

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

## Parameters

- `identifier`: The pass’s pass type identifier.
- `serialNumber`: The pass’s serial number.

## Return Value

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.

## See Also

### Accessing passes

- [isPassLibraryAvailable()](passkit/pkpasslibrary/ispasslibraryavailable().md)
- [passes()](passkit/pkpasslibrary/passes().md)
- [passes(of:)](passkit/pkpasslibrary/passes(of:).md)
- [containsPass(_:)](passkit/pkpasslibrary/containspass(_:).md)
- [serviceProviderData(for:completion:)](passkit/pkpasslibrary/serviceproviderdata(for:completion:).md)
- [remoteSecureElementPasses](passkit/pkpasslibrary/remotesecureelementpasses.md)
