Skip to content

Cancel a policy whose premium you collected​

POST
/policies/{policyId}/cancel

The refund is time on risk as of today. Inshuwa moves its part of the refund into the insurer's cancellation wallet once the cancellation is approved, then reports ReadyForDisbursement (and POSTs cancellation.ready_for_disbursement to your cancellation callback URL, if set); you then pay the customer. Sending the same reference again returns the cancellation's status.

Authorizations​

BearerAuth
Type
HTTP (bearer)

Parameters​

Path Parameters

policyId*
Type
string
Required

Request Body​

application/json
JSON
{
  
"reference": "string",
  
"reason": "string"
}

Responses​

The cancellation as it now stands. The refund is time on risk as of today; fundedAmount is what Inshuwa moves into the insurer's cancellation wallet, partnerShare is the commission you kept at sale, which you add when you pay the customer. Sending the same reference again returns this cancellation instead of starting another.

application/json
JSON
{
  
"reference": "string",
  
"policyId": "string",
  
"policyNumber": "string",
  
"status": "string",
  
"refundAmount": 0,
  
"fundedAmount": 0,
  
"partnerShare": 0,
  
"currency": "string",
  
"reason": "string",
  
"initiatedBy": "string"
}

Playground​

Authorization
Variables
Key
Value
Body

Samples​

Built with ❤️ by Hobbiton Technologies