Use Kiu Web Services to redemption

This is a real example whit Stage data

Methods

get_availavility

Request

curl --location --request POST 'https://kiuapi-stage.kiusys.net/airbotswana/air/get_availability' \ --header 'Content-Type: application/json' \ --header 'KIU-API-Token: 4D71F1C70010E26ACB75237273B0954E' \ --header 'Content-Type: application/json' \ --data-raw '{ "point_of_sale": { "application_name": "LOYALTY", "agent_id": "GBE00BPKL", "country": "BW", "kiu_device_id": "GBE00BPW04", "preferred_display_currency": "USD", "user": "BP", "agent_preferred_language": "en-US" }, "flight_search_criteria": { "origin_destinations_list": [ { "item_order": "1001", "departure_information": { "location_code": "GBE", "date": "2021-12-31" }, "arrival_information": {"location_code": "FRW"}, "extra_search_criteria": { "carrier_code": "BP", "reservation_booking_designator_list": ["U","O"] } } ] } }'

Response

 

{ "OD_GBEFRW_01_20211231": { "CPA_1": { "FL00BP101": { "Y_00BP_0": { "U": { "closed": false, "order": 10, "posting": "9", "reservation_booking_designator": "U", "to_required": false, "waitlist_enable": false } }, "arrival_information": { "airport_reference_id": "FRW_0", "change_day_indicator": "0", "date": "2021-12-31", "date_of_week_name": "Friday", "time": "11:10:00" }, "carrier_reference_id": "00BP_0", "departure_information": { "airport_reference_id": "GBE_0", "date": "2021-12-31", "date_of_week_name": "Friday", "remain_time_for_departure": "206:22:00", "time": "10:00:00" }, "flight_additional_information": { "api_required": false, "connecting_times_detail": {}, "dei8": "", "enable_prs": false, "equipment": { "change_of_gauge": true, "equipment_reference_id": "EMJ_0" }, "flight_remarks_list": [], "flight_stops_details": [], "in_flight_services": "", "meal_service": [ { "meal_service_reference_id": "B" } ], "special_service_availability_list": [] }, "flight_number": "101", "flight_rbd": "U9", "flight_stops": "0", "flight_time": "01:10:00", "flight_type": "DOMESTIC", "order": 1 } } }, "flights_origin_destination_information": { "OD_GBEFRW_01_20211231": { "arrival_information": { "location_reference_id": "FRW_0" }, "departure_information": { "date": "2021-12-31", "location_reference_id": "GBE_0" } } }, "id_tracking": "AvailabilityService.availability-service.stage_43d4a7e67a124fd2be91913be93515dd" }

 

create_booking

 

curl --location --request POST 'https://kiuapi-stage.kiusys.net/airbotswana/services/create_booking' \ --header 'Content-Type: application/json' \ --header 'KIU-API-Token: 4D71F1C70010E26ACB75237273B0954E' \ --header 'Content-Type: application/json' \ --data-raw '{ "date_time": "2021-12-22T18:04:00Z", "echo_token": "CREATEBKG_FF_EX", "point_of_sale": { "application_name": "LOYALTY", "agent_id": "GBE00BPKL", "country": "BW", "kiu_device_id": "GBE00BPW04", "preferred_display_currency": "USD", "user": "BP", "agent_preferred_language": "en-US" }, "air_price": true, "passenger_information": [ { "passenger_reference_order": 1, "surname": "TEST", "name": "ONE", "foid_type": "PP", "foid_id": "123123123", "name_suffix": "MR", "passenger_type_code": "ADT" } ], "air_itinerary_information": [ { "order": 1, "departure_information": { "location_code": "GBE", "date": "2021-12-31", "time": "1000" }, "arrival_information": {"location_code": "FRW"}, "flight_number": 101, "reservation_booking_designator_code": "U", "number_in_party": 1, "carrier": "BP" } ], "contact_information": { "email_list": [ {"email_address": "example@gmail.com"} ] }, "time_limits_criteria": { "booking_ticket_time_limit": { "auto_cancel": true, "creation_date": { "days": true, "time_quantity": 3 } } } }'

Response

 

 

issue_tickets

 

Response