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:-
{
  "NAME": "GET_AUTH_TOKEN",
  "STR": [
    {
      "MODULE": "B2B",
      "A_ID": "xxxxxxxx",
      "HS": "D",
      "PWD": "xxxxxxxxxx",
      "U_ID": "xxxxxxxxx"
    }
  ],
  "TYPE": "AUTH"
}
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": "edb894bd-a294-4a05-bcac-e210415f5f7f",
            "SESSION_ID": "0vv5ycqeaxmndcdqhtatcscx",
            "TRIP": "1",
            "SECTOR": "D",
            "SRC": "DEL",
            "DES": "BOM",
            "DEP_DATE": "2019-12-25",
            "RET_DATE": "",
            "ADT": "1",
            "CHD": "1",
            "INF": "1",
            "PC": "",
            "PF": "",
            "HS": "D"
        }
    ]
}
Response

{
    "FLIGHT": [
        {
            "UID": "783a61ae637099308230220118",
            "ID": "0",
            "TID": "0",
            "D_CODE": "DEL",
            "D_NAME": "Delhi",
            "A_CODE": "BOM",
            "A_NAME": "Mumbai",
            "D_DATE": "2019-12-25",
            "D_TIME": "06:35",
            "A_DATE": "2019-12-25",
            "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": "8862",
            "DUR": "0d:2h:10m",
            "S_CODE": "DEL-BOM",
            "CN_CODE": "SG- 153",
            "OI": "1D",
            "PCC": "SGAPITESTIDD~DEV",
            "TAX_BREAKUP": "ab=3000,ay=0,at=801,cb=3000,cy=0,ct=801,ib=1260",
            "CON_DETAILS": "",
            "FLIGHT_INFO": "REFUNDABLE|1D,1|Baggage:Cabin=7Kg,Checkin=15KG|Cancellation=ASAP Airlines,Reschedule=ASAP Airlines|CLASS=VSAVER",
            "NET_FARE": "8706",
            "F_CLASS": "Economy"
        },
        {
            "UID": "783a61ae637099308230220118",
            "ID": "117",
            "TID": "0",
            "D_CODE": "DEL",
            "D_NAME": "Delhi",
            "A_CODE": "BOM",
            "A_NAME": "Mumbai",
            "D_DATE": "2019-12-25",
            "D_TIME": "07:10",
            "A_DATE": "2019-12-25",
            "A_TIME": "17:05",
            "F_CODE": "AI",
            "F_NAME": "Air India",
            "F_NO": "77",
            "F_LOGO": "-110px -441px",
            "F_TYPE": "Economy",
            "SEAT": "9",
            "STOP": "1",
            "AMT": "29012",
            "DUR": "0d:9h:55m",
            "S_CODE": "DEL-BBI-BOM",
            "CN_CODE": "AI 77,AI 670",
            "OI": "1D",
            "PCC": "GAP7032016D~GAL_PCC_AI",
            "TAX_BREAKUP": "ab=11800,ay=0,at=1215,cb=11800,cy=0,ct=1215,ib=2982,|FARE_RULE=gws-eJxNTssKwzAM+5iiu2T2aG5JacICI4yxHXrZ/3/GnITBDLZky1iOMRoVJFP8jwWfJVXU9gQa6LltFReSkDcHKMt4p4dOGAfMzj5vQ5uovsXCYg4oVjSlHjhG3fPdNY6znkK3Rac+wI/km9OW9hfNRK4hhNXdpsgr/M8v+gwqbA==|gws-eJxNTkEKAjEMfMwy90lwsb21i1vswSqih734/2c4bREMJDPJhElSSk6LZm7pPxZ8llxR2xNooHK737AGEq7mAM13vPPDThgG7qvmbWgTrW+xsLgAxYtNqQeOUbetSuOwFRr6WXSqAX5kv4q2fHnR3cgQYwy6NkWeoT+/CLUqhA==|FIR=82won53R2BKAbVrPFAAAAA==|",
            "CON_DETAILS": [
                {
                    "ID": 117,
                    "TRIPID": 0,
                    "REFID": 38,
                    "ORG_CODE": "DEL",
                    "ORG_NAME": "Delhi",
                    "DES_CODE": "BBI",
                    "DES_NAME": "Bhubaneswar",
                    "DEP_DATE": "2019-12-25",
                    "DEP_TIME": "07:10",
                    "ARRV_DATE": "2019-12-25",
                    "ARRV_TIME": "09:10",
                    "ORG_TRML": "3",
                    "DES_TRML": "2",
                    "FLIGHT_CODE": "AI",
                    "FLIGHT_NAME": "Air India",
                    "FLIGHT_NO": "77",
                    "FLIGHT_LOGO": "-110px -441px",
                    "FARE_BASIS": "",
                    "FARE_CLASS": "U",
                    "FARE_TYPE": "Economy",
                    "SEAT": "9",
                    "STOP": 1,
                    "AMOUNT": 0,
                    "SERVICE": "",
                    "DURATION": "0d:2h:0m",
                    "OPERATION_INFO": "",
                    "LAYOVER_INFO": "Layover at Bhubaneswar 0D:7H:55M",
                    "OTHER_INFO": "",
                    "PCC": "GAP7032016D~GAL_PCC_AI",
                    "APPKEY": "",
                    "MARKUP": "",
                    "NET_FARE": ""
                },
                {
                    "ID": 117,
                    "TRIPID": 0,
                    "REFID": 38,
                    "ORG_CODE": "BBI",
                    "ORG_NAME": "Bhubaneswar",
                    "DES_CODE": "BOM",
                    "DES_NAME": "Mumbai",
                    "DEP_DATE": "2019-12-25",
                    "DEP_TIME": "15:00",
                    "ARRV_DATE": "2019-12-25",
                    "ARRV_TIME": "17:05",
                    "ORG_TRML": "1",
                    "DES_TRML": "2",
                    "FLIGHT_CODE": "AI",
                    "FLIGHT_NAME": "Air India",
                    "FLIGHT_NO": "670",
                    "FLIGHT_LOGO": "-110px -441px",
                    "FARE_BASIS": "",
                    "FARE_CLASS": "U",
                    "FARE_TYPE": "Economy",
                    "SEAT": "9",
                    "STOP": 1,
                    "AMOUNT": 0,
                    "SERVICE": "",
                    "DURATION": "0d:2h:5m",
                    "OPERATION_INFO": "",
                    "LAYOVER_INFO": "",
                    "OTHER_INFO": "",
                    "PCC": "GAP7032016D~GAL_PCC_AI",
                    "APPKEY": "",
                    "MARKUP": "",
                    "NET_FARE": ""
                }
            ],
            "FLIGHT_INFO": "REFUNDABLE|3,2|Baggage:Cabin=7Kg,Checkin=25 Kilograms|25 Kilograms|Penalty:ChangePenalty=2500.0,CancelPenalty=2500.0|Cancellation=ASAP Airlines,Reschedule=ASAP Airlines|CLASS=U",
            "NET_FARE": "29004",
            "F_CLASS": "Economy"
        }
    ],
    "PARAM": [
        {
            "src": "DEL",
            "des": "BOM",
            "dep_date": "2019-12-25",
            "ret_date": "",
            "adt": "1",
            "chd": "1",
            "inf": "1",
            "L_OW": "8685",
            "H_OW": "44548",
            "T_TIME": "12.5937506",
            "Trip_String": "1D0vv5ycqeaxmndcdqhtatcscx~2019-11-21 11:00:09.428~edb894bd-a294-4a05-bcac-e210415f5f7f******B2B*182.73.146.154*D*NOCLASS*ALL*D*API_HIT*5"
        }
    ],
    "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": false,
            "BASIC": 2.23,
            "YQ": 2.23,
            "CB": 5.0,
            "MARKUP": 3.0,
            "PROMO": 0.0,
            "PROMO_CODE": "KAF",
            "OI": "",
            "ETIME": "2019-09-21T13:27:36.927",
            "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": false,
            "BASIC": 3.0,
            "YQ": 3.0,
            "CB": 10.0,
            "MARKUP": 4.0,
            "PROMO": 0.0,
            "PROMO_CODE": "",
            "OI": "",
            "ETIME": "2019-08-12T18:50:26.327",
            "MODULE": "B2B",
            "HS": "D",
            "AGENT_TYPE": "D"
        }
        
    ]
}

