Sample - Third party extras
This document is designed to provide you with a sample journey that would allow you to use the
API to make a booking using products from a third party system.
Please note the products
defined in the journey are imaginary products and will not work in the test system, this journey
is for illustrative purposes only.
A typical booking journey
Starting with the id for an accommodation you are interested in, you can use the extras for accommodation endpoint to find any third party flights or car hire you may wish to purchase with the booking.
From each item in the extras response you will need to take the id, identifier, pricing, and encodedProductInformation values. As well as the encodedSearchRequest from the parent response.
Once an extra has been selected from the response, the detailed item information endpoint can be used to get detailed pricing information and importantly any options that need to be selected. i.e. checked in baggage for flights. This is an optional step. If this is not performed and no options are added to the basket, then the default/no cost options will be automatically selected.
A third party item can be added to a basket using the normal customer basket store endpoint. Add the values from the extras response to an item in the basket. If options are required, they can be added in the selected options array, assigned to a specific passenger. Passengers can be assigned using either the passengerId (for existing passengers) or passengerRph (for new passengers) properties.
When a basket has been stored, the customer basket to booking endpoint is used to create a booking, this will go to any third party systems and attempt to make the required purchases. If the third party system is unable to purchase the product, a booking will still be created. Agents will be able to see any third party errors on the booking.
Example messaging
Please click on any of the messages below to expand them and view sample JSON requests and responses.
Find extras for an accommodation id. If searching for flights, a departure airport must be supplied. The value searchThirdPartySystems must be true in order to get products from third parties.
Omitting the stockTypes property will return all products, including it will only return products with matching types. This can be used to filter results to only flights/cars etc.
{ "channel": 10, "currency": "GBP", "language": "EN", "stockItemId": "2452", "dateValue": "2023-07-12", "duration": 7, "stockTypes" : ["car"], "noAdults": "1", "matchStartDate": true, "useResortAssociations" : true, "searchThirdPartySystems" : true, "searchFirstPartyExtras" : true }
Here is an example response with a single car from the Flexible autos car hire connector
{ "channel": 10, "currencyCode": "GBP", "language": "EN", "timeStamp": "2023-01-24T10:33:51", "success": true, "encodedSearchRequest": "eyJzZWFyY2hUeXBlIjoiRVhUUkFTX0ZPUl9BQ0NPTU1PREFUSU9OIiwibGFuZ3VhZ2UiOiJFTiIsImNoYW5uZWwiOjEwLCJnZW9ncmFwaGljYWxJZCI6bnVsbCwiZ2VvZ3JhcGhpY0FyZWEiOm51bGwsInN1cHBsaWVyQ29udHJhY3RTdG9ja0l0ZW1JZCI6MjQ1MiwiZnJvbSI6WzIwMjMsNywxMl0sInRvIjpbMjAyMyw3LDEyXSwicGlja3VwVGltZSI6bnVsbCwiZHJvcE9mZlRpbWUiOm51bGwsImR1cmF0aW9ucyI6WzddLCJkdXJhdGlvbk9mRXh0cmEiOm51bGwsIm1hdGNoU3RhcnREYXRlIjp0cnVlLCJub0FkdWx0cyI6MSwibm9DaGlsZHJlbiI6bnVsbCwibm9JbmZhbnRzIjpudWxsLCJwZXJtaXRBcGlEZXRhaWwiOnRydWUsInN1cHBsaWVySWQiOm51bGwsImNhclNpemUiOm51bGwsImNhclR5cGUiOm51bGwsImZpbHRlcnMiOm51bGx9", "priceBreakDowns": [ { "refreshTime": "2023-01-24T15:17:38", "id": 24951, "identifier": -1082532445, "encodedProductInformation": "eyJwYWlycyI6W3sibmFtZSI6IlBJQ0tVUF9MT0NBVElPTiIsInZhbHVlIjoiUE1JIn0seyJuYW1lIjoiRFJPUF9PRkZfTE9DQVRJT04iLCJ2YWx1ZSI6IlBNSSJ9LHsibmFtZSI6IlBJQ0tVUF9EQVRFIiwidmFsdWUiOiIyMDIzLTA3LTEyIn0seyJuYW1lIjoiRFJPUF9PRkZfREFURSIsInZhbHVlIjoiMjAyMy0wNy0xOSJ9LHsibmFtZSI6IlBJQ0tVUF9USU1FIiwidmFsdWUiOiIxMjowMDowMCJ9LHsibmFtZSI6IkRST1BfT0ZGX1RJTUUiLCJ2YWx1ZSI6IjEyOjAwOjAwIn0seyJuYW1lIjoiUkFURV9DT0RFIiwidmFsdWUiOiJLMjUzMjIzMTM5MjI4MTM4NTE5NkNGMiJ9LHsibmFtZSI6IlNVUFBMSUVSX0NPREUiLCJ2YWx1ZSI6IkNQIn0seyJuYW1lIjoiQ0FSX1RZUEUiLCJ2YWx1ZSI6Ik1DTVJBMSJ9LHsibmFtZSI6Ik5FVFRfQ09TVCIsInZhbHVlIjoiNTQwLjM4In0seyJuYW1lIjoiVkVORE9SX0NPREUiLCJ2YWx1ZSI6IkZMRVhJQkxFX0FVVE9TIn1dfQ==", "description": "Flexible Autos", "detailedPriceAvailable": false, "noAdults": 1, "dateValue": "2023-07-19", "duration": 7, "priceLines": [ { "type": "UNIT_PRICE", "description": "Rate code:K2532231392281385196CF2", "quantity": 1, "value": 540.38, "total": 540.38 } ], "car": { "supplierCode": "CP", "supplierName": "Centauro Premium", "carType": "Mini", "carSize": "1", "name": "Fiat Panda Plus", "description": "Car", "pickupPoint": { "code": "PMI" }, "dropOffPoint": { "code": "PMI" }, "pickupTime": "12:00", "dropOffTime": "12:00", "airConditioned": true, "automatic": false, "noOfBags": 2, "noOfDoors": 5, "noOfSeats": 4, "imageUrl": "https://www.centauro.net/_next/image/?url=https%3A%2F%2Fcdn.centauro.net%2Fweb%2Ffiatpandaplus_91063e6e01.jpg&w=384&q=90", "information": [ "FUEL - Full to Full ", "EXCESS - Zero Excess / Zero Deposit", "OTHER COSTS - Excess:0:EUR,Deposit:0:EUR", "CANCELLATIONS - There are no cancellation fees prior to 10/07/2023 at 10:59 (GMT). From the following dates and times the cancellation fees are: 10/07/2023 at 11:00 (GMT)50.00 GBP", "NO SHOWS - In the event of a no show there is a fee of 100% of the rental cost" ], "customFields": [], "extraIds": [] }, "informationItems": [] } ] }
Find extras for an accommodation id. If searching for flights, a departure airport must be supplied. The value searchThirdPartySystems must be true in order to get products from third parties.
Omitting the stockTypes property will return all products, including it will only return products with matching types. This can be used to filter results to only flights/cars etc.
{ "channel": 10, "currency": "GBP", "language": "EN", "stockItemId": "2452", "stockTypes" : ["FLIGHT"], "dateValue": "2023-07-12", "duration": 7, "noAdults": "1", "matchStartDate": true, "useResortAssociations" : true, "searchThirdPartySystems" : true, "searchFirstPartyExtras" : true, "departureAirport" : "LON" }
Here is an example response with a single flight from the Travel Innovation Group connector
{ "channel": 10, "currencyCode": "GBP", "language": "EN", "timeStamp": "2023-01-24T10:33:51", "success": true, "encodedSearchRequest": "eyJzZWFyY2hUeXBlIjoiRVhUUkFTX0ZPUl9BQ0NPTU1PREFUSU9OIiwibGFuZ3VhZ2UiOiJFTiIsImNoYW5uZWwiOjEwLCJnZW9ncmFwaGljYWxJZCI6bnVsbCwiZ2VvZ3JhcGhpY0FyZWEiOm51bGwsInN1cHBsaWVyQ29udHJhY3RTdG9ja0l0ZW1JZCI6MjQ1MiwiZnJvbSI6WzIwMjMsNywxMl0sInRvIjpbMjAyMyw3LDEyXSwicGlja3VwVGltZSI6bnVsbCwiZHJvcE9mZlRpbWUiOm51bGwsImR1cmF0aW9ucyI6WzddLCJkdXJhdGlvbk9mRXh0cmEiOm51bGwsIm1hdGNoU3RhcnREYXRlIjp0cnVlLCJub0FkdWx0cyI6MSwibm9DaGlsZHJlbiI6bnVsbCwibm9JbmZhbnRzIjpudWxsLCJwZXJtaXRBcGlEZXRhaWwiOnRydWUsInN1cHBsaWVySWQiOm51bGwsImNhclNpemUiOm51bGwsImNhclR5cGUiOm51bGwsImZpbHRlcnMiOm51bGx9", "priceBreakDowns": [ { "refreshTime": "2023-01-24T10:33:59", "id": 5602, "identifier": 1250040496, "encodedProductInformation": "eyJwYWlycyI6W3sibmFtZSI6IkRBVEVfT0ZfVFJBVkVMIiwidmFsdWUiOiIyMDIzLTA3LTE5In0seyJuYW1lIjoiQ09OVEVYVF9JRCIsInZhbHVlIjoiOWY5Y2IwZjAtNTg3Mi00YzQxLWJjNWQtOGM5OGEzODFkN2M2In0seyJuYW1lIjoiUkVDT01NRU5EQVRJT05fSUQiLCJ2YWx1ZSI6IlI0UjEifSx7Im5hbWUiOiJSRVFVRVNURURfRkxJR0hUX0lEXzAiLCJ2YWx1ZSI6ImQ5YTc2Y2YzLWVhY2ItNDAyOC04NGYzLTAyYmQ5MTllYWRmYyJ9LHsibmFtZSI6IlJFUVVFU1RFRF9GTElHSFRfSURfMSIsInZhbHVlIjoiNTBlNDNhNGEtZmQ0My00ZGQ3LTk5NWUtOTE0OTA1YjU1MTIzIn0sey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XBjM05wYjI1V1lXeDFaU0k2TUN3aVkyOXpkRVZzWlcxbGJuUnpJanBiWFN3aWNHRjViV1Z1ZEZOMWNtTm9ZWEpuWlhNaU9sdGRmU3dpYVc1bWIzSnRZWFJwYjI1SmRHVnRjeUk2VzExOVhRPT0ifV19", "description": "LHR LAX Flight", "type": "TRAVEL_INNOVATION_GROUP", "detailedPriceAvailable": true, "noAdults": 1, "dateValue": "2023-07-12", "duration": 7, "priceLines": [ { "type": "UNIT_PRICE", "description": "Rate code:null", "quantity": 1, "value": 229.62, "total": 229.62 } ], "flights": [ { "sectors": [ { "departurePoint": "LGW", "departureDateTime": "2023-07-12T09:20:00", "arrivalPoint": "OSL", "arrivalDateTime": "2023-07-12T12:25:00", "airlineCode": "DY", "operatingAirlineCode": "DY", "flightNo": "1303", "classOfService": "ECONOMY" } ] }, { "sectors": [ { "departurePoint": "OSL", "departureDateTime": "2023-07-19T13:05:00", "arrivalPoint": "LGW", "arrivalDateTime": "2023-07-19T14:25:00", "airlineCode": "DY", "operatingAirlineCode": "DY", "flightNo": "1306", "classOfService": "ECONOMY" } ] } ], "informationItems": [] } ] }
Request for more information about a specific flight from the previous message.
{ "channel": 10, "currency": "GBP", "language": "EN", "stockItemId": 5602, "encodedSearchRequest": "eyJzZWFyY2hUeXBlIjoiRVhUUkFTX0ZPUl9BQ0NPTU1PREFUSU9OIiwibGFuZ3VhZ2UiOiJFTiIsImNoYW5uZWwiOjEwLCJnZW9ncmFwaGljYWxJZCI6bnVsbCwiZ2VvZ3JhcGhpY0FyZWEiOm51bGwsInN1cHBsaWVyQ29udHJhY3RTdG9ja0l0ZW1JZCI6MjQ1MiwiZnJvbSI6WzIwMjMsNywxMl0sInRvIjpbMjAyMyw3LDEyXSwicGlja3VwVGltZSI6bnVsbCwiZHJvcE9mZlRpbWUiOm51bGwsImR1cmF0aW9ucyI6WzddLCJkdXJhdGlvbk9mRXh0cmEiOm51bGwsIm1hdGNoU3RhcnREYXRlIjp0cnVlLCJub0Fk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hjbkpwZG1Gc1JHRjBaVlJwYldVaU9pSXlNREl6TFRBM0xURTVWREUwT2pJMU9qQXdJaXdpWVdseWJHbHVaVU52WkdVaU9pSkVXU0lzSW05d1pYSmhkR2x1WjBGcGNteHBibVZEYjJSbElqb2lSRmtpTENKbWJHbG5hSFJPYnlJNklqRXpNRFlpTENKdVpYaDBSR0Y1SWpwbVlXeHpaU3dpWm14cFoyaDBWR2x0WlNJNk9EUXdNQzR3TURBd01EQXdNREFzSW1Oc1lYTnpUMlpUWlhKMmFXTmxJam9pUlVOUFRrOU5XU0lzSW1WeGRXbHdiV1Z1ZEZSNWNHVkRiMlJsSWpvaU56TklJaXdpYzJWaGRITWlPbHRkTENKamRYTjBiMjFHYVdWc1pITWlPbHRkTENKbGVIUnlZWE1pT2x0ZExDSnBibVp2Y20xaGRHbHZia2wwWlcxeklqcGJYWDFkTENKamIzTjBVM1Z0YldGeWVTSTZleUpqZFhKeVpXNWplVU52WkdVaU9pSkhRbEFpTENKaGJXOTFiblFpT2pFM015NHdMQ0owWVhnaU9qUTJMall5TENKbVpXVWlPakV3TGpBc0luUnZkR0ZzSWpveU1qa3VOaklzSW1OdmJXMXBjM05wYjI1V1lXeDFaU0k2TUN3aVkyOXpkRVZzWlcxbGJuUnpJanBiWFN3aWNHRjViV1Z1ZEZOMWNtTm9ZWEpuWlhNaU9sdGRmU3dpYVc1bWIzSnRZWFJwYjI1SmRHVnRjeUk2VzExOVhRPT0ifV19" }
The response will contain all the information we can get from the third party about this product.
{ "channel": 10, "currencyCode": "GBP", "language": "EN", "timeStamp": "2023-01-24T10:36:44", "success": true, "stockItemId": 5602, "product": { "internalIdentifier": 314701655, "vendorCode": "TRAVEL_INNOVATION_GROUP", "costing": { "amount": 181.00, "tax": 46.62, "fee": 10.00, "total": 237.62, "commissionValue": 0, "costElements": [ { "quantity": 1, "qualifier": "PER_ADULT", "amount": 181.00, "tax": 46.62, "fee": 10.00, "total": 237.62, "taxInclusive": false, "fareInformation": { "fareBasis": "T605CLP", "bookingClass": "T", "cabinCode": "ECO", "cabinName": "Economy", "informationItems": [ { "type": "NOTE", "appliesTo": "FLIGHT", "text": [ "1 bags", "Included" ] } ] } } ], "paymentSurcharges": [] }, "flights": [ { "sequenceNum": 1, "sectors": [ { "leg": 1, "departurePoint": "LGW", "departureDateTime": "2023-07-12T09:20:00", "arrivalPoint": "OSL", "arrivalDateTime": "2023-07-12T12:25:00", "airlineCode": "DY", "operatingAirlineCode": "DY", "flightNo": "1303", "nextDay": false, "flightTime": 7500.000000000, "departureTerminal": "S", "equipmentTypeCode": "73H", "seats": [], "customFields": [], "extras": [], "informationItems": [] } ], "informationItems": [] }, { "sequenceNum": 2, "sectors": [ { "leg": 1, "departurePoint": "OSL", "departureDateTime": "2023-07-19T13:05:00", "arrivalPoint": "LGW", "arrivalDateTime": "2023-07-19T14:25:00", "airlineCode": "DY", "operatingAirlineCode": "DY", "flightNo": "1306", "nextDay": false, "flightTime": 8400.000000000, "arrivalTerminal": "S", "equipmentTypeCode": "73H", "seats": [], "customFields": [], "extras": [], "informationItems": [] } ], "informationItems": [] } ], "informationItems": [] }, "informationSets": [ { "identifier": "a2c94a62-583b-4c1b-adff-89c12def7d76", "informationItems": [ { "type": "RULE", "appliesTo": "PRODUCT", "groupCode": "END", "groupName": "Endorsements", "text": [ "VALID ON DY/D8 NONREF" ] }, { "type": "RULE", "appliesTo": "PRODUCT", "groupCode": "OTH", "groupName": "Other", "text": [ "12JUL23LON DY OSL M/IT DY LON M/IT END" ] }, { "type": "RULE", "appliesTo": "PRODUCT", "groupCode": "TUC", "groupName": "Tour Code", "text": [ "IT60DY05" ] }, { "type": "RULE", "appliesTo": "PRODUCT", "groupCode": "TDL", "groupName": "Ticketing Deadline", "text": [ "Ticketing Deadline: 13 May 2023 23:59" ] }, { "type": "POLICY", "appliesTo": "PRODUCT", "groupCode": "DEFLT", "text": [ "Global Travel System Policy" ] }, { "type": "POLICY", "appliesTo": "PRODUCT", "groupCode": "AVBOK", "text": [ "Aviate Booking Policy", "https://aviateworld.com/terms-conditions/" ] }, { "type": "POLICY", "appliesTo": "PRODUCT", "groupCode": "AVBOK", "text": [ "Norwegian - IT", "https://aviateworld.com/terms-conditions/" ] }, { "type": "NOTE", "appliesTo": "PRODUCT", "groupCode": "PPLTXT", "text": [ "Please note: Fare is guaranteed as per booking date, or last voluntary amendment date. All Taxes (including Fuel Tax), Fees & Surcharges are not guaranteed and will be recalculated at the time of ticket issuance." ] } ], "fares": [ { "airline": "DY", "flightNumber": "1303", "cabin": "Economy", "flightClass": "V", "fareInformationList": [ { "fareBasis": "V605CLP", "fareAmount": 181.00, "fareTypeCode": "ITR", "fareTypeDescription": "Inclusive Tour Fare", "fareFamilies": [ { "id": "8c3939bf-dbcc-425a-b143-1854278bb6c3", "name": "LOWPLUS", "description": "LOWFARE PLUS", "services": [ { "id": "8c4493e4-37d2-4d0f-9210-5ca447936b2a", "name": "INTERNET ACCESS", "group": "INFLEN", "groupName": "Entertainment / Internet", "subGroup": "FSGPIT", "subGroupName": "", "included": true }, { "id": "d1534bdc-5128-461e-8804-b3c1be992fcc", "name": "PRE RESERVED SEAT ASSIGNMENT", "group": "FSGSAA", "groupName": "Seat assignment association - desires seating together", "included": true }, { "id": "10a0b965-656f-4dc3-a34e-031765eaef70", "name": "1 CHECKED BAG UP TO 23KG", "group": "FSGPBF", "groupName": "", "included": true }, { "id": "12935540-4113-4929-8123-a0880af94ca5", "name": "UNDERSEAT CARRY ON UP TO 88CM", "group": "FSGPBF", "groupName": "", "included": true }, { "id": "92dd5ac2-be16-4198-bffe-b14de33b1f23", "name": "OVERHEAD CABIN BAG UP TO 10KG", "group": "BAGGAG", "groupName": "Baggage", "subGroup": "FSGCAL", "subGroupName": "Cascading allowed", "included": true }, { "id": "89fce3a6-9e8b-4db2-a8fa-cc346e81cfff", "name": "CHANGEABLE TICKET", "group": "FSGPBF", "groupName": "", "subGroup": "FSGPVC", "subGroupName": "", "included": false }, { "id": "22cf8043-dbb9-4cdc-9ac0-b186e8c438f8", "name": "FAST TRACK WHERE OFFERED", "group": "FSGPTS", "groupName": "", "subGroup": "FSGFTT", "subGroupName": "Fare/tax/total details", "included": false }, { "id": "68010a5e-ba0b-4b55-86af-ddd4c47536c9", "name": "CHARGEABLE BAG 1", "group": "BAGGAG", "groupName": "Baggage", "included": false }, { "id": "eb32b072-4ee3-404d-a31c-666cc56e691a", "name": "PRIORITY BOARDING", "group": "FSGPTS", "groupName": "", "subGroup": "FSGPPR", "subGroupName": "", "included": false } ] } ] } ] }, { "airline": "DY", "flightNumber": "1306", "cabin": "Economy", "flightClass": "T", "fareInformationList": [ { "fareBasis": "T605CLP", "fareTypeCode": "ITR", "fareTypeDescription": "Inclusive Tour Fare", "fareFamilies": [ { "id": "8c3939bf-dbcc-425a-b143-1854278bb6c3", "name": "LOWPLUS", "description": "LOWFARE PLUS", "services": [ { "id": "8c4493e4-37d2-4d0f-9210-5ca447936b2a", "name": "INTERNET ACCESS", "group": "INFLEN", "groupName": "Entertainment / Internet", "subGroup": "FSGPIT", "subGroupName": "", "included": true }, { "id": "d1534bdc-5128-461e-8804-b3c1be992fcc", "name": "PRE RESERVED SEAT ASSIGNMENT", "group": "FSGSAA", "groupName": "Seat assignment association - desires seating together", "included": true }, { "id": "10a0b965-656f-4dc3-a34e-031765eaef70", "name": "1 CHECKED BAG UP TO 23KG", "group": "FSGPBF", "groupName": "", "included": true }, { "id": "12935540-4113-4929-8123-a0880af94ca5", "name": "UNDERSEAT CARRY ON UP TO 88CM", "group": "FSGPBF", "groupName": "", "included": true }, { "id": "92dd5ac2-be16-4198-bffe-b14de33b1f23", "name": "OVERHEAD CABIN BAG UP TO 10KG", "group": "BAGGAG", "groupName": "Baggage", "subGroup": "FSGCAL", "subGroupName": "Cascading allowed", "included": true }, { "id": "89fce3a6-9e8b-4db2-a8fa-cc346e81cfff", "name": "CHANGEABLE TICKET", "group": "FSGPBF", "groupName": "", "subGroup": "FSGPVC", "subGroupName": "", "included": false }, { "id": "22cf8043-dbb9-4cdc-9ac0-b186e8c438f8", "name": "FAST TRACK WHERE OFFERED", "group": "FSGPTS", "groupName": "", "subGroup": "FSGFTT", "subGroupName": "Fare/tax/total details", "included": false }, { "id": "68010a5e-ba0b-4b55-86af-ddd4c47536c9", "name": "CHARGEABLE BAG 1", "group": "BAGGAG", "groupName": "Baggage", "included": false }, { "id": "eb32b072-4ee3-404d-a31c-666cc56e691a", "name": "PRIORITY BOARDING", "group": "FSGPTS", "groupName": "", "subGroup": "FSGPPR", "subGroupName": "", "included": false } ] } ] } ] } ], "accommodations": [], "optionGroups": [], "costSummary": { "amount": 181.00, "tax": 46.62, "fee": 10.00, "total": 237.62, "commissionValue": 0, "costElements": [ { "quantity": 1, "qualifier": "PER_ADULT", "amount": 181.00, "tax": 46.62, "fee": 10.00, "total": 237.62 } ], "paymentSurcharges": [] } } ] }
Request for more information about an Ypsilon flight which has bookable options.
Options are returned in the information sets section. In order to add an option to the basket you need to take the group code and the code of the option itself. The group optionType of RADIO means only one of the options in the list can be selected per passenger.
{ "channel": 10, "currency": "GBP", "language": "EN", "timeStamp": "2020-06-19T19:00:27", "stockItemId": 2653, "encodedSearchRequest": "eyJzZWFyY2hUeXBlIjoiRVhUUkFTX0ZPUl9BQ0NPTU1PREFUSU9OIiwibGFuZ3VhZ2UiOiJFTiIsImNoYW5uZWwiOjEwLCJnZW9ncmFwaGljYWxJZCI6bnVsbCwiZ2VvZ3JhcGhpY0FyZWEiOm51bGwsInN1cHBsaWVyQ29udHJhY3RTdG9ja0l0ZW1JZCI6MjQ1MiwiZnJvbSI6WzIwMjMsNywxMl0sInRvIjpbMjAyMyw3LDEyXSwicGlja3VwVGltZSI6bnVsbCwiZHJvcE9mZlRpbWUiOm51bGwsImR1cmF0aW9ucyI6WzddLCJkdXJhdGlvbk9mRXh0cmEiOm51bGwsIm1hdGNoU3RhcnREYXRlIjp0cnVlLCJub0FkdWx0cyI6MSwibm9DaGlsZHJlbiI6bnVsbCwibm9JbmZhbnRzIjpud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QWlMQ0poYVhKc2FXNWxRMjlrWlNJNklsVXlJaXdpYjNCbGNtRjBhVzVuUVdseWJHbHVaVU52WkdVaU9pSkZTbFVpTENKbWJHbG5hSFJPYnlJNklqY3dNREVpTENKbWJHbG5hSFJVYVcxbElqb3hNVEV3TUM0d01EQXdNREF3TURBc0ltTnNZWE56VDJaVFpYSjJhV05sSWpvaVJXTnZibTl0ZVNJc0ltNTFiV0psY2s5bVUzUnZjSE1pT2pBc0ltVjRkR1Z5Ym1Gc1NXNW1iM0p0WVhScGIyNGlPaUpTUlVkVlRFRlNJQ2d3SUhnZ2FHOXNaQ0JpWVdjcElpd2ljMlZoZEhNaU9sdDdJbVpzYVdkb2RFTnNZWE56SWpvaVdTSXNJbU5oWW1sdUlqb2lSVU5QVGs5TldTSjlYU3dpWTNWemRHOXRSbWxsYkdSeklqcGJYU3dpWlhoMGNtRnpJanBiWFN3aWFXNW1iM0p0WVhScGIyNUpkR1Z0Y3lJNlcxMTlYU3dpYVc1bWIzSnRZWFJwYjI1SmRHVnRjeUk2VzExOVhRPT0ifV19" }
The response will contain all the information we can get from the third party about this product.
{ "channel": 10, "currencyCode": "GBP", "language": "EN", "timeStamp": "2023-01-24T14:12:22", "success": true, "stockItemId": 2653, "product": { "internalIdentifier": 2069555168, "vendorCode": "YPSILON", "costing": { "currencyCode": "GBP", "amount": 131.98, "tax": 13.00, "fee": 0, "total": 144.98, "commissionValue": 0, "costElements": [ { "quantity": 1, "qualifier": "PER_PERSON", "amount": 131.98, "tax": 13.00, "total": 144.98, "taxInclusive": true } ], "paymentSurcharges": [ { "description": "Diners Club", "type": "CREDIT_CARD", "value": 0.0 }, { "description": "AX", "type": "CREDIT_CARD", "value": 0.0 }, { "description": "TP", "type": "CREDIT_CARD", "value": 0.0 }, { "description": "VI", "type": "CREDIT_CARD", "value": 0.0 }, { "description": "CA", "type": "CREDIT_CARD", "value": 0.0 }, { "description": "CAD", "type": "DEBIT_CARD", "value": 0.0 }, { "description": "VD", "type": "DEBIT_CARD", "value": 0.0 }, { "description": "VIE", "type": "DEBIT_CARD", "value": 0.0 }, { "description": "MAE", "type": "DEBIT_CARD", "value": 0.0 }, { "description": "VDB", "type": "DEBIT_CARD", "value": 0.0 } ] }, "flights": [ { "sectors": [ { "departurePoint": "MAN", "departureDateTime": "2023-07-12T09:25:00", "arrivalPoint": "AGP", "arrivalDateTime": "2023-07-12T13:30:00", "airlineCode": "EJU", "operatingAirlineCode": "EJU", "flightNo": "7002", "flightTime": 11100.000000000, "seats": [ { "flightClass": "Y", "cabin": "ECONOMY" } ], "customFields": [], "extras": [ { "type": "CHECKED_BAGGAGE", "code": "", "description": "0 x hold bag", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "bag" }, { "name": "numberOfItems", "value": "0" }, { "name": "totalAllowance", "value": "0" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 0.00, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } }, { "type": "CHECKED_BAGGAGE", "code": "LUS", "description": "1 x hold bag (15kg)", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "bag" }, { "name": "numberOfItems", "value": "1" }, { "name": "totalAllowance", "value": "15" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 62.98, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } }, { "type": "CHECKED_BAGGAGE", "code": "LUG", "description": "1 x hold bag (23kg)", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "bag" }, { "name": "numberOfItems", "value": "1" }, { "name": "totalAllowance", "value": "23" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 71.48, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } }, { "type": "CHECKED_BAGGAGE", "code": "LUS#LUS", "description": "2 x hold bag (15kg + 15kg)", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "bag" }, { "name": "numberOfItems", "value": "2" }, { "name": "totalAllowance", "value": "30" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 125.96, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } }, { "type": "CHECKED_BAGGAGE", "code": "LUS#LUG", "description": "2 x hold bag (15kg + 23kg)", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "bag" }, { "name": "numberOfItems", "value": "2" }, { "name": "totalAllowance", "value": "38" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 134.46, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } }, { "type": "CHECKED_BAGGAGE", "code": "LUG#LUG", "description": "2 x hold bag (23kg + 23kg)", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "bag" }, { "name": "numberOfItems", "value": "2" }, { "name": "totalAllowance", "value": "46" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 142.96, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } }, { "type": "CHECKED_BAGGAGE", "code": "LUS#LUS#LUS", "description": "3 x hold bag (15kg + 15kg + 15kg)", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "bag" }, { "name": "numberOfItems", "value": "3" }, { "name": "totalAllowance", "value": "45" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 188.94, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } }, { "type": "CHECKED_BAGGAGE", "code": "LUS#LUS#LUG", "description": "3 x hold bag (15kg + 15kg + 23kg)", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "bag" }, { "name": "numberOfItems", "value": "3" }, { "name": "totalAllowance", "value": "53" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 197.44, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } }, { "type": "CHECKED_BAGGAGE", "code": "LUS#LUG#LUG", "description": "3 x hold bag (15kg + 23kg + 23kg)", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "bag" }, { "name": "numberOfItems", "value": "3" }, { "name": "totalAllowance", "value": "61" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 205.94, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } }, { "type": "CHECKED_BAGGAGE", "code": "LUG#LUG#LUG", "description": "3 x hold bag (23kg + 23kg + 23kg)", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "bag" }, { "name": "numberOfItems", "value": "3" }, { "name": "totalAllowance", "value": "69" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 214.44, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } }, { "type": "SPORTS_EQUIPMENT", "code": "", "description": "No Sports Equipment", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "sport_equipment" }, { "name": "numberOfItems", "value": "0" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 0.00, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } }, { "type": "SPORTS_EQUIPMENT", "code": "SEC|FIRE|1", "description": "Small Sports Equipment - Firearms", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "sport_equipment" }, { "name": "numberOfItems", "value": "1" }, { "name": "totalAllowance", "value": "20" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 74.00, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } }, { "type": "SPORTS_EQUIPMENT", "code": "SEC|GOLF|1", "description": "Small Sports Equipment - Golf Bag", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "sport_equipment" }, { "name": "numberOfItems", "value": "1" }, { "name": "totalAllowance", "value": "20" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 74.00, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } }, { "type": "SPORTS_EQUIPMENT", "code": "SEC|SKBT|1", "description": "Small Sports Equipment - Skis and/or Boots", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "sport_equipment" }, { "name": "numberOfItems", "value": "1" }, { "name": "totalAllowance", "value": "20" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 74.00, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } }, { "type": "SPORTS_EQUIPMENT", "code": "SEC|SNBD|1", "description": "Small Sports Equipment - Snowboard", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "sport_equipment" }, { "name": "numberOfItems", "value": "1" }, { "name": "totalAllowance", "value": "20" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 74.00, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } }, { "type": "SPORTS_EQUIPMENT", "code": "SEC|OSSE|1", "description": "Small Sports Equipment - Other small sporting equipment", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "sport_equipment" }, { "name": "numberOfItems", "value": "1" }, { "name": "totalAllowance", "value": "20" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 74.00, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } }, { "type": "SPORTS_EQUIPMENT", "code": "SEO|BICL|1", "description": "Large Sports Equipment - Bicycle", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "sport_equipment" }, { "name": "numberOfItems", "value": "1" }, { "name": "totalAllowance", "value": "32" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 90.00, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } }, { "type": "SPORTS_EQUIPMENT", "code": "SEO|CANO|1", "description": "Large Sports Equipment - Canoe/Kayak", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "sport_equipment" }, { "name": "numberOfItems", "value": "1" }, { "name": "totalAllowance", "value": "32" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 90.00, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } }, { "type": "SPORTS_EQUIPMENT", "code": "SEO|HGLD|1", "description": "Large Sports Equipment - Hang glider", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "sport_equipment" }, { "name": "numberOfItems", "value": "1" }, { "name": "totalAllowance", "value": "32" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 90.00, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } }, { "type": "SPORTS_EQUIPMENT", "code": "SEO|WDSF|1", "description": "Large Sports Equipment - Windsurfer", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "sport_equipment" }, { "name": "numberOfItems", "value": "1" }, { "name": "totalAllowance", "value": "32" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 90.00, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } } ], "informationItems": [] } ], "informationItems": [ { "type": "RULE", "appliesTo": "FLIGHT", "text": [ "http://www.easyjet.com/en/terms_and_conditions.html" ] } ] }, { "sectors": [ { "departurePoint": "AGP", "departureDateTime": "2023-07-19T06:40:00", "arrivalPoint": "MAN", "arrivalDateTime": "2023-07-19T08:45:00", "airlineCode": "EJU", "operatingAirlineCode": "EJU", "flightNo": "7001", "flightTime": 11100.000000000, "seats": [ { "flightClass": "Y", "cabin": "ECONOMY" } ], "customFields": [], "extras": [ { "type": "CHECKED_BAGGAGE", "code": "", "description": "0 x hold bag", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "bag" }, { "name": "numberOfItems", "value": "0" }, { "name": "totalAllowance", "value": "0" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 0.00, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } }, { "type": "CHECKED_BAGGAGE", "code": "LUS", "description": "1 x hold bag (15kg)", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "bag" }, { "name": "numberOfItems", "value": "1" }, { "name": "totalAllowance", "value": "15" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 62.98, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } }, { "type": "CHECKED_BAGGAGE", "code": "LUG", "description": "1 x hold bag (23kg)", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "bag" }, { "name": "numberOfItems", "value": "1" }, { "name": "totalAllowance", "value": "23" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 71.48, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } }, { "type": "CHECKED_BAGGAGE", "code": "LUS#LUS", "description": "2 x hold bag (15kg + 15kg)", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "bag" }, { "name": "numberOfItems", "value": "2" }, { "name": "totalAllowance", "value": "30" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 125.96, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } }, { "type": "CHECKED_BAGGAGE", "code": "LUS#LUG", "description": "2 x hold bag (15kg + 23kg)", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "bag" }, { "name": "numberOfItems", "value": "2" }, { "name": "totalAllowance", "value": "38" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 134.46, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } }, { "type": "CHECKED_BAGGAGE", "code": "LUG#LUG", "description": "2 x hold bag (23kg + 23kg)", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "bag" }, { "name": "numberOfItems", "value": "2" }, { "name": "totalAllowance", "value": "46" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 142.96, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } }, { "type": "CHECKED_BAGGAGE", "code": "LUS#LUS#LUS", "description": "3 x hold bag (15kg + 15kg + 15kg)", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "bag" }, { "name": "numberOfItems", "value": "3" }, { "name": "totalAllowance", "value": "45" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 188.94, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } }, { "type": "CHECKED_BAGGAGE", "code": "LUS#LUS#LUG", "description": "3 x hold bag (15kg + 15kg + 23kg)", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "bag" }, { "name": "numberOfItems", "value": "3" }, { "name": "totalAllowance", "value": "53" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 197.44, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } }, { "type": "CHECKED_BAGGAGE", "code": "LUS#LUG#LUG", "description": "3 x hold bag (15kg + 23kg + 23kg)", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "bag" }, { "name": "numberOfItems", "value": "3" }, { "name": "totalAllowance", "value": "61" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 205.94, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } }, { "type": "CHECKED_BAGGAGE", "code": "LUG#LUG#LUG", "description": "3 x hold bag (23kg + 23kg + 23kg)", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "bag" }, { "name": "numberOfItems", "value": "3" }, { "name": "totalAllowance", "value": "69" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 214.44, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } }, { "type": "SPORTS_EQUIPMENT", "code": "", "description": "No Sports Equipment", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "sport_equipment" }, { "name": "numberOfItems", "value": "0" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 0.00, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } }, { "type": "SPORTS_EQUIPMENT", "code": "SEC|FIRE|1", "description": "Small Sports Equipment - Firearms", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "sport_equipment" }, { "name": "numberOfItems", "value": "1" }, { "name": "totalAllowance", "value": "20" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 74.00, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } }, { "type": "SPORTS_EQUIPMENT", "code": "SEC|GOLF|1", "description": "Small Sports Equipment - Golf Bag", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "sport_equipment" }, { "name": "numberOfItems", "value": "1" }, { "name": "totalAllowance", "value": "20" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 74.00, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } }, { "type": "SPORTS_EQUIPMENT", "code": "SEC|SKBT|1", "description": "Small Sports Equipment - Skis and/or Boots", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "sport_equipment" }, { "name": "numberOfItems", "value": "1" }, { "name": "totalAllowance", "value": "20" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 74.00, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } }, { "type": "SPORTS_EQUIPMENT", "code": "SEC|SNBD|1", "description": "Small Sports Equipment - Snowboard", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "sport_equipment" }, { "name": "numberOfItems", "value": "1" }, { "name": "totalAllowance", "value": "20" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 74.00, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } }, { "type": "SPORTS_EQUIPMENT", "code": "SEC|OSSE|1", "description": "Small Sports Equipment - Other small sporting equipment", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "sport_equipment" }, { "name": "numberOfItems", "value": "1" }, { "name": "totalAllowance", "value": "20" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 74.00, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } }, { "type": "SPORTS_EQUIPMENT", "code": "SEO|BICL|1", "description": "Large Sports Equipment - Bicycle", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "sport_equipment" }, { "name": "numberOfItems", "value": "1" }, { "name": "totalAllowance", "value": "32" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 90.00, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } }, { "type": "SPORTS_EQUIPMENT", "code": "SEO|CANO|1", "description": "Large Sports Equipment - Canoe/Kayak", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "sport_equipment" }, { "name": "numberOfItems", "value": "1" }, { "name": "totalAllowance", "value": "32" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 90.00, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } }, { "type": "SPORTS_EQUIPMENT", "code": "SEO|HGLD|1", "description": "Large Sports Equipment - Hang glider", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "sport_equipment" }, { "name": "numberOfItems", "value": "1" }, { "name": "totalAllowance", "value": "32" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 90.00, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } }, { "type": "SPORTS_EQUIPMENT", "code": "SEO|WDSF|1", "description": "Large Sports Equipment - Windsurfer", "passengerRph": [], "nameValuePairs": [ { "name": "descriptionId", "value": "sport_equipment" }, { "name": "numberOfItems", "value": "1" }, { "name": "totalAllowance", "value": "32" }, { "name": "unit", "value": "kg" } ], "costSummary": { "currencyCode": "GBP", "amount": 90.00, "tax": 0, "fee": 0, "total": 0, "commissionValue": 0, "costElements": [], "paymentSurcharges": [] } } ], "informationItems": [] } ], "informationItems": [] } ], "informationItems": [] }, "informationSets": [ { "identifier": "1031409287_1031409288", "informationItems": [], "fares": [ { "airline": "EJU", "flightNumber": "7002", "cabin": "Economy", "flightClass": "E", "fareInformationList": [ { "fareBasis": "", "fareAmount": 131.97999572753906, "fareTypeCode": "", "fareTypeDescription": "", "fareFamilies": [] } ] } ], "accommodations": [], "optionGroups": [ { "name": "Checked-in baggage selection", "code": "baggage", "appliesTo": "PASSENGER", "optionType": "RADIO", "options": [ { "description": "0 x hold bag", "code": "", "price": 0.0, "applicablePaxTypes": [ "ADULT", "CHILD" ] }, { "description": "1 x hold bag (15kg)", "code": "LUS", "price": 62.97999954223633, "applicablePaxTypes": [ "ADULT", "CHILD" ] }, { "description": "1 x hold bag (23kg)", "code": "LUG", "price": 71.4800033569336, "applicablePaxTypes": [ "ADULT", "CHILD" ] }, { "description": "2 x hold bag (15kg + 15kg)", "code": "LUS#LUS", "price": 125.95999908447266, "applicablePaxTypes": [ "ADULT", "CHILD" ] }, { "description": "2 x hold bag (15kg + 23kg)", "code": "LUS#LUG", "price": 134.4600067138672, "applicablePaxTypes": [ "ADULT", "CHILD" ] }, { "description": "2 x hold bag (23kg + 23kg)", "code": "LUG#LUG", "price": 142.9600067138672, "applicablePaxTypes": [ "ADULT", "CHILD" ] }, { "description": "3 x hold bag (15kg + 15kg + 15kg)", "code": "LUS#LUS#LUS", "price": 188.94000244140625, "applicablePaxTypes": [ "ADULT", "CHILD" ] }, { "description": "3 x hold bag (15kg + 15kg + 23kg)", "code": "LUS#LUS#LUG", "price": 197.44000244140625, "applicablePaxTypes": [ "ADULT", "CHILD" ] }, { "description": "3 x hold bag (15kg + 23kg + 23kg)", "code": "LUS#LUG#LUG", "price": 205.94000244140625, "applicablePaxTypes": [ "ADULT", "CHILD" ] }, { "description": "3 x hold bag (23kg + 23kg + 23kg)", "code": "LUG#LUG#LUG", "price": 214.44000244140625, "applicablePaxTypes": [ "ADULT", "CHILD" ] } ] }, { "name": "Sport equipment selection", "code": "sports", "appliesTo": "PASSENGER", "optionType": "RADIO", "options": [ { "description": "No Sports Equipment", "code": "", "price": 0.0, "applicablePaxTypes": [ "ADULT", "CHILD" ] }, { "description": "Small Sports Equipment - Firearms", "code": "SEC|FIRE|1", "price": 74.0, "applicablePaxTypes": [ "ADULT", "CHILD" ] }, { "description": "Small Sports Equipment - Golf Bag", "code": "SEC|GOLF|1", "price": 74.0, "applicablePaxTypes": [ "ADULT", "CHILD" ] }, { "description": "Small Sports Equipment - Skis and/or Boots", "code": "SEC|SKBT|1", "price": 74.0, "applicablePaxTypes": [ "ADULT", "CHILD" ] }, { "description": "Small Sports Equipment - Snowboard", "code": "SEC|SNBD|1", "price": 74.0, "applicablePaxTypes": [ "ADULT", "CHILD" ] }, { "description": "Small Sports Equipment - Other small sporting equipment", "code": "SEC|OSSE|1", "price": 74.0, "applicablePaxTypes": [ "ADULT", "CHILD" ] }, { "description": "Large Sports Equipment - Bicycle", "code": "SEO|BICL|1", "price": 90.0, "applicablePaxTypes": [ "ADULT", "CHILD" ] }, { "description": "Large Sports Equipment - Canoe/Kayak", "code": "SEO|CANO|1", "price": 90.0, "applicablePaxTypes": [ "ADULT", "CHILD" ] }, { "description": "Large Sports Equipment - Hang glider", "code": "SEO|HGLD|1", "price": 90.0, "applicablePaxTypes": [ "ADULT", "CHILD" ] }, { "description": "Large Sports Equipment - Windsurfer", "code": "SEO|WDSF|1", "price": 90.0, "applicablePaxTypes": [ "ADULT", "CHILD" ] } ] }, { "name": "Priority boarding and cabin baggages", "code": "priority-boarding", "appliesTo": "PASSENGER", "optionType": "RADIO", "options": [ { "description": "Small cabin bag", "code": "", "price": 0.0, "applicablePaxTypes": [ "ADULT", "CHILD" ] }, { "description": "Small cabin bag + large cabin bag + Speedy Boarding", "code": "SCB1", "price": 63.97999954223633, "applicablePaxTypes": [ "ADULT", "CHILD" ] } ] } ], "costSummary": { "amount": 131.97999572753906, "tax": 13.0, "fee": 0, "total": 144.97999572753906, "commissionValue": 0, "costElements": [ { "qualifier": "PER_ADULT", "amount": 131.97999572753906, "tax": 13.0, "fee": 0.0, "total": 144.97999572753906 } ], "paymentSurcharges": [ { "description": "Diners Club", "type": "CREDIT_CARD", "value": 0.0 }, { "description": "AX", "type": "CREDIT_CARD", "value": 0.0 }, { "description": "TP", "type": "CREDIT_CARD", "value": 0.0 }, { "description": "VI", "type": "CREDIT_CARD", "value": 0.0 }, { "description": "CA", "type": "CREDIT_CARD", "value": 0.0 }, { "description": "CAD", "type": "DEBIT_CARD", "value": 0.0 }, { "description": "VD", "type": "DEBIT_CARD", "value": 0.0 }, { "description": "VIE", "type": "DEBIT_CARD", "value": 0.0 }, { "description": "MAE", "type": "DEBIT_CARD", "value": 0.0 }, { "description": "VDB", "type": "DEBIT_CARD", "value": 0.0 } ] } } ] }
Creating a basket with 1 passenger and the flight from the previous response, including selecting an option for each of the option groups. We need to already know the customer id and the customer email/password.
{ "channel": 10, "currency": "GBP", "language": "EN", "timeStamp": "2020-06-19T19:00:27", "transactionType": "STORE", "authenticate" : { "email" : "user@domain.com", "password" : "Password12345", "type" : "B2C" }, "customerId" : 1515, "customerBasketDetails": { "quote": false, "passengers": [ { "lead": true, "passengerRph": 1, "gender" : "Male", "type" : "ADULT", "title" : "Mr", "givenName" : "Tony", "familyName" : "Test", "dateOfBirth" : "1980-01-01" } ], "items": [ { "sortOrder": 1, "identifier": -1622736804, "stockItemId": 2653, "encodedSearchRequest": "eyJzZWFyY2hUeXBlIjoiRVhUUkFTX0ZPUl9BQ0NPTU1PREFUSU9OIiwibGFuZ3VhZ2UiOiJFTiIsImNoYW5uZWwiOjEwLCJnZW9ncmFwaGljYWxJZCI6bnVsbCwiZ2VvZ3JhcGhpY0FyZWEiOm51bGwsInN1cHBsaWVyQ29udHJhY3RTdG9ja0l0ZW1JZCI6MjQ1MiwiZnJvbSI6WzIwMjMsNywxMl0sInRvIjpbMjAyMyw3LDEyXSwicGlja3VwVGltZSI6bnVsbCwiZHJvcE9mZlRpbWUiOm51bGwsImR1cmF0aW9ucyI6WzddLCJkdXJhdGlvbk9mRXh0cmEiOm51bGwsIm1hdGNoU3RhcnREYXRlIjp0cnVlLCJub0FkdWx0cyI6MSwibm9DaGlsZHJlbiI6bnVsbCwibm9JbmZhbnRzIjpudWxsLCJwZXJtaXRBcGlEZXRhaWwiOnRydWUsInN1cHBsaWVySWQiOm51bGwsImNhclNpemUiOm51bGwsImNhclR5cGUiOm51bGwsImZpbHRlcnMiOm51bGx9", "encodedProductInformation": "eyJwYWlycyI6W3sibmFtZSI6IlNlc3Npb24iLCJ2YWx1ZSI6ImQxMjQwMWwxcTBiM2plMGlpenpyb3o0cW5vaXNjbiJ9LHsibmFtZSI6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2s5bVUzUnZjSE1pT2pBc0ltVjRkR1Z5Ym1Gc1NXNW1iM0p0WVhScGIyNGlPaUpTUlVkVlRFRlNJQ2d3SUhnZ2FHOXNaQ0JpWVdjcElpd2ljMlZoZEhNaU9sdDdJbVpzYVdkb2RFTnNZWE56SWpvaVdTSXNJbU5oWW1sdUlqb2lSVU5QVGs5TldTSjlYU3dpWTNWemRHOXRSbWxsYkdSeklqcGJYU3dpWlhoMGNtRnpJanBiWFN3aWFXNW1iM0p0WVhScGIyNUpkR1Z0Y3lJNlcxMTlYU3dpYVc1bWIzSnRZWFJwYjI1SmRHVnRjeUk2VzExOVhRPT0ifV19", "totalDiscount": 0, "totalPrice": 229.62, "totalSupplements": 0.0, "passengerRphs": [ 1 ], "selectedOptions" : [ { "passengerRph": 1, "optionGroupCode" : "baggage", "option" : "LUG" }, { "passengerRph": 1, "optionGroupCode" : "sports", "option" : "SEO|BICL|1" }, { "passengerRph": 1, "optionGroupCode" : "priority-boarding", "option" : "" } ] } ] } } }
The response telling us a basket has been created, and the id & reference for the new basket.
{ "channel": 10, "currencyCode": "GBP", "language": "EN", "timeStamp": "2023-01-24T10:38:07", "success": true, "id": 14552, "reference": "WPYYEZKA" }
The final stage is to convert a basket into a booking. We need the basket id or reference from the previous message, and any payment details if applicable.
{ "authenticate" : { "email" : "user@domain.com", "password" : "Password1234", "type" : "B2C" }, "channel": 10, "currencyCode": "GBP", "language": "EN", "transactionType": "STORE", "customerBasketBookingDetails": { "bookingSourceId": "5", "branchId": 1, "channel": "C_Agent", "termsAndConditionsAccepted": true, "paymentDetails": { "paymentAmount": 572.60, "paymentCurrency": "GBP", "transactionDateTime": "2022-11-01T14:44:01", "transactionReference": "string", "paymentResponseText": "string", "paymentMethod": "CARD", "cardType": "VISA_CREDIT", "cardPaymentReference": "3364378406" } }, "customerBasketId": 14552, "salesAgent": "agent@company.com" }
The response indicated the booking id of the created booking
{ "channel": 10, "currencyCode": "GBP", "language": "EN", "timeStamp": "2023-01-24T10:38:20", "success": true, "affectedIds": [ 1313 ] }