Introduction

We are based at Head office in Delhi & Branch offices in Mumbai & Noida and bring to you all travel related services under one roof. Our main line of operations is to serve the B2B agents and corporate clients with the best possible travel related services and whole selling Air ticket, Hotels and Services amongst retail travel agents all across India. We are handling approximately 10000 travel agents and 40 franchises at this time all across India. Handled by a team of Professionals with a 24X7 support call center consisting of experienced staff of the travel industry.

Purpose

This document describes the recommended approach to API development using the KsoftTechnology Web API. All communication would be in Json object, as mention format in API documentation.

API Overview Flow Chart

API Data Flow Diagram

API Token Management

At first client should create Token using credential provided by KAFILA.
Process Name : CREATE TOKEN

Request:-
{
  "TYPE": "AUTH",
  "NAME": "GET_AUTH_TOKEN",
  "STR": [
    {
      "A_ID": "xxxxxxxxxx",
      "U_ID": "xxxxxxxxx",
      "PWD": "xxxxxxxxx@123",
      "MODULE": "B2B",
      "HS": "D"
    }
  ]
}   
Response:-
{
"STATUS": "SUCCESS",
"RESULT": "3a1db274-ea75-420e-8c29-04682a9978e7"
}

Token Verification

Process Name : VERIFY_TOKEN(Optional as desired)

Request:-
{
  "TYPE": "AUTH",
  "NAME": "VERIFY_AUTH_TOKEN",
  "STR": [
    {
      "TOKEN": "242311f6-ee7d-4fdb-a1c0-82ef20305f4f",
      "MODULE": "B2B",
      "HS": "D"
    }
  ]
}
Response:-
{
  "STATUS": "SUCCESS",
  "RESULT": "242311f6-ee7d-4fdb-a1c0-82ef20305f4f"
}

Search Request/Response (Oneway)

Process Name : GET_FLIGHT