Flight Availability Request/Response (OneWay)

Process Name : FARE_CHECK

Request:-
{
    "NAME": "FARE_CHECK",
    "STR": [
        {
            "FLIGHT": {
                "UID": "783a61ae637099308230220118",
                "ID": "0",
                "TID": "0"
            },
            "PARAM": {
                "src": "DEL",
                "des": "BOM",
                "dep_date": "2019-12-25",
                "ret_date": "",
                "adt": "1",
                "chd": "1",
                "inf": "1",
                "L_OW": "8685",
                "H_OW": "44548",
                "T_TIME": "12.5937506",
                "Trip_String": "1D0vv5ycqeaxmndcdqhtatcscx~2019-11-21 11:00:09.428~edb894bd-a294-4a05-bcac-e210415f5f7f******B2B*182.73.146.154*D*NOCLASS*ALL*D*API_HIT*5"
            },
            "GSTINFO": {
                "Address": "D-100 TOP FLOOR, AMAR COLONY,\nLAJPAT NAGAR-IV, NEW DELHI-110024",
                "Company": "GLIMPSE XXXXX.",
                "Email": "accounts@gXXXXXXXXXXo.com",
                "Mobile": "11321654654",
                "Number": "07AAECG8997P1ZH",
                "Pin": "135165",
                "State": "New Delhi",
                "Type": "GST Type",
                "hasGST": true/false   (If have GST then true otherwise false)
              }
        
        }
    ],
    "TYPE": "AIR"
}

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-25", "DEP_TIME": "06:35", "ARRV_DATE": "2019-12-25", "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": "VSAVER", "FARE_TYPE": "RS", "SEAT": "1", "STOP": 0, "AMOUNT": "8862", "SERVICE": "Baggage:Cabin=7Kg,Checkin=15KG", "DURATION": "0d:2h:10m", "OPERATION_INFO": "wqa2BGwkB2o=|3u8zsFYhO7EWdUVeltkbteyPeAqX6PZ5T/3T8w7fByiDVce9rrAAnHoe6JHMGjTnnGADI+X/AyxSGaJs1tODDEGF3ka8ibdSI17iDuo0UPgNdHQUrXaG1dccvndTIUkO8d/lsUrz+2w=", "LAYOVER_INFO": "", "OTHER_INFO": "SG~ 153~ ~~DEL~12/25/2019 06:35~BOM~12/25/2019 08:45~~|0~V~ ~SG~VSAVER~1921~~0~21~~X,1|", "PCC": "SGAPITESTIDD~DEV", "APPKEY": "", "MARKUP": "", "NET_FARE": "8706" } ], "CON_FLIGHT": [], "FARE": [ { "ID": 0, "TRIPID": 0, "REFID": 0, "BASIC_ADT": 3000, "BASIC_CHD": 3000, "BASIC_INF": 1260, "YQ_ADT": 0, "YQ_CHD": 0, "YQ_INF": 0, "TAX_ADT": 801, "TAX_CHD": 801, "TAX_INF": 0, "TOTAL_ADT": 3801, "TOTAL_CHD": 3801, "TOTAL_INF": 1260, "GRAND_TOTAL": 8862, "REFUNDABLE": "refundable", "FARE_TYPE": "RS", "SEAT": 1, "FARE_CLASS": "VSAVER", "FARE_BASIS_ADT": "VSAVER", "FARE_BASIS_CHD": "", "FARE_BASIS_INF": "", "SERVICE": "Baggage:Cabin=7Kg,Checkin=15KG", "OTHER_INFO": "ab=3000,ay=0,at=801,cb=3000,cy=0,ct=801,ib=1260", "PCC": "SGAPITESTIDD~DEV", "APPKEY": "", "MARKUP": "" } ], "PARAM": [ { "src": "DEL", "des": "BOM", "dep_date": "2019-12-25", "ret_date": "", "adt": "1", "chd": "1", "inf": "1", "L_OW": "8685", "H_OW": "44548", "T_TIME": "12.5937506", "Trip_String": "1D0vv5ycqeaxmndcdqhtatcscx~2019-11-21 11:00:09.428~edb894bd-a294-4a05-bcac-e210415f5f7f******B2B*182.73.146.154*D*NOCLASS*ALL*D*API_HIT*5" } ], "Deal": [ { "DISCOUNT": "164", "CB": "0", "SERVICE_FEE": "0", "PROMO": "False|XXXXX|0" } ], "FARE_RULE": [ { "ID": 11, "FCODE": "SG", "F_ALIAS": "DEV", "SECTOR": "D", "LOGIC_TYPE": "SECTOR", "LOGIC": "EC=15KG,BU=30KG", "FARE_RULE": "For B2C customers 200Rs charges per person per sector will be charged on all cancellations and 200Rs as Rescheduling charges.", "CHECKIN_BAG": "15KG", "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 } ] }

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-25",
            "DEP_TIME": "06:35",
            "ARRV_DATE": "2019-12-25",
            "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": "VSAVER",
            "FARE_TYPE": "RS",
            "SEAT": "1",
            "STOP": 0,
            "AMOUNT": "8862",
            "SERVICE": "Baggage:Cabin=7Kg,Checkin=15KG",
            "DURATION": "0d:2h:10m",
            "OPERATION_INFO": "wqa2BGwkB2o=|3u8zsFYhO7EWdUVeltkbteyPeAqX6PZ5T/3T8w7fByiDVce9rrAAnHoe6JHMGjTnnGADI+X/AyxSGaJs1tODDEGF3ka8ibdSI17iDuo0UPgNdHQUrXaG1dccvndTIUkO8d/lsUrz+2w=",
            "LAYOVER_INFO": "",
            "OTHER_INFO": "SG~ 153~ ~~DEL~12/25/2019 06:35~BOM~12/25/2019 08:45~~|0~V~ ~SG~VSAVER~1921~~0~21~~X,1|",
            "PCC": "SGAPITESTIDD~DEV",
            "APPKEY": "",
            "MARKUP": "",
            "NET_FARE": "8706"
        }
    ],
    "CON_FLIGHT": [],
    "FARE": [
        {
            "ID": 0,
            "TRIPID": 0,
            "REFID": 0,
            "BASIC_ADT": 3000,
            "BASIC_CHD": 3000,
            "BASIC_INF": 1260,
            "YQ_ADT": 0,
            "YQ_CHD": 0,
            "YQ_INF": 0,
            "TAX_ADT": 801,
            "TAX_CHD": 801,
            "TAX_INF": 0,
            "TOTAL_ADT": 3801,
            "TOTAL_CHD": 3801,
            "TOTAL_INF": 1260,
            "GRAND_TOTAL": 8862,
            "REFUNDABLE": "refundable",
            "FARE_TYPE": "RS",
            "SEAT": 1,
            "FARE_CLASS": "VSAVER",
            "FARE_BASIS_ADT": "VSAVER",
            "FARE_BASIS_CHD": "",
            "FARE_BASIS_INF": "",
            "SERVICE": "Baggage:Cabin=7Kg,Checkin=15KG",
            "OTHER_INFO": "ab=3000,ay=0,at=801,cb=3000,cy=0,ct=801,ib=1260",
            "PCC": "SGAPITESTIDD~DEV",
            "APPKEY": "",
            "MARKUP": ""
        }
    ],
    "PARAM": [
        {
            "src": "DEL",
            "des": "BOM",
            "dep_date": "2019-12-25",
            "ret_date": "",
            "adt": "1",
            "chd": "1",
            "inf": "1",
            "L_OW": "8685",
            "H_OW": "44548",
            "T_TIME": "12.5937506",
            "Trip_String": "1D0vv5ycqeaxmndcdqhtatcscx~2019-11-21 11:00:09.428~edb894bd-a294-4a05-bcac-e210415f5f7f******B2B*182.73.146.154*D*NOCLASS*ALL*D*API_HIT*5"
        }
    ],
    "Deal": [
        {
            "DISCOUNT": "164",
            "CB": "0",
            "SERVICE_FEE": "0",
            "PROMO": "False|XXXXX|0"
        }
    ],
    "FARE_RULE": [
        {
            "ID": 11,
            "FCODE": "SG",
            "F_ALIAS": "DEV",
            "SECTOR": "D",
            "LOGIC_TYPE": "SECTOR",
            "LOGIC": "EC=15KG,BU=30KG",
            "FARE_RULE": "For B2C customers 200Rs charges per person per sector will be charged on all cancellations and 200Rs as Rescheduling charges.",
            "CHECKIN_BAG": "15KG",
            "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
        }
    ],
    "PAX": [
        {
            "apnr": "",
            "baggage": "",
            "dob": "",
            "fare": "",
            "ffn": "",
            "fn": "testA",
            "gpnr": "",
            "ln": "Test",
            "meal": "",
            "mn": "",
            "nat": "",
            "other_info": "",
            "pi": "",
            "refundable": "",
            "status": "",
            "tc": "",
            "tktno": "",
            "ttl": "Mr",
            "type": "adult",
            "year": ""
        },
        {
            "apnr": "",
            "baggage": "",
            "dob": "2017-02-24",
            "fare": "",
            "ffn": "",
            "fn": "TestB",
            "gpnr": "",
            "ln": "Test",
            "meal": "",
            "mn": "",
            "nat": "",
            "other_info": "",
            "pi": "",
            "refundable": "",
            "status": "",
            "tc": "",
            "tktno": "",
            "ttl": "Ms",
            "type": "child",
            "year": ""
        },
        {
            "apnr": "",
            "baggage": "",
            "dob": "2018-03-15",
            "fare": "",
            "ffn": "",
            "fn": "TestC",
            "gpnr": "",
            "ln": "Test",
            "meal": "",
            "mn": "",
            "nat": "",
            "other_info": "",
            "pi": "",
            "refundable": "",
            "status": "",
            "tc": "",
            "tktno": "",
            "ttl": "Ms",
            "type": "infant",
            "year": ""
        }
    ],
    "TYPE": "DC",
    "NAME": "PNR_CREATION",
    "Others": [
        {
            "REMARK": "248xxxx52",(Agent ID)
            "CUSTOMER_EMAIL": "it1@kafila.in",
            "CUSTOMER_MOBILE": "9717163216"
        }
    ]
}

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

