AirOrderCreateV2

AirOrderCreateV2 endpoint can be used to create a new airline reservation by specifying various parameters, such as Offer ID, Shopping Response ID, Offer Response ID, Seat Response ID, Itinerary ID, and a few more parameters.

In the context of airline reservations, a PNR (Passenger Name Record) is a unique identifier used to manage a traveller’s reservation and it contains all the information related to a particular reservation, such as the passenger’s name, flight itinerary, seat assignments, and pricing information.

Once the user specifies the necessary parameters and submits the AirOrderCreateV2 request, the system will create a new PNR to manage the reservation.

In addition to this, we can use Multiple Forms Of Payment (MFOP) with card, check, or payment gateway to order the booking confirmation for the same or different passenger types.

We also provide 3DS support for credit and debit card transactions, which acts as a additional layer of security and to reduce the risk of unauthorized charges during online transactions. The api continues to provide response without these parameters.

Schema

  • Name: Provide the name for the request. This is a String value.
  • ReferenceVersion: Provide the version number. This is a Numeric value.

  • Travel Agency Sender:

    • Name: Provide the name for the request. This is a String value.

    • IATA Number: Provide the IATA number for the request. This is a String value.

    • Agency ID: Provide the agency ID for the request. This is a String value.

    • Contacts: This is an Array.

      • EmailContact: Provide the email contact for the request. This is a String value.

The Shopping Response ID is a unique identifier that is generated when a customer performs a search for flights and receives a list of available options.

This is the required field and the value will be Numeric.


The airline booking system generates an OfferResponseID to identify the specific offer. This ID is unique to that particular offer so that it is important to provide the correct numeric value to ensure that the system can identify the correct offer

This is the required field, and the value will be Numeric.


This is an optional field. Provide the seat response ID for a specific selection. The value will be Numeric.

This is an optional field. Provide the service list response ID for a specific selection. The value will be Numeric.

  • Tracking: Valid values are Y and N. This is a String value.

  • PassengerMetadata:

    • SpecialServiceRequest: This is an Array.

      • PassengerID: This is the Passenger ID. This is a String value.

      • Origin: This is the Origin. This is a String value.

      • Destination: This is the Destination. This is a String value.

      • DepartureDateTime: This is the Departure date and time. This is a String value.

      • MarketingFlightNumber: This is the Marketing flight number. This is a Numeric value.

      • MarketingCarrier: This is the Marketing carrier. This is a String value.

      • SsrType: This is the Ssr type. This is a String value.

      • SsrCode: This is the Ssr code. This is a String value.

      • FreeText: This is the Free text. This is a String value.


  • OfferID: When a customer performs a search for flights, the airline generates a list of available offers that meet the customer’s search criteria. Each offer within that list is assigned a unique OfferID.It is important to provide the correct numeric value to ensure that the system can identify the correct offer.This is the required field, and the value will be Numeric.

  • ServiceList: This is an Array and optional field.

    • OptinalServiceId: Provide the optional service ID. This is a String value.

    • PassengerID: Provide the passenger ID. This is a String value.

  • Seat: This is an Array and optional field.

    • SeatId: Provide the seat ID. This is a String value.

    • PassengerID: Provide the passenger ID. This is a String value.


This is a required field. Provide the booking type for a specific selection. Valid values are Book and Hold. If the value selected is Hold then payment has to be confirmed before confirming the order.

This is an optional field. Enter the associated promo code. This is a String value.

This is an optional field. Enter the associated promo discount. This is a String value.

This is an optional field. Generate a unique alphnumeric code of 8 character length, this will be used as a unique ID for each booking. This is a String value.

This is an required field. By default, the value for this field is “N”, if 3DS payment is required, the value should be supplied as “Y”. This is a String value.

This is an required field. PartnerCode supplied to uniquely identify each partner. This is a String value.

This is an required field. A unique identifier for the click/lead supplied our site. This is a String value. New Proposed Field

This is an optional field. The platform on which the booking has been made. This is a String value.

This is an optional field. Represents the website brand, that user comes from. This is a String value.

This is an optional field. Represents whether the journey was handled by a low-cost carrier. This is a String value.

