Cancel Confirmed Insurance Policy with Booking Details

This method is used to cancel a confirm policy.

Parameters

Name

Description

Accept

string

( header )

*required application/json

Accept - Encoding

string

( header )

*required gzip

Authorization

string

( header )

Must be Your PID

Must be Your API Key

Definition and request parameters for cancel the booking.

action

string

( query )

*required "cancelBooking" as a parameter

BookingId

Integer

Unique booking id of successful booking

order_id

Integer

Order Id

Remarks

String

Remark for cancellation

REQUEST

API Endpoint: https://www.abengines.com/api/v1/travel-api/insurance/

header: array(
'Content-Type:application/json',
'Accept-encoding: gzip',
'PID:'ADD-PID-KEY',
'x-api-key:'ADD-API-YOUR-KEY'
);

POST: 
{
    "action": "cancelBooking",
    "BookingId": "1853094",
    "Remarks": "ooking for testing Purpose",
    "order_id": "677889999"
}
					 

Response

The API returns an HTTP response, which generally includes the result of the request invocation

{
  "Response": {
    "ResponseStatus": 1,
    "Error": {
      "ErrorCode": 0,
      "ErrorMessage": ""
    },
    "TraceId": "2c4cfbf3-04c5-4505-a646-0cd79287be6f",
    "PassengerChangeRequest": [
      {
        "CancellationCharge": 0,
        "ChangeRequestId": 4222426,
        "ChangeRequestStatus": 3,
        "CreditNoteCreatedOn": "2018-10-09T09:10:45",
        "CreditNoteNo": "MZ/1819/72866",
        "KrishiKalyanCess": 0,
        "Passenger Name": "MR Praveen Sharma",
        "PolicyNo": "1853094",
        "RefundedAmount": 132.7,
        "Remarks": "Booking for testing Purpose",
        "SwachhBharatCess": 0
      }
    ]
  }
}