Cancellation Workflow
Cancel a specific policy booking
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.

Booking Retrieval
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.
Retrieve a Booking
GET https://api.xcover.com/x/partners/:partner_id/bookings/:quote_package_id
Retrieves a specific booking by providing the quote package ID.
Path Parameters
partner_id
string
Unique Partner Code
quote_package_id
string
Quote Package ID (INS)
Headers
Content-Type
string
application/json
Date
string
Current Datetime
Authorization
string
HMAC Signature
X-Api-Key
string
API Key
Booking Cancellation
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.
Cancel Booking
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.
Path Parameters
partner_id
string
Unique Partner Code
quote_package_id
string
Quote Package ID
Headers
Content-Type
string
application/json
Date
string
Current Datetime
Authorization
string
HMAC Signature
X-Api-Key
string
API Key
Preview a Cancellation
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.
Preview Cancellation
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.
Path Parameters
partner_id
string
Unique Partner Code
quote_package_id
string
Quote Package ID
Headers
Content-Type
string
application/json
Date
string
Current Datetime
Authorization
string
HMAC Signature
X-Api-Key
string
API Key
Confirm Cancellation
To confirm a cancellation that has been previewed a request to the following endpoint needs to be made.
Confirm Cancellation
POST https://api.xcover.com/x/partners/:partner_id/bookings/:quote_package_id/confirm_cancellation
Confirm the previewed cancellation.
Path Parameters
partner_id
string
Unique Parter Code
quote_package_id
string
Quote Package ID
cancellation_id
string
Cancellation ID
Headers
Content-Type
string
application/json
Date
string
Current Datetime
Authorization
string
HMAC Signature
X-Api-Key
string
API Key
Last updated
Was this helpful?