Download OpenAPI specification:Download
TCP REST API specification.
Resolves original agency by ID and update all fields that passed to the method.
id required | string UUID. |
agencyName | string Name of the Agency. |
string Agency email. | |
description | string Agency Promo Text. |
logo | string Agency logo URL from storage (S3). |
{- "agencyName": "string",
- "email": "string",
- "description": "string",
- "logo": "string",
- "enabled": true
}
market required | string^[A-Z]{2}$ Example: ua Market code (ISO country code), two letters, lowercase. |
{- "market": "ua",
- "exchangeCalculationType": "fare",
- "exchangeCalculationTypeCarriers": [
- "LO",
- "PS"
]
}
market | string^[A-Z]{2}$ Market code (ISO country code), two letters, lowercase. |
exchangeCalculationType required | string Enum: "fare" "equiv" Type of the fare difference calculation. |
exchangeCalculationTypeCarriers required | Array of strings >= 0 characters unique If there are items in it, exchange calculation type is applied only to provided carriers. |
{- "market": "ua",
- "exchangeCalculationType": "fare",
- "exchangeCalculationTypeCarriers": [
- "LO",
- "PS"
]
}
Open booking file, similar to uAPI UniversalReqImp, but will extract a bunch of additional parameters from terminal.
pnr required | string (pnr) Example: YYQQ55 Passenger name record (PNR) |
{- "type": "uAPI",
- "pnr": "YYQQ55",
- "version": 13,
- "uapi_ur_locator": "THE83D",
- "uapi_reservation_locator": "Z6N7G5",
- "airlineLocatorInfo": [
- {
- "createDate": "2019-01-21T09:40:00.000Z",
- "supplierCode": "TK",
- "locatorCode": "RIAXNL"
}
], - "createdAt": "2019-01-21T10:55:48.485Z",
- "hostCreatedAt": "2018-12-20T00:00:00.000Z",
- "modifiedAt": "2019-01-21T11:13:07.912Z",
- "fareQuotes": [
- {
- "index": 2,
- "status": "Reserved",
- "calculationDate": "2019-05-04T00:00:00.000Z",
- "calculationType": "FQ.T",
- "effectiveDate": "2019-01-20T23:00:00.000Z",
- "endorsement": "NONREF- NO CHNG",
- "hasNetData": true,
- "hash": "d41d8cd98f00b204e9800998ecf8427e",
- "isAlreadyUpdated": true,
- "it": true,
- "tourCode": "string",
- "bt": true,
- "passengersIndexes": [
- 0
], - "platingCarrier": "PS",
- "segments": [
- {
- "airline": "LO",
- "departure": "2019-01-02T07:35:00.000Z",
- "arriaval": "2019-01-02T09:55:00.000Z",
- "bookingClass": "U",
- "duration": [
- 0
], - "flightNumber": 777,
- "from": "string",
- "to": "string",
- "group": 0,
- "isFlown": true,
- "plane": [
- 321
], - "serviceClass": "Business",
- "status": "HK",
- "hash": "d41d8cd98f00b204e9800998ecf8427e",
- "uapi_segment_ref": "wephmhBAAA/B4eQ4xFAAAA=="
}
], - "pricingInfos": [
- {
- "baggage": [
- {
- "amount": 23,
- "units": "piece"
}
], - "basePrice": "KRW2400000",
- "equivalentBasePrice": "CZK50000",
- "totalPrice": "KRW2400000",
- "taxes": "CZK155",
- "fareCalculation": "S-SEL OK X/PRG OK ROM 779.37 OK X/PRG OK SEL 474.78 NUC1254.15",
- "roe": 1116.28375,
- "timeToReprice": "string",
- "farePricingMethod": "ManualFare",
- "farePricingType": "StoredFare",
- "passengers": [
- {
- "index": 0,
- "firstName": "string",
- "lastName": "string",
- "ageCategory": "string",
- "uapi_passenger_ref": "wephmhBAAA/BqRQ4xFAAAA==",
- "amount": "string",
- "isTicketed": "Is ticketed.",
- "status": "B",
- "ticketNumber": "0809903317384"
}
], - "segments": [
- {
- "index": 3,
- "baggage": {
- "amount": 23,
- "units": "piece"
}, - "fareBasisCode": "TSTDKR",
- "notValidBefore": "2024-04-17",
- "notValidAfter": "2024-04-17"
}
], - "taxesInfo": [
- {
- "type": "XF",
- "value": 145,
- "details": [
- {
- "airport": "JFK",
- "value": 5
}
]
}
]
}
], - "decimalPlaces": {
- "USD": 2,
- "UAH": 0
}
}
], - "segments": [
- {
- "airline": "LO",
- "departure": "2019-01-02T07:35:00.000Z",
- "arriaval": "2019-01-02T09:55:00.000Z",
- "bookingClass": "U",
- "duration": [
- 0
], - "flightNumber": 777,
- "from": "string",
- "to": "string",
- "group": 0,
- "isFlown": true,
- "plane": [
- 321
], - "serviceClass": "Business",
- "status": "HK",
- "hash": "d41d8cd98f00b204e9800998ecf8427e",
- "uapi_segment_ref": "wephmhBAAA/B4eQ4xFAAAA=="
}
], - "serviceSegments": [
- { }
], - "passengers": [
- {
- "index": 0,
- "firstName": "string",
- "lastName": "string",
- "ageCategory": "string",
- "uapi_passenger_ref": "wephmhBAAA/BqRQ4xFAAAA=="
}
], - "emails": [
- "some@email.com"
], - "bookingPCC": "7J8J"
}
Gets and merges information about booking and its tickets from uAPI and terminal and merges them into single response
pnr required | string (pnr) Example: YYQQ55 Passenger name record (PNR) |
{- "booking": {
- "type": "uAPI",
- "pnr": "YYQQ55",
- "version": 13,
- "uapi_ur_locator": "THE83D",
- "uapi_reservation_locator": "Z6N7G5",
- "airlineLocatorInfo": [
- {
- "createDate": "2019-01-21T09:40:00.000Z",
- "supplierCode": "TK",
- "locatorCode": "RIAXNL"
}
], - "createdAt": "2019-01-21T10:55:48.485Z",
- "hostCreatedAt": "2018-12-20T00:00:00.000Z",
- "modifiedAt": "2019-01-21T11:13:07.912Z",
- "fareQuotes": [
- {
- "index": 2,
- "status": "Reserved",
- "calculationDate": "2019-05-04T00:00:00.000Z",
- "calculationType": "FQ.T",
- "effectiveDate": "2019-01-20T23:00:00.000Z",
- "endorsement": "NONREF- NO CHNG",
- "hasNetData": true,
- "hash": "d41d8cd98f00b204e9800998ecf8427e",
- "isAlreadyUpdated": true,
- "it": true,
- "tourCode": "string",
- "bt": true,
- "passengersIndexes": [
- 0
], - "platingCarrier": "PS",
- "segments": [
- {
- "airline": "LO",
- "departure": "2019-01-02T07:35:00.000Z",
- "arriaval": "2019-01-02T09:55:00.000Z",
- "bookingClass": "U",
- "duration": [
- 0
], - "flightNumber": 777,
- "from": "string",
- "to": "string",
- "group": 0,
- "isFlown": true,
- "plane": [
- 321
], - "serviceClass": "Business",
- "status": "HK",
- "hash": "d41d8cd98f00b204e9800998ecf8427e",
- "uapi_segment_ref": "wephmhBAAA/B4eQ4xFAAAA=="
}
], - "pricingInfos": [
- {
- "baggage": [
- {
- "amount": 23,
- "units": "piece"
}
], - "basePrice": "KRW2400000",
- "equivalentBasePrice": "CZK50000",
- "totalPrice": "KRW2400000",
- "taxes": "CZK155",
- "fareCalculation": "S-SEL OK X/PRG OK ROM 779.37 OK X/PRG OK SEL 474.78 NUC1254.15",
- "roe": 1116.28375,
- "timeToReprice": "string",
- "farePricingMethod": "ManualFare",
- "farePricingType": "StoredFare",
- "passengers": [
- {
- "index": 0,
- "firstName": "string",
- "lastName": "string",
- "ageCategory": "string",
- "uapi_passenger_ref": "wephmhBAAA/BqRQ4xFAAAA==",
- "amount": "string",
- "isTicketed": "Is ticketed.",
- "status": "B",
- "ticketNumber": "0809903317384"
}
], - "segments": [
- {
- "index": 3,
- "baggage": {
- "amount": 23,
- "units": "piece"
}, - "fareBasisCode": "TSTDKR",
- "notValidBefore": "2024-04-17",
- "notValidAfter": "2024-04-17"
}
], - "taxesInfo": [
- {
- "type": "XF",
- "value": 145,
- "details": [
- {
- "airport": null,
- "value": null
}
]
}
]
}
], - "decimalPlaces": {
- "USD": 2,
- "UAH": 0
}
}
], - "segments": [
- {
- "airline": "LO",
- "departure": "2019-01-02T07:35:00.000Z",
- "arriaval": "2019-01-02T09:55:00.000Z",
- "bookingClass": "U",
- "duration": [
- 0
], - "flightNumber": 777,
- "from": "string",
- "to": "string",
- "group": 0,
- "isFlown": true,
- "plane": [
- 321
], - "serviceClass": "Business",
- "status": "HK",
- "hash": "d41d8cd98f00b204e9800998ecf8427e",
- "uapi_segment_ref": "wephmhBAAA/B4eQ4xFAAAA=="
}
], - "serviceSegments": [
- { }
], - "passengers": [
- {
- "index": 0,
- "firstName": "string",
- "lastName": "string",
- "ageCategory": "string",
- "uapi_passenger_ref": "wephmhBAAA/BqRQ4xFAAAA=="
}
], - "emails": [
- "some@email.com"
], - "bookingPCC": "7J8J"
}, - "tickets": [
- {
- "source": "uapi",
- "pnr": "YYQQ55",
- "iataNumber": 99999992,
- "formOfPayment": [
- {
- "type": "cash",
- "amount": 0
}
], - "endorsement": "SKCHG SKCHG DUE TO OK724 CCLD-- FARE RESTRICTIONS APPLY",
- "ticketNumber": "0809903317384",
- "ticketingPcc": "7J8J",
- "platingCarrier": "PS",
- "issuedAt": "string",
- "passengers": [
- {
- "index": 0,
- "firstName": "string",
- "lastName": "string",
- "ageCategory": "string",
- "uapi_passenger_ref": "wephmhBAAA/BqRQ4xFAAAA=="
}
], - "tickets": [
- {
- "ticketNumber": "0809903317384",
- "coupons": [
- {
- "status": "EXCH",
- "airline": "LO",
- "flightNumber": 777,
- "bookingClass": "C",
- "from": "JFK",
- "to": "AMS",
- "departure": "string",
- "couponNumber": 1,
- "fareBasisCode": "TSTDKR",
- "notValidBefore": "2024-04-17",
- "notValidAfter": "2024-04-17"
}
]
}
], - "taxesInfoValid": true,
- "taxesInfo": [
- {
- "type": "XF",
- "value": 145,
- "details": [
- {
- "airport": "JFK",
- "value": 5
}
]
}
], - "paidTaxesInfo": [
- {
- "type": "XF",
- "value": 145,
- "details": [
- {
- "airport": "JFK",
- "value": 5
}
]
}
], - "paidTaxesInfoValid": true,
- "xfTaxesValid": true,
- "basePrice": "USD150.50",
- "basePriceIsSpecial": true,
- "equivalentBasePrice": "UAH2020",
- "equivalentBasePriceIsSpecial": true,
- "totalPrice": "string",
- "totalPriceIsSpecial": true,
- "tourCode": "string",
- "fareCalculation": "S-SEL OK X/PRG OK ROM 779.37 OK X/PRG OK SEL 474.78 NUC1254.15",
- "exchangedFor": 649903275037,
- "roe": 1116.28375,
- "it": true,
- "bt": true,
- "decimalPlaces": {
- "USD": 2,
- "UAH": 0
}
}
]
}
Open booking file through uAPI
pnr required | string (pnr) Example: YYQQ55 Passenger name record (PNR) |
{- "type": "uAPI",
- "pnr": "YYQQ55",
- "version": 13,
- "uapi_ur_locator": "THE83D",
- "uapi_reservation_locator": "Z6N7G5",
- "airlineLocatorInfo": [
- {
- "createDate": "2019-01-21T09:40:00.000Z",
- "supplierCode": "TK",
- "locatorCode": "RIAXNL"
}
], - "createdAt": "2019-01-21T10:55:48.485Z",
- "hostCreatedAt": "2018-12-20T00:00:00.000Z",
- "modifiedAt": "2019-01-21T11:13:07.912Z",
- "fareQuotes": [
- {
- "index": 2,
- "status": "Reserved",
- "calculationDate": "2019-05-04T00:00:00.000Z",
- "calculationType": "FQ.T",
- "effectiveDate": "2019-01-20T23:00:00.000Z",
- "endorsement": "NONREF- NO CHNG",
- "hasNetData": true,
- "hash": "d41d8cd98f00b204e9800998ecf8427e",
- "isAlreadyUpdated": true,
- "it": true,
- "tourCode": "string",
- "bt": true,
- "passengersIndexes": [
- 0
], - "platingCarrier": "PS",
- "segments": [
- {
- "airline": "LO",
- "departure": "2019-01-02T07:35:00.000Z",
- "arriaval": "2019-01-02T09:55:00.000Z",
- "bookingClass": "U",
- "duration": [
- 0
], - "flightNumber": 777,
- "from": "string",
- "to": "string",
- "group": 0,
- "isFlown": true,
- "plane": [
- 321
], - "serviceClass": "Business",
- "status": "HK",
- "hash": "d41d8cd98f00b204e9800998ecf8427e",
- "uapi_segment_ref": "wephmhBAAA/B4eQ4xFAAAA=="
}
], - "pricingInfos": [
- {
- "baggage": [
- {
- "amount": 23,
- "units": "piece"
}
], - "basePrice": "KRW2400000",
- "equivalentBasePrice": "CZK50000",
- "totalPrice": "KRW2400000",
- "taxes": "CZK155",
- "fareCalculation": "S-SEL OK X/PRG OK ROM 779.37 OK X/PRG OK SEL 474.78 NUC1254.15",
- "roe": 1116.28375,
- "timeToReprice": "string",
- "farePricingMethod": "ManualFare",
- "farePricingType": "StoredFare",
- "passengers": [
- {
- "index": 0,
- "firstName": "string",
- "lastName": "string",
- "ageCategory": "string",
- "uapi_passenger_ref": "wephmhBAAA/BqRQ4xFAAAA==",
- "amount": "string",
- "isTicketed": "Is ticketed.",
- "status": "B",
- "ticketNumber": "0809903317384"
}
], - "segments": [
- {
- "index": 3,
- "baggage": {
- "amount": 23,
- "units": "piece"
}, - "fareBasisCode": "TSTDKR",
- "notValidBefore": "2024-04-17",
- "notValidAfter": "2024-04-17"
}
], - "taxesInfo": [
- {
- "type": "XF",
- "value": 145,
- "details": [
- {
- "airport": "JFK",
- "value": 5
}
]
}
]
}
], - "decimalPlaces": {
- "USD": 2,
- "UAH": 0
}
}
], - "segments": [
- {
- "airline": "LO",
- "departure": "2019-01-02T07:35:00.000Z",
- "arriaval": "2019-01-02T09:55:00.000Z",
- "bookingClass": "U",
- "duration": [
- 0
], - "flightNumber": 777,
- "from": "string",
- "to": "string",
- "group": 0,
- "isFlown": true,
- "plane": [
- 321
], - "serviceClass": "Business",
- "status": "HK",
- "hash": "d41d8cd98f00b204e9800998ecf8427e",
- "uapi_segment_ref": "wephmhBAAA/B4eQ4xFAAAA=="
}
], - "serviceSegments": [
- { }
], - "passengers": [
- {
- "index": 0,
- "firstName": "string",
- "lastName": "string",
- "ageCategory": "string",
- "uapi_passenger_ref": "wephmhBAAA/BqRQ4xFAAAA=="
}
], - "emails": [
- "some@email.com"
], - "bookingPCC": "7J8J"
}
Perform uAPI AirRetrieveDocument and enhance all possible parameters using terminal commands. Will collect missing taxes, breakdowns, etc. through ticket history and exchangedFor tickets chains.
ticketNumber required | string (ticket-number) Example: 0809903317384 Ticket number (13-digit). |
pnr | string (pnr) Example: pnr=YYQQ55 Passenger name record (PNR) |
locator | string Example: locator=AYE551 uAPI UR locator. |
{- "source": "uapi",
- "pnr": "YYQQ55",
- "iataNumber": 99999992,
- "formOfPayment": [
- {
- "type": "cash",
- "amount": 0
}
], - "endorsement": "SKCHG SKCHG DUE TO OK724 CCLD-- FARE RESTRICTIONS APPLY",
- "ticketNumber": "0809903317384",
- "ticketingPcc": "7J8J",
- "platingCarrier": "PS",
- "issuedAt": "string",
- "passengers": [
- {
- "index": 0,
- "firstName": "string",
- "lastName": "string",
- "ageCategory": "string",
- "uapi_passenger_ref": "wephmhBAAA/BqRQ4xFAAAA=="
}
], - "tickets": [
- {
- "ticketNumber": "0809903317384",
- "coupons": [
- {
- "status": "EXCH",
- "airline": "LO",
- "flightNumber": 777,
- "bookingClass": "C",
- "from": "JFK",
- "to": "AMS",
- "departure": "string",
- "couponNumber": 1,
- "fareBasisCode": "TSTDKR",
- "notValidBefore": "2024-04-17",
- "notValidAfter": "2024-04-17"
}
]
}
], - "taxesInfoValid": true,
- "taxesInfo": [
- {
- "type": "XF",
- "value": 145,
- "details": [
- {
- "airport": "JFK",
- "value": 5
}
]
}
], - "paidTaxesInfo": [
- {
- "type": "XF",
- "value": 145,
- "details": [
- {
- "airport": "JFK",
- "value": 5
}
]
}
], - "paidTaxesInfoValid": true,
- "xfTaxesValid": true,
- "basePrice": "USD150.50",
- "basePriceIsSpecial": true,
- "equivalentBasePrice": "UAH2020",
- "equivalentBasePriceIsSpecial": true,
- "totalPrice": "string",
- "totalPriceIsSpecial": true,
- "tourCode": "string",
- "fareCalculation": "S-SEL OK X/PRG OK ROM 779.37 OK X/PRG OK SEL 474.78 NUC1254.15",
- "exchangedFor": 649903275037,
- "roe": 1116.28375,
- "it": true,
- "bt": true,
- "decimalPlaces": {
- "USD": 2,
- "UAH": 0
}
}
Similar to /air/core/ticket/{ticketNumber}, but based on PNR. Also correctly retrieves even tickets with changed names. Performs all enhancments from single-ticket version of endpoint.
pnr required | string (pnr) Example: YYQQ55 Passenger name record (PNR) |
[- {
- "source": "uapi",
- "pnr": "YYQQ55",
- "iataNumber": 99999992,
- "formOfPayment": [
- {
- "type": "cash",
- "amount": 0
}
], - "endorsement": "SKCHG SKCHG DUE TO OK724 CCLD-- FARE RESTRICTIONS APPLY",
- "ticketNumber": "0809903317384",
- "ticketingPcc": "7J8J",
- "platingCarrier": "PS",
- "issuedAt": "string",
- "passengers": [
- {
- "index": 0,
- "firstName": "string",
- "lastName": "string",
- "ageCategory": "string",
- "uapi_passenger_ref": "wephmhBAAA/BqRQ4xFAAAA=="
}
], - "tickets": [
- {
- "ticketNumber": "0809903317384",
- "coupons": [
- {
- "status": "EXCH",
- "airline": "LO",
- "flightNumber": 777,
- "bookingClass": "C",
- "from": "JFK",
- "to": "AMS",
- "departure": "string",
- "couponNumber": 1,
- "fareBasisCode": "TSTDKR",
- "notValidBefore": "2024-04-17",
- "notValidAfter": "2024-04-17"
}
]
}
], - "taxesInfoValid": true,
- "taxesInfo": [
- {
- "type": "XF",
- "value": 145,
- "details": [
- {
- "airport": "JFK",
- "value": 5
}
]
}
], - "paidTaxesInfo": [
- {
- "type": "XF",
- "value": 145,
- "details": [
- {
- "airport": "JFK",
- "value": 5
}
]
}
], - "paidTaxesInfoValid": true,
- "xfTaxesValid": true,
- "basePrice": "USD150.50",
- "basePriceIsSpecial": true,
- "equivalentBasePrice": "UAH2020",
- "equivalentBasePriceIsSpecial": true,
- "totalPrice": "string",
- "totalPriceIsSpecial": true,
- "tourCode": "string",
- "fareCalculation": "S-SEL OK X/PRG OK ROM 779.37 OK X/PRG OK SEL 474.78 NUC1254.15",
- "exchangedFor": 649903275037,
- "roe": 1116.28375,
- "it": true,
- "bt": true,
- "decimalPlaces": {
- "USD": 2,
- "UAH": 0
}
}
]
In terminal, search related bookings by keyword, aggreggate search results and complement it with additional booking data.
searchPhrase required | string Example: searchPhrase=Smotrov Passenger name or pnr or ticket number. |
[- {
- "created": "2018-12-15T00:00:00.000Z",
- "flightDate": "05DEC",
- "index": 5,
- "isCancelled": true,
- "pnr": "YYQQ55",
- "segments": [
- {
- "airline": "LO",
- "departure": "2019-01-02T07:35:00.000Z",
- "arriaval": "2019-01-02T09:55:00.000Z",
- "bookingClass": "U",
- "duration": [
- 0
], - "flightNumber": 777,
- "from": "string",
- "to": "string",
- "group": 0,
- "isFlown": true,
- "plane": [
- 321
], - "serviceClass": "Business",
- "status": "HK",
- "hash": "d41d8cd98f00b204e9800998ecf8427e",
- "uapi_segment_ref": "wephmhBAAA/B4eQ4xFAAAA=="
}
], - "passengers": [
- {
- "index": 0,
- "firstName": "string",
- "lastName": "string",
- "ageCategory": "string",
- "uapi_passenger_ref": "wephmhBAAA/BqRQ4xFAAAA=="
}
]
}
]
Search method will not extract PNR for cancelled bookings, using this method it is possible.
id required | integer Index of search result. |
searchPhrase required | string Example: searchPhrase=Smotrov Passenger name or PNR or ticket number. |
{- "created": "2018-12-15T00:00:00.000Z",
- "flightDate": "05DEC",
- "index": 5,
- "isCancelled": true,
- "pnr": "YYQQ55",
- "segments": [
- {
- "airline": "LO",
- "departure": "2019-01-02T07:35:00.000Z",
- "arriaval": "2019-01-02T09:55:00.000Z",
- "bookingClass": "U",
- "duration": [
- 0
], - "flightNumber": 777,
- "from": "string",
- "to": "string",
- "group": 0,
- "isFlown": true,
- "plane": [
- 321
], - "serviceClass": "Business",
- "status": "HK",
- "hash": "d41d8cd98f00b204e9800998ecf8427e",
- "uapi_segment_ref": "wephmhBAAA/B4eQ4xFAAAA=="
}
], - "passengers": [
- {
- "index": 0,
- "firstName": "string",
- "lastName": "string",
- "ageCategory": "string",
- "uapi_passenger_ref": "wephmhBAAA/BqRQ4xFAAAA=="
}
]
}
Create fare quote using FQ* command or manual mask.
required | Array of objects Passengers list with indexes. |
required | Array of objects Segments list with indexes. |
accountCode required | string Account Code. |
currency required | string Currency ISO3. |
calculationType | string Enum: "FQ" "FQ.T" "FQ.H" Calculation command type. |
calculationDate | string Date used for calculation in format. |
additionalModifiers | string Additional fare quote modifiers. |
carrier | string Carrier (PS, LO, etc). |
it | string Enum: "IT" "BT" Is it Individual Tour or Bult tour. |
pnr required | string (pnr) Passenger name record (PNR) |
{- "passengers": [
- {
- "index": 0,
- "ageCategory": "ADT"
}
], - "segments": [
- {
- "index": 0,
- "fareBasisCode": "TSTDKR"
}
], - "accountCode": null,
- "currency": "USD",
- "calculationType": "FQ",
- "calculationDate": "string",
- "additionalModifiers": "string",
- "carrier": "string",
- "it": "IT",
- "pnr": "YYQQ55"
}
{- "index": 2,
- "status": "Reserved",
- "calculationDate": "2019-05-04T00:00:00.000Z",
- "calculationType": "FQ.T",
- "effectiveDate": "2019-01-20T23:00:00.000Z",
- "endorsement": "NONREF- NO CHNG",
- "hasNetData": true,
- "hash": "d41d8cd98f00b204e9800998ecf8427e",
- "isAlreadyUpdated": true,
- "it": true,
- "tourCode": "string",
- "bt": true,
- "passengersIndexes": [
- 0
], - "platingCarrier": "PS",
- "segments": [
- {
- "airline": "LO",
- "departure": "2019-01-02T07:35:00.000Z",
- "arriaval": "2019-01-02T09:55:00.000Z",
- "bookingClass": "U",
- "duration": [
- 0
], - "flightNumber": 777,
- "from": "string",
- "to": "string",
- "group": 0,
- "isFlown": true,
- "plane": [
- 321
], - "serviceClass": "Business",
- "status": "HK",
- "hash": "d41d8cd98f00b204e9800998ecf8427e",
- "uapi_segment_ref": "wephmhBAAA/B4eQ4xFAAAA=="
}
], - "pricingInfos": [
- {
- "baggage": [
- {
- "amount": 23,
- "units": "piece"
}
], - "basePrice": "KRW2400000",
- "equivalentBasePrice": "CZK50000",
- "totalPrice": "KRW2400000",
- "taxes": "CZK155",
- "fareCalculation": "S-SEL OK X/PRG OK ROM 779.37 OK X/PRG OK SEL 474.78 NUC1254.15",
- "roe": 1116.28375,
- "timeToReprice": "string",
- "farePricingMethod": "ManualFare",
- "farePricingType": "StoredFare",
- "passengers": [
- {
- "index": 0,
- "firstName": "string",
- "lastName": "string",
- "ageCategory": "string",
- "uapi_passenger_ref": "wephmhBAAA/BqRQ4xFAAAA==",
- "amount": "string",
- "isTicketed": "Is ticketed.",
- "status": "B",
- "ticketNumber": "0809903317384"
}
], - "segments": [
- {
- "index": 3,
- "baggage": {
- "amount": 23,
- "units": "piece"
}, - "fareBasisCode": "TSTDKR",
- "notValidBefore": "2024-04-17",
- "notValidAfter": "2024-04-17"
}
], - "taxesInfo": [
- {
- "type": "XF",
- "value": 145,
- "details": [
- {
- "airport": "JFK",
- "value": 5
}
]
}
]
}
], - "decimalPlaces": {
- "USD": 2,
- "UAH": 0
}
}
Remove fare quote, using FX command.
pnr required | string (pnr) Passenger name record (PNR) |
fareQuoteList required | Array of integers List of fare quote indexes. |
{- "pnr": "YYQQ55",
- "fareQuoteList": [
- 0
]
}
{- "errorName": "ExtRuntimeError.FQWasNotCreated",
- "errorMessage": "string",
- "errorData": { }
}
fareQuoteHash | string Unique hash for FQ. |
object (Commission) Commission values, in case of available field with null value this field is required | |
Paid by cash. (object) or Paid by invoice. (object) or Paid by card. (object) or Paid by custom form of payment. (object) (FormOfPayment) | |
passengers | Array of integers List of passengers to be printed for |
{- "fareQuoteHash": "string",
- "commission": {
- "type": "Z",
- "value": 0
}, - "fop": {
- "type": "cash",
- "amount": 0
}, - "passengers": [
- 0
]
}
{- "ticket": {
- "ticketNumber": "string"
}
}
Using terminal commands FZS/FZI will create a dictionary of currency rates, including NUCs.
Array of objects Currency info. | |
date | string Currency rates date. |
{- "currencies": [
- {
- "from": "string",
- "to": "string"
}
], - "date": "string"
}
{- "errorName": "ExtRuntimeError.FQWasNotCreated",
- "errorMessage": "string",
- "errorData": { }
}
Using terminal commands FZS/FZI, convert dictionary of amounts to another currency, including NUCs.
required | object Convertation info. |
{- "amounts": {
- "property1": {
- "from": "USD",
- "to": "UAH",
- "amount": 5555,
- "date": "2019-01-21T09:40:00.000Z"
}, - "property2": {
- "from": "USD",
- "to": "UAH",
- "amount": 5555,
- "date": "2019-01-21T09:40:00.000Z"
}
}
}
{- "property1": {
- "from": "USD",
- "to": "UAH",
- "amount": 5555,
- "convertedAmount": 175542
}, - "property2": {
- "from": "USD",
- "to": "UAH",
- "amount": 5555,
- "convertedAmount": 175542
}
}
uAPI-based availability, corresponds to uapi-json method.
required | Array of objects List of route legs. |
required | object Object groupped by passenger type i.e. ADT. |
carriers | Array of strings Carrier short code - PS, LO, etc. |
{- "legs": [
- {
- "from": "KBP",
- "to": "PRG",
- "departureDate": "2018-05-16T00:00:00.000Z"
}
], - "passengers": {
- "property1": 0,
- "property2": 0
}, - "carriers": [
- "LO",
- "PS"
]
}
[- {
- "airline": "LO",
- "departure": "2019-01-02T07:35:00.000Z",
- "arriaval": "2019-01-02T09:55:00.000Z",
- "bookingClass": "U",
- "duration": [
- 0
], - "flightNumber": 777,
- "from": "string",
- "to": "string",
- "group": 0,
- "isFlown": true,
- "plane": [
- 321
], - "serviceClass": "Business",
- "status": "HK",
- "hash": "d41d8cd98f00b204e9800998ecf8427e",
- "uapi_segment_ref": "wephmhBAAA/B4eQ4xFAAAA=="
}
]
Simply add new segments and save the booking.
airline required | string Airline code. |
departure required | string Date in ISO format. |
bookingClass required | string <= 1 characters One-letter code of booking class. |
flightNumber required | integer Flight number from air company. |
from required | string IATA code. |
to required | string IATA code. |
isSaved | boolean If this segment currently stored in booking file. Should be false, when adding new segment during exchange. |
[- {
- "airline": "LO",
- "departure": "2019-01-02T07:35:00.000Z",
- "bookingClass": "U",
- "flightNumber": 777,
- "from": "string",
- "to": "string",
- "isSaved": true
}
]
Remove segments, objects from booking response can be passed here. Segments will be removed based on computed hash.
pnr required | string (pnr) Passenger name record (PNR) |
required | Array of Segment (object) or strings List of segments data. |
{- "pnr": "YYQQ55",
- "segmentsData": [
- {
- "airline": "LO",
- "departure": "2019-01-02T07:35:00.000Z",
- "bookingClass": "U",
- "flightNumber": 777,
- "from": "string",
- "to": "string",
- "isSaved": true
}
]
}
{- "errorName": "ExtRuntimeError.FQWasNotCreated",
- "errorMessage": "string",
- "errorData": { }
}
Calculates ADC, and/or refund based on ticket data, fare quote data and additional parameters if provided.
pnr required | string (pnr) Passenger name record (PNR) |
ticketNumber required | string (ticket-number) Ticket number (13-digit). |
object Base price values to perform calculation in case of IT/BT ticket. | |
object Exchange values to apply on calculation. | |
fareQuoteHash required | string Hash of fare quote you want to use for calculation. |
{- "pnr": "YYQQ55",
- "ticketNumber": "0809903317384",
- "ticketData": {
- "basePrice": "USD766",
- "equivalentBasePrice": "UAH20456"
}, - "exchangeData": {
- "taxes": [
- {
- "type": "E5",
- "ticket": "UAH100",
- "fareQuote": "UAH250",
- "adcAmount": "UAH100",
- "refundAmount": "UAH150",
- "collectAdc": true,
- "doRefund": false
}
], - "basePrice": {
- "ticket": "USD500",
- "fareQuote": "USD600",
- "adcAmount": "USD100",
- "refundAmount": "USD0",
- "doRefund": true
}, - "equivalentBasePrice": {
- "ticket": "UAH5000",
- "fareQuote": "UAH15000",
- "adcAmount": "UAH10000",
- "refundAmount": "UAH0",
- "doRefund": true
}, - "total": {
- "adcAmount": "UAH10050",
- "refundAmount": "UAH500"
}, - "penaltyData": {
- "type": "absent"
}
}, - "fareQuoteHash": "d41d8cd98f00b204e9800998ecf8427e"
}
{- "pnr": "YYQQ55",
- "ticketNumber": "0809903317384",
- "ticketData": {
- "basePrice": "USD766",
- "equivalentBasePrice": "UAH20456"
}, - "decimalPlaces": {
- "USD": 2,
- "UAH": 0
}, - "exchangeData": {
- "taxes": [
- {
- "type": "E5",
- "ticket": "UAH100",
- "fareQuote": "UAH250",
- "adcAmount": "UAH100",
- "refundAmount": "UAH150",
- "collectAdc": true,
- "doRefund": false
}
], - "basePrice": {
- "ticket": "USD500",
- "fareQuote": "USD600",
- "adcAmount": "USD100",
- "refundAmount": "USD0",
- "doRefund": true
}, - "equivalentBasePrice": {
- "ticket": "UAH5000",
- "fareQuote": "UAH15000",
- "adcAmount": "UAH10000",
- "refundAmount": "UAH0",
- "doRefund": true
}, - "total": {
- "adcAmount": "UAH10050",
- "refundAmount": "UAH500"
}, - "penaltyData": {
- "type": "absent"
}
}, - "fareQuote": {
- "index": 2,
- "status": "Reserved",
- "calculationDate": "2019-05-04T00:00:00.000Z",
- "calculationType": "FQ.T",
- "effectiveDate": "2019-01-20T23:00:00.000Z",
- "endorsement": "NONREF- NO CHNG",
- "hasNetData": true,
- "hash": "d41d8cd98f00b204e9800998ecf8427e",
- "isAlreadyUpdated": true,
- "it": true,
- "tourCode": "string",
- "bt": true,
- "passengersIndexes": [
- 0
], - "platingCarrier": "PS",
- "segments": [
- {
- "airline": "LO",
- "departure": "2019-01-02T07:35:00.000Z",
- "arriaval": "2019-01-02T09:55:00.000Z",
- "bookingClass": "U",
- "duration": [
- 0
], - "flightNumber": 777,
- "from": "string",
- "to": "string",
- "group": 0,
- "isFlown": true,
- "plane": [
- 321
], - "serviceClass": "Business",
- "status": "HK",
- "hash": "d41d8cd98f00b204e9800998ecf8427e",
- "uapi_segment_ref": "wephmhBAAA/B4eQ4xFAAAA=="
}
], - "pricingInfos": [
- {
- "baggage": [
- {
- "amount": 23,
- "units": "piece"
}
], - "basePrice": "KRW2400000",
- "equivalentBasePrice": "CZK50000",
- "totalPrice": "KRW2400000",
- "taxes": "CZK155",
- "fareCalculation": "S-SEL OK X/PRG OK ROM 779.37 OK X/PRG OK SEL 474.78 NUC1254.15",
- "roe": 1116.28375,
- "timeToReprice": "string",
- "farePricingMethod": "ManualFare",
- "farePricingType": "StoredFare",
- "passengers": [
- {
- "index": 0,
- "firstName": "string",
- "lastName": "string",
- "ageCategory": "string",
- "uapi_passenger_ref": "wephmhBAAA/BqRQ4xFAAAA==",
- "amount": "string",
- "isTicketed": "Is ticketed.",
- "status": "B",
- "ticketNumber": "0809903317384"
}
], - "segments": [
- {
- "index": 3,
- "baggage": {
- "amount": 23,
- "units": "piece"
}, - "fareBasisCode": "TSTDKR",
- "notValidBefore": "2024-04-17",
- "notValidAfter": "2024-04-17"
}
], - "taxesInfo": [
- {
- "type": "XF",
- "value": 145,
- "details": [
- {
- "airport": "JFK",
- "value": 5
}
]
}
]
}
], - "decimalPlaces": {
- "USD": 2,
- "UAH": 0
}
}
}
Prepares exchange fare quote based on ticket data, fare quote data, and additional parameters if provided.
fareQuoteHash required | string Hash of fare quote you want to use for exchange. |
pnr required | string (pnr) Passenger name record (PNR) |
ticketNumber required | string (ticket-number) Ticket number (13-digit). |
suppressFareBasisValidationWarnings | boolean If fare basis validation should be suppressed. Probably validated by human. |
object Exchange values to apply during exchange. |
{- "fareQuoteHash": "d41d8cd98f00b204e9800998ecf8427e",
- "pnr": "YYQQ55",
- "ticketNumber": "0809903317384",
- "suppressFareBasisValidationWarnings": true,
- "exchangeData": {
- "it": true,
- "bt": true,
- "commission": {
- "type": "Z",
- "value": 0
}, - "basePrice": {
- "ticket": "USD500",
- "fareQuote": "USD600",
- "adcAmount": "USD100",
- "refundAmount": "USD0",
- "doRefund": true
}, - "equivalentBasePrice": {
- "ticket": "UAH5000",
- "fareQuote": "UAH15000",
- "adcAmount": "UAH10000",
- "refundAmount": "UAH0",
- "doRefund": true
}, - "formOfPayment": [
- {
- "type": "cash",
- "amount": 0
}
], - "penaltyData": {
- "type": "absent"
}, - "taxes": [
- {
- "type": "E5",
- "ticket": "UAH100",
- "fareQuote": "UAH250",
- "adcAmount": "UAH100",
- "refundAmount": "UAH150",
- "collectAdc": true,
- "doRefund": false
}
]
}
}
[- {
- "status": "PREPARED_FQ",
- "exchangeScreens": [
- {
- "exchangeStep": "EXCHANGE_STEP_RESOLVE_FQ",
- "screen": "string",
- "command": "string"
}
], - "exchangeDetails": {
- "fq": {
- "index": 2,
- "status": "Reserved",
- "calculationDate": "2019-05-04T00:00:00.000Z",
- "calculationType": "FQ.T",
- "effectiveDate": "2019-01-20T23:00:00.000Z",
- "endorsement": "NONREF- NO CHNG",
- "hasNetData": true,
- "hash": "d41d8cd98f00b204e9800998ecf8427e",
- "isAlreadyUpdated": true,
- "it": true,
- "tourCode": "string",
- "bt": true,
- "passengersIndexes": [
- 0
], - "platingCarrier": "PS",
- "segments": [
- {
- "airline": "LO",
- "departure": "2019-01-02T07:35:00.000Z",
- "arriaval": "2019-01-02T09:55:00.000Z",
- "bookingClass": "U",
- "duration": [
- 0
], - "flightNumber": 777,
- "from": "string",
- "to": "string",
- "group": 0,
- "isFlown": true,
- "plane": [
- 321
], - "serviceClass": "Business",
- "status": "HK",
- "hash": "d41d8cd98f00b204e9800998ecf8427e",
- "uapi_segment_ref": "wephmhBAAA/B4eQ4xFAAAA=="
}
], - "pricingInfos": [
- {
- "baggage": [
- {
- "amount": 23,
- "units": "piece"
}
], - "basePrice": "KRW2400000",
- "equivalentBasePrice": "CZK50000",
- "totalPrice": "KRW2400000",
- "taxes": "CZK155",
- "fareCalculation": "S-SEL OK X/PRG OK ROM 779.37 OK X/PRG OK SEL 474.78 NUC1254.15",
- "roe": 1116.28375,
- "timeToReprice": "string",
- "farePricingMethod": "ManualFare",
- "farePricingType": "StoredFare",
- "passengers": [
- {
- "index": 0,
- "firstName": "string",
- "lastName": "string",
- "ageCategory": "string",
- "uapi_passenger_ref": "wephmhBAAA/BqRQ4xFAAAA==",
- "amount": "string",
- "isTicketed": "Is ticketed.",
- "status": "B",
- "ticketNumber": "0809903317384"
}
], - "segments": [
- {
- "index": 3,
- "baggage": {
- "amount": 23,
- "units": "piece"
}, - "fareBasisCode": "TSTDKR",
- "notValidBefore": "2024-04-17",
- "notValidAfter": "2024-04-17"
}
], - "taxesInfo": [
- {
- "type": "XF",
- "value": 145,
- "details": [
- {
- "airport": null,
- "value": null
}
]
}
]
}
], - "decimalPlaces": {
- "USD": 2,
- "UAH": 0
}
}, - "emdData": {
- "rfiCode": "string",
- "rfiSubcode": "string",
- "carrier": "LO",
- "status": "string",
- "amount": 580,
- "curreny": "USD",
- "feeDescription": "string",
- "documentNumber": "string",
- "actionOnIssue": "print",
- "email": "string"
}
}
}
]
Prints all necessary documents (ticket, emd) based on exchange fare quote.
Request for finish exchange.
pnr required | string (pnr) Passenger name record (PNR) |
fareQuoteHash required | string Fare quote hash received from exchange process response. |
printEmd | boolean If EMD should be issued. |
{- "pnr": "YYQQ55",
- "fareQuoteHash": "d41d8cd98f00b204e9800998ecf8427e",
- "printEmd": true
}
{- "ticket": {
- "ticketNumber": 809903317384
}
}
Prepares refund calculation to get refund data: refund amount and possible taxes to refund. If you want to make a full refund (no used cash/credit amount, no cancellation charge, refund all taxes), do not include refundData object into the request data
ticketNumber required | string number of the ticket that is going to be refunded |
object main refund amounts and refundable taxes |
{- "ticketNumber": "0809903317384",
- "refundData": {
- "commission": {
- "type": "Z",
- "value": 0
}, - "cashPaid": "3000",
- "cashUsed": "1000",
- "cardPaid": "2000",
- "cardUsed": "500",
- "totalTaxPaid": "973",
- "cancellationCharge": "700",
- "taxes": [
- {
- "type": "XF",
- "value": 145,
- "details": [
- {
- "airport": "JFK",
- "value": 5
}
]
}
], - "remarksLine": [
- "refund due to flight cancel"
], - "waiverCode": "WXB6GAZE21",
- "creditCardData": {
- "code": "AX",
- "number": "373900000000000",
- "expiryDate": "1225"
}, - "commandModifiers": {
- "routingCode": "42"
}
}
}
{- "screens": [
- {
- "refundStep": "REFUND_STEP_PAID_USED",
- "screen": "string",
- "command": "string"
}
], - "commandModifiers": {
- "routingCode": ""
}, - "commission": {
- "type": "Z",
- "value": 0
}, - "totalUsedAmount": {
- "cashUsedAmount": "string",
- "cardUsedAmount": "string"
}, - "totalPaidAmount": {
- "cashPaidAmount": "2000",
- "creditPaidAmount": "1500"
}, - "totalTaxPaid": "1251",
- "refundTaxes": [
- {
- "type": "XF",
- "value": 145,
- "details": [
- {
- "airport": "JFK",
- "value": 5
}
]
}
], - "refundMaskTaxes": [
- {
- "type": "XF",
- "value": 145,
- "details": [
- {
- "airport": "JFK",
- "value": 5
}
]
}
], - "creditCardData": {
- "code": "AX",
- "number": "************0000",
- "numberMasked": "XXXXXXXXXXXX1234",
- "expiryDate": "**12"
}, - "totalRefundAmount": {
- "cashRefundAmount": "1000",
- "creditRefundAmount": "1000"
}, - "calculationMadeWithAutoValues": true,
- "autoRefund": true,
- "fopTypes": [
- "CASH"
]
}
Process ticket refund based on refund data: refund amount and refundable taxes. If you want to make a full refund (no used cash/credit amount, no cancellation charge, refund all taxes), do not include refundData object into the request data
ticketNumber required | string number of the ticket that is going to be refunded |
object main refund amounts and refundable taxes |
{- "ticketNumber": "0809903317384",
- "refundData": {
- "commission": {
- "type": "Z",
- "value": 0
}, - "cashPaid": "3000",
- "cashUsed": "1000",
- "cardPaid": "2000",
- "cardUsed": "500",
- "totalTaxPaid": "973",
- "cancellationCharge": "700",
- "taxes": [
- {
- "type": "XF",
- "value": 145,
- "details": [
- {
- "airport": "JFK",
- "value": 5
}
]
}
], - "remarksLine": [
- "refund due to flight cancel"
], - "waiverCode": "WXB6GAZE21",
- "creditCardData": {
- "code": "AX",
- "number": "373900000000000",
- "expiryDate": "1225"
}, - "commandModifiers": {
- "routingCode": "42"
}
}
}
{- "screens": [
- {
- "refundStep": "REFUND_STEP_PAID_USED",
- "screen": "string",
- "command": "string"
}
], - "commandModifiers": {
- "routingCode": ""
}, - "commission": {
- "type": "Z",
- "value": 0
}, - "totalUsedAmount": {
- "cashUsedAmount": "string",
- "cardUsedAmount": "string"
}, - "totalPaidAmount": {
- "cashPaidAmount": "2000",
- "creditPaidAmount": "1500"
}, - "totalTaxPaid": "1251",
- "refundTaxes": [
- {
- "type": "XF",
- "value": 145,
- "details": [
- {
- "airport": "JFK",
- "value": 5
}
]
}
], - "refundMaskTaxes": [
- {
- "type": "XF",
- "value": 145,
- "details": [
- {
- "airport": "JFK",
- "value": 5
}
]
}
], - "creditCardData": {
- "code": "AX",
- "number": "************0000",
- "numberMasked": "XXXXXXXXXXXX1234",
- "expiryDate": "**12"
}, - "totalRefundAmount": {
- "cashRefundAmount": "1000",
- "creditRefundAmount": "1000"
}, - "calculationMadeWithAutoValues": true,
- "autoRefund": true,
- "fopTypes": [
- "CASH"
]
}
Organization ID param will be received from the user's token, who makes this operation
groupName required | string (group-name) Group name |
required | object (acl-permissions) |
{- "groupName": "Full Access",
- "permissions": {
- "bookingManagement": true,
- "issue": false,
- "void": true,
- "exchangeCalculation": true,
- "exchange": true,
- "finishExchange": false,
- "refundCalculation": true,
- "refund": false
}
}
{- "errorName": "ExtRuntimeError.FQWasNotCreated",
- "errorMessage": "string",
- "errorData": { }
}
Organization ID param will be received from the user's token, who makes this operation
groupId required | string (group-id) Example: WmDhdJ239KAv0iWq group ID. |
{- "groupId": "WmDhdJ239KAv0iWq",
- "groupName": "Full Access",
- "permissions": {
- "bookingManagement": true,
- "issue": false,
- "void": true,
- "exchangeCalculation": true,
- "exchange": true,
- "finishExchange": false,
- "refundCalculation": true,
- "refund": false
}, - "isDefault": false
}
should be used as endpoint for the group editing and for setting groups as default for the current organization. Organization ID param will be received from the user's token, who makes this operation
groupId required | string (group-id) Example: WmDhdJ239KAv0iWq group ID. |
groupName required | string (group-name) Group name |
required | object (acl-permissions) |
{- "groupName": "Full Access",
- "permissions": {
- "bookingManagement": true,
- "issue": false,
- "void": true,
- "exchangeCalculation": true,
- "exchange": true,
- "finishExchange": false,
- "refundCalculation": true,
- "refund": false
}
}
{- "errorName": "ExtRuntimeError.FQWasNotCreated",
- "errorMessage": "string",
- "errorData": { }
}
should be used as endpoint for deleting ACL group Organization ID param will be received from the user's token, who makes this operation
groupId required | string (group-id) Example: WmDhdJ239KAv0iWq group ID. |
{- "errorName": "ExtRuntimeError.FQWasNotCreated",
- "errorMessage": "string",
- "errorData": { }
}
Organization ID param will be received from the user's token, who makes this operation
groupId required | string (group-id) Group ID |
{- "groupId": "WmDhdJ239KAv0iWq"
}
{- "errorName": "ExtRuntimeError.FQWasNotCreated",
- "errorMessage": "string",
- "errorData": { }
}
Organization ID param will be received from the user's token, who makes this operation
[- {
- "groupId": "WmDhdJ239KAv0iWq",
- "groupName": "Full Access",
- "permissions": {
- "bookingManagement": true,
- "issue": false,
- "void": true,
- "exchangeCalculation": true,
- "exchange": true,
- "finishExchange": false,
- "refundCalculation": true,
- "refund": false
}, - "isDefault": false
}
]
Organization ID param will be received from the user's token, who makes this operation
[- {
- "fullName": "Lazuy Hinva",
- "userId": "user:eu-west-1:4ec2c520-41db-4bbf-9500-c76c617ceec2",
- "groupId": "WmDhdJ239KAv0iWq"
}
]
Organization ID param will be received from the user's token, who makes this operation
groupId required | string (group-id) Example: WmDhdJ239KAv0iWq group ID. |
groupId required | string (group-id) Group ID |
{- "groupId": "WmDhdJ239KAv0iWq"
}
{- "errorName": "ExtRuntimeError.FQWasNotCreated",
- "errorMessage": "string",
- "errorData": { }
}
userId required | string (user-id) Example: user:eu-west-1:4ec2c520-41db-4bbf-9500-c76c617ceec2 user ID. |
[- {
- "pcc": "7J8J",
- "printers": {
- "itinerary": "ADB08C",
- "ticketing": "ADB08C",
- "mir": "ADB08C"
}
}
]
userId required | string (user-id) Example: user:eu-west-1:4ec2c520-41db-4bbf-9500-c76c617ceec2 user ID. |
pcc | string (pcc) PCC of consolidator Agency. |
object (printers) |
{- "pcc": "7J8J",
- "printers": {
- "itinerary": "ADB08C",
- "ticketing": "ADB08C",
- "mir": "ADB08C"
}
}
Send eligible for the revalidation ticket's coupons. Result will be list of success/error messages for each sent segment
pnr required | string (pnr) Passenger name record (PNR) |
required | Array of objects array of ticket (or tickets in case of conjuction ticket) revalidation data |
{- "pnr": "YYQQ55",
- "revalidationData": [
- {
- "ticketNumber": "0809903317384",
- "linkedCouponData": [
- {
- "couponNumber": 3,
- "segmentIndex": 2,
- "notValidBefore": "2024-04-17",
- "notValidAfter": "2024-04-17"
}
]
}
]
}
[- {
- "ticketNumber": "0809903317384",
- "couponNumber": 3,
- "success": true,
- "error": { }
}
]
{- "id": "string",
- "agencyName": "string",
- "email": "string",
- "description": "string",
- "logo": "string",
- "status": "pending",
- "autoConfirm": true,
- "defaultConfig": {
- "fops": [
- "card"
], - "pccs": [
- "string"
], - "operations": [
- 0
], - "minBalance": 0,
- "restrictions": [
- { }
]
}
}
id required | string UUID of Consolidator. |
dateStart | string <date> Start date of period. |
dateEnd | string <date> End date of period. |
[- {
- "id": 0,
- "owner": {
- "id": "string",
- "pcc": "string"
}, - "keeper": {
- "id": "string",
- "pcc": "string"
}, - "datetime": "string",
- "amount": "string",
- "operationType": "string",
- "username": "string",
- "meta": {
- "pnr": "YYQQ55",
- "documentNumber": "string",
- "serviceCharge": null,
- "formOfPayment": "string",
- "card": "string"
}
}
]
id required | string UUID of Consolidator. |
dateStart | string <date> Start date of period. |
dateEnd | string <date> End date of period. |
[- {
- "operationType": "string",
- "count": 0
}
]
[- {
- "id": "string",
- "agencyName": "string",
- "email": "string",
- "description": "string",
- "logo": "string",
- "configuration": {
- "fops": [
- "card"
], - "pccs": [
- "string"
], - "operations": [
- 0
], - "minBalance": 0,
- "restrictions": [
- { }
]
}
}
]
id required | string UUID of Subagent. |
{- "id": "string",
- "agencyName": "string",
- "email": "string",
- "description": "string",
- "logo": "string",
- "configuration": {
- "fops": [
- "card"
], - "pccs": [
- "string"
], - "operations": [
- 0
], - "minBalance": 0,
- "restrictions": [
- { }
]
}
}
id required | string UUID of Subagent. |
status | string One of possible statuses for Consolidator and Subagent relations. See Consolidator#status. |
{- "status": "string"
}
id required | string UUID of Subagent. |
dateStart | string <date> Start date of period. |
dateEnd | string <date> End date of period. |
[- {
- "id": 0,
- "owner": {
- "id": "string",
- "pcc": "string"
}, - "keeper": {
- "id": "string",
- "pcc": "string"
}, - "datetime": "string",
- "amount": "string",
- "operationType": "string",
- "username": "string",
- "meta": {
- "pnr": "YYQQ55",
- "documentNumber": "string",
- "serviceCharge": null,
- "formOfPayment": "string",
- "card": "string"
}
}
]
id required | string UUID of Subagent. |
dateStart | string <date> Start date of period. |
dateEnd | string <date> End date of period. |
[- {
- "operationType": "string",
- "count": 0
}
]
id required | string UUID of Subagent or Group. |
fops | Array of strings Items Enum: "card" "cash" "invoice" "other" Array of allowed forms of payment that can be used by current Subagent. |
pccs | Array of strings Array of allowed pcc for usage. |
operations | Array of numbers Array of id's of available actions (issue, refund, etc.) can be done by Subagent. |
minBalance | integer TBD. Minimum balanced needed to work with Consolidator. |
restrictions | Array of objects Restrictions array that should be applied for Subagnets actions. |
{- "fops": [
- "card"
], - "pccs": [
- "string"
], - "operations": [
- 0
], - "minBalance": 0,
- "restrictions": [
- { }
]
}
id required | string UUID of Group. |
title | string Title of the Group. |
type | string Enum: "users" "agencies" |
entities | Array of strings |
{- "title": "string",
- "type": "users",
- "entities": [
- "string"
]
}
{- "id": "string"
}
nonce | string Braintree nonce |
amount | string Numeric amount, i.e. 19.99 |
{- "nonce": "string",
- "amount": "string"
}
{- "balance": 0
}
agencyName | string Name of the Agency. |
string Agency email. | |
description | string Agency Promo Text. |
logo | string Agency logo URL from storage (S3). |
{- "agencyName": "string",
- "email": "string",
- "description": "string",
- "logo": "string"
}
username | string User's email. |
password | string User's password. |
fullName | string Full name. |
managedMarkets | Array of strings List of markets of organizations which user is the admin (Country Admin) |
{- "username": "string",
- "password": "string",
- "fullName": "string",
- "tcp:air": [
- {
- "credentialsKey": "string",
- "pcc": "string"
}
], - "managedMarkets": [
- "string"
]
}
{- "id": "string",
- "username": "string",
- "avatar": "string",
- "fullName": "string",
- "tcp:air": [
- {
- "credentialsKey": "string",
- "pcc": "string"
}
], - "managedMarkets": [
- "string"
]
}
{- "id": "string",
- "username": "string",
- "avatar": "string",
- "fullName": "string",
- "tcp:air": [
- {
- "credentialsKey": "string",
- "pcc": "string"
}
], - "managedMarkets": [
- "string"
]
}
id required | string UUID. |
username | string User's email. |
password | string User's password. |
fullName | string Full name. |
managedMarkets | Array of strings List of markets of organizations which user is the admin (Country Admin) |
{- "username": "string",
- "password": "string",
- "fullName": "string",
- "tcp:air": [
- {
- "credentialsKey": "string",
- "pcc": "string"
}
], - "managedMarkets": [
- "string"
]
}
consolidator | integer ID of consolidator Agency. |
subagent | integer ID of subagent Agency. |
dateStart | string <date> Start date of period. |
dateEnd | string <date> End date of period. |
[- {
- "id": 0,
- "owner": {
- "id": "string",
- "pcc": "string"
}, - "keeper": {
- "id": "string",
- "pcc": "string"
}, - "datetime": "string",
- "amount": "string",
- "operationType": "string",
- "username": "string",
- "meta": {
- "pnr": "YYQQ55",
- "documentNumber": "string",
- "serviceCharge": null,
- "formOfPayment": "string",
- "card": "string"
}
}
]
consolidator | integer ID of consolidator Agency. |
subagent | integer ID of subagent Agency. |
dateStart | string <date> Start date of period. |
dateEnd | string <date> End date of period. |
[- {
- "operationType": "string",
- "count": 0
}
]
pcc required | string (pcc) PCC of consolidator Agency. |
object |
{- "pcc": "7J8J",
- "settings": {
- "printers": {
- "itinerary": "ADB08C",
- "ticketing": "ADB08C",
- "mir": "ADB08C"
}, - "skipTicketingPrinterCheck": false,
- "allowLocalPrinterSettings": true
}
}
pcc | string (pcc) Example: pcc=7J8J PCC of consolidator Agency. |
{- "cmToken": "xikos-lifik-kobah-gexek-fomox",
- "credentialsKey": "master:XXXX",
- "enableGdsCommission": true,
- "pcc": "7J8J",
- "settings": {
- "skipTicketingPrinterCheck": false,
- "allowLocalPrinterSettings": true,
- "printers": {
- "itinerary": "ADB08C",
- "ticketing": "ADB08C",
- "mir": "ADB08C"
}
}
}
Returns a list of messages related to the country provided in the URL param.
country required | string Example: UKRAINE Country. |
[- {
- "id": "string",
- "created_at": "2019-11-22T09:29:31.571Z",
- "countries": [
- "UKRAINE"
], - "message": "string",
- "type": "critical"
}
]
Returns a list of operations performed on tickets, such as exchange, issue, void
[- {
- "pnr": "YYQQ55",
- "ticketNumber": "0809903317384",
- "operationType": "AIR-fq-print-ticket",
- "currency": "USD",
- "amount": 23000
}
]
Get notification message to show on the login screen for any visitor
[- {
- "type": "BEFORE_LOGIN",
- "content": {
- "title": "Exchange operation update!",
- "message": "string",
- "priority": "info"
}, - "enabled": false,
- "filters": {
- "showUntil": "2024-05-29",
- "userRole": "admin",
- "userHasPCC": true
}, - "hash": "0676578e6a9d339ae157c06bbb32133d0f00a856f7ba4878189cc34b13db1327"
}
]
Get notification messages filtered for particular user (messages cache 1 minute, user flags cache: 30 minutes)
[- {
- "type": "BEFORE_LOGIN",
- "content": {
- "title": "Exchange operation update!",
- "message": "string",
- "priority": "info"
}, - "enabled": false,
- "filters": {
- "showUntil": "2024-05-29",
- "userRole": "admin",
- "userHasPCC": true
}, - "hash": "0676578e6a9d339ae157c06bbb32133d0f00a856f7ba4878189cc34b13db1327"
}
]
Get notification messages for the configuration (no cache or filtering)
[- {
- "type": "BEFORE_LOGIN",
- "content": {
- "title": "Exchange operation update!",
- "message": "string",
- "priority": "info"
}, - "enabled": false,
- "filters": {
- "showUntil": "2024-05-29",
- "userRole": "admin",
- "userHasPCC": true
}, - "hash": "0676578e6a9d339ae157c06bbb32133d0f00a856f7ba4878189cc34b13db1327"
}
]
Set configuration and content for the notification message.
type required | string (type) Enum: "BEFORE_LOGIN" "AFTER_LOGIN" message type to be shown |
required | object (content) |
enabled required | boolean (enabled) enabled/disabled entity status |
required | object (filters) |
{- "type": "BEFORE_LOGIN",
- "content": {
- "title": "Exchange operation update!",
- "message": "string",
- "priority": "info"
}, - "enabled": false,
- "filters": {
- "showUntil": "2024-05-29",
- "userRole": "admin",
- "userHasPCC": true
}
}
{- "errorName": "ExtRuntimeError.SystemError",
- "errorMessage": "System error occured. Please, check the logs",
- "errorData": { }
}
TCP Internaly API Setup for internal API service client-side:
openssl genrsa -out my_client.key 2048
openssl req -new -key my_client.key -out my_client.csr
curl --key my_client.key --cert my_client.pem https://api.yourdomain.com
you will get booking, tickets and eligibility information for this pnr.
pnr required | string (pnr) Example: YYQQ55 Passenger name record (PNR) |
x-pcc | string Example: 79YE PCC. |
{- "booking": {
- "type": "uAPI",
- "pnr": "YYQQ55",
- "version": 13,
- "uapi_ur_locator": "THE83D",
- "uapi_reservation_locator": "Z6N7G5",
- "airlineLocatorInfo": [
- {
- "createDate": "2019-01-21T09:40:00.000Z",
- "supplierCode": "TK",
- "locatorCode": "RIAXNL"
}
], - "createdAt": "2019-01-21T10:55:48.485Z",
- "hostCreatedAt": "2018-12-20T00:00:00.000Z",
- "modifiedAt": "2019-01-21T11:13:07.912Z",
- "fareQuotes": [
- {
- "index": 2,
- "status": "Reserved",
- "calculationDate": "2019-05-04T00:00:00.000Z",
- "calculationType": "FQ.T",
- "effectiveDate": "2019-01-20T23:00:00.000Z",
- "endorsement": "NONREF- NO CHNG",
- "hasNetData": true,
- "hash": "d41d8cd98f00b204e9800998ecf8427e",
- "isAlreadyUpdated": true,
- "it": true,
- "tourCode": "string",
- "bt": true,
- "passengersIndexes": [
- 0
], - "platingCarrier": "PS",
- "segments": [
- {
- "airline": "LO",
- "departure": "2019-01-02T07:35:00.000Z",
- "arriaval": "2019-01-02T09:55:00.000Z",
- "bookingClass": "U",
- "duration": [
- 0
], - "flightNumber": 777,
- "from": "string",
- "to": "string",
- "group": 0,
- "isFlown": true,
- "plane": [
- 321
], - "serviceClass": "Business",
- "status": "HK",
- "hash": "d41d8cd98f00b204e9800998ecf8427e",
- "uapi_segment_ref": "wephmhBAAA/B4eQ4xFAAAA=="
}
], - "pricingInfos": [
- {
- "baggage": [
- {
- "amount": 23,
- "units": "piece"
}
], - "basePrice": "KRW2400000",
- "equivalentBasePrice": "CZK50000",
- "totalPrice": "KRW2400000",
- "taxes": "CZK155",
- "fareCalculation": "S-SEL OK X/PRG OK ROM 779.37 OK X/PRG OK SEL 474.78 NUC1254.15",
- "roe": 1116.28375,
- "timeToReprice": "string",
- "farePricingMethod": "ManualFare",
- "farePricingType": "StoredFare",
- "passengers": [
- {
- "index": 0,
- "firstName": "string",
- "lastName": "string",
- "ageCategory": "string",
- "uapi_passenger_ref": "wephmhBAAA/BqRQ4xFAAAA==",
- "amount": "string",
- "isTicketed": "Is ticketed.",
- "status": "B",
- "ticketNumber": "0809903317384"
}
], - "segments": [
- {
- "index": 3,
- "baggage": {
- "amount": 23,
- "units": "piece"
}, - "fareBasisCode": "TSTDKR",
- "notValidBefore": "2024-04-17",
- "notValidAfter": "2024-04-17"
}
], - "taxesInfo": [
- {
- "type": "XF",
- "value": 145,
- "details": [
- {
- "airport": null,
- "value": null
}
]
}
]
}
], - "decimalPlaces": {
- "USD": 2,
- "UAH": 0
}
}
], - "segments": [
- {
- "airline": "LO",
- "departure": "2019-01-02T07:35:00.000Z",
- "arriaval": "2019-01-02T09:55:00.000Z",
- "bookingClass": "U",
- "duration": [
- 0
], - "flightNumber": 777,
- "from": "string",
- "to": "string",
- "group": 0,
- "isFlown": true,
- "plane": [
- 321
], - "serviceClass": "Business",
- "status": "HK",
- "hash": "d41d8cd98f00b204e9800998ecf8427e",
- "uapi_segment_ref": "wephmhBAAA/B4eQ4xFAAAA=="
}
], - "serviceSegments": [
- { }
], - "passengers": [
- {
- "index": 0,
- "firstName": "string",
- "lastName": "string",
- "ageCategory": "string",
- "uapi_passenger_ref": "wephmhBAAA/BqRQ4xFAAAA=="
}
], - "emails": [
- "some@email.com"
], - "bookingPCC": "7J8J"
}, - "tickets": [
- {
- "source": "uapi",
- "pnr": "YYQQ55",
- "iataNumber": 99999992,
- "formOfPayment": [
- {
- "type": "cash",
- "amount": 0
}
], - "endorsement": "SKCHG SKCHG DUE TO OK724 CCLD-- FARE RESTRICTIONS APPLY",
- "ticketNumber": "0809903317384",
- "ticketingPcc": "7J8J",
- "platingCarrier": "PS",
- "issuedAt": "string",
- "passengers": [
- {
- "index": 0,
- "firstName": "string",
- "lastName": "string",
- "ageCategory": "string",
- "uapi_passenger_ref": "wephmhBAAA/BqRQ4xFAAAA=="
}
], - "tickets": [
- {
- "ticketNumber": "0809903317384",
- "coupons": [
- {
- "status": "EXCH",
- "airline": "LO",
- "flightNumber": 777,
- "bookingClass": "C",
- "from": "JFK",
- "to": "AMS",
- "departure": "string",
- "couponNumber": 1,
- "fareBasisCode": "TSTDKR",
- "notValidBefore": "2024-04-17",
- "notValidAfter": "2024-04-17"
}
]
}
], - "taxesInfoValid": true,
- "taxesInfo": [
- {
- "type": "XF",
- "value": 145,
- "details": [
- {
- "airport": "JFK",
- "value": 5
}
]
}
], - "paidTaxesInfo": [
- {
- "type": "XF",
- "value": 145,
- "details": [
- {
- "airport": "JFK",
- "value": 5
}
]
}
], - "paidTaxesInfoValid": true,
- "xfTaxesValid": true,
- "basePrice": "USD150.50",
- "basePriceIsSpecial": true,
- "equivalentBasePrice": "UAH2020",
- "equivalentBasePriceIsSpecial": true,
- "totalPrice": "string",
- "totalPriceIsSpecial": true,
- "tourCode": "string",
- "fareCalculation": "S-SEL OK X/PRG OK ROM 779.37 OK X/PRG OK SEL 474.78 NUC1254.15",
- "exchangedFor": 649903275037,
- "roe": 1116.28375,
- "it": true,
- "bt": true,
- "decimalPlaces": {
- "USD": 2,
- "UAH": 0
}
}
], - "eligibility": {
- "property1": {
- "resultType": "success",
- "data": {
- "TicketChangeEligibilityListResponse": {
- "TicketChangeEligibilityID": [
- {
- "@type": "TicketChangeEligibility",
- "exchangeable": "All",
- "refundable": "All",
- "objID": "ticketChangeEligibility_1",
- "Identifier": {
- "authority": "Travelport",
- "value": 809904069343
}, - "Penalties": {
- "Change": [
- {
- "@type": null,
- "penaltyTypes": [ ],
- "Penalty": [ ]
}
], - "Cancel": [
- {
- "@type": null,
- "penaltyTypes": [ ],
- "Penalty": [ ]
}
]
}, - "PassengerTypeCode": "ADT"
}
], - "Result": {
- "status": "Complete",
- "Warning": [
- {
- "@type": "WarningDetail",
- "StatusCode": 77,
- "Message": "Refund Quote Not Allowed - No Cat 33",
- "SourceDescription": "REFUND QUOTE NOT ALLOWED - NO CAT 33-Rapid Reprice input validation error from TPF"
}
]
}
}
}
}, - "property2": {
- "resultType": "success",
- "data": {
- "TicketChangeEligibilityListResponse": {
- "TicketChangeEligibilityID": [
- {
- "@type": "TicketChangeEligibility",
- "exchangeable": "All",
- "refundable": "All",
- "objID": "ticketChangeEligibility_1",
- "Identifier": {
- "authority": "Travelport",
- "value": 809904069343
}, - "Penalties": {
- "Change": [
- {
- "@type": null,
- "penaltyTypes": [ ],
- "Penalty": [ ]
}
], - "Cancel": [
- {
- "@type": null,
- "penaltyTypes": [ ],
- "Penalty": [ ]
}
]
}, - "PassengerTypeCode": "ADT"
}
], - "Result": {
- "status": "Complete",
- "Warning": [
- {
- "@type": "WarningDetail",
- "StatusCode": 77,
- "Message": "Refund Quote Not Allowed - No Cat 33",
- "SourceDescription": "REFUND QUOTE NOT ALLOWED - NO CAT 33-Rapid Reprice input validation error from TPF"
}
]
}
}
}
}
}
}
you will get booking, tickets and eligibility information for this ticket.
ticketNumber required | string (ticket-number) Example: 0809903317384 Ticket number (13-digit). |
x-pcc | string Example: 79YE PCC. |
{- "booking": {
- "type": "uAPI",
- "pnr": "YYQQ55",
- "version": 13,
- "uapi_ur_locator": "THE83D",
- "uapi_reservation_locator": "Z6N7G5",
- "airlineLocatorInfo": [
- {
- "createDate": "2019-01-21T09:40:00.000Z",
- "supplierCode": "TK",
- "locatorCode": "RIAXNL"
}
], - "createdAt": "2019-01-21T10:55:48.485Z",
- "hostCreatedAt": "2018-12-20T00:00:00.000Z",
- "modifiedAt": "2019-01-21T11:13:07.912Z",
- "fareQuotes": [
- {
- "index": 2,
- "status": "Reserved",
- "calculationDate": "2019-05-04T00:00:00.000Z",
- "calculationType": "FQ.T",
- "effectiveDate": "2019-01-20T23:00:00.000Z",
- "endorsement": "NONREF- NO CHNG",
- "hasNetData": true,
- "hash": "d41d8cd98f00b204e9800998ecf8427e",
- "isAlreadyUpdated": true,
- "it": true,
- "tourCode": "string",
- "bt": true,
- "passengersIndexes": [
- 0
], - "platingCarrier": "PS",
- "segments": [
- {
- "airline": "LO",
- "departure": "2019-01-02T07:35:00.000Z",
- "arriaval": "2019-01-02T09:55:00.000Z",
- "bookingClass": "U",
- "duration": [
- 0
], - "flightNumber": 777,
- "from": "string",
- "to": "string",
- "group": 0,
- "isFlown": true,
- "plane": [
- 321
], - "serviceClass": "Business",
- "status": "HK",
- "hash": "d41d8cd98f00b204e9800998ecf8427e",
- "uapi_segment_ref": "wephmhBAAA/B4eQ4xFAAAA=="
}
], - "pricingInfos": [
- {
- "baggage": [
- {
- "amount": 23,
- "units": "piece"
}
], - "basePrice": "KRW2400000",
- "equivalentBasePrice": "CZK50000",
- "totalPrice": "KRW2400000",
- "taxes": "CZK155",
- "fareCalculation": "S-SEL OK X/PRG OK ROM 779.37 OK X/PRG OK SEL 474.78 NUC1254.15",
- "roe": 1116.28375,
- "timeToReprice": "string",
- "farePricingMethod": "ManualFare",
- "farePricingType": "StoredFare",
- "passengers": [
- {
- "index": 0,
- "firstName": "string",
- "lastName": "string",
- "ageCategory": "string",
- "uapi_passenger_ref": "wephmhBAAA/BqRQ4xFAAAA==",
- "amount": "string",
- "isTicketed": "Is ticketed.",
- "status": "B",
- "ticketNumber": "0809903317384"
}
], - "segments": [
- {
- "index": 3,
- "baggage": {
- "amount": 23,
- "units": "piece"
}, - "fareBasisCode": "TSTDKR",
- "notValidBefore": "2024-04-17",
- "notValidAfter": "2024-04-17"
}
], - "taxesInfo": [
- {
- "type": "XF",
- "value": 145,
- "details": [
- {
- "airport": null,
- "value": null
}
]
}
]
}
], - "decimalPlaces": {
- "USD": 2,
- "UAH": 0
}
}
], - "segments": [
- {
- "airline": "LO",
- "departure": "2019-01-02T07:35:00.000Z",
- "arriaval": "2019-01-02T09:55:00.000Z",
- "bookingClass": "U",
- "duration": [
- 0
], - "flightNumber": 777,
- "from": "string",
- "to": "string",
- "group": 0,
- "isFlown": true,
- "plane": [
- 321
], - "serviceClass": "Business",
- "status": "HK",
- "hash": "d41d8cd98f00b204e9800998ecf8427e",
- "uapi_segment_ref": "wephmhBAAA/B4eQ4xFAAAA=="
}
], - "serviceSegments": [
- { }
], - "passengers": [
- {
- "index": 0,
- "firstName": "string",
- "lastName": "string",
- "ageCategory": "string",
- "uapi_passenger_ref": "wephmhBAAA/BqRQ4xFAAAA=="
}
], - "emails": [
- "some@email.com"
], - "bookingPCC": "7J8J"
}, - "tickets": [
- {
- "source": "uapi",
- "pnr": "YYQQ55",
- "iataNumber": 99999992,
- "formOfPayment": [
- {
- "type": "cash",
- "amount": 0
}
], - "endorsement": "SKCHG SKCHG DUE TO OK724 CCLD-- FARE RESTRICTIONS APPLY",
- "ticketNumber": "0809903317384",
- "ticketingPcc": "7J8J",
- "platingCarrier": "PS",
- "issuedAt": "string",
- "passengers": [
- {
- "index": 0,
- "firstName": "string",
- "lastName": "string",
- "ageCategory": "string",
- "uapi_passenger_ref": "wephmhBAAA/BqRQ4xFAAAA=="
}
], - "tickets": [
- {
- "ticketNumber": "0809903317384",
- "coupons": [
- {
- "status": "EXCH",
- "airline": "LO",
- "flightNumber": 777,
- "bookingClass": "C",
- "from": "JFK",
- "to": "AMS",
- "departure": "string",
- "couponNumber": 1,
- "fareBasisCode": "TSTDKR",
- "notValidBefore": "2024-04-17",
- "notValidAfter": "2024-04-17"
}
]
}
], - "taxesInfoValid": true,
- "taxesInfo": [
- {
- "type": "XF",
- "value": 145,
- "details": [
- {
- "airport": "JFK",
- "value": 5
}
]
}
], - "paidTaxesInfo": [
- {
- "type": "XF",
- "value": 145,
- "details": [
- {
- "airport": "JFK",
- "value": 5
}
]
}
], - "paidTaxesInfoValid": true,
- "xfTaxesValid": true,
- "basePrice": "USD150.50",
- "basePriceIsSpecial": true,
- "equivalentBasePrice": "UAH2020",
- "equivalentBasePriceIsSpecial": true,
- "totalPrice": "string",
- "totalPriceIsSpecial": true,
- "tourCode": "string",
- "fareCalculation": "S-SEL OK X/PRG OK ROM 779.37 OK X/PRG OK SEL 474.78 NUC1254.15",
- "exchangedFor": 649903275037,
- "roe": 1116.28375,
- "it": true,
- "bt": true,
- "decimalPlaces": {
- "USD": 2,
- "UAH": 0
}
}
], - "eligibility": {
- "649903622555": {
- "resultType": "success",
- "data": {
- "TicketChangeEligibilityListResponse": {
- "TicketChangeEligibilityID": [
- {
- "@type": "TicketChangeEligibility",
- "exchangeable": "All",
- "refundable": "All",
- "objID": "ticketChangeEligibility_1",
- "Identifier": {
- "authority": "Travelport",
- "value": 809904069343
}, - "Penalties": {
- "Change": [
- {
- "@type": null,
- "penaltyTypes": [ ],
- "Penalty": [ ]
}
], - "Cancel": [
- {
- "@type": null,
- "penaltyTypes": [ ],
- "Penalty": [ ]
}
]
}, - "PassengerTypeCode": "ADT"
}
], - "Result": {
- "status": "Complete",
- "Warning": [
- {
- "@type": "WarningDetail",
- "StatusCode": 77,
- "Message": "Refund Quote Not Allowed - No Cat 33",
- "SourceDescription": "REFUND QUOTE NOT ALLOWED - NO CAT 33-Rapid Reprice input validation error from TPF"
}
]
}
}
}
}
}
}
Initiate guaranteed exchange process to get workbenchID Get guaranteed exchange offers according to PNR and send params
x-pcc | string Example: 79YE PCC. |
pnr required | string (pnr) Passenger name record (PNR) |
isDebug | boolean Default: false flag for adding debug data to the response |
Array of objects | |
exchangeSessionID | string The exchange session identifier. If added, the search request will be made in the session of this exchangeSessionID. In another case the new session will be created |
returnBrandedFaresInd | boolean Default: true By default Exchange Search returns branded fares. Set to false to disable the return of branded fares. |
required | Array of objects Defines one origin and destination (O&D) pair. Send one flightSearchCriteria for each O&D pair, or leg |
Array of objects Defines the type of passenger to search for. Send one PassengerCriteria for each passenger type code (PTC) | |
object Optional modifiers related to the journey, such as connections. | |
object Optional modifiers related to pricing, such as brands and account codes. Includes OrganizationInformation if sending account codes. Includes FareSelection if sending fare types. |
{- "pnr": "YYQQ55",
- "isDebug": false,
- "segmentsForChange": [
- {
- "flightNumber": 3945,
- "departureDate": "2023-05-15"
}
], - "exchangeSessionID": "1719042c-f033-4c4d-bdb6-f738b6cdc520",
- "returnBrandedFaresInd": false,
- "flightSearchCriteria": [
- {
- "departureDate": "2021-05-25",
- "departureTime": "11:20:00",
- "from": "WAW",
- "to": "KBP",
- "departureTimeRange": {
- "start": "11:20:00",
- "end": "17:20:00"
}
}
], - "passengerCriteria": [
- {
- "passengerTypeCode": "ADT",
- "number": 1,
- "age": 20,
- "specifiedPassengerTypeCodeOnlyInd": true
}
], - "searchModifiersAir": {
- "flightConnectionType": "NonStopDirect"
}, - "pricingModifiersAirChange": {
- "keepToBrandInd": true,
- "fareSelection": {
- "prohibitUnbundledFaresInd": true,
- "fareSelectionType": "PublicFaresOnly"
}, - "organizationInformation": [
- {
- "value": "APIARC",
- "supplier": "AA",
- "organizationCodeType": "Account"
}
]
}
}
{- "reservationData": { },
- "exchangeSessionID": "1719042c-f033-4c4d-bdb6-f738b6cdc520",
- "exchangeSearchResultsID": "c69f1362-2ca0-4136-b603-598e69841aad",
- "exchangeSearchResults": [
- {
- "exchangeSearchOfferID": "o0.0",
- "products": [
- {
- "productRefID": "p1",
- "flightSegments": [
- {
- "sequence": 1,
- "segmentRefID": "s1"
}
], - "passengerFlight": [
- {
- "quantity": 1,
- "type": "ADT",
- "flightProduct": [
- {
- "classOfService": "Y",
- "fareBasisCode": "Y1STD0",
- "fareType": "PublicFare",
- "brandRefID": "b1",
- "baggabeAllowanceList": [
- null
]
}
]
}
]
}
], - "priceData": {
- "currencyData": {
- "decimalPlace": 0,
- "value": "CZK"
}, - "base": 13585,
- "totalTaxes": 1028,
- "totalFees": 0,
- "totalPrice": 14613,
- "priceBreakdown": [
- {
- "quantity": 1,
- "requestedPassengerType": "ADT",
- "amountData": {
- "currencyData": {
- "decimalPlace": 0,
- "value": "CZK"
}, - "base": 13585,
- "taxesData": {
- "totalTaxes": 1028,
- "taxesList": [
- {
- "taxCode": null,
- "value": null
}
]
}, - "feesData": {
- "totalFees": 0,
- "feesList": [
- {
- "description": null,
- "feeAmountOrPercent": { }
}
], - "total": 14613
}
}, - "filedAmount": {
- "currencyData": "CZK",
- "decimalPlace": 0,
- "value": 13585
}, - "commission": {
- "application": "Partial",
- "percent": 10,
- "amount": 1000
}, - "netBasedAmount": {
- "currencyData": "CZK",
- "decimalPlace": 0,
- "value": 13585
}
}
]
}, - "termsAndConditionsData": {
- "baggageAllowance": [
- {
- "baggabeAllowanceNumber": 1,
- "passengerTypeCodes": [
- "ADT"
], - "baggageType": "FirstCheckedBag",
- "productRefID": "p1",
- "baggageItem": [
- {
- "quantity": 1,
- "baggageFee": {
- "code": "CZK",
- "value": 0
}, - "text": "UPTO50LB/23KG AND UPTO62LI/158LCM"
}
], - "text": [
- "1P|BAGGAGE DISCOUNTS MAY APPLY BASED ON FREQUENT FLYER STATUS/ONLINE CHECKIN/FORM OF PAYMENT/MILITARY/ETC\n"
]
}
], - "restrictions": [
- {
- "value": "* NONREF 13585 CZK\n"
}
], - "validatingAirline": [
- "LO"
], - "paymentTimeLimit": "2022-08-04T23:59:00.000Z",
- "fareGuaranteePolicy": [
- {
- "eligibleforADMReview": "Yes",
- "code": {
- "codeContent": "Travelport",
- "value": "G"
}
}
], - "fulfillmentMethod": [
- {
- "refundMethod": "RefundOriginalFOP",
- "changeFeeCollectionMethod": {
- "code": "CP",
- "value": "EMD",
- "changeFeeIssuedSeparatelyInd": false
}
}
]
}, - "modifyPrice": {
- "currencyData": {
- "decimalPlace": 0,
- "value": "CZK"
}, - "base": -100,
- "totalTaxes": 0,
- "totalFees": 0,
- "totalPrice": -100,
- "priceBreakdown": [
- {
- "quantity": 1,
- "requestedPassengerType": "ADT",
- "amountData": {
- "currencyData": {
- "decimalPlace": 0,
- "value": "CZK"
}, - "base": 0,
- "taxesData": {
- "totalTaxes": 0,
- "taxesList": [
- {
- "taxCode": null,
- "value": null
}
]
}, - "feesData": {
- "totalFees": 0,
- "feesList": [
- {
- "description": null,
- "feeAmountOrPercent": { }
}
], - "total": 14613
}
}, - "fareCalculation": "PRG LO WAW588.47NUC588.47END ROE23.084994 LO"
}
]
}
}
], - "referenceList": {
- "flightList": [
- {
- "duration": "PT1H20M",
- "carrier": "LO",
- "number": 524,
- "equipment": "E75",
- "segmentRefID": "s1",
- "departure": {
- "location": "PRG",
- "terminal": "T1",
- "date": "2023-06-30",
- "time": "09:55:00"
}, - "arrival": {
- "location": "WAW",
- "terminal": 1,
- "date": "2023-06-30",
- "time": "11:15:00"
}
}
], - "brandList": [
- {
- "name": "ECONOMY STANDARD",
- "tier": 2,
- "brandRefId": "b1"
}
]
}, - "debugInfo": [
- {
- "timestamp": 1681479719567,
- "info": {
- "operation": "get reservation data",
- "data": { }
}, - "message": "ID: CR511M_99"
}
]
}
Add optional exchange ticket params or make simple exchange operation
x-pcc | string Example: 79YE PCC. |
pnr required | string (pnr) Passenger name record (PNR) |
isDebug | boolean Default: false flag for adding debug data to the response |
exchangeSessionID required | string exchange session identifier |
required | object |
object offer optional modification params | |
object issue document params |
{- "pnr": "YYQQ55",
- "isDebug": false,
- "exchangeSessionID": "1719042c-f033-4c4d-bdb6-f738b6cdc520",
- "offerQueryObject": {
- "exchangeSearchResultsID": "c69f1362-2ca0-4136-b603-598e69841aad",
- "exchangeSearchOfferID": "o0.0"
}, - "modifiersQueryObject": {
- "documentOverrides": {
- "commissions": [
- {
- "amountCode": "USD",
- "value": 123
}
], - "tourCode": {
- "tourCodeType": "BT",
- "value": "TCS"
}, - "restrictions": [
- "NON Exchange"
], - "destinationPurpose": [
- {
- "destination": 1,
- "purpose": "Business"
}
], - "changeFeeCollection": {
- "extension": "Other_Value",
- "code": "D",
- "subCode": "997",
- "description": "REBOOKING",
- "value": "EMD",
- "taxIncludedInBaseAmountInd": true
}
}, - "fopCollection": [
- {
- "type": "cash",
- "cardData": {
- "expireDate": "0405",
- "code": "VI",
- "holderName": "JOHN D",
- "number": "4005520000000129",
- "cvv2": "381"
}, - "invoiceData": {
- "agentNonRefundableInd": true,
- "number": "34324343"
}, - "forfeitData": {
- "amount": {
- "code": "USD",
- "value": 863.4
}, - "baseAmount": {
- "code": "USD",
- "value": 863.4
}, - "totalTaxes": {
- "value": 23
}, - "individualTax": {
- "taxArray": [
- {
- "currency": "USD",
- "taxCode": "YQ",
- "value": 42
}
]
}
}, - "waiverCode": "ABC11019ER",
- "adcAmount": {
- "amountCode": "UAH",
- "amountValue": 10000
}, - "feesData": {
- "total": 12
}
}
]
}, - "issueQueryObject": {
- "issueDocument": true,
- "refundEMDForRefundableBalance": "REFUND"
}
}
[- {
- "number": "1253768045730",
- "travelerIdentifierRef": {
- "name": "DUVANOV OLEKSIIMR",
- "passengerTypeCode": "ADT",
- "travelerIdentifierRefID": "travelerRefId_1",
- "travelerIdentifierRefValue": "647e3dfd-ffcf-49ae-ab83-41e0e0c31a8d"
}, - "debugInfo": [
- {
- "timestamp": 1681479719567,
- "info": {
- "operation": "get reservation data",
- "data": { }
}, - "message": "ID: CR511M_99"
}
]
}
]
name required | string Agency name. |
defaultModule | string Enum: "home" "cbt" "co2" "qpc" Default module opened after login. |
market required | string Code of the country for which the organization is responsible for the market. |
{- "name": "string",
- "defaultModule": "home",
- "market": "string"
}
{- "organizationId": "string"
}
organizationId required | string UUID. |
organizationId | string UUID. |
name | string Agency name. |
transactionsEnabled | boolean Enable paid transactions. |
defaultModule | string Enum: "home" "cbt" "co2" "qpc" Default module opened after login. |
market | string Code of the country for which the organization is responsible for the market. |
podioId | string Podio ID. |
fakturoidId | string Fakturoid ID. |
{- "organizationId": "string",
- "name": "string",
- "transactionsEnabled": true,
- "defaultModule": "home",
- "market": "string",
- "podioId": "string",
- "fakturoidId": "string"
}
username | string Registered user identificator |
password | string Password for registered user identificator |
{- "username": "string",
- "password": "string"
}
{- "token": "string"
}
organizationId | string Provided for optional change of organization |
pcc | string Provided for optional change of pcc |
{- "organizationId": "string",
- "pcc": "string"
}
{- "token": "string"
}
username | string Registered user identificator |
password | string New password for registered user identificator |
{- "username": "string",
- "password": "string"
}
username | string Registered user identificator as email |
agencyName | string Agency name |
agencyId | string Assigned agency identificator |
fullName | string User's full name |
dailyRequests | integer Amount of daily requests |
baseCountry | string Country of residence |
shortIntroduction | string Short user introduction |
bspZones | string Billing and Settlement plan |
{- "username": "string",
- "agencyName": "string",
- "agencyId": "string",
- "fullName": "string",
- "dailyRequests": 0,
- "baseCountry": "string",
- "shortIntroduction": "string",
- "bspZones": "string"
}
{- "id": "string",
- "username": "string",
- "agencyName": "string",
- "created": "string"
}
registrationId | string Registration identificator to confirm |
{- "registrationId": "string"
}
{- "status": "string"
}
Return user data.
userId required | string UUID. |
{- "id": "string",
- "username": "string",
- "avatar": "string",
- "fullName": "string",
- "tcp:air": [
- {
- "credentialsKey": "string",
- "pcc": "string"
}
], - "managedMarkets": [
- "string"
]
}
userId required | string UUID. |
username | string User's email. |
password | string User's password. |
fullName | string Full name. |
managedMarkets | Array of strings List of markets of organizations which user is the admin (Country Admin) |
{- "username": "string",
- "password": "string",
- "fullName": "string",
- "tcp:air": [
- {
- "credentialsKey": "string",
- "pcc": "string"
}
], - "managedMarkets": [
- "string"
]
}