Cancellations
Cancel a policy whose premium you collected yourself, and refund your customer.
This applies to policies you sold with your own collection, where you passed the premium on to Inshuwa less your commission. For those, Inshuwa returns its part of the refund to the insurer's cancellation wallet, and you pay the customer.
How it works
- You request the cancellation with your own reference and the reason.
- The insurer or Inshuwa approves it. They may revise the refund first. If your agreement includes automatic approval, this step is skipped.
- Inshuwa moves its part of the refund into the insurer's cancellation wallet, and the policy is cancelled.
- We tell you it is ready: a cancellation webhook if you have one set up, or the status endpoint if you poll.
- You pay the customer the full refund.
Request a cancellation
Set it once and every Try it out below is authenticated. It stays in this browser's local storage and is never sent anywhere but the API.
/policies/{policyId}/cancelPlayground
Authorization
Variables
Body
referenceis your own id for this cancellation, up to 100 characters. Sending the same reference again returns the existing cancellation rather than starting a second one, so it is safe to retry.reasonis required, up to 500 characters. The insurer sees it when deciding.- The refund is time on risk as of today: the part of the premium for the cover the customer won't use.
The response splits the refund three ways:
| Field | What it is |
|---|---|
refundAmount | What the customer is refunded in total. |
fundedAmount | Inshuwa's part, moved into the insurer's cancellation wallet. |
partnerShare | Your part: the commission you kept at sale, in proportion to the refund. You add it when you pay the customer. |
refundAmount is always fundedAmount plus partnerShare.
initiatedBy is Partner for a cancellation you asked for, and Insurer for one the insurer started (see below).
Track the cancellation
/policies/{policyId}/cancellationPlayground
Authorization
Variables
| Status | Meaning | What you do |
|---|---|---|
PendingApproval | Waiting for the insurer or Inshuwa. | Wait. |
Processing | Approved. The refund is being moved into the cancellation wallet. | Wait. |
ReadyForDisbursement | The policy is cancelled and Inshuwa's part is in the cancellation wallet. | Pay the customer refundAmount. |
Rejected | The insurer or Inshuwa declined it. The policy stays on cover. | Tell the customer; nothing is refunded. |
TIP
Read the amounts again when the status reaches ReadyForDisbursement. The insurer can revise the refund before approving it, and the new figures replace the ones you got when you made the request.
When the insurer cancels
A customer can skip you and ask the insurer to cancel. When the insurer (or Inshuwa) cancels a policy whose premium you collected, it runs the same way as one you asked for: someone at the insurer approves it, Inshuwa moves its part of the refund into the insurer's cancellation wallet, and you pay the customer.
You don't call anything to start it. You receive the same events and statuses, so the handler you already have for your own cancellations covers it. What is different:
initiatedByisInsurer.referenceis Inshuwa's, startingINSHUWA-, not one of yours. Match the event to the policy bypolicyIdand record the reference against it.- The refund is the one the insurer chose, not necessarily time on risk as of today.
- Automatic approval doesn't apply. Your agreement covers cancellations you ask for, not the insurer's.
While it is in progress you can't start a cancellation of your own on that policy. If the insurer aborts it, you receive cancellation.rejected and the policy stays on cover.
When a request is refused
The request fails with 400 Bad Request and a message saying why when:
- The premium wasn't collected by you. Only policies sold with your own collection can be cancelled here.
- The premium was paid to the insurer, not passed on to Inshuwa. The insurer refunds those directly.
- The premium has already been settled to the insurer. Contact Inshuwa to cancel it.
- The policy is already cancelled, or a cancellation is already in progress under a different reference.
- The insurer isn't set up for cancellation refunds. Contact Inshuwa.
A policy you didn't sell returns 404 Not Found.
Next: Webhooks.