This is an optional field. Booking source used to do the booking. This is a String value.

  • SecurePayment: This is a required field. This object is needed if 3D-Secure payment is required. (New Proposed Object for 3DS).

    • WebpushURL: This is a required field. Provide a custom endpoint URL, the response for the AirOrderCreateV2 will be supplied to this endpoint.

    • SecurePaymentVersion2: This is a required field. This object is needed if 3D-Secure payment is required.

      • DeviceDetails: This is a required field. Supply the device details in this object.

      • Method:

        • challengeWindowSize: Provide the browser window size. This is a String value.
        • browserUserAgent: Provide the browser being used. This is a String value.
        • browserJavaEnabled: Provide whether Java is enabled in the browser or not. This is a String value. The value is either true or false.
        • browserScreenHeight: Provide the screen height of the browser window. This is a String value.
        • browserScreenWidth: Provide the screen width of the browser window. This is a String value.
        • browserLanguage: Provide the language currently being used in the browser. This is a String value.
        • ipAddress: Provide the IP address of the client system. This is a String value.
  • Payment:

This is an Array

  • Type: This is a required field. Provide the payment type. Valid values are Card and Cheque.

  • Amount: This is a required field. Provide the amount. This is a Numeric value.

  • Method:

    • CardCode: Provide the card code. This is a String value.

For Card Type CC possible Card Codes are AX, DC, DI, DUS, JC, MA, MC, VI. For Card Type DC possible Card Codes are MC, RU, and VI.

  • CardNumber: Provide the card number. This is a String value.

  • SeriesCode: Provide the card number. This is a String value.

  • CardHolderName: Provide the card holder’s name. This is a String value.

  • EffectiveExpireDate: Provide the Effective date and Expiration date. This is a String value.

  • Payer:

    • ContactInfoRefs:

  • Passenger: This is an Array.

    Note: This is a required field. The passenger list must have at least one adult. Infant object count should be less than or equal to adult count. Total pax should be less than or eqaul to 9.

    • PassengerID: Provide the passenger ID for the request. This is a String value.

    • PTC: Valid values are ADT, CHD, and INF. This is a String value.

    • OnflyMarkup: This is an optional field. This is a String value.

    • OnflyDiscount: This is an optional field. This is a String value.

    • OnFlyPenalty: This is an optional field. This is a String value.

    • BirthDate: Provide the birth date. This is a Numeric value.

    • NameTitle: Provide the title for the given name. This is a String value. Valid values are,

      • ADT/Male: Mr
      • ADT/Female: Mrs and Ms
      • CHD/Male: Mstr
      • CHD/Female: Miss
      • INF/Male: Mstr
      • INF/Female: Miss
    • FirstName: Provide the first name. This is a String value.

    • MiddleName: Provide the middle name. This is a String value.

    • LastName: Provide the last name. This is a String value. .

    • Gender: Provide the gender of the passenger. Valid values are Male and Female. This is a String value.

    • TravelDocument: This is an Array. Provide the details of travel document. This is an optional field.

      • DocumentNumber: This is the document number of your passport. This is a String value.

      • DocumentType: This is the document type of your passport (P). This is a String value.

      • ExpiryDate: This is the Expiry date of your passport. This is a Numeric value.

      • IssuingCountry: This is the Issuing country of your passport. This is a String value.

    • ContactInfoRef: Provide the contact information details.


This is an Array. This is a required field. Provide all the contact information here.

  • ContactID: Provide the contact ID.

  • AgencyName: Provide the agency name.

  • EmailAddress: Provide the email address.

  • Phone:

    • CountryCode: Provide the country code.

    • AreaCode: Provide the area code.

    • PhoneNumber: Provide the phone number.

  • Mobile:

    • CountryCode: Provide the country code.

    • MobileNumber: Provide the mobile number.

  • Address:

    • Street: This is an Array. Provide the street details.
    • CityName: Provide the city name.
    • StateProv: Provide the state or province name.
    • PostalCode: Provide the postal code.
    • CountryCode: Provide the country code.
  • PassengerContact: Provide the contact details.

    • EmailAddress: Provide your email ID. This is a String value.

    • Phone:

      • CountryCode: Provide the country code. This is a String value.

      • AreaCode: Provide the area code. This is a String value.

      • PhoneNumber: Provide the phone number. This is a Numeric value.


Request URL

curl --location --request POST 'https://newapi.tltid.com/AirOrderCreateV2' \
--header 'x-api-key: <your key here>' \

Request Body Sample

