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.
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.
| Prop | Type | Required | Constraints |
|---|---|---|---|
kind | boarding | ticket | pickup | coupon | membership | Yes | None |
title | string | Yes | 1 to 80 characters. |
subtitle | string | No | Up to 120 characters. |
fields | array | No | Up to 8 entries. |
fields[].label | string | Yes | 1 to 30 characters. |
fields[].value | string | Yes | 1 to 60 characters. |
code | object | No | None |
code.format | qr | code128 | pdf417 | aztec | Yes | None |
code.value | string | Yes | 1 to 500 characters. |
code.display_text | string | No | Up to 60 characters. |
code.matrix | object | No | Filled in by the server, which draws the code; never in model output. Read it only in a renderer of your own. |
code.matrix.rows | integer | Yes | 1 to 200. |
code.matrix.cols | integer | Yes | 1 to 200. |
code.matrix.bits | string | Yes | Up to 8000 characters. |
code.matrix.module_aspect | number | Yes | 1 to 4. |
code.bars | integer[] | No | Up 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. |
wallet | object | No | None |
wallet.apple_pkpass_url | string | No | https only. |
wallet.google_save_url | string | No | https only. |
valid_until | string | No | ISO 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"
}
}