ReferenceComponents

pass

Something the user shows: a ticket, a boarding pass, a pickup code, a coupon.

Something to show. pass is what the user holds up at a counter or a gate: a ticket, a boarding pass, a pickup code, a coupon, a membership card — a title, a few fields (gate, seat, time), and a code.

The code is drawn by the server from its value, as a QR, Code 128, PDF417 or Aztec code, and reaches the SDK as modules to paint at full size with a quiet zone; the model's own block never carries it. With wallet links, the pass offers Add to Apple Wallet or Save to Google Wallet.

Boarding passIST → BER · TK 1723
GateB12Seat14CBoards09:40

Re-rendered in the browser from the SDK’s own scales. Not a screenshot.

What the server checks

The code's value and the wallet links have to be exactly what one of your actions returned: a made-up barcode is a forged ticket.

Props

Every block also carries type and a required fallback_text of 1 to 300 characters.

PropTypeRequiredConstraints
kindboarding | ticket | pickup | coupon | membershipYesNone
titlestringYes1 to 80 characters.
subtitlestringNoUp to 120 characters.
fieldsarrayNoUp to 8 entries.
fields[].labelstringYes1 to 30 characters.
fields[].valuestringYes1 to 60 characters.
codeobjectNoNone
code.formatqr | code128 | pdf417 | aztecYesNone
code.valuestringYes1 to 500 characters.
code.display_textstringNoUp to 60 characters.
code.matrixobjectNoNone
code.matrix.rowsintegerYes1 to 200.
code.matrix.colsintegerYes1 to 200.
code.matrix.bitsstringYesUp to 8000 characters.
code.matrix.module_aspectnumberYes1 to 4.
code.barsinteger[]NoUp to 600 whole numbers, 1 to 4 each.
walletobjectNoNone
wallet.apple_pkpass_urlstringNoNone
wallet.google_save_urlstringNoNone
valid_untilstringNoISO 8601 in UTC (...Z); a numeric offset fails validation.