{
    "OrderCreateRQ": {
        "Document": {
            "Name": "test portal",
            "ReferenceVersion": "1.0"
        },
        "Party": {
            "Sender": {
                "TravelAgencySender": {
                    "Name": "test agency",
                    "IATA_Number": "",
                    "AgencyID": "",
                    "Contacts": {
                        "Contact": [
                            {
                                "EmailContact": "test@email.com"
                            }
                        ]
                    }
                }
            }
        },
        "ShoppingResponseId": "1678884980680630342",
        "OfferResponseId": "1678885043771812579",
        "SeatResponseId": "1678885123663146513",
        "ServiceListResponseId": "1678885102048509620",
        "MetaData": {
            "Tracking": "Y",
            "PassengerMetadata": {
                "SpecialServiceRequest": []
            }
        },
        "Query": {
            "Order": {
                "Offer": [
                    {
                        "OfferID": "137211721101678884984951212459"
                    }
                ],
                "ServiceList": [
                    {
                        "OptinalServiceId": "1678885110745738541",
                        "PassengerID": "ADT1"
                    }
                ],
                "Seat": [
                    {
                        "SeatId": "1678885127063445420",
                        "PassengerID": "ADT1"
                    }
                ]
            }
        },
        "BookingType": "BOOK",
        "PromoCode": "",
        "PromoDiscount": 0,
        "threeDs_required": "false",
        "PartnerCode": "",
        "PartnerClickID": "",
        "BookingReqId": "DA7798F6",
        "Platform": "",
        "SiteBrand": "",
        "LowCostCarrierType": true,
        "BookingSource": "",
        "Payments": {
            "SecurePayment": {
                 "WebpushURL": ""https://caller_domain/../api_endpoint"",
                 "SecurePaymentVersion2": {
                    
                    "DeviceDetails": {
                        "challengeWindowSize": "03",
                        "browserUserAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36",
                        "browserJavaEnabled": "true",
                        "browserScreenHeight": "1000",
                        "browserScreenWidth": "1920",
                        "browserLanguage": "en-GB",
                        "ipAddress": "11.22.333.444"
                    }
                }
            },

            "Payment": [
                {
                    "Type": "CARD",
                    "Amount": 298.2,
                    "Method": {
                        "PaymentCard": {
                            "CardType": "CC",
                            "CardCode": "MC",
                            "CardNumber": "5299920210000277",
                            "SeriesCode": "411",
                            "CardHolderName": "Priya",
                            "EffectiveExpireDate": {
                                "Effective": "",
                                "Expiration": "2024-05"
                            }
                        }
                    },
                    "Payer": {
                        "ContactInfoRefs": "CTC1"
                    }
                }
            ]
        },
        "DataLists": {
            "PassengerList": {
                "Passenger": [
                    {
                        "PassengerID": "ADT1",
                        "PTC": "ADT",
                        "OnflyMarkup": "0.00",
                        "OnflyDiscount": "0.00",
                        "BirthDate": "2000-07-21",
                        "NameTitle": "Mr",
                        "FirstName": "downey",
                        "MiddleName": "",
                        "LastName": "Robert",
                        "Gender": "Male",
                        "TravelDocument": [
                            {
                                "DocumentNumber": "9658745",
                                "DocumentType": "P",
                                "ExpiryDate": "2024-01-01",
                                "IssuingCountry": "CA"
                            }
                        ],
                        "ContactInfoRef": "CTC1"
                    }
                ]
            },
            "ContactList": {
                "ContactInformation": [
                    {
                        "ContactID": "CTC1",
                        "AgencyName": "kathir",
                        "EmailAddress": "kathir@gmail.com",
                        "Phone": {
                            "ContryCode": "+91",
                            "AreaCode": "",
                            "PhoneNumber": "9854785465"
                        },
                        "Mobile": {
                            "ContryCode": "+91",
                            "MobileNumber": "9854785465"
                        },
                        "Address": {
                            "Street": [
                                "kovil Street",
                                null
                            ],
                            "CityName": "chennai",
                            "StateProv": "AX",
                            "PostalCode": "600028",
                            "CountryCode": "CA"
                        },
                        "PassengerContact": {
                            "EmailAddress": "mosris@gmail.com",
                            "Phone": {
                                "ContryCode": "",
                                "AreaCode": "",
                                "PhoneNumber": "9856325698"
                            }
                        }
                    }
                ]
            }
        }
    }
}

