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

{
    "contacts_list": [
        {
            "contact_reference_key": "CT00BP202112758685688079000001",
            "description": "example@gmail.com",
            "order": 1,
            "type": "EMAIL"
        }
    ],
    "flights_origin_destination_information": {
        "OD00BP202112758685688079001001": {
            "arrival_information": {
                "change_day_indicator": 0,
                "date": "2021-12-31",
                "location_reference_id": "FRW_0",
                "time": "11:10"
            },
            "departure_information": {
                "date": "2021-12-31",
                "location_reference_id": "GBE_0",
                "time": "10:00"
            },
            "flight_segments_quantity": 1,
            "flight_segments_reference_keys": [
                "IT00BP202112758685688079000001"
            ],
            "flights_origin_destination_reference_key": "OD00BP202112758685688079001001"
        }
    },
    "flights_segment_information": {
        "IT00BP202112758685688079000001": {
            "api_required": false,
            "arnk_indicator": false,
            "arrival_information": {
                "change_day_indicator": 0,
                "date": "2021-12-31",
                "day_of_week_name": "FRIDAY",
                "location_reference_id": "FRW_0",
                "time": "11:10"
            },
            "carrier_reference_id": "00BP_0",
            "departure_information": {
                "date": "2021-12-31",
                "day_of_week_name": "FRIDAY",
                "location_reference_id": "GBE_0",
                "time": "10:00"
            },
            "enable_prs": true,
            "enable_seat_allocation": true,
            "equipment_reference_id": "EMJ_0",
            "family_fare_reference_id": "U_00BP_0",
            "flight_elapsed_time": "01:10",
            "flight_number": "101",
            "flight_segment_reference_key": "IT00BP202112758685688079000001",
            "flight_stops": 0,
            "flight_type": "DOMESTIC",
            "flown_indicator": false,
            "number_in_party": 1,
            "order": 1,
            "reservation_booking_designator": "U",
            "reservation_cabin_designator_reference_id": "Y_00BP_0",
            "reservation_status_reference_id": "HK_0",
            "transaction_details": {
                "creation_date": "2021-12-22T18:34:27.147",
                "source": "AGENT"
            }
        }
    },
    "passengers_information": {
        "NM00BP202112758685688079000001": {
            "foid_information": {
                "FDN00BP202112758685688079000001": {
                    "carrier_reference_id": "00YY_0",
                    "foid_id": "123123123",
                    "foid_reference_key": "FDN00BP202112758685688079000001",
                    "foid_type_reference_id": "PP_00BP_0",
                    "passenger_reference_associated": "NM00BP202112758685688079000001"
                }
            },
            "frecuent_flyer_information": {},
            "infant_associated_indicator": false,
            "name": "ONE",
            "name_suffix": "MR",
            "order": 1,
            "passenger_reference_key": "NM00BP202112758685688079000001",
            "passenger_type": "ADULT",
            "passenger_type_code_reference_id": "ADT_00BP_0",
            "surname": "TEST"
        }
    },
    "pricing_information": {
        "air_itinerary_quotations": [
            {
                "currency_conversion": [
                    {
                        "code": "BSR",
                        "rate": 1
                    }
                ],
                "fare_calculation_mode_indicator": "0",
                "fare_calculation_pricing_indicator": "0",
                "mode": "AUTOMATIC",
                "pq_number": "10",
                "pricing_information": [
                    "AIRLINE FORM OF PAYMENT FEES MAY APPLY",
                    "PRICED WITH VALIDATING CARRIER  BP"
                ],
                "ptc_breakdown_information": {
                    "ADT_00BP_0": {
                        "ADULT": {
                            "coupons_list": [
                                {
                                    "cabin_designator_reference_id": "Y_00BP_0",
                                    "coupon_number": "1",
                                    "family_fare_reference_id": "U_00BP_0",
                                    "fare_basis": "UMILES",
                                    "fare_id": 555385,
                                    "flight_segment_reference_associated": "IT00BP202112000000000000000001",
                                    "is_arnk": false,
                                    "ticket_bagagge_allowance": "K23"
                                }
                            ],
                            "fare_construction": "GBE BP FRW0.00BWP0.00END",
                            "fare_construction_detail": [
                                {
                                    "component_amount": "0.00",
                                    "component_currency_id": "BWP_0",
                                    "component_points_reference_id": "GBE_0-FRW_0",
                                    "fare_component_id": 1,
                                    "is_previous_surface": false,
                                    "stop_over": "",
                                    "surcharge": ""
                                }
                            ],
                            "fare_type": "NEGOTIATED",
                            "fees_excepted": false,
                            "passenger_quantity": 1,
                            "passenger_type": "ADULT",
                            "passenger_type_code_reference_id": "ADT_00BP_0",
                            "ptc_breakdown": {
                                "base_fare": {
                                    "amount": 0,
                                    "currency_reference_id": "BWP_0"
                                },
                                "display_by_component": {
                                    "OD_GBEFRW": {
                                        "equivalent_paid": {
                                            "amount": 0,
                                            "currency_reference_id": "BWP_0"
                                        },
                                        "fees_breakdown": [],
                                        "taxes_breakdown": [
                                            {
                                                "amount": 76,
                                                "carrier_owner": false,
                                                "country": "BW",
                                                "currency_reference_id": "BWP_0",
                                                "tax_code": "BW",
                                                "tax_code_name": "AIRLINE FEE"
                                            }
                                        ]
                                    },
                                    "all_itinerary_items": {
                                        "fees_breakdown": [],
                                        "taxes_breakdown": []
                                    }
                                },
                                "equivalent_paid": {
                                    "amount": 0,
                                    "currency_reference_id": "BWP_0"
                                },
                                "taxes_information": {
                                    "amount": 76,
                                    "currency_reference_id": "BWP_0",
                                    "taxes_list": [
                                        {
                                            "amount": 76,
                                            "collectable": true,
                                            "currency_reference_id": "BWP_0",
                                            "excepted": false,
                                            "exchange_allowed": true,
                                            "paid": false,
                                            "quotation_mode": "AUTOMATIC",
                                            "refund_allowed": true,
                                            "tax_code": "BW",
                                            "tax_code_name": "AIRLINE FEE"
                                        }
                                    ]
                                },
                                "total": {
                                    "amount": 76,
                                    "currency_reference_id": "BWP_0"
                                }
                            },
                            "ptc_breakdown_total": {
                                "display_by_component": {
                                    "OD_GBEFRW": {
                                        "equivalent_paid": {
                                            "amount": 0,
                                            "currency_reference_id": "BWP_0"
                                        },
                                        "fees_breakdown": [],
                                        "taxes_breakdown": [
                                            {
                                                "amount": 76,
                                                "carrier_owner": false,
                                                "country": "BW",
                                                "currency_reference_id": "BWP_0",
                                                "tax_code": "BW",
                                                "tax_code_name": "AIRLINE FEE"
                                            }
                                        ]
                                    },
                                    "all_itinerary_items": {
                                        "fees_breakdown": [],
                                        "taxes_breakdown": []
                                    }
                                },
                                "passenger_quantity": 1,
                                "total": {
                                    "amount": 76,
                                    "currency_reference_id": "BWP_0"
                                },
                                "total_base_fare": {
                                    "amount": 0,
                                    "currency_reference_id": "BWP_0"
                                },
                                "total_equivalent_paid": {
                                    "amount": 0,
                                    "currency_reference_id": "BWP_0"
                                },
                                "total_taxes": {
                                    "amount": 76,
                                    "currency_reference_id": "BWP_0"
                                }
                            },
                            "taxes_excepted": false
                        },
                        "passenger_type_code_reference_id": "ADT_00BP_0",
                        "pq_number": "10"
                    }
                },
                "quotation_grand_total": {
                    "total": {
                        "amount": 76,
                        "currency_reference_id": "BWP_0"
                    },
                    "total_base_fare": {
                        "amount": 0,
                        "currency_reference_id": "BWP_0"
                    },
                    "total_display_by_component": {
                        "OD_GBEFRW": {
                            "equivalent_paid": {
                                "amount": 0,
                                "currency_reference_id": "BWP_0"
                            },
                            "fees_breakdown": [],
                            "taxes_breakdown": [
                                {
                                    "amount": 76,
                                    "carrier_owner": false,
                                    "country": "BW",
                                    "currency_reference_id": "BWP_0",
                                    "tax_code": "BW",
                                    "tax_code_name": "AIRLINE FEE"
                                }
                            ]
                        },
                        "all_itinerary_items": {
                            "fees_breakdown": [],
                            "taxes_breakdown": []
                        }
                    },
                    "total_equivalent_paid": {
                        "amount": 0,
                        "currency_reference_id": "BWP_0"
                    },
                    "total_taxes": {
                        "amount": 76,
                        "currency_reference_id": "BWP_0"
                    }
                },
                "transaction_detail": {
                    "creation_date": "2021-12-22T18:34:27.583",
                    "point_of_sale": {
                        "agent_id": "GBE00BPKL",
                        "country": "BW",
                        "kiu_device_id": "GBE00BPW04",
                        "office_issue_code": "BW-22403-0",
                        "sale_channel": "AIR",
                        "user": "00BP"
                    },
                    "source": "AGENT"
                }
            }
        ],
        "quotations_already_issued": {
            "air_itinerary_quotations": {
                "10": [
                    {
                        "PassengerUPID": 1,
                        "SegmentUPID": 1,
                        "flight_segment_reference_key": "IT00BP202112758685688079000001",
                        "passenger_reference_key": "NM00BP202112758685688079000001",
                        "pq_number": 10
                    }
                ]
            }
        }
    },
    "record_locator_information": {
        "RP": {
            "description": "AIR BOTSWANA",
            "office_id": "GBE00BPW"
        },
        "ancillary_quotation_automatic_stored": false,
        "ancillary_quotation_manual_stored": false,
        "itinerary_quotation_automatic_stored": true,
        "itinerary_quotation_manual_stored": false,
        "pnr_group": false,
        "pnr_has_passenger_advice_code": false,
        "record_locator": "KVUDPO",
        "record_locator_key": "RP00BP202112758685688079000000",
        "record_locator_status_cancelled": false,
        "record_locator_status_confirmed": true,
        "record_locator_status_modified": false,
        "record_locator_status_unconfirmed": false,
        "record_locator_version": "2021-12-22T18:34:27.753",
        "transaction_detail": {
            "creation_date": "2021-12-22T18:34:00",
            "creation_local_datetime": "2021-12-22T20:34:00",
            "creation_location_reference_id": "GBE_0",
            "last_modification_date": "2021-12-22T18:34:27.753",
            "point_of_sale": {
                "agent_id": "GBE00BPKL",
                "country": "BW",
                "kiu_device_id": "GBE00BPW04",
                "office_issue_code": "BW-22403-0",
                "sale_channel": "AIR",
                "user": "00BP"
            },
            "source": "AGENT"
        }
    },
    "record_locator_version_information": {
        "record_locator": "KVUDPO",
        "record_locator_version": "2021-12-22T18:34:27.753Z"
    },
    "success": true,
    "ticket_times_limit": [
        {
            "auto_cancel": true,
            "local_datetime": "2021-12-25T20:34:00",
            "location_reference_id": "GBE_0",
            "robot_limit_except": false,
            "transaction_details": {
                "creation_date": "2021-12-22T18:34:29.727",
                "source": "AGENT"
            }
        }
    ]
}

