Remove Service

The remove api call assumes that a booking has been retrieved and the activity you are trying to remove is present in the booking and has the id mentioned at the start of this document. 

IMPORTANT: If the booking contains a single activity, please, cancel the booking (see Cancel API call) instead of removing the activity from the booking. Ask support@activitiesbank.com in case of doubt. 

Specification

Live URL: https://api.hotelbeds.com/activity-api/3.0/bookings/remove/{{lang}}/{{reference}}

Test URL: https://api.test.hotelbeds.com/activity-api/3.0/bookings/remove/{{lang}}/{{reference}}

Method: DELETE 

The booking number is passed as a parameter in the URL (see specification above) and the POST body contains an object with the new activity to be added. 

The following is a removal request example:

URL: https://api.hotelbeds.com/activity-api/3.0/bookings/remove/en/102-6111816


    "clientReference": "Exp 213452/2016",
    "serviceToRemove":
    {
        "activityId": "102#O#1"
    }

The serviceToRemove contains the id of the service to be removed.  The response for the operation is detailed in the booking Detail API call.

The URL contains the language in which the response will be returned (see Booking Detail response) for a better understanding on what you are going to receive as a response of a Remove Service API call.

Docs Navigation