Midgarður API Walkthrough

Create Reservation

Self Service – Add Luggage/services

Self Service – Add Payment

Self Service – Change flight (Ticket)

Appendix: json for creating new Reservation

{ "FlightList": [ { "FareID": 1, "LogicalFlightId": 8432, "DepartureTime": "2016-03-03T06:45:00" }, { "FareID": 115, "LogicalFlightId": 8433, "DepartureTime": "2016-03-23T11:20:00" } ], "ReservationCurrency": "ISK", "AdministrationFee": 999, "ContactPerson": { "LabChildID": 0, "IsPrimary": true, "PaxType": 1, "SelectedSeats": null, "PersonOrgId": 0, "FirstName": "Hrönn", "MiddleName": "", "LastName": "Guðmundsdóttir", "Gender": 70, "Title": 2, "Email": "hronn@wow.is", "Address1": "Æðigata", "Address2": "Þórisgata", "City": "Kopavogur", "State": "", "PostalCode": "200", "Country": "Iceland", "CountryCode": "IS", "AreaCode": "354", "PhoneNumber": "+3548217623", "MobileNumber": "+3548217623", "BirthDate": "1978-07-22T00:00:00", "Citizenship": "Icelandic", "PaxIndex": 1, "TravelsWithPersonPaxIndex": 0, "ContactID": 0 }, "Passengers": [ { "LabChildID": 0, "IsPrimary": true, "PaxType": 1, "SelectedSeats": null, "PersonOrgId": 0, "FirstName": "Hrönn", "MiddleName": "", "LastName": "Guðmundsdóttir", "Gender": 70, "Title": 2, "Email": "hronn@wow.is", "Address1": "Æðigata", "Address2": "Þórisgata", "City": "Kopavogur", "State": "", "PostalCode": "200", "Country": "Iceland", "CountryCode": "IS", "AreaCode": "354", "PhoneNumber": "+3548217623", "MobileNumber": "+3548217623", "BirthDate": "1978-07-22T00:00:00", "Citizenship": "Icelandic", "PaxIndex": 1, "TravelsWithPersonPaxIndex": 0, "ContactID": 0 }, { "LabChildID": 0, "IsPrimary": true, "PaxType": 6, "SelectedSeats": null, "PersonOrgId": 0, "FirstName": "barn", "MiddleName": "", "LastName": "Ægirsson", "Gender": 70, "Title": 2, "Email": "hronn@wow.is", "Address1": "Æðigata", "Address2": "Þórisgata", "City": "Kopavogur", "State": "", "PostalCode": "200", "Country": "Iceland", "CountryCode": "IS", "AreaCode": "354", "PhoneNumber": "+3548217623", "MobileNumber": "+3548217623", "BirthDate": "2008-07-22T00:00:00", "Citizenship": "Icelandic", "PaxIndex": 2, "TravelsWithPersonPaxIndex": 0, "ContactID": 0 }, { "LabChildID": 0, "IsPrimary": true, "PaxType": 5, "SelectedSeats": null, "PersonOrgId": 0, "FirstName": "Ungabarn", "MiddleName": "", "LastName": "Þórsdóttir", "Gender": 70, "Title": 2, "Email": "hronn@wow.is", "Address1": "Æðigata", "Address2": "Þórisgata", "City": "Kopavogur", "State": "", "PostalCode": "200", "Country": "Iceland", "CountryCode": "IS", "AreaCode": "354", "PhoneNumber": "+3548217623", "MobileNumber": "+3548217623", "BirthDate": "2015-10-01T00:00:00", "Citizenship": "Icelandic", "PaxIndex": 3, "TravelsWithPersonPaxIndex": 1, "ContactID": 0 } ], "PaxServicesList": [ { "PaxIndex": 1, "ServiceType": 13, "Quantity": 1, "ServiceGroup": 4, "LogicalFlightId": 8432, "FlightGroup": "R", "Amount": 199 }, { "PaxIndex": 1, "ServiceType": 14, "Quantity": 1, "ServiceGroup": 4, "LogicalFlightId": 8432, "FlightGroup": "R", "Amount": 1899 } ], "Payment": null }