---
title: Pass.Barcode
framework: walletpasses
role: symbol
role_heading: Object
path: walletpasses/pass/barcode-data.dictionary
---

# Pass.Barcode

An object that represents a barcode shown on a pass.

## Declaration

```data
object Pass.Barcode
```

## Properties

altText: The text displayed near the barcode. For example, a human-readable version of the barcode data in case the barcode doesn’t scan. The alternative text isn’t displayed for watchOS. format: The format of the barcode. The barcode format PKBarcodeFormatCode128 isn’t supported for watchOS. message: The message or payload to display as a barcode. messageEncoding: The IANA character set name of the text encoding to use to convert message from a string representation to a data representation that the system renders as a barcode, such as “iso-8859-1”

## See Also

### Adding barcodes

- [Pass.Barcodes](walletpasses/pass/barcodes-data.dictionary.md)