issue_tickets

curl --location --request POST 'https://kiuapi-stage.kiusys.net/airbotswana/services/issue_tickets' \
--header 'Content-Type: application/json' \
--header 'KIU-API-Token: 4D71F1C70010E26ACB75237273B0954E' \
--header 'Content-Type: application/json' \
--data-raw '                {
                    "date_time": "2021-12-22T18:44: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"
                    },
                    "record_locator_version_information": {
                        "record_locator": "KVUDPO",
                        "record_locator_version": "2021-12-22T18:34:27.753"
                    },
                    "exchange": false,
                    "order_reference_key": "ISSUETICKETSSFG034",
                    "first_form_of_payment": {
                        "type": "MISCELLANEOUS",
                        "miscellaneous_information": {
                            "code": "EF",
                            "associated_text": "AUTHCODE 1234ABC"
                        }
                    },
                    "second_form_of_payment": {
                        "type": "CASH",
                        "fare_amount": 0,
                        "tax_amount": 76
                    },
                    "endorsement_text": "NONEND/NONREF"
                }'

Response

{
    "passengers_information": {
        "NM00BP202112758685688079000001": {
            "infant_associated_indicator": false,
            "name": "ONE",
            "name_suffix": "MR",
            "order": 1,
            "passenger_reference_key": "NM00BP202112758685688079000001",
            "passenger_type": "ADULT",
            "passenger_type_code": "ADT",
            "passenger_type_description": "ADULT",
            "surname": "TEST"
        }
    },
    "record_locator_version_information": {
        "record_locator": "KVUDPO",
        "record_locator_version": "2021-12-23T12:35:28.520Z"
    },
    "tickets_list": [
        {
            "order": 2,
            "passenger_reference_associated": "NM00BP202112758685688079000001",
            "ticket_number": "6362300002025",
            "transaction_details": {
                "creation_date": "2021-12-23T12:35:28.607",
                "source": "AGENT"
            },
            "type": "AUTOMATIC"
        }
    ],
    "warnings": [
        "** REPORT NR. 3 CLOSE **",
        "** REPORT SALES OPEN **"
    ]
}