Response Sample

{
    "OrderViewRS": {
        "Document": {
            "Name": "API GATEWAY",
            "ReferenceVersion": "1.2"
        },
        "Party": {
            "Sender": {
                "TravelAgencySender": {
                    "Name": "Lucky Travels",
                    "IATA_Number": "",
                    "AgencyID": "",
                    "Contacts": {
                        "Contact": [
                            {
                                "EmailContact": "pst@claritytts.com"
                            }
                        ]
                    }
                }
            }
        },
        "ShoppingResponseId": "1678884980680630342",
        "Success": {},
        "Payments": {
            "Payment": [
                {
                    "Type": "CARD",
                    "Amount": 298.2,
                    "Method": {
                        "PaymentCard": {
                            "CardType": "CC",
                            "CardCode": "MC",
                            "CardNumber": "5299920210000277",
                            "SeriesCode": "411",
                            "CardHolderName": "Priya",
                            "EffectiveExpireDate": {
                                "Effective": "",
                                "Expiration": "2024-05"
                            }
                        }
                    },
                    "Payer": {
                        "ContactInfoRefs": "CTC1"
                    }
                }
            ]
        },
        "Order": [
            {
                "OrderID": "BLW764U6",
                "GdsBookingReference": "NELGSX",
                "OrderStatus": "SUCCESS",
                "NeedToTicket": "N",
                "OptionalServiceStatus": "SUCCESS",
                "OfferID": "137211721101678884984951212459",
                "Owner": "WS",
                "OwnerName": "Westjet",
                "IsBrandedFare": "N",
                "BrandedFareOptions": [],
                "CabinOptions": [],
                "IsAdditionalCabinType": "N",
                "Eticket": "true",
                "TimeLimits": {
                    "OfferExpirationDateTime": "2023-03-15T15:01:19",
                    "PaymentExpirationDateTime": "2023-03-16 12:57:00"
                },
                "BookingCurrencyCode": "CAD",
                "EquivCurrencyCode": "CAD",
                "HstPercentage": "",
                "RewardSettings": {
                    "RewardAvailable": "N",
                    "PointTypes": [],
                    "PointValues": {}
                },
                "BookingFeeInfo": {
                    "FeeType": "AIF",
                    "BookingCurrencyPrice": 15,
                    "EquivCurrencyPrice": 15
                },
                "TotalPrice": {
                    "BookingCurrencyPrice": 232.35,
                    "EquivCurrencyPrice": 232.35
                },
                "BasePrice": {
                    "BookingCurrencyPrice": 195,
                    "EquivCurrencyPrice": 195
                },
                "TaxPrice": {
                    "BookingCurrencyPrice": 37.35,
                    "EquivCurrencyPrice": 37.35
                },
                "Commission": {
                    "AgencyCommission": {
                        "BookingCurrencyPrice": 0,
                        "EquivCurrencyPrice": 0
                    },
                    "AgencyYqCommission": {
                        "BookingCurrencyPrice": 0,
                        "EquivCurrencyPrice": 0
                    }
                },
                "PortalCharges": {
                    "Markup": {
                        "BookingCurrencyPrice": 0,
                        "EquivCurrencyPrice": 0
                    },
                    "Surcharge": {
                        "BookingCurrencyPrice": 0,
                        "EquivCurrencyPrice": 0
                    },
                    "Discount": {
                        "BookingCurrencyPrice": 0,
                        "EquivCurrencyPrice": 0
                    }
                },
                "AgentMarkupInfo": {
                    "OnflyMarkup": {
                        "BookingCurrencyPrice": 0,
                        "EquivCurrencyPrice": 0
                    },
                    "OnflyDiscount": {
                        "BookingCurrencyPrice": 0,
                        "EquivCurrencyPrice": 0
                    },
                    "OnflyHst": {
                        "BookingCurrencyPrice": 0,
                        "EquivCurrencyPrice": 0
                    },
                    "PromoDiscount": {
                        "BookingCurrencyPrice": 0,
                        "EquivCurrencyPrice": 0,
                        "PromoCode": ""
                    }
                },
                "Penalty": {
                    "ChangeFee": {
                        "Before": {
                            "BookingCurrencyPrice": "NA",
                            "EquivCurrencyPrice": "NA"
                        },
                        "After": {
                            "BookingCurrencyPrice": "NA",
                            "EquivCurrencyPrice": "NA"
                        }
                    },
                    "CancelationFee": {
                        "Before": {
                            "BookingCurrencyPrice": "NA",
                            "EquivCurrencyPrice": "NA"
                        },
                        "After": {
                            "BookingCurrencyPrice": "NA",
                            "EquivCurrencyPrice": "NA"
                        }
                    }
                },
                "PaxSeatInfo": [
                    {
                        "SeatNumber": "04A",
                        "SegmentNumber": 1,
                        "Origin": "YKF",
                        "Destination": "YYC",
                        "PaxRef": "ADT1",
                        "Status": "HRS"
                    }
                ],
                "OfferItem": [
                    {
                        "OfferItemID": "OFFERITEMID1",
                        "Refundable": false,
                        "PassengerType": "ADT",
                        "PassengerQuantity": 1,
                        "TotalPriceDetail": {
                            "TotalAmount": {
                                "BookingCurrencyPrice": 232.35,
                                "EquivCurrencyPrice": 232.35
                            }
                        },
                        "Service": [
                            {
                                "ServiceID": "SV1",
                                "PassengerRefs": "ADT1",
                                "FlightRefs": "Flight1"
                            }
                        ],
                        "FareDetail": {
                            "PassengerRefs": "ADT1",
                            "Price": {
                                "TotalAmount": {
                                    "BookingCurrencyPrice": 232.35,
                                    "EquivCurrencyPrice": 232.35
                                },
                                "BaseAmount": {
                                    "BookingCurrencyPrice": 195,
                                    "EquivCurrencyPrice": 195
                                },
                                "TaxAmount": {
                                    "BookingCurrencyPrice": 37.35,
                                    "EquivCurrencyPrice": 37.35
                                },
                                "Commission": {
                                    "AgencyCommission": {
                                        "BookingCurrencyPrice": 0,
                                        "EquivCurrencyPrice": 0
                                    },
                                    "AgencyYqCommission": {
                                        "BookingCurrencyPrice": 0,
                                        "EquivCurrencyPrice": 0
                                    }
                                },
                                "BookingFee": {
                                    "BookingCurrencyPrice": 15,
                                    "EquivCurrencyPrice": 15
                                },
                                "PortalCharges": {
                                    "Markup": {
                                        "BookingCurrencyPrice": 0,
                                        "EquivCurrencyPrice": 0
                                    },
                                    "Surcharge": {
                                        "BookingCurrencyPrice": 0,
                                        "EquivCurrencyPrice": 0
                                    },
                                    "Discount": {
                                        "BookingCurrencyPrice": 0,
                                        "EquivCurrencyPrice": 0
                                    }
                                },
                                "Taxes": [
                                    {
                                        "TaxCode": "RC",
                                        "BookingCurrencyPrice": 15.23,
                                        "EquivCurrencyPrice": 15.23
                                    },
                                    {
                                        "TaxCode": "SQ",
                                        "BookingCurrencyPrice": 15,
                                        "EquivCurrencyPrice": 15
                                    },
                                    {
                                        "TaxCode": "CA",
                                        "BookingCurrencyPrice": 7.12,
                                        "EquivCurrencyPrice": 7.12
                                    }
                                ]
                            }
                        },
                        "FareComponent": [
                            {
                                "PriceClassRef": "PCR_1",
                                "SegmentRefs": "Segment1 Segment2",
                                "FareBasis": {
                                    "FareBasisCode": {
                                        "Refs": "FG_1 FG_1",
                                        "Code": "ACUD0ZBJ ACUD0ZBJ"
                                    },
                                    "RBD": "A A",
                                    "CabinType": "Y Y",
                                    "SeatLeft": "9 1"
                                }
                            }
                        ]
                    },
                    {
                        "OfferItemID": "SRV-OfferItem-1",
                        "Service": {
                            "PassengerRefs": "ADT1",
                            "SegmentRefs": "Segment1"
                        },
                        "Price": {
                            "Base": {
                                "BookingCurrencyPrice": 0,
                                "EquivCurrencyPrice": 0
                            },
                            "Tax": {
                                "BookingCurrencyPrice": 0,
                                "EquivCurrencyPrice": 0
                            },
                            "Total": {
                                "BookingCurrencyPrice": 0,
                                "EquivCurrencyPrice": 0
                            }
                        },
                        "ServiceDefinitionRef": "SRV-1"
                    },
                    {
                        "OfferItemID": "SRV-OfferItem-2",
                        "Service": {
                            "PassengerRefs": "ADT1",
                            "SegmentRefs": "Segment2"
                        },
                        "Price": {
                            "Base": {
                                "BookingCurrencyPrice": 0,
                                "EquivCurrencyPrice": 0
                            },
                            "Tax": {
                                "BookingCurrencyPrice": 0,
                                "EquivCurrencyPrice": 0
                            },
                            "Total": {
                                "BookingCurrencyPrice": 0,
                                "EquivCurrencyPrice": 0
                            }
                        },
                        "ServiceDefinitionRef": "SRV-1"
                    },
                    {
                        "OfferItemID": "SRV-OfferItem-3",
                        "Service": {
                            "PassengerRefs": "ADT1",
                            "SegmentRefs": "Segment1"
                        },
                        "Price": {
                            "Base": {
                                "BookingCurrencyPrice": 30,
                                "EquivCurrencyPrice": 30
                            },
                            "Tax": {
                                "BookingCurrencyPrice": 3.8999999999999986,
                                "EquivCurrencyPrice": 3.8999999999999986
                            },
                            "Total": {
                                "BookingCurrencyPrice": 33.9,
                                "EquivCurrencyPrice": 33.9
                            }
                        },
                        "ServiceDefinitionRef": "SRV-2"
                    },
                    {
                        "OfferItemID": "SRV-OfferItem-4",
                        "Service": {
                            "PassengerRefs": "ADT1",
                            "SegmentRefs": "Segment2"
                        },
                        "Price": {
                            "Base": {
                                "BookingCurrencyPrice": 0,
                                "EquivCurrencyPrice": 0
                            },
                            "Tax": {
                                "BookingCurrencyPrice": 0,
                                "EquivCurrencyPrice": 0
                            },
                            "Total": {
                                "BookingCurrencyPrice": 0,
                                "EquivCurrencyPrice": 0
                            }
                        },
                        "ServiceDefinitionRef": "SRV-2"
                    },
                    {
                        "OfferItemID": "SRV-OfferItem-5",
                        "Service": {
                            "PassengerRefs": "ADT1",
                            "SegmentRefs": "Segment1"
                        },
                        "Price": {
                            "Base": {
                                "BookingCurrencyPrice": 50,
                                "EquivCurrencyPrice": 50
                            },
                            "Tax": {
                                "BookingCurrencyPrice": 6.5,
                                "EquivCurrencyPrice": 6.5
                            },
                            "Total": {
                                "BookingCurrencyPrice": 56.5,
                                "EquivCurrencyPrice": 56.5
                            }
                        },
                        "ServiceDefinitionRef": "SRV-3"
                    },
                    {
                        "OfferItemID": "SRV-OfferItem-6",
                        "Service": {
                            "PassengerRefs": "ADT1",
                            "SegmentRefs": "Segment2"
                        },
                        "Price": {
                            "Base": {
                                "BookingCurrencyPrice": 0,
                                "EquivCurrencyPrice": 0
                            },
                            "Tax": {
                                "BookingCurrencyPrice": 0,
                                "EquivCurrencyPrice": 0
                            },
                            "Total": {
                                "BookingCurrencyPrice": 0,
                                "EquivCurrencyPrice": 0
                            }
                        },
                        "ServiceDefinitionRef": "SRV-3"
                    }
                ],
                "BaggageAllowance": [
                    {
                        "SegmentRefs": "Segment1 Segment2",
                        "PassengerRefs": "ADT1",
                        "BaggageAllowanceRef": "Bag1"
                    }
                ],
                "SplitPaymentInfo": [
                    {
                        "AirItineraryId": "137211721101678884984951212459",
                        "MultipleFop": "Y",
                        "MaxCardsPerPax": 2,
                        "MaxCardsPerPaxInMFOP": 1
                    }
                ],
                "BookingToEquivExRate": 1,
                "FopRef": "FOP_429_0_1172_0_ALL_PUB"
            }
        ],
        "DataLists": {
            "PassengerList": {
                "Passengers": [
                    {
                        "PassengerID": "ADT1",
                        "PTC": "ADT",
                        "OnflyMarkup": "0.00",
                        "OnflyDiscount": "0.00",
                        "BirthDate": "2000-07-21",
                        "NameTitle": "Mr",
                        "FirstName": "downey",
                        "MiddleName": "",
                        "LastName": "Robert",
                        "Gender": "Male",
                        "TravelDocument": [
                            {
                                "DocumentNumber": "9658745",
                                "DocumentType": "P",
                                "ExpiryDate": "2024-01-01",
                                "IssuingCountry": "CA"
                            }
                        ],
                        "ContactInfoRef": "CTC1",
                        "attributes": {
                            "PassengerID": "ADT1"
                        },
                        "PassengerRefID": "ADT1"
                    }
                ]
            },
            "DisclosureList": {
                "Disclosures": []
            },
            "FareList": {
                "FareGroup": [
                    {
                        "FareGroupRef": "FG_1",
                        "FareCode": "70J",
                        "FareBasisCode": "ACUD0ZBJ"
                    }
                ]
            },
            "FlightSegmentList": {
                "FlightSegment": [
                    {
                        "SegmentKey": "Segment1",
                        "Departure": {
                            "AirportCode": "YKF",
                            "Date": "2023-05-20",
                            "Time": "16:25:00",
                            "AirportName": "Waterloo Airport",
                            "Terminal": {
                                "Name": ""
                            }
                        },
                        "Arrival": {
                            "AirportCode": "YYC",
                            "Date": "2023-05-20",
                            "Time": "18:30:00",
                            "AirportName": "Calgary International Airport",
                            "Terminal": {
                                "Name": ""
                            }
                        },
                        "MarketingCarrier": {
                            "AirlineID": "WS",
                            "Name": "Westjet",
                            "FlightNumber": "557"
                        },
                        "OperatingCarrier": {
                            "AirlineID": "WS",
                            "Name": "Westjet",
                            "FlightNumber": "557"
                        },
                        "Equipment": {
                            "AircraftCode": "73W",
                            "Name": "73W"
                        },
                        "Code": {
                            "MarriageGroup": "O"
                        },
                        "FlightDetail": {
                            "FlightDuration": {
                                "Value": "4 H 5 M"
                            },
                            "Stops": {
                                "Value": ""
                            },
                            "InterMediate": [],
                            "AirMilesFlown": 1646
                        },
                        "BrandId": "BASIC"
                    },
                    {
                        "SegmentKey": "Segment2",
                        "Departure": {
                            "AirportCode": "YYC",
                            "Date": "2023-05-20",
                            "Time": "20:00:00",
                            "AirportName": "Calgary International Airport",
                            "Terminal": {
                                "Name": ""
                            }
                        },
                        "Arrival": {
                            "AirportCode": "YVR",
                            "Date": "2023-05-20",
                            "Time": "20:32:00",
                            "AirportName": "Vancouver International Airport",
                            "Terminal": {
                                "Name": "M"
                            }
                        },
                        "MarketingCarrier": {
                            "AirlineID": "WS",
                            "Name": "Westjet",
                            "FlightNumber": "66"
                        },
                        "OperatingCarrier": {
                            "AirlineID": "WS",
                            "Name": "Westjet",
                            "FlightNumber": "66"
                        },
                        "Equipment": {
                            "AircraftCode": "7M8",
                            "Name": "7M8"
                        },
                        "Code": {
                            "MarriageGroup": "I"
                        },
                        "FlightDetail": {
                            "FlightDuration": {
                                "Value": "1 H 32 M"
                            },
                            "Stops": {
                                "Value": ""
                            },
                            "InterMediate": [],
                            "AirMilesFlown": 428
                        },
                        "BrandId": "BASIC"
                    }
                ]
            },
            "FlightList": {
                "Flight": [
                    {
                        "FlightKey": "Flight1",
                        "Journey": {
                            "Time": "7 H 7 M",
                            "Stops": 1
                        },
                        "SegmentReferences": "Segment1 Segment2"
                    }
                ]
            },
            "OriginDestinationList": {
                "OriginDestination": [
                    {
                        "OriginDestinationKey": "OD1",
                        "DepartureCode": "YKF",
                        "ArrivalCode": "YVR",
                        "FlightReferences": "Flight1"
                    }
                ]
            },
            "PriceClassList": {
                "PriceClass": [
                    {
                        "PriceClassID": "PCR_1",
                        "Name": "",
                        "Code": "",
                        "Descriptions": {
                            "Description": []
                        }
                    }
                ]
            },
            "BaggageAllowanceList": {
                "BaggageAllowance": [
                    {
                        "BaggageAllowanceID": "Bag1",
                        "BaggageCategory": "Checked",
                        "AllowanceDescription": {
                            "ApplicableParty": "Traveler",
                            "Description": "CHECKED ALLOWANCE"
                        },
                        "PieceAllowance": {
                            "ApplicableParty": "Traveler",
                            "TotalQuantity": "0",
                            "Unit": "kg"
                        }
                    }
                ]
            },
            "ServiceDefinitionList": {
                "ServiceDefinition": [
                    {
                        "ServiceDefinitionID": "SRV-1",
                        "ServiceType": "BAG",
                        "ServiceCode": "ASSISTIVE DEVICE",
                        "ServiceName": "ASSISTIVE DEVICE"
                    },
                    {
                        "ServiceDefinitionID": "SRV-2",
                        "ServiceType": "BAG",
                        "ServiceCode": "FIRST CHARGEABLE BAG_ASVC",
                        "ServiceName": "FIRST CHARGEABLE BAG"
                    },
                    {
                        "ServiceDefinitionID": "SRV-3",
                        "ServiceType": "BAG",
                        "ServiceCode": "SECOND CHARGEABLE BAG_ASVC",
                        "ServiceName": "SECOND CHARGEABLE BAG"
                    }
                ]
            },
            "FopList": [
                {
                    "CC": {
                        "Allowed": "Y",
                        "Types": {
                            "AX": {
                                "F": {
                                    "BookingCurrencyPrice": 0,
                                    "EquivCurrencyPrice": 0
                                },
                                "P": 0
                            },
                            "MC": {
                                "F": {
                                    "BookingCurrencyPrice": 0,
                                    "EquivCurrencyPrice": 0
                                },
                                "P": 0
                            },
                            "VI": {
                                "F": {
                                    "BookingCurrencyPrice": 0,
                                    "EquivCurrencyPrice": 0
                                },
                                "P": 0
                            },
                            "JC": {
                                "F": {
                                    "BookingCurrencyPrice": 0,
                                    "EquivCurrencyPrice": 0
                                },
                                "P": 0
                            },
                            "DC": {
                                "F": {
                                    "BookingCurrencyPrice": 0,
                                    "EquivCurrencyPrice": 0
                                },
                                "P": 0
                            },
                            "DUS": {
                                "F": {
                                    "BookingCurrencyPrice": 0,
                                    "EquivCurrencyPrice": 0
                                },
                                "P": 0
                            },
                            "MA": {
                                "F": {
                                    "BookingCurrencyPrice": 0,
                                    "EquivCurrencyPrice": 0
                                },
                                "P": 0
                            },
                            "DS": {
                                "F": {
                                    "BookingCurrencyPrice": 0,
                                    "EquivCurrencyPrice": 0
                                },
                                "P": 0
                            },
                            "TP": {
                                "F": {
                                    "BookingCurrencyPrice": 0,
                                    "EquivCurrencyPrice": 0
                                },
                                "P": 0
                            }
                        }
                    },
                    "DC": {
                        "Allowed": "Y",
                        "Types": {
                            "MC": {
                                "F": {
                                    "BookingCurrencyPrice": 0,
                                    "EquivCurrencyPrice": 0
                                },
                                "P": 0
                            },
                            "VI": {
                                "F": {
                                    "BookingCurrencyPrice": 0,
                                    "EquivCurrencyPrice": 0
                                },
                                "P": 0
                            },
                            "RU": {
                                "F": {
                                    "BookingCurrencyPrice": 0,
                                    "EquivCurrencyPrice": 0
                                },
                                "P": 0
                            }
                        }
                    },
                    "CASH": {
                        "Allowed": "N",
                        "Types": {}
                    },
                    "CHEQUE": {
                        "Allowed": "Y",
                        "Types": {}
                    },
                    "ACH": {
                        "Allowed": "Y",
                        "Types": {}
                    },
                    "PG": {
                        "Allowed": "N",
                        "Types": {}
                    },
                    "FopKey": "FOP_1341_0_1987_0_ALL_PRI"
                }
            ]
        },
        "MetaData": {}
    }
}

Try it out!