Cancellation Workflow
Cancel a specific policy booking
Last updated
Cancel a specific policy booking
Last updated
Cancelling a policy booking is used where a user no longer requires coverage, and has contacted the partner directly to cancel this policy.
For example: Cancellation of a Product insurance policy where the product is on-sold or no longer needed. Where a refund is due, the partner (depending on method of payment collection, and policy cooling off period) may need to provide a refund to the user. This calculated pro-rata refund for the user (where applicable) is returned in the Cancellation response.
The first step is to obtain information regarding the customers purchased insurance, this step can be skipped if you have stored all relevant information about a customers insurance booking such as INS number, Quote IDs, price paid, etc.
GET
https://api.xcover.com/x/partners/:partner_id/bookings/:quote_package_id
Retrieves a specific booking by providing the quote package ID.
partner_id
string
Unique Partner Code
quote_package_id
string
Quote Package ID (INS)
Content-Type
string
application/json
Date
string
Current Datetime
Authorization
string
HMAC Signature
X-Api-Key
string
API Key
Once a booking has been retrieved, check the can_be_cancelled
flag is set to true
in the response before issuing a cancellation request.
To ensure you refund the correct amount to the customer, it is recommended to first preview a cancellation and then confirm the cancellation once you have successfully issued the refund.
POST
https://api.xcover.com/x/partners/:partner_id/bookings/:quote_package_id/cancel
The booking cancel endpoint accepts a JSON payload against the URI containing the Quote Package ID returned by a /booking
request. The payload consists of a list of quotes selected for cancellation and an optional reason for the cancellation.
partner_id
string
Unique Partner Code
quote_package_id
string
Quote Package ID
Content-Type
string
application/json
Date
string
Current Datetime
Authorization
string
HMAC Signature
X-Api-Key
string
API Key
An optional preview
flag can be set to true in the booking cancellation request payload, the response will confirm a refund amount and timeframe required before cancellation can be completed.
It is important to note key details in the response, including thecancellation_id
,total_refund
amount and theconfirm_before
datetime
POST
https://api.xcover.com/x/partners/:partner_id/bookings/:quote_package_id/cancel
The booking cancel endpoint accepts a JSON payload against the URI containing the Quote Package ID returned by a /booking
request. The payload consists of a the preview
flag set to true along with a list of quotes selected for cancellation and an optional reason for the cancellation.
partner_id
string
Unique Partner Code
quote_package_id
string
Quote Package ID
Content-Type
string
application/json
Date
string
Current Datetime
Authorization
string
HMAC Signature
X-Api-Key
string
API Key
To confirm a cancellation that has been previewed a request to the following endpoint needs to be made.
POST
https://api.xcover.com/x/partners/:partner_id/bookings/:quote_package_id/confirm_cancellation
Confirm the previewed cancellation.
partner_id
string
Unique Parter Code
quote_package_id
string
Quote Package ID
cancellation_id
string
Cancellation ID
Content-Type
string
application/json
Date
string
Current Datetime
Authorization
string
HMAC Signature
X-Api-Key
string
API Key