Request:-
    {
      "TYPE": "AIR",
      "NAME": "GET_FLIGHT",
      "STR": [
        {
          "AUTH_TOKEN": "71c9abe3-f197-4fad-af19-2bb589529002",
          "SESSION_ID": "tmjdoaddxcpy30zheykpurh0",
          "TRIP": "1",
          "SECTOR": "D",
          "SRC": "DEL",
          "DES": "BOM",
          "DEP_DATE": "2019-12-01",
          "RET_DATE": "",
          "ADT": "1",
          "CHD": "0",
          "INF": "0",
          "PC": "NOCLASS",
          "PF": "ALL",
          "HS": "D"
        }
      ]
    }
    Response:-
    {
      "FLIGHT": [
        {
          "UID": "18009cf4636997603935647548",
          "ID": "0",
          "TID": "0",
          "D_CODE": "DEL",
          "D_NAME": "Delhi",
          "A_CODE": "BOM",
          "A_NAME": "Mumbai",
          "D_DATE": "2019-12-01",
          "D_TIME": "06:35",
          "A_DATE": "2019-12-01",
          "A_TIME": "08:45",
          "F_CODE": "SG",
          "F_NAME": "Spice Jet",
          "F_NO": " 153",
          "F_LOGO": "0 -105px",
          "F_TYPE": "RS",
          "SEAT": "1",
          "STOP": "0",
          "AMT": "2751",
          "DUR": "0d:2h:10m",
          "S_CODE": "DEL-BOM",
          "CN_CODE": "SG- 153",
          "OI": "1D",
          "PCC": "SGAPITESTIDD~DEV"
        },
        {
          "UID": "18009cf4636997603935647548",
          "ID": "1",
          "TID": "0",
          "D_CODE": "DEL",
          "D_NAME": "Delhi",
          "A_CODE": "BOM",
          "A_NAME": "Mumbai",
          "D_DATE": "2019-12-01",
          "D_TIME": "15:50",
          "A_DATE": "2019-12-01",
          "A_TIME": "18:05",
          "F_CODE": "SG",
          "F_NAME": "Spice Jet",
          "F_NO": " 161",
          "F_LOGO": "0 -105px",
          "F_TYPE": "RS",
          "SEAT": "1",
          "STOP": "0",
          "AMT": "3591",
          "DUR": "0d:2h:15m",
          "S_CODE": "DEL-BOM",
          "CN_CODE": "SG- 161",
          "OI": "1D",
          "PCC": "SGAPITESTIDD~DEV"
        },
        {
          "UID": "18009cf4636997603935647548",
          "ID": "2",
          "TID": "0",
          "D_CODE": "DEL",
          "D_NAME": "Delhi",
          "A_CODE": "BOM",
          "A_NAME": "Mumbai",
          "D_DATE": "2019-12-01",
          "D_TIME": "19:45",
          "A_DATE": "2019-12-01",
          "A_TIME": "22:05",
          "F_CODE": "SG",
          "F_NAME": "Spice Jet",
          "F_NO": " 169",
          "F_LOGO": "0 -105px",
          "F_TYPE": "RS",
          "SEAT": "1",
          "STOP": "0",
          "AMT": "3591",
          "DUR": "0d:2h:20m",
          "S_CODE": "DEL-BOM",
          "CN_CODE": "SG- 169",
          "OI": "1D",
          "PCC": "SGAPITESTIDD~DEV"
        },
        {
          "UID": "18009cf4636997603935647548",
          "ID": "3",
          "TID": "0",
          "D_CODE": "DEL",
          "D_NAME": "Delhi",
          "A_CODE": "BOM",
          "A_NAME": "Mumbai",
          "D_DATE": "2019-12-01",
          "D_TIME": "21:35",
          "A_DATE": "2019-12-01",
          "A_TIME": "23:50",
          "F_CODE": "SG",
          "F_NAME": "Spice Jet",
          "F_NO": " 159",
          "F_LOGO": "0 -105px",
          "F_TYPE": "RS",
          "SEAT": "1",
          "STOP": "0",
          "AMT": "3591",
          "DUR": "0d:2h:15m",
          "S_CODE": "DEL-BOM",
          "CN_CODE": "SG- 159",
          "OI": "1D",
          "PCC": "SGAPITESTIDD~DEV"
        },
        {
          "UID": "18009cf4636997603935647548",
          "ID": "4",
          "TID": "0",
          "D_CODE": "DEL",
          "D_NAME": "Delhi",
          "A_CODE": "BOM",
          "A_NAME": "Mumbai",
          "D_DATE": "2019-12-01",
          "D_TIME": "21:10",
          "A_DATE": "2019-12-02",
          "A_TIME": "07:10",
          "F_CODE": "SG",
          "F_NAME": "Spice Jet",
          "F_NO": " 472",
          "F_LOGO": "0 -105px",
          "F_TYPE": "SS",
          "SEAT": "1",
          "STOP": "1",
          "AMT": "4226",
          "DUR": "0d:10h:0m",
          "S_CODE": "DEL-HYD-BOM",
          "CN_CODE": "SG  472,SG  704",
          "OI": "1D",
          "PCC": "SGAPITESTIDD~DEV"
        }
      ],
      "PARAM": [
        {
          "src": "DEL",
          "des": "BOM",
          "dep_date": "2019-12-01",
          "ret_date": "",
          "adt": "1",
          "chd": "0",
          "inf": "0",
          "L_OW": "2751",
          "H_OW": "4226",
          "T_TIME": "1.8437504",
          "Trip_String": "1Dtmjdoaddxcpy30zheykpurh0~2019-07-26 17:53:11.674~71c9abe3-f197-4fad-af19-2bb589529002******B2B*182.73.146.154*D*NOCLASS*ALL*D"
        }
      ],
      "Deal": [
        {
          "ID": 1,
          "CUST_ID": "06021977",
          "TRIP": "D",
          "FLT_CODE": "AI",
          "ALIAS": "GAL",
          "FLT_NO": "",
          "SECTOR": "",
          "CABIN_TYPE": "",
          "CLASS": "",
          "BASIC_STATUS": true,
          "YQ_STATUS": true,
          "CB_STATUS": true,
          "PROMO_STATUS": false,
          "MARKUP_STATUS": true,
          "BASIC": 2.23,
          "YQ": 2.23,
          "CB": 5,
          "MARKUP": 3,
          "PROMO": 0,
          "PROMO_CODE": "KAF",
          "OI": "",
          "ETIME": "2019-05-17T15:55:31.617",
          "MODULE": "B2B",
          "HS": "D",
          "AGENT_TYPE": "D"
        },
        {
          "ID": 3,
          "CUST_ID": "06021977",
          "TRIP": "D",
          "FLT_CODE": "9W",
          "ALIAS": "GAL",
          "FLT_NO": "",
          "SECTOR": "",
          "CABIN_TYPE": "",
          "CLASS": "",
          "BASIC_STATUS": true,
          "YQ_STATUS": true,
          "CB_STATUS": false,
          "PROMO_STATUS": false,
          "MARKUP_STATUS": false,
          "BASIC": 0,
          "YQ": 0,
          "CB": 0,
          "MARKUP": 0,
          "PROMO": 0,
          "PROMO_CODE": "KAF",
          "OI": "",
          "ETIME": "2018-11-12T17:01:44.83",
          "MODULE": "B2B",
          "HS": "D",
          "AGENT_TYPE": "D"
        },
        {
          "ID": 4,
          "CUST_ID": "06021977",
          "TRIP": "D",
          "FLT_CODE": "UK",
          "ALIAS": "GAL",
          "FLT_NO": "",
          "SECTOR": "",
          "CABIN_TYPE": "",
          "CLASS": "",
          "BASIC_STATUS": true,
          "YQ_STATUS": true,
          "CB_STATUS": false,
          "PROMO_STATUS": false,
          "MARKUP_STATUS": false,
          "BASIC": 2,
          "YQ": 2,
          "CB": 0,
          "MARKUP": 0,
          "PROMO": 0,
          "PROMO_CODE": "KAF",
          "OI": "",
          "ETIME": "2018-11-12T17:01:31.683",
          "MODULE": "B2B",
          "HS": "D",
          "AGENT_TYPE": "D"
        },
        {
          "ID": 9,
          "CUST_ID": "06021977",
          "TRIP": "D",
          "FLT_CODE": "UK",
          "ALIAS": "GAL",
          "FLT_NO": "",
          "SECTOR": "",
          "CABIN_TYPE": "",
          "CLASS": "Z",
          "BASIC_STATUS": true,
          "YQ_STATUS": true,
          "CB_STATUS": false,
          "PROMO_STATUS": false,
          "MARKUP_STATUS": true,
          "BASIC": 1,
          "YQ": 1,
          "CB": 0,
          "MARKUP": 20,
          "PROMO": 0,
          "PROMO_CODE": "",
          "OI": "",
          "ETIME": "2018-11-12T17:01:19.107",
          "MODULE": "B2B",
          "HS": "D",
          "AGENT_TYPE": "D"
        },
        {
          "ID": 21,
          "CUST_ID": "06021977",
          "TRIP": "D",
          "FLT_CODE": "SG",
          "ALIAS": "DEV",
          "FLT_NO": "",
          "SECTOR": "",
          "CABIN_TYPE": "",
          "CLASS": "",
          "BASIC_STATUS": true,
          "YQ_STATUS": true,
          "CB_STATUS": true,
          "PROMO_STATUS": false,
          "MARKUP_STATUS": true,
          "BASIC": 3,
          "YQ": 3,
          "CB": 10,
          "MARKUP": 4,
          "PROMO": 0,
          "PROMO_CODE": "",
          "OI": "",
          "ETIME": "2018-11-12T16:10:23.507",
          "MODULE": "B2B",
          "HS": "D",
          "AGENT_TYPE": "D"
        },
        {
          "ID": 23,
          "CUST_ID": "06021977",
          "TRIP": "D",
          "FLT_CODE": "G8",
          "ALIAS": "DEV",
          "FLT_NO": "",
          "SECTOR": "",
          "CABIN_TYPE": "",
          "CLASS": "",
          "BASIC_STATUS": true,
          "YQ_STATUS": true,
          "CB_STATUS": true,
          "PROMO_STATUS": false,
          "MARKUP_STATUS": true,
          "BASIC": 2,
          "YQ": 2,
          "CB": 2,
          "MARKUP": 2,
          "PROMO": 0,
          "PROMO_CODE": "",
          "OI": "",
          "ETIME": "2018-11-12T17:09:03.203",
          "MODULE": "B2B",
          "HS": "D",
          "AGENT_TYPE": "D"
        },
        {
          "ID": 117,
          "CUST_ID": "06021977",
          "TRIP": "D",
          "FLT_CODE": "AI",
          "ALIAS": "GAL",
          "FLT_NO": "",
          "SECTOR": "",
          "CABIN_TYPE": "",
          "CLASS": "T",
          "BASIC_STATUS": true,
          "YQ_STATUS": true,
          "CB_STATUS": true,
          "PROMO_STATUS": false,
          "MARKUP_STATUS": false,
          "BASIC": 0,
          "YQ": 0,
          "CB": 100,
          "MARKUP": 0,
          "PROMO": 0,
          "PROMO_CODE": "",
          "OI": "",
          "ETIME": "2018-11-20T12:46:59.473",
          "MODULE": "B2B",
          "HS": "D",
          "AGENT_TYPE": "D"
        },
        {
          "ID": 152,
          "CUST_ID": "06021977",
          "TRIP": "D",
          "FLT_CODE": "6E",
          "ALIAS": "DEV",
          "FLT_NO": "",
          "SECTOR": "",
          "CABIN_TYPE": "",
          "CLASS": "",
          "BASIC_STATUS": true,
          "YQ_STATUS": true,
          "CB_STATUS": true,
          "PROMO_STATUS": false,
          "MARKUP_STATUS": true,
          "BASIC": 2,
          "YQ": 2,
          "CB": 4,
          "MARKUP": 2,
          "PROMO": 0,
          "PROMO_CODE": "",
          "OI": "",
          "ETIME": "2019-05-17T13:54:44.197",
          "MODULE": "B2B",
          "HS": "D",
          "AGENT_TYPE": "D"
        }
      ]
    }

