Skip to main content

ERM Webhook

POST: https://api.creditchek.africa/v1/erm/policy/webhook A sample request made to your set webhook url, updating you with the status of the policy

Request Parameters

NamePositionRequiredDescription
tokenHeadersTrueapp public key
Example Request
---
curl --location --request POST 'http://localhost:3014/v1/erm/policy/webhook' \
--header 'Content-Type: application/json' \
--data-raw '{
"event": "policy.created",
"data": {
"id": 3523,
"number": "CUR/CREDITCHEK/POLC/GIT/23/5971",
"description": null,
"start_date": "2023-10-10T00:00:00.000000Z",
"end_date": null,
"status": null,
"provider": "curacel",
"insurer": {
"id": 1,
"code": "LEADWAY",
"name": "Leadway",
"currency": "NGN"
},
"customer": {
"id": 8228,
"ref": "b7758ed1-dbae-4f81-b2b4-9c5fea3384fc",
"first_name": "Jane",
"last_name": "Doe",
"birth_date": "2000-10-10T00:00:00.000000Z",
"email": "[email protected]",
"phone": "090900000088"
},
"document": {
"name": "curcreditchekpolcgit235971_curacel.pdf",
"download": "https://api.playbox.grow.curacel.co/api/v1/policies/3523/doc"
},
"order": {
"id": 5969,
"amount_due": 633.6,
"asset_ref": null,
"status": "paid",
"currency": "NGN",
"channel": "API",
"premium": 660
}
}
}'
---
Response