{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://schemas.iata.org/mdoc/boardingpass.json", "title": "Booking Order Mobile Document", "description": "Mobile Document (mDOC) schema for Booking Order", "type": "object", "required": [ "docType", "issuerSigned" ], "properties": { "docType": { "type": "string", "const": "org.iata.bookingorder.1" }, "issuerSigned": { "type": "object", "required": [ "nameSpaces", "issuerAuth" ], "properties": { "nameSpaces": { "type": "object", "required": [ "org.iata.bookingorder.1" ], "properties": { "org.iata.bookingorder.1": { "type": "object", "required": [ "givenName", "orderIdentifier", "surname", "titleName", "pax_segments" ], "properties": { "givenName": { "title": "Credential Subject Given Name", "type": "string", "minLength": 1, "maxLength": 64 }, "orderIdentifier": { "title": "Identifier", "type": "string", "maxLength": 14 }, "surname": { "title": "Credential Subject Surname", "type": "string", "minLength": 1, "maxLength": 64 }, "titleName": { "title": "Credential Subject Title Name", "type": "string", "minLength": 2, "maxLength": 88 }, "pax_segments": { "title": "Passenger Segments", "description": "Array of flight segments for this booking order", "type": "array", "minItems": 1, "items": { "type": "object", "required": [ "destStationIATALocationCode", "flightIdentifierDate", "operatingCarrierAirlineDesigCode", "operatingCarrierFlightNumber", "originStationIATALocationCode", "bookingStatusCode", "scheduledArrivalTime", "scheduledDepartureTime" ], "properties": { "destStationIATALocationCode": { "title": "Destination Station IATA Location Code", "description": "IATA location code for the arrival station.", "type": "string", "minLength": 3, "maxLength": 3 }, "flightIdentifierDate": { "title": "Flight Identifier Date", "description": "Date of the scheduled aircraft departure from the station of origin in ISO 8601 format (YYYY-MM-DD).", "type": "string", "format": "date" }, "operatingCarrierAirlineDesigCode": { "title": "Operating Carrier Airline Designator Code", "description": "The IATA Airline code or ICAO Airline code of the operating airline.", "type": "string", "pattern": "^([A-Z]{3}|[A-Z]{2})|([0-9][A-Z])|([A-Z][0-9])$" }, "operatingCarrierFlightNumber": { "title": "Operating Carrier Flight Number", "description": "The numerical designation of a flight as assigned by the operating carrier.", "type": "string", "pattern": "^[0-9]{1,4}$" }, "originStationIATALocationCode": { "title": "Origin Station IATA Location Code", "description": "IATA location code for the departure station.", "type": "string", "minLength": 3, "maxLength": 3 }, "bookingStatusCode": { "title": "Booking Status Code", "description": "Collection of passenger and booking statuses related to an airline's customer ordering and passenger fulfillment processes.", "type": "string", "pattern": "^[A-Z][a-z]*(?:-[A-Z][a-z]*)*$" }, "scheduledArrivalTime": { "title": "Scheduled Arrival Time", "description": "Local time the flight is due to arrive at the destination airport in ISO 8601 format (HH:MM:SS).", "type": "string", "format": "time", "pattern": "^(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d$" }, "scheduledDepartureTime": { "title": "Scheduled Departure Time", "description": "Local time the flight is due to leave the origin airport in ISO 8601 format (HH:MM:SS).", "type": "string", "format": "time", "pattern": "^(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d$" } } } } } } } }, "issuerAuth": { "type": "string", "format": "binary", "description": "CBOR-encoded COSE_Sign1 structure (issuer authentication) RFC 8152/9052." } } } } }