Flight Availability Request/Response (OneWay)

Process Name : FARE_CHECK

Request:-
    {
      "TYPE": "AIR",
      "NAME": "FARE_CHECK",
      "STR": [
        {
          "PARAM": {
            "src": "DEL",
            "des": "BOM",
            "dep_date": "2019-12-01",
            "ret_date": "",
            "adt": "1",
            "chd": "0",
            "inf": "0",
            "L_OW": "2751",
            "H_OW": "4226",
            "T_TIME": "1.8437504",
            "Trip_String": "1Dtmjdoaddxcpy30zheykpurh0~2019-07-26 17:53:11.674~71c9abe3-f197-4fad-af19-2bb589529002******B2B*182.73.146.154*D*NOCLASS*ALL*D"
          },
          "FLIGHT": {
            "UID": "18009cf4636997603935647548",
            "ID": "3",
            "TID": "0"
          }
        }
      ]
    }

Response
{ "STATUS": [ { "status": "T" } ], "FLIGHT": [ { "ID": 3, "TRIPID": 0, "REFID": 3, "ORG_CODE": "DEL", "ORG_NAME": "Delhi", "DES_CODE": "BOM", "DES_NAME": "Mumbai", "DEP_DATE": "2019-12-01", "DEP_TIME": "21:35", "ARRV_DATE": "2019-12-01", "ARRV_TIME": "23:50", "ORG_TRML": "1D", "DES_TRML": "1", "FLIGHT_CODE": "SG", "FLIGHT_NAME": "Spice Jet", "FLIGHT_NO": " 159", "FLIGHT_LOGO": "0 -105px", "FARE_BASIS": "", "FARE_CLASS": "VSAVER", "FARE_TYPE": "RS", "SEAT": "1", "STOP": 0, "AMOUNT": "3591", "SERVICE": "", "DURATION": "0d:2h:15m", "OPERATION_INFO": "+VZkGNtCrP8=|DkgP5DRvIrB8Zsqc9KUfPepWElFmxV85eP3htUMEq02yQv/KNBmLkA6J3jfCYjlIMsoL9YZZp8OAnU7gaDdjmYiC5fGYFYuYGeYd4h2oS1j6sJF26oacBhihCw/A78GlKjXA1QShxL8=", "LAYOVER_INFO": "", "OTHER_INFO": "SG~ 159~ ~~DEL~12/01/2019 21:35~BOM~12/01/2019 23:50~~|0~V~ ~SG~VSAVER~1921~~0~21~~X,1|", "PCC": "SGAPITESTIDD~DEV", "APPKEY": "", "MARKUP": "" } ], "CON_FLIGHT": [], "FARE": [ { "ID": 3, "TRIPID": 0, "REFID": 3, "BASIC_ADT": 3000, "BASIC_CHD": 3000, "BASIC_INF": 0, "YQ_ADT": 0, "YQ_CHD": 0, "YQ_INF": 0, "TAX_ADT": 591, "TAX_CHD": 591, "TAX_INF": 0, "TOTAL_ADT": 3591, "TOTAL_CHD": 3591, "TOTAL_INF": 0, "GRAND_TOTAL": 3591, "REFUNDABLE": "refundable", "FARE_TYPE": "RS", "SEAT": 1, "FARE_CLASS": "VSAVER", "FARE_BASIS_ADT": "VSAVER", "FARE_BASIS_CHD": "", "FARE_BASIS_INF": "", "SERVICE": "", "OTHER_INFO": "basic=3000.0000,RCS=100.000,TRF=65.00000,ASF=177.00000,PSF=91.00000,CGST07=4.00000,CGST07=75.00000,SGST07=4.00000,SGST07=75.00000,|1921,15~-", "PCC": "SGAPITESTIDD~DEV", "APPKEY": "", "MARKUP": "" } ], "PARAM": [ { "src": "DEL", "des": "BOM", "dep_date": "2019-12-01", "ret_date": "", "adt": "1", "chd": "0", "inf": "0", "L_OW": "2751", "H_OW": "4226", "T_TIME": "1.8437504", "Trip_String": "1Dtmjdoaddxcpy30zheykpurh0~2019-07-26 17:53:11.674~71c9abe3-f197-4fad-af19-2bb589529002******B2B*182.73.146.154*D*NOCLASS*ALL*D" } ], "FARE_RULE": [ { "ID": 11, "FCODE": "SG", "F_ALIAS": "DEV", "SECTOR": "D", "LOGIC_TYPE": null, "LOGIC": null, "FARE_RULE": "For B2C customers 200Rs charges per person per sector will be charged on all cancellations and 200Rs as Rescheduling charges.", "CHECKIN_BAG": "ASAP Airlines", "CABIN_BAG": "7 KG", "CANCEL_FEE": "ASAP Airlines", "DATE_CHANGE_FEE": "ASAP Airlines", "ACTIVE": true, "ETIME": "2016-12-07T14:40:50.32", "FEE": "{\"CF\":\"200\",\"RF\":\"200\",\"CFB\":\"50\",\"RFB\":\"50\"}", "TAG": null } ], "Deal": [ { "DISCOUNT": "100", "CB": "0", "SERVICE_FEE": "4", "PROMO": "False|XXXXX|0" } ] }

