TABLE OF CONTENTS

Introduction

Here you will find the explanation of how you can add ancillary services for provider TravelFusion on API.

Ancillary services refer to all the 'extras' that tourists may need when going on holiday or on a business trip.


Process to add


The process will go like usual, till you don't get to the add to the shopping cart, so here are the steps:


1. Search

2. Add to Shopping cart

3. Send the RQ for the ancillary ( /api/v1/cart/ancillary)

4. Confirm booking, add the ancillary for every traveler



Steps with examples


Step 1:  Search

Through API send one search request as you can see below:


Image 1. Search Request


Step 2:  Add to Shopping cart

From the search response you should pick one flight and copy the itinerary id for that chosen flight also copy the session id, paste it into the call -add the shopping cart.


Image 2. Itinerary id in the response


Image 3. Session id in the response


Image 4. Add to shopping cart request and response



Step 3: Send the request for the ancillary services

You should call ancillary through the GET method like this /api/v1/cart/ancillary?sessionId=&itineraryId= 

After you paste the itinerary id and session id from the search response you can send the ancillary request and you will see all ancillaries in the response.


Image 5. Ancillary services request and response



Step 4:  Confirm booking, add the ancillary for every traveler 

After you find your ancillary service you need to add parameter "AncillaryServiceIds" to the call for the confirmed booking.

You should copy the id for a specific ancillary and add it for the traveler you want to have that ancillary.


Image 6. Parameter Ancillary services in the request in the confirm booking call



If you want to have more ancillary for one traveler you should add it like this:

 

Image 7. More Ancillary services for one traveler in the request in the confirm booking call