Skip to main content

Webhook for Claims

Webhooks enable you to receive data to a specific URL whenever certain actions are performed on your integration. Each action is referred to as an event.

A webhook URL is an endpoint on your server where you can receive notifications about such events.

To Setup your webhook URL​

  • Login to the settings page of your organization's account on the web platform
  • Go to developer access, there you would see where to specify your webhook URL.

Webhook Request and Response​

Curacel sends claim webhook notifications as HTTP POST requests with a JSON body.

Your webhook endpoint should return any 2xx HTTP status code after receiving the payload successfully. If your endpoint returns a non-2xx response or does not respond before the request timeout, Curacel will retry the webhook delivery.

If webhook authorization is enabled for your organization, Curacel includes an Authorization header in the request:

Authorization: Bearer {access_token}

Events​

Possible types of events to expect are below:

Note

For claim webhooks, the top-level name and event fields contain the same event name. Existing integrations should use event to determine the webhook type.

Claim Submitted​

This event is triggered when a claim is submitted successfully.

The payload structure to expect is below:

JSON
{
"name": "claim.submitted",
"event": "claim.submitted",
"data": {
"id": 12345,
"pile_id": 678,
"ref": "CLAIM-REF-001",
"encounter_date": "2026-09-03T00:00:00.000000Z",
"amount_billed": 25000,
"approved_amount": 0,
"is_submitted": true,
"created_at": "2026-09-03T08:00:00.000000Z",
"updated_at": "2026-09-03T08:00:00.000000Z",
"submitted_at": "2026-09-03T08:00:00.000000Z",
"vetted_at": null,
"status": "Submitted",
"approval_status": null,
"co_payment_fee": null,
"provider": {
"id": 10,
"name": "Care Provider Hospital",
"code": "PROV-001"
},
"insurer": {
"id": 4,
"name": "Example HMO",
"code": "EXHMO"
},
"code": "EXHMO",
"enrollee": {
"id": 2001,
"insurance_no": "INS123456",
"first_name": "John",
"last_name": "Doe",
"birthdate": "1990-01-01",
"policy_start_date": "2026-01-01",
"sex": "male",
"is_floating": false,
"status": "active",
"hmo_plan": {
"id": 33,
"name": "Gold Plan"
},
"type": "principal",
"nin": null,
"tin": null,
"bvn": null,
"address": "12 Sample Street",
"phone": "08000000000",
"policy_end_date": "2026-12-31"
},
"diagnoses": [
{
"name": "Malaria",
"english_name": "Malaria",
"icd_code": "B54"
}
],
"items": [
{
"ref": "ITEM-001",
"description": "Consultation",
"unit_price_billed": 5000,
"unit_price_approved": null,
"qty_billed": 1,
"qty_approved": null,
"sub_total_billed": 5000,
"sub_total_approved": null,
"comments": null,
"status": null,
"tariff_match_status": null,
"tariff_match_source": null,
"tariff_match_confidence": null,
"tariff_match_description": null,
"tariff_match_normalized_description": null,
"tariff_match_candidates": null,
"tariff_pricing_status": null,
"tariff_pricing_source": null,
"benefit": null
}
],
"attachments": [
{
"id": 501,
"title": "Invoice",
"file_type": "pdf",
"filename": "invoice.pdf",
"file_url": "https://example.com/invoice.pdf"
}
],
"specialist_info": null,
"symptom_diagnosis_context": null
}
}

Claim Pile Vetting Done​

This event is triggered after all claims in a pile have been vetted, gone through the entire process (including multiple audits if configured) and the pile has a status of 'Vetting Done'. It will be triggered for every single claim within the pile.

Note

The notification for each claim within a pile will be sent one after the other and not all at once, considering there are typically many claims in a pile so as not to overload your servers.

The payload structure to expect is below:

