Branding, QR codes and card details

Branding, QR codes and card details

Send branding and additional details with any pass-creation request. Apple Wallet and Google Wallet use fixed card templates, so each platform presents the same information differently. There is no HTML, CSS, custom-font or free-positioning option for the card, and the wallet selection page has no branding request options.

A complete customised request

Save this as branded-worker.json. The SVG is a simple example logo; replace it with your own inline artwork. The qualification values below are illustrative information supplied by the issuer, not checks performed by the service.

{
  "firstName": "Jane",
  "middleName": "Marie",
  "lastName": "Smith",
  "company": "Example Staffing",
  "dob": "1992-08-24",
  "employeeId": "EMP-88301",
  "qrData": "EMP-88301",
  "targetWallet": "both",
  "branding": {
    "primaryColor": "#17324d",
    "secondaryColor": "#a8e6cf",
    "tertiaryColor": "#ffffff",
    "title": "Example Staffing",
    "logoSvg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"160\" height=\"50\" viewBox=\"0 0 160 50\"><rect width=\"160\" height=\"50\" rx=\"8\" fill=\"#17324d\"/><path d=\"M20 12h28v7H28v6h17v7H28v6h20v7H20z\" fill=\"#ffffff\"/></svg>"
  },
  "additionalDetails": {
    "front": [
      { "label": "DBS Number", "value": "001234213" },
      { "label": "DBS Expiry Date", "value": "2027-01-31" },
      { "label": "Role", "value": "Teaching assistant" }
    ],
    "back": [
      { "label": "Office", "value": "London" },
      { "label": "Contact", "value": "Use your agency support number" }
    ],
    "notice": "Property of Example Staffing. Check current assignment and eligibility in the agency system before granting access."
  }
}

Using the variables from the API guide:

curl --fail-with-body --silent --show-error "$BASE_URL/api/v1/passes/link" \
  -H "x-api-key: $API_KEY" -H 'Content-Type: application/json' \
  --data-binary @branded-worker.json

Colours and title

The default badge uses a purple background (#3e344a), green Apple labels (#00ca72), white Apple values (#ffffff) and the 3B logo. The default title is the supplied company.

primaryColor changes both wallet backgrounds. secondaryColor and tertiaryColor control Apple labels and values respectively; Google chooses its own text colour. Colours must be six-digit hex values such as #17324d, not colour names or short hex codes.

When only a custom background is supplied, Apple text switches to dark slate or white for contrast, and labels follow that text colour. If you supply text colours yourself, choose readable combinations. The service does not validate their contrast.

branding.title is limited to 30 characters. It appears beside the Apple logo and as the Google card title. It does not change the company stored in the pass details.

Logos and photographs

branding.logoSvg accepts up to 20,000 characters of inline SVG. Use self-contained artwork with dimensions or a suitable view box. Scripts, event handlers, entities and external references are rejected. Apple fits the logo within 160 × 50 points and derives the pass icon from it. Google receives a service-hosted PNG with padding for its circular logo area.

Keep artwork compact: it contributes to the length of the wallet link and the Google save URL. A custom Google logo is served from the service's public logo route. The pass has no separate logoUrl field.

Add photoUrl for a worker photograph. Apple downloads and crops it to a 3:4 portrait next to the name. Google uses it as a hero image, not the same portrait placement. Use a direct HTTPS image URL reachable without a login, with no redirect; Apple limits downloads to 5 MB and five seconds and may restrict permitted hosts. See the API guide for failure handling.

Front and back details

Area Apple Wallet Google Wallet
Top Logo, title and employee ID Logo and card title
Main information Full name and optional portrait Full name with Digital Worker ID label
Front rows Date of birth and up to three custom rows Employee ID, date of birth and up to three custom rows
QR Encodes qrData Encodes qrData, with employee ID as alternate text
Back / details Company, employee ID, up to ten custom rows and notice Company, employee ID, custom detail modules and notice

Front rows are added alongside the built-in date of birth; they do not replace it. For each custom row, use a label of up to 30 characters and a value of up to 100 characters. Keep visible text short enough to read on a phone. Wallet applications control the final layout.

The notice accepts up to 500 characters. Omitted or blank notices use:

Officially credentialed and validated through 3B4SF. This pass is non-transferable and strictly for identity verification. Misuse or falsification may lead to revocation of access privileges.

This is default display text, not evidence that the service has performed a verification check or can revoke a saved pass. Supply your own notice to describe the issuer's actual process. Dates in additional details are display values; a displayed expiry date does not automatically expire the card.

QR code content

The service produces a QR code for both wallets. It does not offer alternate barcode types, rotating codes, QR colour controls or a standalone QR image endpoint.

Set qrData to the exact value your scanner expects, up to 500 characters. If omitted or blank, it uses employeeId.

Scan workflow Example value Receiving application responsibility
Worker lookup EMP-88301 Resolve the worker and check current status
Existing client clock identifier 00012345 Map the value to that client's employee record
Verification page https://verify.example.com/worker/opaque-reference Host the page and control what the visitor can see

The verification URL above is an example you would implement, not an endpoint supplied by this service. Use a compact identifier when possible. Apple declares ISO-8859-1 barcode encoding, so use ASCII identifiers for straightforward cross-platform scanning and test any non-ASCII content on target devices.

A QR code can be copied or photographed. Possession of it alone does not establish who is presenting it or whether they remain eligible. The receiving application should check the current worker record and any site, assignment or attendance rules. See use cases.