Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
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": "CAEF",
                            "associated_text": "AUTHCODE 1234ABC"
                        }
                    },
                    "second_form_of_payment": {
                        "type": "CASH",
                        "fare_amount": 0,
                        "tax_amount": 76
                    },
                    "endorsement_text": "NONEND/NONREF"
                }'

Response

Code Block
 {
              
     "passengers_information": {
        "NM00BP202112758685688079000001":  {
             "NM00BP202104846574656878000002infant_associated_indicator": {false,
            "name": "ONE",
              "infantname_associated_indicatorsuffix": false"MR",
               "order": 1,
            "namepassenger_reference_key": "ONENM00BP202112758685688079000001",
               "passenger_type": "ADULT",
            "orderpassenger_type_code": 1"ADT",
            "passenger_type_description": "ADULT",
              "passenger_reference_key"surname": "NM00BP202104846574656878000002TEST",
        }
    },
    "record_locator_version_information": {
        "passengerrecord_typelocator": "ADULTKVUDPO",
                            "passenger_type_code": "ADT",
                            "passenger_type_description": "ADULT",
                            "surname": "TEST"
                        }
                    },
                    "record_locator_version_information": {
                        "record_locator": "KVUDPO",
                        "record_locator_version": "2021-12-22T18:34:27.753"
                    },
                    "tickets_list": [
                        {
                            "order": 2,
                            "passenger_reference_associated": "NM00BP202104846574656878000002",
                            "ticket_number": "6362300002003",
                            "transaction_details": {
                                "creation_date"record_locator_version": "2021-12-22T1823T12:5235:2728.753520Z",
    },
    "tickets_list": [
        {
            "sourceorder": 2,
"AGENT"            "passenger_reference_associated": "NM00BP202112758685688079000001",
            "ticket_number": "6362300002025",
 },           "transaction_details": {
                "typecreation_date": "AUTOMATIC"2021-12-23T12:35:28.607",
                "source": "AGENT"
      }      },
            "type": "AUTOMATIC"
],        }
    ],
       "warnings": [
        "** REPORT NR. SALES3 OPENCLOSE **"],
        "** REPORT SALES OPEN **"
    ]
}