API Explorer
Access Token
POST /api/v1/auth/token.json
Accept type:
Use the button below to access your personal member account via the ITS API, all parameters are required. Valid access tokens will be the output.
Response Schema
{
'access_token': 'String' -> token for the user,
'token_type': 'bearer(string)' -> type of token,
'expires_in': 'ticks' -> expiry of the token,
'userName': 'String' -> username of the registered user
}
| Parameter | Value | Description | Parameter Type | Data Type |
|---|---|---|---|---|
| clientId : | Id of the registered user | Query | String | |
| clientSecret : | Password of the registered user | Query | String | |
| siteUrl : | Url of the site | Query | String |
Trip
GET /api/v1/trip/view.json
Accept type:
Use the button below to access your personal member account via the ITS API, all parameters are required. Valid access tokens will be the output.
Response Schema
{
'TripDetails': object -> all details of the trip,
'air':object -> air itinerary for the trip,
'car': 'list of array' -> list of car itineraries,
'hotel': 'list of array' -> list of the hotel itineraries
}
| Parameter | Value | Description | Parameter Type | Data Type |
|---|---|---|---|---|
| Access Token : | access token of the user | Header | String | |
| tripkey : | trip key for the user | Query | String | |
| targetClient : | client consuming the api (Mobile -> for mobile application, Standard -> use by all) | Query | String |
POST /api/v1/trip/ticket.json
Accept type:
Use the button below to view approve/deny the trip via the ITS API, all parameters are required. Implementation will be done soon.. Sample Body Request : {‘tripKey’:1234,’pnr’:’QFTER’,’approvalStatus’:’Approved’,’approver’:’John@xx.com’,’approvalReason’:’abc xyz sample’}
Response Schema
{
'isSuccess': false,
'error': {
'errorCode': '401.5',
'errorMessage': 'Sabre coonection failure'}
}
In case of Success -> {
'isSuccess': true,
'error': null
}
| Parameter | Value | Description | Parameter Type | Data Type |
|---|---|---|---|---|
| Access Token : | access token of the user | Header | String | |
| targetClient : | client consuming the api (Mobile -> for mobile application, Standard -> use by all) | Query | String | |
| tripkey : | trip key for the user | in Body as json property | int | |
| pnr : | Pnr created for the trip | in Body as json property | String | |
| approvalStatus : | the values can be Approved or Denied | in Body as json property | String | |
| approver : | the values can be username or email id of the person who approved or denied it | in Body as json property | String | |
| approvalReason : | the reason for approve/deny | in Body as json property | String |
GET /api/v1/trip/policy.json
Accept type:
Use the button below to view the policy details via the ITS API
Response Schema
{
'PolicyDetails': object -> all details of the policy
}
| Parameter | Value | Description | Parameter Type | Data Type |
|---|---|---|---|---|
| Access Token : | access token of the user | Header | String | |
| tripkey : | Unique key for the Trip | Query | String | |
| targetClient : | client consuming the api (Mobile -> for mobile application, Standard -> use by all) | Query | String |
Policy
GET /api/v1/Policy/Evaluate.json
Accept type:
Use the button below to view the policy details via the ITS API, all parameters are not required. Policy Response will be the output
Response Schema
{
'PolicyDetails': object -> all details of the policy,
'AirPolicy':'list of array' -> policy breached for Air itinerary,
'HotelPolicy': 'list of array' -> policy breached for hotel itinerary,
'CarPolicy': 'list of array' -> policy breached for car itinerary
}
| Parameter | Value | Description | Parameter Type | Data Type |
|---|---|---|---|---|
| Access Token : | access token of the user | Header | String | |
| targetClient : | client consuming the api (Mobile -> for mobile application, Standard -> use by all) | Query | String | |
| userKey : | key for the user | in Body as json property | int | |
| companyKey : | key for the Company | in Body as json property | int | |
| UserGroupKey : | key for the group user belongs to | in Body as json property | int | |
| TravelType : | travel type(Corporate/Personal/Group) | in Body as json property | String | |
| IsInternationalAir : | Air Trip is International or not | in Body as json property | int | |
| IsInternationalHotel : | Hotel Trip is International or not | in Body as json property | int | |
| AirActualAmt : | actual air amount | in Body as json property | int | |
| HotelActualAmt : | actual hotel amount | in Body as json property | int | |
| HotelActualAmt2 : | actual hotel II amount | in Body as json property | int | |
| HotelActualAmt3 : | actual hotel III amount | in Body as json property | int | |
| HotelActualAmt4 : | actual hotel IV amount | in Body as json property | int | |
| HotelActualAmt5 : | actual hotel V amount | in Body as json property | int | |
| HotelActualAmt6 : | actual hotel VI amount | in Body as json property | int | |
| CarActualAmt : | actual car amount | in Body as json property | int | |
| CarActualAmt2 : | actual car II amount | in Body as json property | int | |
| CarActualAmt3 : | actual car III amount | in Body as json property | int | |
| CarActualAmt4 : | actual car IV amount | in Body as json property | int | |
| CarActualAmt5 : | actual car V amount | in Body as json property | int | |
| CarActualAmt6 : | actual car V amount | in Body as json property | int | |
| LowestPriceAir : | lowest price for air | in Body as json property | int | |
| LowestPriceHotel : | lowest price for hotel | in Body as json property | int | |
| LowestPriceHotel2 : | lowest price for hotel II | in Body as json property | int | |
| LowestPriceHotel3 : | lowest price for hotel III | in Body as json property | int | |
| LowestPriceHotel4 : | lowest price for hotel IV | in Body as json property | int | |
| LowestPriceHotel5 : | lowest price for hotel V | in Body as json property | int | |
| LowestPriceHotel6 : | lowest price for hotel VI | in Body as json property | int | |
| LowestPriceCar : | lowest price for car | in Body as json property | int | |
| IsBasic : | indicator for basic cabin for air | in Body as json property | boolean | |
| CityID : | city ID for hotel | in Body as json property | int | |
| CityID2 : | city ID for hotel II | in Body as json property | int | |
| CityID3 : | city ID for hotel III | in Body as json property | int | |
| CityID4 : | city ID for hotel IV | in Body as json property | int | |
| CityID5 : | city ID for hotel V | in Body as json property | int | |
| CityID6 : | city ID for hotel VI | in Body as json property | int | |
| CheckInDate : | hotel checkin date(‘yyyy-MM-dd’) | in Body as json property | string | |
| CheckInDate2 : | hotel II checkin date(‘yyyy-MM-dd’) | in Body as json property | string | |
| CheckInDate3 : | hotel III checkin date(‘yyyy-MM-dd’) | in Body as json property | string | |
| CheckInDate4 : | hotel IV checkin date(‘yyyy-MM-dd’) | in Body as json property | string | |
| CheckInDate5 : | hotel V checkin date(‘yyyy-MM-dd’) | in Body as json property | string | |
| CheckInDate6 : | hotel VI checkin date(‘yyyy-MM-dd’) | in Body as json property | string | |
| CheckoutDate : | hotel checkout date(‘yyyy-MM-dd’) | in Body as json property | string | |
| CheckoutDate2 : | hotel II checkout date(‘yyyy-MM-dd’) | in Body as json property | string | |
| CheckoutDate3 : | hotel III checkout date(‘yyyy-MM-dd’) | in Body as json property | string | |
| CheckoutDate4 : | hotel IV checkout date(‘yyyy-MM-dd’) | in Body as json property | string | |
| CheckoutDate5 : | hotel V checkout date(‘yyyy-MM-dd’) | in Body as json property | string | |
| CheckoutDate6 : | hotel VI checkout date(‘yyyy-MM-dd’) | in Body as json property | string | |
| Airlines : | airlines for selected air | in Body as json property | string | |
| ChainCodes : | Chain codes for selected hotel | in Body as json property | string | |
| CarVendors: | Vendors for selected car | in Body as json property | string | |
| HotelStarRating : | Star rating for selected hotel | in Body as json property | string | |
| IsPayLaterSelected : | indicator of pay later hotel | in Body as json property | boolean | |
| IsPayNowSelected : | indicator pay now hotel | in Body as json property | boolean | |
| TripStartDate : | trip start date(‘yyyy-MM-dd’) | in Body as json property | string | |
| ServiceClassSelected : | service class for each segment of selected air | in Body as json property | string | |
| NoofHoursPerSegmentLeg1 : | No of Hours for each segment of Selected Air Leg1 | in Body as json property | string | |
| NoofHoursPerSegmentLeg2 : | No of Hours for each segment of Selected Air Leg2 | in Body as json property | string | |
| NoofHoursPerSegmentLeg3 : | No of Hours for each segment of Selected Air Leg3 | in Body as json property | string | |
| NoofHoursPerSegmentLeg4 : | No of Hours for each segment of Selected Air Leg4 | in Body as json property | string | |
| NoofHoursPerSegmentLeg5 : | No of Hours for each segment of Selected Air Leg5 | in Body as json property | string | |
| NoofHoursPerSegmentLeg6 : | No of Hours for each segment of Selected Air Leg6 | in Body as json property | string | |
| airLegBrandNameLeg1 : | BrandName for Air Leg1 | in Body as json property | string | |
| airLegBrandNameLeg2 : | BrandName for Air Leg2 | in Body as json property | string | |
| airLegBrandNameLeg3 : | BrandName for Air Leg3 | in Body as json property | string | |
| airLegBrandNameLeg4 : | BrandName for Air Leg4 | in Body as json property | string | |
| airLegBrandNameLeg5 : | BrandName for Air Leg5 | in Body as json property | string | |
| airLegBrandNameLeg6 : | BrandName for Air Leg6 | in Body as json property | string | |
| NoofTraveler : | No of Traveler | in Body as json property | int | |
| airPriceSurgeAmount : | Surge Amount after Reprice | in Body as json property | double |