PNR Request/Response

Process Name : PNR_CREATION

Request:-

    {
      "STATUS": [
        {
          "status": "T"
        }
      ],
      "FLIGHT": [
        {
          "ID": 0,
          "TRIPID": 0,
          "REFID": 0,
          "ORG_CODE": "DEL",
          "ORG_NAME": "Delhi",
          "DES_CODE": "BOM",
          "DES_NAME": "Mumbai",
          "DEP_DATE": "2019-12-01",
          "DEP_TIME": "06:35",
          "ARRV_DATE": "2019-12-01",
          "ARRV_TIME": "08:45",
          "ORG_TRML": "1D",
          "DES_TRML": "1",
          "FLIGHT_CODE": "SG",
          "FLIGHT_NAME": "Spice Jet",
          "FLIGHT_NO": " 153",
          "FLIGHT_LOGO": "0 -105px",
          "FARE_BASIS": "",
          "FARE_CLASS": "A2SAVER",
          "FARE_TYPE": "RS",
          "SEAT": "1",
          "STOP": 0,
          "AMOUNT": "2751",
          "SERVICE": "",
          "DURATION": "0d:2h:10m",
          "OPERATION_INFO": "PFxc8ZKEeWk=|DTFCWo9BznDQ4as/XNod96Kk3mSwQMAuCXMuXwhmJzUQ4hL1o3RrgCTBzSSzerG07Ku1Aj0KX/MrpFdhN7gts+sOYrOMJud7zLs8xj0W6mWKFnbRIwUB4j2fJw4YTp1ITKqdSEG48B0=",
          "LAYOVER_INFO": "",
          "OTHER_INFO": "SG~ 153~ ~~DEL~12/01/2019 06:35~BOM~12/01/2019 08:45~~|0~A~ ~SG~A2SAVER~0006~~0~1~~X,1|",
          "PCC": "SGAPITESTIDD~DEV",
          "APPKEY": "",
          "MARKUP": "",
          "$$hashKey": "object:528"
        }
      ],
      "CON_FLIGHT": [],
      "FARE": [
        {
          "ID": 0,
          "TRIPID": 0,
          "REFID": 0,
          "BASIC_ADT": 2200,
          "BASIC_CHD": 2200,
          "BASIC_INF": 0,
          "YQ_ADT": 0,
          "YQ_CHD": 0,
          "YQ_INF": 0,
          "TAX_ADT": 551,
          "TAX_CHD": 551,
          "TAX_INF": 0,
          "TOTAL_ADT": 2751,
          "TOTAL_CHD": 2751,
          "TOTAL_INF": 0,
          "GRAND_TOTAL": 2751,
          "REFUNDABLE": "refundable",
          "FARE_TYPE": "RS",
          "SEAT": 1,
          "FARE_CLASS": "A2SAVER",
          "FARE_BASIS_ADT": "A2SAVER",
          "FARE_BASIS_CHD": "",
          "FARE_BASIS_INF": "",
          "SERVICE": "",
          "OTHER_INFO": "basic=2200.0000,RCS=100.000,TRF=65.00000,ASF=177.00000,PSF=91.00000,CGST07=4.00000,CGST07=55.00000,SGST07=4.00000,SGST07=55.00000,|0006,15~-",
          "PCC": "SGAPITESTIDD~DEV",
          "APPKEY": "",
          "MARKUP": ""
        }
      ],
      "PARAM": [
        {
          "src": "DEL",
          "des": "BOM",
          "dep_date": "2019-12-01",
          "ret_date": "",
          "adt": "1",
          "chd": "0",
          "inf": "0",
          "L_OW": "0",
          "H_OW": "0",
          "T_TIME": "0.046873",
          "Trip_String": "1Dz3lsznhyb3wjyy1xxf4iq34t~2019-07-26 18:19:23.838~c9e63f80-8eba-4263-ac4b-87812b231460******B2B*182.73.146.154*D*NOCLASS*ALL*D"
        }
      ],
      "FARE_RULE": [
        {
          "ID": 11,
          "FCODE": "SG",
          "F_ALIAS": "DEV",
          "SECTOR": "D",
          "LOGIC_TYPE": null,
          "LOGIC": null,
          "FARE_RULE": "For B2C customers 200Rs charges per person per sector will be charged on all cancellations and 200Rs as Rescheduling charges.",
          "CHECKIN_BAG": "ASAP Airlines",
          "CABIN_BAG": "7 KG",
          "CANCEL_FEE": "ASAP Airlines",
          "DATE_CHANGE_FEE": "ASAP Airlines",
          "ACTIVE": true,
          "ETIME": "2016-12-07T14:40:50.32",
          "FEE": "{\"CF\":\"200\",\"RF\":\"200\",\"CFB\":\"50\",\"RFB\":\"50\"}",
          "TAG": null
        }
      ],
      "Deal": [
        {
          "DISCOUNT": "76",
          "CB": "0",
          "SERVICE_FEE": "4",
          "PROMO": "False|XXXXX|0"
        }
      ],
      "GSTINFO": [
        {
          "hasGST": false
        }
      ],
      "CHECK_FARE": [
        {
          "FLIGHT_REQUEST": 2751,
          "FLIGHT_RESPONSE": 2751
        }
      ],
      "PAX": [
        {
          "year": "1999-07-26",
          "ttl": "MS",
          "fn": "TEST",
          "ln": "TESTPNR",
          "type": "adult",
          "mn": "",
          "dob": "1999-07-26",
          "meal": "",
          "baggage": "",
          "refundable": "",
          "status": "",
          "apnr": "",
          "gpnr": "",
          "tktno": "",
          "fare": "",
          "ffn": "",
          "tc": "",
          "nat": "IN",
          "pi": "IN",
          "other_info": "",
          "paxcount": "paxcount",
          "$$hashKey": "object:530"
        }
      ],
      "Charges": [
        {
          "bookingId": 0,
          "TRIP": "1D",
          "basicFares": 2200,
          "totalYQ": 0,
          "totalTaxs": 551,
          "totalMeal": 0,
          "totalBag": 0,
          "updatedFare": 0,
          "serviceFee": "4",
          "discount": "76",
          "fromWallet": 2751,
          "fromGateway": 0,
          "fromProccessFee": 0,
          "promoCode": "",
          "promoAmount": 0,
          "Insurance": 0,
          "allFare": 2751,
          "TDSP": "",
          "TDSA": ""
        }
      ],
      "Others": [
        {
          "REMARK": "OTHER INFO FOR FUTURE/LEAVE BLANK FOR NOW",
          "CUSTOMER_EMAIL": "CUST@GMAIL.COM",
          "CUSTOMER_MOBILE": "XXXXXXXXXX"
        }
      ],
      "TYPE": "DC",
      "NAME": "PNR_CREATION"
    }