Booking Retrieve Request/Response

Process Name : Booking Retrieve

Request:-

{
  "TYPE": "DC",
  "NAME": "PNR_RETRIVE",
  "STR": [
    {
      "BOOKINGID": "APIJ637099311969227511J84dc",
      "CLIENT_SESSIONID": "0vv5ycqeaxmndcdqhtatcscx",
      "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-25", "DEP_TIME": "06:35", "ARRV_DATE": "2019-12-25", "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": "VSAVER", "FARE_TYPE": "RS", "SEAT": "1", "STOP": 0, "AMOUNT": "8862", "SERVICE": "Baggage:Cabin=7Kg,Checkin=15KG", "DURATION": "0d:2h:10m", "OPERATION_INFO": "wqa2BGwkB2o=|3u8zsFYhO7EWdUVeltkbteyPeAqX6PZ5T/3T8w7fByiDVce9rrAAnHoe6JHMGjTnnGADI+X/AyxSGaJs1tODDEGF3ka8ibdSI17iDuo0UPgNdHQUrXaG1dccvndTIUkO8d/lsUrz+2w=", "LAYOVER_INFO": "", "OTHER_INFO": "SG~ 153~ ~~DEL~12/25/2019 06:35~BOM~12/25/2019 08:45~~|0~V~ ~SG~VSAVER~1921~~0~21~~X,1|", "PCC": "SGAPITESTIDD~DEV", "APPKEY": "", "MARKUP": "", "NET_FARE": "8706" } ], "CON_FLIGHT": [], "PARAM": [ { "src": "DEL", "des": "BOM", "dep_date": "2019-12-25", "ret_date": "", "adt": "1", "chd": "1", "inf": "1", "L_OW": "8685", "H_OW": "44548", "T_TIME": "12.5937506", "Trip_String": "1D0vv5ycqeaxmndcdqhtatcscx~2019-11-21 11:00:09.428~edb894bd-a294-4a05-bcac-e210415f5f7f******B2B*182.73.146.154*D*NOCLASS*ALL*D*API_HIT*5" } ], "FARE_RULE": [ { "ID": 11, "FCODE": "SG", "F_ALIAS": "DEV", "SECTOR": "D", "LOGIC_TYPE": "SECTOR", "LOGIC": "EC=15KG,BU=30KG", "FARE_RULE": "For B2C customers 200Rs charges per person per sector will be charged on all cancellations and 200Rs as Rescheduling charges.", "CHECKIN_BAG": "15KG", "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 } ], "PAX": [ { "apnr": "REUR5X", "baggage": "", "dob": "1998-09-23", "fare": "", "ffn": "", "fn": "testA", "gpnr": "REUR5X", "ln": "Test", "meal": "", "mn": "", "nat": "IN", "other_info": "", "pi": "IN", "refundable": "true", "status": "Confirmed", "tc": "", "tktno": "", "ttl": "Mr", "type": "adult", "year": "", "pn": "", "ed": "" }, { "apnr": "REUR5X", "baggage": "", "dob": "2017-02-24", "fare": "", "ffn": "", "fn": "TestB", "gpnr": "REUR5X", "ln": "Test", "meal": "", "mn": "", "nat": "IN", "other_info": "", "pi": "IN", "refundable": "true", "status": "Confirmed", "tc": "", "tktno": "", "ttl": "Ms", "type": "child", "year": "", "pn": "", "ed": "" }, { "apnr": "REUR5X", "baggage": "", "dob": "2018-03-15", "fare": "", "ffn": "", "fn": "TestC", "gpnr": "REUR5X", "ln": "Test", "meal": "", "mn": "", "nat": "IN", "other_info": "", "pi": "IN", "refundable": "true", "status": "Confirmed", "tc": "", "tktno": "", "ttl": "Ms", "type": "infant", "year": "", "pn": "", "ed": "" } ], "OI": [ { "REMARK": "OTHER INFO FOR FUTURE/LEAVE BLANK FOR NOW", "CUSTOMER_EMAIL": "it1@kafila.in", "CUSTOMER_MOBILE": "9717163216" } ], "Charges": [ { "bookingId": "APIJ637099311969227511J84dc", "TRIP": "1D", "basicFares": 7260, "totalYQ": 0, "totalTaxs": 1602, "totalBag": 0, "totalMeal": 0, "updatedFare": 0, "serviceFee": 0, "discount": 164, "fromWallet": 8862, "fromGateway": 0, "fromProccessFee": 0, "promoCode": "XXXXX", "promoAmount": 0, "Insurance": 0, "allFare": 8862, "TDSP": "5", "TDSA": "8" } ], "Others": [ { "other": "9717163216|WALLET|it1@kafila.in|NA|NA|NA|it1@kafila.in|9717163216|", "AltMobile": "NA", "AltEmail": "NA", "CustMobile": "9717163216", "CustEmail": "it1@kafila.in", "PaymentSource": "WALLET", "GATEWAY_NAME": "", "PFSTR": "NA" } ], "Login_Status": [ { "STATUS": [ { "STATUS": "", "DESP": "", "WALLET": "" } ], "CUSTOMER_INFO": [ { "CUST_ID": "18785869", "EMAIL": "ADMIN@KAFILATRAVEL.IN", "MOBILE": "9899911993", "TOKEN": "edb894bd-a294-4a05-bcac-e210415f5f7f" } ] } ], "AGENTINFO": [ { "CLK": "edb894bd-a294-4a05-bcac-e210415f5f7f", "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": true, "MODULE": "B2B" } ], "FARE": [ { "ID": 0, "TRIPID": 0, "REFID": 0, "BASIC_ADT": 3000, "BASIC_CHD": 3000, "BASIC_INF": 1200, "YQ_ADT": 0, "YQ_CHD": 0, "YQ_INF": 0, "TAX_ADT": "801", "TAX_CHD": "801", "TAX_INF": "0", "TOTAL_ADT": 3801, "TOTAL_CHD": 3801, "TOTAL_INF": 1200, "GRAND_TOTAL": 8802, "REFUNDABLE": "refundable", "FARE_TYPE": "VSAVER", "SEAT": 0, "FARE_CLASS": "V", "FARE_BASIS_ADT": "VSAVER", "FARE_BASIS_CHD": "", "FARE_BASIS_INF": "", "SERVICE": "", "OTHER_INFO": "60", "PCC": "SGAPITESTIDD~DEV", "APPKEY": "", "MARKUP": "" } ], "Deal": [ { "DISCOUNT": "164", "CB": "0", "SERVICE_FEE": "0", "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://mdt.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