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

Drawn live in your browser with the SDK’s own sizes and colours, not a screenshot.

Rendered natively by the Flutter SDK since 0.43.0 and the web SDK since 0.20.0. A build that does not declare it is never offered it.

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.matrixobjectNoFilled in by the server, which draws the code; never in model output. Read it only in a renderer of your own.
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. Filled in by the server, which draws the code; never in model output. Read it only in a renderer of your own.
walletobjectNoNone
wallet.apple_pkpass_urlstringNohttps only.
wallet.google_save_urlstringNohttps only.
valid_untilstringNoISO 8601 with its offset (2026-10-10T09:30:00+03:00) or Z.

On the wire

The model sends code.value; the server adds the drawn modules before the block reaches the device.

{
  "id": "blk_88",
  "type": "pass",
  "fallback_text": "Pickup code 4821 for order 1042 at Kalverstraat, valid until 12 October.",
  "props": {
    "kind": "pickup",
    "title": "Order 1042",
    "subtitle": "Neon Kicks Kalverstraat",
    "fields": [
      { "label": "Pickup code", "value": "4821" },
      { "label": "Items", "value": "2" }
    ],
    "code": { "format": "qr", "value": "NK-1042-4821", "display_text": "4821" },
    "valid_until": "2026-10-12T20:00:00+02:00"
  }
}