Adyen · JSON Structure

Payments Additional Data Airline Structure

AdditionalDataAirline schema from Adyen API

Type: object Properties: 28 Required: 1
PaymentsFinancial ServicesFintech

AdditionalDataAirline is a JSON Structure definition published by Adyen, describing 28 properties, of which 1 is required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

airline.agency_invoice_number airline.agency_plan_name airline.airline_code airline.airline_designator_code airline.boarding_fee airline.computerized_reservation_system airline.customer_reference_number airline.document_type airline.flight_date airline.leg.carrier_code airline.leg.class_of_travel airline.leg.date_of_travel airline.leg.depart_airport airline.leg.depart_tax airline.leg.destination_code airline.leg.fare_base_code airline.leg.flight_number airline.leg.stop_over_code airline.passenger.date_of_birth airline.passenger.first_name airline.passenger.last_name airline.passenger.telephone_number airline.passenger.traveller_type airline.passenger_name airline.ticket_issue_address airline.ticket_number airline.travel_agency_code airline.travel_agency_name

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/adyen/refs/heads/main/json-structure/payments-additional-data-airline-structure.json",
  "description": "AdditionalDataAirline schema from Adyen API",
  "type": "object",
  "properties": {
    "airline.agency_invoice_number": {
      "description": "The reference number for the invoice, issued by the agency.\n* Encoding: ASCII\n* minLength: 1 character\n* maxLength: 6 characters",
      "type": "string"
    },
    "airline.agency_plan_name": {
      "description": "The two-letter agency plan identifier.\n* Encoding: ASCII\n* minLength: 2 characters\n* maxLength: 2 characters",
      "type": "string"
    },
    "airline.airline_code": {
      "description": "The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier.\n* Format: IATA 3-digit accounting code (PAX)\n* Example: KLM = 074\n* minLength: 3 characters\n* maxLength: 3 characters\n* Must not be all spaces\n*Must not be all zeros.",
      "type": "string"
    },
    "airline.airline_designator_code": {
      "description": "The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier.\n* Encoding: ASCII\n* Example: KLM = KL\n* minLength: 2 characters\n* maxLength: 2 characters\n* Must not be all spaces\n*Must not be all zeros.",
      "type": "string"
    },
    "airline.boarding_fee": {
      "description": "The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes).\n* Encoding: Numeric\n* minLength: 1 character\n* maxLength: 18 characters",
      "type": "string"
    },
    "airline.computerized_reservation_system": {
      "description": "The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket.\n* Encoding: ASCII\n* minLength: 4 characters\n* maxLength: 4 characters",
      "type": "string"
    },
    "airline.customer_reference_number": {
      "description": "The alphanumeric customer reference number.\n* Encoding: ASCII\n* maxLength: 20 characters\n* If you send more than 20 characters, the customer reference number is truncated\n* Must not be all spaces",
      "type": "string"
    },
    "airline.document_type": {
      "description": "A code that identifies the type of item bought. The description of the code can appear on credit card statements.\n* Encoding: ASCII\n* Example: Passenger ticket = 01\n* minLength: 2 characters\n* maxLength: 2 characters",
      "type": "string"
    },
    "airline.flight_date": {
      "description": "The flight departure date. Local time `(HH:mm)` is optional.\n* Date format: `yyyy-MM-dd`\n* Date and time format: `yyyy-MM-dd HH:mm`\n* minLength: 10 characters\n* maxLength: 16 characters",
      "type": "string"
    },
    "airline.leg.carrier_code": {
      "description": "The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier.\nThis field is required if the airline data includes leg details.\n* Example: KLM = KL\n* minLength: 2 characters\n* maxLength: 2 characters\n* Must not be all spaces\n*Must not be all zeros.",
      "type": "string"
    },
    "airline.leg.class_of_travel": {
      "description": "A one-letter travel class identifier.\n The following are common:\n * F: first class\n* J: business class\n* Y: economy class\n* W: premium economy\n\n* Encoding: ASCII\n* minLength: 1 character\n* maxLength: 1 character\n* Must not be all spaces\n*Must not be all zeros.",
      "type": "string"
    },
    "airline.leg.date_of_travel": {
      "description": "\t\nDate and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`.\n* Encoding: ASCII\n* minLength: 16 characters\n* maxLength: 16 characters",
      "type": "string"
    },
    "airline.leg.depart_airport": {
      "description": "The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport.\nThis field is required if the airline data includes leg details.\n\n* Encoding: ASCII\n* Example: Amsterdam = AMS\n* minLength: 3 characters\n* maxLength: 3 characters\n* Must not be all spaces\n*Must not be all zeros.",
      "type": "string"
    },
    "airline.leg.depart_tax": {
      "description": "The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes).\n* Encoding: Numeric\n* minLength: 1\n* maxLength: 12\n*Must not be all zeros.",
      "type": "string"
    },
    "airline.leg.destination_code": {
      "description": "The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport.\nThis field is required if the airline data includes leg details.\n* Example: Amsterdam = AMS\n* Encoding: ASCII\n* minLength: 3 characters\n* maxLength: 3 characters\n* Must not be all spaces\n*Must not be all zeros.",
      "type": "string"
    },
    "airline.leg.fare_base_code": {
      "description": "The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric.\n* minLength: 1 character\n* maxLength: 6 characters\n* Must not be all spaces\n*Must not be all zeros.",
      "type": "string"
    },
    "airline.leg.flight_number": {
      "description": "The flight identifier.\n* minLength: 1 character\n* maxLength: 5 characters\n* Must not be all spaces\n*Must not be all zeros.",
      "type": "string"
    },
    "airline.leg.stop_over_code": {
      "description": "A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not.\n* Encoding: ASCII\n* minLength: 1 character\n* maxLength: 1 character",
      "type": "string"
    },
    "airline.passenger.date_of_birth": {
      "description": "The passenger's date of birth.\n\nDate format: `yyyy-MM-dd`\n* minLength: 10\n* maxLength: 10",
      "type": "string"
    },
    "airline.passenger.first_name": {
      "description": "The passenger's first name.\n> This field is required if the airline data includes passenger details or leg details.\n* Encoding: ASCII",
      "type": "string"
    },
    "airline.passenger.last_name": {
      "description": "The passenger's last name.\n> This field is required if the airline data includes passenger details or leg details.\n* Encoding: ASCII",
      "type": "string"
    },
    "airline.passenger.telephone_number": {
      "description": "The passenger's telephone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs.\n* Encoding: ASCII\n* minLength: 3 characters\n* maxLength: 30 characters",
      "type": "string"
    },
    "airline.passenger.traveller_type": {
      "description": "The IATA passenger type code (PTC).\n* Encoding: ASCII\n* minLength: 3 characters\n* maxLength: 6 characters",
      "type": "string"
    },
    "airline.passenger_name": {
      "description": "The passenger's name, initials, and title.\n* Format: last name + first name or initials + title\n* Example: *FLYER / MARY MS*\n* minLength: 1 character\n* maxLength: 20 characters\n* If you send more than 20 characters, the name is truncated\n* Must not be all spaces \n*Must not be all zeros.",
      "type": "string"
    },
    "airline.ticket_issue_address": {
      "description": "The address of the organization that issued the ticket.\n* minLength: 0 characters\n* maxLength: 16 characters",
      "type": "string"
    },
    "airline.ticket_number": {
      "description": "The ticket's unique identifier.\n* minLength: 1 character\n* maxLength: 15 characters\n* Must not be all spaces\n*Must not be all zeros.",
      "type": "string"
    },
    "airline.travel_agency_code": {
      "description": "The unique identifier from IATA or ARC for the travel agency that issues the ticket.\n* Encoding: ASCII\n* minLength: 1 character\n* maxLength: 8 characters\n* Must not be all spaces\n*Must not be all zeros.",
      "type": "string"
    },
    "airline.travel_agency_name": {
      "description": "The name of the travel agency.\n\n* Encoding: ASCII\n* minLength: 1 character\n* maxLength: 25 characters\n* Must not be all spaces\n*Must not be all zeros.",
      "type": "string"
    }
  },
  "required": [
    "airline.passenger_name"
  ],
  "name": "AdditionalDataAirline"
}