Introduction to the BoB Standard

Introduction to the BoB Standard

BoB (Biljettdistribution och Biljettvisering) is a national ticketing standard developed by Samtrafiken together with its owner organisations in Swedish public transport. It lets a ticket sold by one organisation be validated by another.

BoB standardises the tickets and the interfaces between systems. Each participant still decides its own fares, business rules and systems.

How a BoB Ecosystem Is Built

In BoB, a ticketing system is split into separate parts that communicate through standardised interfaces. This is what makes it possible for a ticket sold in one organisation's app to be checked by another organisation's validator. The main parts are:

  • Sales channels, such as apps, web shops and ticket machines

  • Ticket engines

  • Product services

  • Validation and inspection systems

  • Shared services, such as authentication and participant metadata

hämtning.png

What the Standard Contains

The standard has three parts. Each part is versioned independently, as described in Change Management for the BoB Standard.

Part

Content

Part

Content

Mobile Ticket Specification (MTS)

How tickets are structured, signed and validated. Tickets are packaged in a Mobile Ticket Bundle (MTB), which can hold tickets from one or several participants, for example to cover a whole journey. Read more in MTS Documentation.

APIs

How systems exchange information during a ticket's life: products, purchase, issuance, validation, inspection and event reporting. Read more in BoB API Documentation.

Schemas

Recommended common enumerated values, including abbreviations that keep tickets small. Some are defined in the MTS.

BoB in Practice

Searching for a Ticket

A traveller searches for a ticket in a sales channel, such as a mobile app. The sales channel asks a product service for products that match the journey and the traveller sees the options.

Buying a Ticket

The traveller selects a ticket and pays. The sales channel sends an order to the ticket engine, which creates an MTB with the ticket data and the digital signatures needed for validation. The ticket is returned to the traveller, usually as an Aztec code.

Validating a Ticket

The traveller shows the ticket to a validation device. The device uses the Participant Identifier (PID) to find the right ticket in the MTB, and checks that it is authentic and valid for the current time and place. The result is sent to the validation backend, where it can be used for reporting and analysis.

Beyond the Standard

Participants who sell each other's tickets need to agree on business rules, clearing and settlement, and operational responsibilities. The standard does not say what those agreements should contain.

Samtrafiken administers BoB. This includes maintaining the standard and coordinating the shared infrastructure that participants depend on. Read more in Samtrafiken’s Role in the BoB Ecosystem.

Related Sections