Commit PNR

CommitPNR submits the booking session into the database and creates a booking record (PNR).

Commit PNR should be executed once the mentioned API's are executed in order:

  1. Authentication
  2. Retrieve Fare
  3. Add to Cart
  4. Summary PNR

URL: https://devapi.flydubai.com/res/v3/cp/commitPNR?accrual=true

Method: POST

Headers:

      • Content-Type                    : application/json
      • Authorization                    : bearer<space> JWTToken

Body:

{
    "ActionType": "CommitSummary",
    "ReservationInfo": {
        "SeriesNumber": "299",
        "ConfirmationNumber": null
    },
    "SecurityGUID": "",
    "CarrierCodes": [{
        "AccessibleCarrierCode": "FZ"
    }],
    "ClientIPAddress": "10.1.110.144",
    "HistoricUserName": "apirishi"
}

Response:

{
    "Key": "299:W3M98X",
    "SeriesNumber": "299",
    "ConfirmationNumber": "W3M98X",
    "BookingAgent": "apirishi",
    "CRSCode": "",
    "TravelGroupID": 0,
    "IATANumber": "05091989",
    "ExternalAppID": "",
    "WebBookingID": "db0cb2593ed640bd69r47b737ewfnaj06dt0gbj75daa",
    "PromotionalID": -2147483648,
    "PromotionalCode": "",
    "RecieptLanguageID": -2147483648,
    "ReservationCurrency": "AED",
    "ProfileID": -9223372036854775808,
    "PNRPin": 39803255,
    "BookDate": "2019-04-10T13:45:37",
    "ReservationType": "TPAPI",
    "LastModified": "2019-04-10T13:45:37",
    "CorporationID": "",
    "SecurityGuid": "db0cb2593ed640bd69r47b737ewfnaj06dt0gbj75daa",
    "HasTickets": false,
    "ValuePackageData": null,
    "UserIPAddress": null,
    "ManageBookingAgent": null,
    "HistoricConfirmationNum": null,
    "Cabin": "ECONOMY",
    "ReservationBalance": 365,
    "ChangeFee": 0,
    "LogicalFlightCount": 1,
    "ActivePassengerCount": 1,
    "BalancedReservation": true,
    "ReservationFulfillmentRequiredByGMT": "2019-04-11T13:45:37",
    "ReservationFulfillmentRequiredByODT": "2019-04-11T17:45:37",
    "IsInterline": false,
    "IsCodeShare": false,
    "GroupName": "",
    "Airlines": [
        {
            "Key": "",
            "LogicalFlight": [
                {
                    "Key": "11267455:11267455:7/11/2019 3:30:00 PM",
                    "FlightGroupId": "11267455",
                    "FareGroupId": "UXBxcIU4L2lCF7H9s42gkA==",
                    "RecordNumber": 0,
                    "LogicalFlightID": 11267455,
                    "DepartureDate": "2019-07-11T00:00:00",
                    "Origin": "DXB",
                    "OriginName": "Dubai International Airport",
                    "OriginDefaultTerminal": "",
                    "Destination": "KWI",
                    "DestinationName": "Kuwait Sheikh Saad Terminal 3",
                    "DestinationDefaultTerminal": "",
                    "OriginMetroGroup": "DXB",
                    "DestinationMetroGroup": "KWI",
                    "FlightNumber": "051",
                    "SellingCarrier": "FZ ",
                    "OperatingCarrier": "FZ ",
                    "OperatingFlightNumber": "051",
                    "SellingFlightNumber": "051",
                    "DepartureTime": "2019-07-11T15:30:00",
                    "Arrivaltime": "2019-07-11T16:20:00",
                    "PackageItemID": -2147483648,
                    "PackageItemName": "",
                    "PackageItemDescription": "",
                    "VendorId": -2147483648,
                    "VendorName": "",
                    "Active": true,
                    "VendorDescription": "",
                    "UIDisplayValue": -2147483648,
                    "PhysicalFlights": [
                        {
                            "Key": "11267455:118865:7/11/2019 3:30:00 PM",
                            "RecordNumber": 0,
                            "DestinationDefaultTerminal": "",
                            "PhysicalFlightID": 118865,
                            "LogicalFlightID": 11267455,
                            "CarrierCode": "FZ",
                            "CarrierName": "",
                            "FlightNumber": "051",
                            "FlightOrder": 0,
                            "DepartureDate": "2019-07-11T15:30:00",
                            "Origin": "DXB",
                            "OriginDefaultTerminal": "",
                            "OriginName": "Dubai International Airport",
                            "Destination": "KWI",
                            "DestinationName": "Kuwait Sheikh Saad Terminal 3",
                            "OriginMetroGroup": "DXB",
                            "DestinationMetroGroup": "KWI",
                            "SellingCarrier": "FZ ",
                            "OperatingCarrier": "FZ ",
                            "OperatingFlightNumber": "051",
                            "SellingFlightNumber": "051",
                            "DepartureTime": "2019-07-11T15:30:00",
                            "Arrivaltime": "2019-07-11T16:20:00",
                            "FlightDuration": 6600,
                            "Trip": -2147483648,
                            "Gate": "",
                            "TotalWeight": -7.9228162514264337593543950335e+28,
                            "UIDisplayValue": -2147483648,
                            "Active": true,
                            "FlightStatus": "OPEN",
                            "Customers": [
                                {
                                    "Key": "cfcc1e6f-0a4e-4703-8241-3fc1ec1a21ea",
                                    "AirlinePersons": [
                                        {
                                            "Weight": -7.9228162514264337593543950335e+28,
                                            "Key": "106135983:1",
                                            "PersonOrgID": 106135983,
                                            "FFNum": "",
                                            "PaxActive": true,
                                            "FirstName": "TESTADULT",
                                            "RecordNumber": 1,
                                            "LastName": "TESTLASTNAME",
                                            "RecordLocator": "",
                                            "MiddleName": "",
                                            "OriginalRecordNumber": 0,
                                            "Age": 25,
                                            "ContactInfo": "",
                                            "DOB": "1994-01-01T00:00:00",
                                            "DropoffID": -2147483648,
                                            "Gender": "M",
                                            "PickupID": -2147483648,
                                            "Title": "MR",
                                            "LapChildID": -2147483648,
                                            "NationalityLaguageID": -2147483648,
                                            "FareClassCode": "K ",
                                            "RelationType": "",
                                            "FareBasisCode": "KO6AE2",
                                            "WBCID": -2147483648,
                                            "WebFareType": "No Change",
                                            "PTCID": 1,
                                            "FareBasisSched": "",
                                            "UseInventory": false,
                                            "FareAmount": -7.9228162514264337593543950335e+28,
                                            "Address": "ASDAD",
                                            "ResSegStatus": 1,
                                            "Address2": "ASDASD",
                                            "SegSubStatus": 0,
                                            "City": "ASDASD",
                                            "SelecteeStatus": 0,
                                            "State": "ASDASD",
                                            "CheckinStatus": false,
                                            "Postal": "12123233",
                                            "Cabin": "ECONOMY",
                                            "Country": "",
                                            "TicketNumber": "",
                                            "Company": "",
                                            "HasTickets": false,
                                            "Comments": "<![CDATA[]]>",
                                            "UIDisplayValue": -2147483648,
                                            "Passport": "J4868UT",
                                            "InterlinedSegment": 0,
                                            "Nationality": "784",
                                            "InterlinedCarrierCode": "",
                                            "PassportIssueCountry": "AE  ",
                                            "ManualFare": 0,
                                            "PassportExpiryDate": "2020-01-01T00:00:00",
                                            "InventoryOverbooked": 0,
                                            "ProfileId": -9223372036854775808,
                                            "TicketCouponNumber": "",
                                            "NameLineID": "",
                                            "NVB": "",
                                            "NameElementID": "-2147483648",
                                            "NVA": "",
                                            "NamePositionID": "",
                                            "TicketControl": 0,
                                            "StaffId": "",
                                            "TicketControlOwner": "",
                                            "PriorityCode": "",
                                            "MarketingCode": "NA",
                                            "ReservationChannel": "2",
                                            "MarketingOptIn": false,
                                            "EmergencyContactID": -2147483648,
                                            "DisclosedEmergencyContact": -2147483648,
                                            "CappsStatus": -2147483648,
                                            "ToRecordNumber": -2147483648,
                                            "FromRecordNumber": -2147483648,
                                            "ChangeConsent": -2147483648,
                                            "StoreFrontID": "NA",
                                            "InsuranceConfNum": "",
                                            "InsuranceTransID": "",
                                            "RedressNum": "",
                                            "KnownTravNum": "",
                                            "PrimaryPassenger": true,
                                            "NameChangeCount": -2147483648,
                                            "CrsCode": "",
                                            "FareCalcString": null,
                                            "Endorsement": null,
                                            "FareTypeID": 3,
                                            "FareCarrier": "FZ ",
                                            "TicketDesignator": "",
                                            "SeatAssignments": [
                                                {
                                                    "Key": "118865:106135983",
                                                    "PhysicalFlightID": 118865,
                                                    "ActualDepartureDate": "2019-07-11T00:00:00",
                                                    "FlightNumber": "",
                                                    "ScheduledDeparturetime": "2019-07-11T15:30:00",
                                                    "ScheduledArrivaltime": "2019-07-11T16:20:00",
                                                    "BoardingPassNumber": -2147483648,
                                                    "Seat": "",
                                                    "RowNumber": -2147483648,
                                                    "Gate": "",
                                                    "OldSeat": "",
                                                    "OldRowNumber": -2147483648,
                                                    "Boarded": false,
                                                    "CheckInAgent": "",
                                                    "CouponStatusIndicator": "NC",
                                                    "BoardingSequence": "",
                                                    "BoardingPassPrinted": 0,
                                                    "FrequentFlyerCarrierCode": "",
                                                    "FrequentFlyerNumber": "",
                                                    "FrequentFlyerSSRCode": "",
                                                    "FrequentFlyerMemberTierLevel": "",
                                                    "FrequentFlyerMemberRating": "",
                                                    "FrequentFlyerNumberActionTracker": 0,
                                                    "ReservationChannelID": -2147483648,
                                                    "FrequentFlyerInfoReservationChannelID": 0,
                                                    "PaxJourneyID": 49287882
                                                }
                                            ],
                                            "SecondaryCRSCode": "",
                                            "Charges": [
                                                {
                                                    "Key": "1228873634",
                                                    "CodeType": "TAX",
                                                    "RefundType": "OriginalCharge",
                                                    "CurrencyCode": "AED",
                                                    "OriginalCurrency": "AED",
                                                    "RecordNumber": 1,
                                                    "VoucherNumber": -2147483648,
                                                    "BillDate": "2019-04-10T13:45:37",
                                                    "TaxID": 8745,
                                                    "ChargeComment": "<![CDATA[Passenger Facilities Charge.]]>",
                                                    "Amount": 35,
                                                    "ChargeStatus": 1,
                                                    "OriginalAmount": 35,
                                                    "Description": "Passenger Facilities Charge.",
                                                    "StatusReasonID": 0,
                                                    "IsSSR": false,
                                                    "PaymentNumber": -2147483648,
                                                    "TaxChargeID": 1228873633,
                                                    "ResChannelId": 2,
                                                    "OriginalChargeID": -2147483648,
                                                    "TaxIsRefundable": true,
                                                    "ServiceIsRefundable": true,
                                                    "ReservationPaymentMaps": [],
                                                    "PhysicalFlightID": 0,
                                                    "TaxCode": "F6  ",
                                                    "IsNew": false,
                                                    "IsModify": false,
                                                    "ChargeSequence": null,
                                                    "PaymentRefStatus": -2147483648
                                                },
                                                {
                                                    "Key": "1228873636",
                                                    "CodeType": "TAX",
                                                    "RefundType": "OriginalCharge",
                                                    "CurrencyCode": "AED",
                                                    "OriginalCurrency": "AED",
                                                    "RecordNumber": 1,
                                                    "VoucherNumber": -2147483648,
                                                    "BillDate": "2019-04-10T13:45:37",
                                                    "TaxID": 4844,
                                                    "ChargeComment": "<![CDATA[Passengers Security  Safety Service Fees]]>",
                                                    "Amount": 5,
                                                    "ChargeStatus": 1,
                                                    "OriginalAmount": 5,
                                                    "Description": "Passengers Security & Safety Service Fees",
                                                    "StatusReasonID": 0,
                                                    "IsSSR": false,
                                                    "PaymentNumber": -2147483648,
                                                    "TaxChargeID": 1228873633,
                                                    "ResChannelId": 2,
                                                    "OriginalChargeID": -2147483648,
                                                    "TaxIsRefundable": true,
                                                    "ServiceIsRefundable": true,
                                                    "ReservationPaymentMaps": [],
                                                    "PhysicalFlightID": 0,
                                                    "TaxCode": "TP  ",
                                                    "IsNew": false,
                                                    "IsModify": false,
                                                    "ChargeSequence": null,
                                                    "PaymentRefStatus": -2147483648
                                                },
                                                {
                                                    "Key": "1228873638",
                                                    "CodeType": "TAX",
                                                    "RefundType": "OriginalCharge",
                                                    "CurrencyCode": "AED",
                                                    "OriginalCurrency": "AED",
                                                    "RecordNumber": 1,
                                                    "VoucherNumber": -2147483648,
                                                    "BillDate": "2019-04-10T13:45:37",
                                                    "TaxID": 4246,
                                                    "ChargeComment": "<![CDATA[YQ - DUMMY]]>",
                                                    "Amount": 55,
                                                    "ChargeStatus": 1,
                                                    "OriginalAmount": 55,
                                                    "Description": "YQ - DUMMY",
                                                    "StatusReasonID": 0,
                                                    "IsSSR": false,
                                                    "PaymentNumber": -2147483648,
                                                    "TaxChargeID": 1228873633,
                                                    "ResChannelId": 2,
                                                    "OriginalChargeID": -2147483648,
                                                    "Bundled": true,
                                                    "TaxIsRefundable": true,
                                                    "ServiceIsRefundable": true,
                                                    "ReservationPaymentMaps": [],
                                                    "PhysicalFlightID": 0,
                                                    "TaxCode": "YQ  ",
                                                    "IsNew": false,
                                                    "IsModify": false,
                                                    "ChargeSequence": null,
                                                    "PaymentRefStatus": -2147483648
                                                },
                                                {
                                                    "Key": "1228873633",
                                                    "CodeType": "AIR",
                                                    "RefundType": "OriginalCharge",
                                                    "CurrencyCode": "AED",
                                                    "OriginalCurrency": "AED",
                                                    "RecordNumber": 1,
                                                    "VoucherNumber": -2147483648,
                                                    "BillDate": "2019-04-10T13:45:37",
                                                    "TaxID": -2147483648,
                                                    "ChargeComment": "<![CDATA[WEB:AIR]]>",
                                                    "Amount": 190,
                                                    "ChargeStatus": 1,
                                                    "ExchangeRate": -7.9228162514264337593543950335e+28,
                                                    "OriginalAmount": 190,
                                                    "Description": "WEB:AIR",
                                                    "StatusReasonID": 0,
                                                    "IsSSR": false,
                                                    "PaymentNumber": -2147483648,
                                                    "TaxChargeID": -2147483648,
                                                    "ResChannelId": 2,
                                                    "OriginalChargeID": -2147483648,
                                                    "ServiceIsRefundable": true,
                                                    "ReservationPaymentMaps": [],
                                                    "PhysicalFlightID": 0,
                                                    "TaxCode": "",
                                                    "IsNew": false,
                                                    "IsModify": false,
                                                    "ChargeSequence": null,
                                                    "PaymentRefStatus": -2147483648
                                                },
                                                {
                                                    "Key": "1228873635",
                                                    "CodeType": "TAX",
                                                    "RefundType": "OriginalCharge",
                                                    "CurrencyCode": "AED",
                                                    "OriginalCurrency": "AED",
                                                    "RecordNumber": 1,
                                                    "VoucherNumber": -2147483648,
                                                    "BillDate": "2019-04-10T13:45:37",
                                                    "TaxID": 1624,
                                                    "ChargeComment": "<![CDATA[Passenger Service Charge (Intl)]]>",
                                                    "Amount": 75,
                                                    "ChargeStatus": 1,
                                                    "OriginalAmount": 75,
                                                    "Description": "Passenger Service Charge (Intl)",
                                                    "StatusReasonID": 0,
                                                    "IsSSR": false,
                                                    "PaymentNumber": -2147483648,
                                                    "TaxChargeID": 1228873633,
                                                    "ResChannelId": 2,
                                                    "OriginalChargeID": -2147483648,
                                                    "TaxIsRefundable": true,
                                                    "ServiceIsRefundable": true,
                                                    "ReservationPaymentMaps": [],
                                                    "PhysicalFlightID": 0,
                                                    "TaxCode": "AE  ",
                                                    "IsNew": false,
                                                    "IsModify": false,
                                                    "ChargeSequence": null,
                                                    "PaymentRefStatus": -2147483648
                                                },
                                                {
                                                    "Key": "1228873637",
                                                    "CodeType": "TAX",
                                                    "RefundType": "OriginalCharge",
                                                    "CurrencyCode": "AED",
                                                    "OriginalCurrency": "AED",
                                                    "RecordNumber": 1,
                                                    "VoucherNumber": -2147483648,
                                                    "BillDate": "2019-04-10T13:45:37",
                                                    "TaxID": 10386,
                                                    "ChargeComment": "<![CDATA[Advanced passenger information fee]]>",
                                                    "Amount": 5,
                                                    "ChargeStatus": 1,
                                                    "OriginalAmount": 5,
                                                    "Description": "Advanced passenger information fee",
                                                    "StatusReasonID": 0,
                                                    "IsSSR": false,
                                                    "PaymentNumber": -2147483648,
                                                    "TaxChargeID": 1228873633,
                                                    "ResChannelId": 2,
                                                    "OriginalChargeID": -2147483648,
                                                    "TaxIsRefundable": true,
                                                    "ServiceIsRefundable": true,
                                                    "ReservationPaymentMaps": [],
                                                    "PhysicalFlightID": 0,
                                                    "TaxCode": "ZR  ",
                                                    "IsNew": false,
                                                    "IsModify": false,
                                                    "ChargeSequence": null,
                                                    "PaymentRefStatus": -2147483648
                                                }
                                            ],
                                            "RecordSubType": 0,
                                            "Bags": [],
                                            "IsNew": false,
                                            "IsModify": false,
                                            "TierID": 0,
                                            "TierName": "",
                                            "LastGDSStatus": "",
                                            "OperatingRBD": "K ",
                                            "SecondaryRecordLocator": "",
                                            "PosOfficeOrCityCode": "",
                                            "PosUserIdentificationNumber": "",
                                            "PosAirportCode": "",
                                            "PosCrsCode": "",
                                            "PosUserType": "",
                                            "PosIsoCountryCode": "",
                                            "PosIsoCurrency": "",
                                            "PosDutyCode": "",
                                            "PosErspIdNumber": "",
                                            "PosPointOfFirstDeparture": "",
                                            "POSOffice": ""
                                        }
                                    ]
                                }
                            ],
                            "FromTerminal": null,
                            "ToTerminal": null,
                            "AirCraftType": "73B",
                            "AirCraftDescription": "J12Y162 BOEING J AND Y AI",
                            "ReaccomChangeAlert": false
                        }
                    ]
                }
            ],
            "OAFlights": []
        }
    ],
    "Payments": [],
    "FlightGroups": [],
    "FareGroups": [],
    "Comments": [],
    "ReservationContacts": [
        {
            "VendorID": -2147483648,
            "Key": "106135983",
            "PersonOrgID": 106135983,
            "MarketingOptIn": false,
            "RedressNum": "",
            "FirstName": "TESTADULT",
            "KnownTravNum": "",
            "LastName": "TESTLASTNAME",
            "ContactInfos": [],
            "MiddleName": "",
            "Age": 25,
            "DOB": "1994-01-01T00:00:00",
            "Gender": "M",
            "Title": "MR",
            "NationalityLaguageID": -2147483648,
            "RelationType": "",
            "WBCID": 0,
            "PTCID": 1,
            "UseInventory": false,
            "Address": "ASDAD",
            "Address2": "ASDASD",
            "City": "ASDASD",
            "State": "ASDASD",
            "Postal": "12123233",
            "Country": "",
            "Company": "",
            "Comments": "<![CDATA[]]>",
            "Passport": null,
            "Nationality": null,
            "PassportIssueCountry": null,
            "ProfileId": 0,
            "NameLineID": null,
            "NameElementID": null,
            "NamePositionID": null,
            "StaffId": null,
            "PriorityCode": null,
            "ReservationChannel": null
        }
    ],
    "ContactInfos": [
        {
            "ContactID": 172346944,
            "Key": "172346944",
            "PersonOrgID": 106135983,
            "ContactField": "91123456789",
            "ContactType": 0,
            "Extension": "",
            "CountryCode": "91",
            "AreaCode": "",
            "PhoneNumber": "123456789",
            "Display": null,
            "PreferredContactMethod": true,
            "ValidatedContact": false
        }
    ],
    "DocumentInfos": [
        {
            "Key": "44266164:118865:J4868UT:1",
            "PersonOrgID": 106135983,
            "PhysicalFlightID": "118865",
            "OAFlightID": "",
            "DepartureDate": "7/11/2019 12:00:00 AM",
            "DocType": "PASSPORT",
            "DocNumber": "J4868UT",
            "ExpiryDate": "1/1/2020 12:00:00 AM",
            "IssuingCountry": "AE",
            "Nationality": "784"
        }
    ],
    "Vouchers": [],
    "Cars": [],
    "Hotels": [],
    "Packages": [],
    "Exceptions": [
        {
            "ExceptionCode": 0,
            "ExceptionDescription": "Successful Transaction",
            "ExceptionSource": "CreatePNRExt",
            "ExceptionLevel": 0
        }
    ],
    "StaffCarrierCode": null
}