JSON
{
"event":"claim.pile.vetting_done",
"data":{
"id": {integer},
"pile_id": {integer},
"ref": {string},
"provider": {
"id": {integer},
"name": {string},
"code": {string}
},
"encounter_date": "2021-09-05T00:00:00.000000Z",
"enrollee_id": {integer},
"billed_amount": {float},
"approved_amount": {float},
"approval_status": {null, 0 or 1},
"vetted_at": "2022-02-16T16:17:32.000000Z",
"diagnoses": [
{
"name": {string},
"icd_code": {string}
}
],
"items": [
{
"ref": {string},
"description": {string},
"unit_price_billed": {integer},
"unit_price_approved": {integer},
"qty_billed": {integer},
"qty_approved": {integer},
"sub_total_billed": {integer},
"sub_total_approved": {integer},
"comments": {array}, //
"approval_status": {null, 0 or 1},
"benefit": {
"id": {integer},
"label": {string},
"source_type": {string},
"care_group": {
"id": {integer},
"name": {string}
}
}
}
]
}
}

Claim Vetted​

This event is triggered when an individual claim is vetted or an auto-vet result is applied, regardless of whether the entire pile has been vetted. A completed auto-vet recommendation does not by itself guarantee that this event is sent: applying the result can happen automatically or later, depending on the insurer’s settings.

The payload structure to expect is below:

JSON
{
"name": "claim.vetted",
"event": "claim.vetted",
"data": {
"id": 12345,
"pile_id": 678,
"ref": "CLAIM-REF-001",
"encounter_date": "2026-09-03T00:00:00.000000Z",
"amount_billed": 25000,
"approved_amount": 20000,
"is_submitted": true,
"created_at": "2026-09-03T08:00:00.000000Z",
"updated_at": "2026-09-03T09:00:00.000000Z",
"submitted_at": "2026-09-03T08:00:00.000000Z",
"vetted_at": "2026-09-03T09:00:00.000000Z",
"status": "Vetted",
"approval_status": 1,
"co_payment_fee": null,
"provider": {
"id": 10,
"name": "Care Provider Hospital",
"code": "PROV-001"
},
"insurer": {
"id": 4,
"name": "Example HMO",
"code": "EXHMO"
},
"code": "EXHMO",
"enrollee": {
"id": 2001,
"insurance_no": "INS123456",
"first_name": "John",
"last_name": "Doe",
"birthdate": "1990-01-01",
"policy_start_date": "2026-01-01",
"sex": "male",
"is_floating": false,
"status": "active",
"hmo_plan": {
"id": 33,
"name": "Gold Plan"
},
"type": "principal",
"nin": null,
"tin": null,
"bvn": null,
"address": "12 Sample Street",
"phone": "08000000000",
"policy_end_date": "2026-12-31"
},
"diagnoses": [
{
"name": "Malaria",
"english_name": "Malaria",
"icd_code": "B54"
}
],
"items": [
{
"ref": "ITEM-001",
"description": "Consultation",
"unit_price_billed": 5000,
"unit_price_approved": 5000,
"qty_billed": 1,
"qty_approved": 1,
"sub_total_billed": 5000,
"sub_total_approved": 5000,
"comments": null,
"status": 1,
"tariff_match_status": null,
"tariff_match_source": null,
"tariff_match_confidence": null,
"tariff_match_description": null,
"tariff_match_normalized_description": null,
"tariff_match_candidates": null,
"tariff_pricing_status": null,
"tariff_pricing_source": null,
"benefit": {
"id": 44,
"label": "Outpatient Consultation",
"source_type": "care",
"care_group": {
"id": 12,
"name": "Consultation"
}
}
}
],
"attachments": [
{
"id": 501,
"title": "Invoice",
"file_type": "pdf",
"filename": "invoice.pdf",
"file_url": "https://example.com/invoice.pdf"
}
],
"specialist_info": null,
"symptom_diagnosis_context": null
}
}

Send feedback on an item recommendation​

Insurer integrations can submit their final decision for an item after Curacel has saved a recommendation. Provide a unique ref for each item when creating the claim; Curacel returns the claim reference as data.ref and each item reference as data.items[n].ref in claim webhook payloads. Do not use tariff_code as the item reference: multiple items can share a tariff.

A claim.submitted notification can arrive before vetting is complete. claim.vetted follows application of the vetting result; automatic application depends on your insurer settings. A claim-level rejection or a skipped item may not have an item-level recommendation and cannot be used for recommendation feedback. Items supplied with prior adjudication are skipped by recommendation generation when that capability is enabled.

