BlaBlaCar Bus API · JSON Structure

Blablacar Bus Api Booking Structure

A confirmed booking for one or more passengers on a BlaBlaCar Bus trip

Type: object Properties: 4 Required: 2
BookingBusesCoachEuropeMobilityTicketingTransportationTravel

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

Properties

booking_id status partner_reference total_price

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-booking-structure.json",
  "name": "Booking",
  "description": "A confirmed booking for one or more passengers on a BlaBlaCar Bus trip",
  "required": [
    "booking_id",
    "status"
  ],
  "type": "object",
  "properties": {
    "booking_id": {
      "description": "Unique booking identifier",
      "type": "string",
      "example": "booking-500123"
    },
    "status": {
      "description": "Current booking status",
      "enum": [
        "confirmed",
        "pending",
        "cancelled"
      ],
      "type": "string",
      "example": "confirmed"
    },
    "partner_reference": {
      "description": "Partner's own reference identifier",
      "type": "string",
      "example": "booking-ref-abc123"
    },
    "total_price": {
      "description": "Total booking price",
      "type": "object",
      "properties": {
        "amount": {
          "type": "int32",
          "example": 1299
        },
        "currency": {
          "type": "string",
          "example": "EUR"
        }
      }
    }
  }
}