Response
{ "RESULT": [ { "BOOKINGID": "a636895639726070918M" } ] }

Booking Retrieve Request/Response

Process Name : Booking Retrieve

Request:-
{
  "TYPE": "DC",
  "NAME": "PNR_RETRIVE",
  "STR": [
    {
      "BOOKINGID": "U636997630529173206V",
      "CLIENT_SESSIONID": "z3lsznhyb3wjyy1xxf4iq34t",
      "MODULE": "B2B",
      "HS": "D"
    }
  ]
}

Response:-
{ "STATUS": [ { "status": "T" } ], "FLIGHT": [ { "ID": 0, "TRIPID": 0, "REFID": 0, "ORG_CODE": "DEL", "ORG_NAME": "Delhi", "DES_CODE": "BOM", "DES_NAME": "Mumbai", "DEP_DATE": "2019-12-01", "DEP_TIME": "06:35", "ARRV_DATE": "2019-12-01", "ARRV_TIME": "08:45", "ORG_TRML": "1D", "DES_TRML": "1", "FLIGHT_CODE": "SG", "FLIGHT_NAME": "Spice Jet", "FLIGHT_NO": " 153", "FLIGHT_LOGO": "0 -105px", "FARE_BASIS": "", "FARE_CLASS": "A2SAVER", "FARE_TYPE": "RS", "SEAT": "1", "STOP": 0, "AMOUNT": "2751", "SERVICE": "", "DURATION": "0d:2h:10m", "OPERATION_INFO": "MWQqmiYdazY=|f4hqq2CsOmKSmXIyo9l9fkbrm54oJIybUupDtxGTyg5laEtd3915WIF2s0Jh2T+HRNeHboOO413mj0Vsf7nEpdkMUP5qNvLQ54t8ASGL/+0l9cxMi/GPmSull0Ncb9GAG64Lip4hK3w=", "LAYOVER_INFO": "", "OTHER_INFO": "SG~ 153~ ~~DEL~12/01/2019 06:35~BOM~12/01/2019 08:45~~|0~A~ ~SG~A2SAVER~0006~~0~1~~X,1|", "PCC": "SGAPITESTIDD~DEV", "APPKEY": "", "MARKUP": "" } ], "CON_FLIGHT": [], "PARAM": [ { "src": "DEL", "des": "BOM", "dep_date": "2019-12-01", "ret_date": "", "adt": "1", "chd": "0", "inf": "0", "L_OW": "0", "H_OW": "0", "T_TIME": "0.0312502", "Trip_String": "1Dz3lsznhyb3wjyy1xxf4iq34t~2019-07-26 18:37:04.432~aadf0437-4a1f-42cf-a218-606a2cf1fc1b******B2B*182.73.146.154*D*NOCLASS*ALL*D" } ], "FARE_RULE": [ { "ID": 11, "FCODE": "SG", "F_ALIAS": "DEV", "SECTOR": "D", "LOGIC_TYPE": null, "LOGIC": null, "FARE_RULE": "For B2C customers 200Rs charges per person per sector will be charged on all cancellations and 200Rs as Rescheduling charges.", "CHECKIN_BAG": "ASAP Airlines", "CABIN_BAG": "7 KG", "CANCEL_FEE": "ASAP Airlines", "DATE_CHANGE_FEE": "ASAP Airlines", "ACTIVE": true, "ETIME": "2016-12-07T14:40:50.32", "FEE": "{\"CF\":\"200\",\"RF\":\"200\",\"CFB\":\"50\",\"RFB\":\"50\"}", "TAG": null } ], "GSTINFO": [ { "hasGST": false } ], "PAX": [ { "year": "1999-07-26", "ttl": "MR", "fn": "TEST", "ln": "TEST", "type": "adult", "mn": "", "dob": "1999-07-26", "meal": "", "baggage": "", "refundable": "true", "status": "Confirmed", "apnr": "N7IK4P", "gpnr": "N7IK4P", "tktno": "", "fare": "", "ffn": "", "tc": "", "nat": "IN", "pi": "IN", "other_info": "", "paxcount": "paxcount" } ], "Login_Status": [ { "STATUS": [ { "STATUS": "", "DESP": "", "WALLET": "" } ], "CUSTOMER_INFO": [ { "CUST_ID": "18785869", "EMAIL": "ADMIN@KAFILATRAVEL.IN", "MOBILE": "9899911993", "TOKEN": "aadf0437-4a1f-42cf-a218-606a2cf1fc1b" } ] } ], "Charges": [ { "bookingId": "U636997630529173206V", "TRIP": "1D", "basicFares": 2200, "totalYQ": 0, "totalTaxs": 551, "totalBag": 0, "totalMeal": 0, "updatedFare": 0, "serviceFee": 4, "discount": 76, "fromWallet": 2751, "fromGateway": 0, "fromProccessFee": 0, "promoCode": "XXXXX", "promoAmount": 0, "Insurance": 0, "allFare": 2751, "TDSP": "5", "TDSA": "4" } ], "Others": [ { "other": "9899911993|WALLET|ADMIN@KAFILATRAVEL.IN|NA|NA|ADMIN@KAFILATRAVEL.IN|NA|NA|", "AltMobile": "NA", "AltEmail": "NA", "CustMobile": "9899911993", "CustEmail": "ADMIN@KAFILATRAVEL.IN", "PaymentSource": "WALLET", "GATEWAY_NAME": "", "PFSTR": "NA" } ], "AGENTINFO": [ { "CLK": "aadf0437-4a1f-42cf-a218-606a2cf1fc1b", "USER_TYPE": "ADMIN", "AGENCY_NAME": "testingcompany|18785869|ADMIN@KAFILATRAVEL.IN|9899911993|BULK=T|5|D", "WALLET": 0 } ], "PayMode": [ { "GATEWAY": "WALLET", "ID": 0, "BANK_NAME": "WALLET", "OTHER_INFO": "Use Wallet as default payment mode", "PROC": 0, "FARE": 0, "FF": 0, "MODE": "WALLET", "WALLET_AMOUNT": 0, "TRIP": "", "PAY_FROM": "[]", "PG_CODE": "WALLET", "PG_ALIAS": "WALLET", "PG_COMPONENT": "WALLET", "PG_PRCNT": 0, "PG_FIXED": 0, "PG_ORDER": 0, "PG_STATUS": false, "MODULE": "B2B" } ], "FARE": [ { "ID": 0, "TRIPID": 0, "REFID": 0, "BASIC_ADT": 2200, "BASIC_CHD": 0, "BASIC_INF": 0, "YQ_ADT": 0, "YQ_CHD": 0, "YQ_INF": 0, "TAX_ADT": "551", "TAX_CHD": "0", "TAX_INF": "0", "TOTAL_ADT": 2751, "TOTAL_CHD": 0, "TOTAL_INF": 0, "GRAND_TOTAL": 2751, "REFUNDABLE": "refundable", "FARE_TYPE": "A2SAVER", "SEAT": 0, "FARE_CLASS": "A", "FARE_BASIS_ADT": "A2SAVER", "FARE_BASIS_CHD": "", "FARE_BASIS_INF": "", "SERVICE": "", "OTHER_INFO": "0", "PCC": "SGAPITESTIDD~DEV", "APPKEY": "", "MARKUP": "" } ], "Deal": [ { "DISCOUNT": "76", "CB": "0", "SERVICE_FEE": "4", "PROMO": "False|XXXXX|0" } ] }

Reporting

Under proccess

Endpoint URL Description
API Url Uses Descriptions
http://auth.ksofttechnology.com/API/AUTH Security Token Responsible for generation of Security Token, Verification ofSecurity Token.
http://mdt.ksofttechnology.com/API/FLIGHT Flight Search, Flight Avlt, Fare Avlt check. Responsible for Flight Search,Flight Avlt/Fare Avlt Check.
http://mdt.ksofttechnology.com/API/AVLT Flight Fare check. Responsible for Flight Fare Check.
http://dc.ksofttechnology.com/API/flight PNR Creation, Reporting,Booking Retrieve etc... Data collection, Reporting etc..
API Integration summary

Steps for starting API Integration:-

  1. http://kafilaholidays.in/registeration
  2. Login to(For development Request /Response sample string).
  3. Follow the procedure flow as mention below


Download Json Request/Response Section



Order Method Sample File Request Sample File Response
1 API User Authentication
2 Search Flight
3 Check Flight/Fare Availability
4 PNR Generation
5 Retrieve Booking Itinerary
6 Sectors & Logo All Sector AirLine Logo