Pass barcodes.
Which formats a pass can carry, which count as square, and the field budget a square code costs you.
Updated 24 September 2026
A pass carries its barcode in barcodes[]: a format, a message, an encoding and optional altText. QR and Aztec are square, and a square barcode halves the room for secondary and auxiliary fields on three of the five styles.
- Square
- QR and Aztec. PDF417 and Code 128 are not.
- The cost
- Four secondary and auxiliary fields combined on store cards, coupons and generic passes.
- altText
- Human-readable text under the code.
Four formats, two square.
| format | Symbology | Square | Use it for |
|---|---|---|---|
PKBarcodeFormatQR |
QR code | Yes | Links, vCards: the default for anything a phone camera should read. |
PKBarcodeFormatAztec |
Aztec | Yes | Transport tickets; reads well off a screen. |
PKBarcodeFormatPDF417 |
PDF417 | No | Boarding passes and ID-style scanners. |
PKBarcodeFormatCode128 |
Code 128 | No | One-dimensional retail scanners. Apple notes it is not shown on Apple Watch. |
Square is read from pass-spec.js, the module Cardr’s pass builder obeys.
| Style | Secondary + auxiliary with a square barcode |
|---|---|
| Generic | 4 combined |
| Store card | 4 combined |
| Coupon | 4 combined |
| Event ticket | Independent limits |
| Boarding pass | Independent limits |
Apple: “Coupons, store cards, and generic passes with a square barcode can have a total of up to four secondary and auxiliary fields, combined.”
The barcode Cardr ships.
{
"barcodes": [
{
"format": "PKBarcodeFormatQR",
"message": "https://cardr.co/u/jordan?c=qr",
"messageEncoding": "iso-8859-1"
}
]
}
Barcode questions.
What is altText?
Text shown under the barcode, such as a ticket number. It is optional; leave it out when the barcode carries a link nobody needs to read.
Why did my fields disappear when I added a QR code?
A square barcode takes the space: store cards, coupons and generic passes then get four secondary and auxiliary fields between them, not four each. Wallet drops the extras without warning. The .pkpass viewer flags it.
barcode or barcodes?
barcodes, an array; Wallet shows the first format the device supports. The single barcode key is deprecated.
More of the format.
Every top-level pass.json key with its type, whether Wallet requires it and what it does, and the pass.json Cardr ships, generated from the code that builds it.
ReferenceUpdating a pass after it is issuedApple’s pass web service protocol: the register, unregister, serial-number and pass endpoints and the log, with request and response shapes from a working implementation.
ReferenceSigning a passPass Type ID certificates end to end, the WWDR intermediate, the openssl commands, and the signing faults that stop a pass opening, each matched to the check that catches it.
ReferenceGoogle Wallet vs Apple Wallet passesThe two wallets’ pass rules side by side: image sizes, fields, text lengths, barcodes, how a pass is saved and updated, and what you need to issue one, each from the platform’s own docs.