Skip to main content

Webhook Events


Webhook Events

Events are actions initiated by the API that triggers the webhook automatically, when this happens, Curacel submits a POST request to the designated Webhook URL with information about the event transactions.

EventDescription
policy.createdAn insurance policy was created for your order. Note that you may receive two versions of this event. If this happens, the version that contains the provider:insurer field should take precedence.
discharge_voucher.createdA discharge voucher was issued for your claim
discharge_voucher.paidThe accepted discharge voucher has been paid
claim.settledA claim has been settled. Typically fired after the claim's voucher has been paid
order.cancelledAn order was cancelled.
instalment.dueYour card is about to be charged for a recurring policy payment. Return a 2XX status to authorise the charge.

Below are examples data contained in the webhook events.

{
"event":"policy.created",
"data":{
"id":16,
"number":"343473",
"description":null,
"start_date":"2022-08-24T00:00:00.000000Z",
"end_date":"2022-09-10T00:00:00.000000Z",
"status":null,
"provider": "Curacel",
"insurer":{
"id":3,
"code":"OM",
"name":"OLD MUTUAL",
"currency":"NGN"
},
"customer":{
"id":65,
"ref":"Curacel_65",
"first_name":"Emeka",
"last_name":"Adirije",
"birth_date":"2006-08-15T00:00:00.000000Z",
"email":"emeka.adirije@example.com",
"phone":"08123456789"
},
"document":{
"name":"curacel_343473.jpg",
"download":"https:\/\/api.playbox.grow.curacel.co\/api\/v1\/policies\/16\/doc"
},
"order":{
"id":129,
"amount_due":9750.54,
"premium": 10000,
"asset_ref":null,
"status":"policy_created",
"currency":"NGN",
"channel":"Dashboard"
}
}
}