Cancel Transfer Bookings Using API and Reference ID
Discover how to use Cancel API calls to cancel existing itineraries. This can be called directly with your API key with booking reference id. It returns details about a booking details associated with the itinerary id along with cancel links to cancel the booking.
Parameters
Name
Description
Accept
string
( header )
Must be application/json
Accept - Encoding
string
( header )
Must be gzip
Authorization
string
( header )
Must be Your PID
Must be Your API Key
Customer-Ip
string
( header )
Must be IP address of the customer, as captured by your integration. Send IPV4 addresses only.
Ensure your integration passes the customer’s IP, not your own. This value helps determine their location and other settings.
Also used for fraud recovery and other important analytics.
Definition and request parameters for cancel booking
action
string
( query )
Must be "cancelBooking" as parameter
Action methods in Web API controller can have one or more parameters of different types. It can be either primitive type or complex type. Web API binds action method parameters either with URL's query string or with request body depending on the parameter type.
booking_reference
string
(required)
Booking reference number taken from the confirmation response.
order_id
string
The Order ID generated at the time of booking.
REQUEST
API Endpoint: https://www.abengines.com/api/v1/travel-api/transfer-booking/
header: array( 'Content-Type:application/json', 'Accept-encoding: gzip', 'PID:'ADD-YOUR-PID', 'x-api-key:'ADD-YOUR-KEY' ); POST: { "action": "cancelBooking", "booking_reference": "207-9502843", "order_id": "12345678" }
Response
The API returns an HTTP response, which generally includes the result of the request invocation
{ "status": 200, "status_message": "OK", "responseData": { "bookings": [ { "reference": "207-9502843", "bookingFileId": null, "creationDate": "2023-07-29T12:18:59", "status": "CANCELLED", "modificationsPolicies": { "cancellation": false, "modification": false }, "holder": { "name": "Test", "surname": "Booking", "email": "praveen@thewebconz.com", "phone": "09988776655" }, "transfers": [ { "id": 1, "status": "CANCELLED", "transferType": "SHARED", "vehicle": { "code": "MNBS", "name": "Minibus" }, "category": { "code": "STND", "name": "Standard" }, "pickupInformation": { "from": { "code": "BCN", "description": "Barcelona, El Prat Airport", "type": "IATA" }, "to": { "code": "57", "description": "Barcelona Universal", "type": "ATLAS" }, "date": "2021-04-14" }, "paxes": [ { "type": "ADULT" } ], "price": { "totalAmount": 0.00, "netAmount": 0.00, "currencyId": "INR" }, "factsheetId": 690 } ], "clientReference": "5E1C4523E01DD", "remark": "", "totalAmount": 0.00, "totalNetAmount": 0.00, "pendingAmount": 0.00, "currency": "INR" } ] } }