Send a POST to /api/v1/claims/recommendation-feedback using a bearer token for an HMO user belonging to the claim's insurer:

{
"claim_ref": "CLAIM-REF-001",
"item_ref": "ITEM-001",
"decision": "overridden",
"final_status": "approved",
"approved_qty": 2,
"approved_amount": 10000,
"reason": "Approved after review"
}

Use decision: "overridden" to submit the insurer's final status and reason. An approved override also requires approved_qty and approved_amount. A rejected override sets the final quantity and amount to zero. Alternatively, use decision: "confirmed" to apply the current recommendation; an approved recommendation must include a quantity and amount.

A successful request returns 200 and includes the claim and item refs, final status, quantity, amount, and Curacel's internal recommendation_version. The endpoint updates the item and claim totals. The request does not require a client-generated idempotency key or a recommendation version. If a version is supplied, it must match the current recommendation; the webhook does not currently include it. Without a supplied version, a confirmation applies the recommendation current when the request is processed.

An unchanged retry of the most recent feedback returns its previous response when the recommendation and applied item values are also unchanged. If a later decision has intervened, an old retry can be applied as a new decision. Coordinate retries with later feedback for the same item.

A 404 means a reference was not found in the authenticated HMO's claim or the claim's items. A 409 indicates an ambiguous reference or stale supplied version. A 422 indicates invalid input or that no item recommendation is available. See the recommendation feedback API reference for the complete request and response fields.

Payload Data Description​

AttributeDescription
nameEvent name. For claim webhooks, this is the same value as event.
eventEvent name, for example claim.submitted or claim.vetted.
dataClaim payload for the event.
idId of the auto-vetted claim
pile_idId of the pile the claim belongs to
refUnique identifier for the claim on the source's system.
providerProvider to which claim is attached
provider.idThe id of the provider
provider.nameThe name of the provider
provider.codeThe provider code
insurerInsurer/HMO attached to the claim.
insurer.idThe id of the insurer/HMO.
insurer.nameThe name of the insurer/HMO.
insurer.codeThe insurer/HMO code.
codeInsurer/HMO code.
encounter_dateThe encounter date
enrollee.idId of the enrollee
amount_billedTotal amount requested on the claim.
approved_amountdecimal-based value of the approved amount after auto-vetting
is_submittedIndicates whether the claim has been submitted.
created_atClaim creation timestamp.
updated_atClaim last update timestamp.
submitted_atClaim submission timestamp.
approval_statusstatus of the claim (0 = rejected, null = pending, 1 = approved).
vetted_atA timestamp indicating when the claim was vetted
diagnoses[n]Collection of claim diagnoses.
diagnoses[n].nameUnique name of the diagnosis
diagnoses[n].english_nameEnglish diagnosis name.
diagnoses[n].icd_codeUnique icd code of diagnosis
items[n].refUnique identifier for the claim item as it is on the source system. E.g it’s id
items[n].descriptionDescription of the service rendered to the enrollee
items[n].unit_price_billedRequested unit price of the item
items[n].unit_price_approvedThe approved unit price of the item after auto-vetting.
items[n].qty_billedQuantity of the claim item
items[n].qty_approvedApproved quantity of claim item after auto-vetting
items[n].sub_total_billedThe total amount of claim item (unit_price_billed * qty)
items[n].sub_total_approvedThe total amount of claim item (unit_price_approved * qty_approved)
items[n].commentsA collection of the claim item comments after auto-vetting
items[n].statusApproval status of the claim item. (null = pending, 0 = rejected, 1 = approved)
attachments[n]Collection of claim attachments.
specialist_infoSpecialist information submitted with the claim, if available.
symptom_diagnosis_contextSymptom-to-diagnosis context, if available.
items[n].benefitResolved benefit summary for the claim item based on the enrollee's active plan
items[n].benefit.idThe matched plan benefit ID
items[n].benefit.labelHuman-readable benefit label
items[n].benefit.source_typeMatch source such as care, care_group, or care_type
items[n].benefit.care_groupPresent when the benefit match came from a care-group rule