BlaBlaCar Bus API · JSON Structure

Blablacar Bus Api Ticket Structure

Electronic ticket for a passenger on a BlaBlaCar Bus trip

Type: object Properties: 9 Required: 3
BookingBusesCoachEuropeMobilityTicketingTransportationTravel

Ticket is a JSON Structure definition published by BlaBlaCar Bus API, describing 9 properties, of which 3 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

ticket_id booking_id passenger_name departure_datetime from_station to_station seat_number status qr_code

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/blablacar-bus-api/refs/heads/main/json-structure/blablacar-bus-api-ticket-structure.json",
  "name": "Ticket",
  "description": "Electronic ticket for a passenger on a BlaBlaCar Bus trip",
  "required": [
    "ticket_id",
    "booking_id",
    "passenger_name"
  ],
  "type": "object",
  "properties": {
    "ticket_id": {
      "description": "Unique ticket identifier",
      "type": "string",
      "example": "ticket-500123"
    },
    "booking_id": {
      "description": "Associated booking identifier",
      "type": "string",
      "example": "booking-500123"
    },
    "passenger_name": {
      "description": "Full name of the ticket holder",
      "type": "string",
      "example": "Jane Smith"
    },
    "departure_datetime": {
      "description": "Departure date and time",
      "type": "datetime",
      "example": "2025-06-15T07:00:00Z"
    },
    "from_station": {
      "description": "Departure station name",
      "type": "string",
      "example": "Paris Bercy"
    },
    "to_station": {
      "description": "Arrival station name",
      "type": "string",
      "example": "Lyon Perrache"
    },
    "seat_number": {
      "description": "Assigned seat number",
      "type": "string",
      "example": "14A"
    },
    "status": {
      "description": "Current ticket status",
      "enum": [
        "valid",
        "used",
        "cancelled"
      ],
      "type": "string",
      "example": "valid"
    },
    "qr_code": {
      "description": "Base64-encoded QR code image",
      "type": "string",
      "example": "data:image/png;base64,abc123"
    }
  }
}