Endpoints for billing and invoice management.
Resolve POMSF tariffs (bundle-aware)
Forwards the request to the terminology-service bundle-aware POMSF tariff resolver. When HCW identifier details are supplied the practitioner speciality is derived from the health worker registry and normalised to GP|SPECIALIST before forwarding. Requires the feature flag POMSF_RATES_SOURCE=terminology; when it is unset or set to any other value the resolver is disabled and the endpoint returns 501 Not Implemented.
Related documentation: PMF Tariffs Guide
Headers
X-Facility-IdFacility Registry (FR) code identifying the facility. Required when authenticating with a service-account token.
X-Facility-Id-TypeType of identifier supplied in X-Facility-Id. Currently only fr-code is supported.
Resolve POMSF tariffs (bundle-aware) › Request Body
fr_codeFacility registry code of the facility the tariffs are requested for.
intervention_codesSHA intervention codes to resolve tariffs for.
as_ofEffective date used to resolve tariffs.
hcw_identifierIdentifier of the health care worker, matching the identifier type. Example is dummy data.
hcw_identifier_typeType of identifier supplied for the health care worker.
hcw_regulatorRegulatory body that registered the health care worker.
keph_levelKEPH level of the facility used to resolve tariffs.
schemeBenefit scheme the tariffs are resolved under.
specialityPractitioner speciality the tariffs apply to.
Resolve POMSF tariffs (bundle-aware) › Responses
OK
date_uploadedeligible_to_billfacility_levelfacility_namefr_codehas_negotiated_tariffis_contractedspecialityunmatched_codeswithout_negotiated_rateEvaluate POMSF rates
Looks up the health care worker in the health worker registry to derive their speciality, then evaluates the published POMSF rates rule set against the provided facility and interventions, returning the parsed tariff entries
Related documentation: PMF Tariffs Guide
Headers
X-Facility-IdFacility Registry (FR) code identifying the facility. Required when authenticating with a service-account token.
X-Facility-Id-TypeType of identifier supplied in X-Facility-Id. Currently only fr-code is supported.
Evaluate POMSF rates › Request Body
fr_codeFacility registry code of the facility the rates are requested for.
intervention_codesSHA intervention codes to resolve rates for.
hcw_identifierIdentifier of the health care worker, matching the identifier type. Example is dummy data.
hcw_identifier_typeType of identifier supplied for the health care worker.
hcw_regulatorRegulatory body that registered the health care worker.
Evaluate POMSF rates › Responses
OK
fr_codehas_negotiated_ratesintervention_codesis_contractedspecialityAdd a claim attachment
Adds a supporting attachment (uploaded file) to an existing virtual claim for a given intervention.
Related documentation: Add Attachment, Adding Attachments Guide
Headers
X-Facility-IdFacility Registry (FR) code identifying the facility. Required when authenticating with a service-account token.
X-Facility-Id-TypeType of identifier supplied in X-Facility-Id. Currently only fr-code is supported.
Add a claim attachment › Request Body
consent_tokenAuthorization code from claim creation. Signifies an authorised claim.
file_blobThe attachment's binary file content.
document_typeType of the supporting document being attached to the claim.
intervention_codeSHA intervention code the attachment is associated with.
Add a claim attachment › Responses
Claim attachment added successfully
attachmentattachment_typeclaimdatadebug_datadescriptionidintervention_codelast_retryretry_counttitleRemove a claim attachment
Removes a previously uploaded attachment from an existing virtual claim.
Related documentation: Remove Attachment, Adding Attachments Guide
Headers
X-Facility-IdFacility Registry (FR) code identifying the facility. Required when authenticating with a service-account token.
X-Facility-Id-TypeType of identifier supplied in X-Facility-Id. Currently only fr-code is supported.
Remove a claim attachment › Request Body
attachment_idIdentifier of the attachment to remove from the claim.
consent_tokenPatient consent token authorising the change.
intervention_codeSHA intervention code the attachment is linked to.
Remove a claim attachment › Responses
Claim attachment removed successfully
@Description Response data payload containing operation details @Example {"status": "success"}
message@Description Success message describing the operation result @Example "Visit has been successfully started"
Add a diagnosis to a claim
Adds a diagnosis (ICD code) to an existing virtual claim for a specific intervention.
Related documentation: Add Diagnosis
Headers
X-Facility-IdFacility Registry (FR) code identifying the facility. Required when authenticating with a service-account token.
X-Facility-Id-TypeType of identifier supplied in X-Facility-Id. Currently only fr-code is supported.
Add a diagnosis to a claim › Request Body
consent_tokenBeneficiary consent token authorizing the diagnosis to be added.
icd_codeICD-10 diagnosis code being added to the claim or preauthorization.
intervention_codeSHA intervention (benefit package) code the diagnosis is associated with.
practitioner_identification_numberOptional. Identification number of the attending practitioner (doctor). Provide the identification number, identification type and regulation body together to attach the doctor to the claim if they were not added before. The same doctor details can be supplied through any of the three endpoints — Create Virtual Claim, Add Diagnosis, or Add Billable Line Item. Example is dummy data.
practitioner_identification_typeOptional. Type of identifier used for the attending practitioner (doctor).
practitioner_regulation_bodyAdd a diagnosis to a claim › Responses
diagnosis added successfully
claimclaim_diagnosis_iddiagnosisdiagnosis_codediagnosis_nameedi_claim_diagnosis_guidedi_claim_diagnosis_replicatedintervention_codeis_flagged_diagnosisis_inpatientoriginal_visit_datepatient_numberrecorded_onsite_codesite_code_typevisit_numberRemove a claim diagnosis
Removes a diagnosis from an existing virtual claim.
Related documentation: Remove Diagnosis
Headers
X-Facility-IdFacility Registry (FR) code identifying the facility. Required when authenticating with a service-account token.
X-Facility-Id-TypeType of identifier supplied in X-Facility-Id. Currently only fr-code is supported.
Remove a claim diagnosis › Request Body
consent_tokenPatient consent token authorising the change.
icd_codeICD-10 code of the diagnosis to remove from the claim.
intervention_codeSHA intervention code the diagnosis is linked to.
Remove a claim diagnosis › Responses
Claim diagnosis removed successfully
@Description Response data payload containing operation details @Example {"status": "success"}
message@Description Success message describing the operation result @Example "Visit has been successfully started"
Add a billable line item to a claim
Adds a billable line item to an existing virtual claim; accepts a JSON body or multipart form-data. unit_price and quantity are required.
Related documentation: Add a New Line, Add Combined Billing Details, Adding Attachments Guide
Headers
X-Facility-IdFacility Registry (FR) code identifying the facility. Required when authenticating with a service-account token.
X-Facility-Id-TypeType of identifier supplied in X-Facility-Id. Currently only fr-code is supported.
Add a billable line item to a claim › Request Body
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object · requires: consent_token, intervention_code, unit_price +1 more | |
| type = object · requires: consent_token, intervention_code, unit_price +1 more |
consent_tokenAuthorization code from claim creation. Signifies an authorised claim.
intervention_codeIntervention code for the service being billed.
unit_priceUnit price of the service. A numeric value sent as a string.
quantityQuantity billed. A numeric value sent as a string.
service_nameHuman-readable name of the service being billed.
service_identifierFacility's own identifier for the service.
practitioner_identification_typeOptional. Identification type of the attending practitioner (doctor). Supply the three practitioner fields together to attach the doctor's details to the line.
practitioner_identification_numberOptional. Identification number of the attending practitioner (doctor). Provide the identification number, identification type and regulation body together to attach the doctor to the claim if they were not added before. The same doctor details can be supplied through any of the three endpoints — Create Virtual Claim, Add Diagnosis, or Add Billable Line Item. Example is dummy data.
practitioner_regulation_bodyOptional. Regulation body the attending practitioner is registered with.
Add a billable line item to a claim › Responses
Claim line item added successfully
attributesbill_frombill_tocharge_datediscountdiscount_reasondoctor_codedoctor_nameidintervention_codeinvoiceis_activeis_cancellationis_returnitem_codeitem_nameline_copayline_net_amountline_numberline_total_amountlinked_invoice_linemap_requestmap_request_descriptionmapped_slade_codenhif_rebate_amountpatient_discount_amountpatient_net_pricepmf_line_statusquantityscheme_codescheme_namesponsor_net_priceuhc_exceededunitunit_priceRemove a claim line
Removes a line item from an existing virtual claim. The line_guid in the request is the id of the line taken from the claim's invoices.lines.
Related documentation: Remove Line
Headers
X-Facility-IdFacility Registry (FR) code identifying the facility. Required when authenticating with a service-account token.
X-Facility-Id-TypeType of identifier supplied in X-Facility-Id. Currently only fr-code is supported.
Remove a claim line › Request Body
consent_tokenPatient consent token authorising the change.
line_guidGUID of the claim line item to remove.
Remove a claim line › Responses
Claim line removed successfully
@Description Response data payload containing operation details @Example {"status": "success"}
message@Description Success message describing the operation result @Example "Visit has been successfully started"
Edit a claim line
Edits an existing line item in a virtual claim. Allowed only on RESUBMISSION, and an edit may only adjust an amount DOWNWARD. The line_id in the request is the id of the line taken from the claim's invoices.lines.
Related documentation: Edit Claim Line
Headers
X-Facility-IdFacility Registry (FR) code identifying the facility. Required when authenticating with a service-account token.
X-Facility-Id-TypeType of identifier supplied in X-Facility-Id. Currently only fr-code is supported.
Edit a claim line › Request Body
consent_tokenPatient consent token authorising the claim line edit.
line_idUnique identifier of the claim line item to edit.
quantityUpdated quantity for the claim line item.
unit_priceUpdated unit price for the claim line item, in KES.
Edit a claim line › Responses
Claim line edited successfully
attributesbill_frombill_tocharge_datediscountdiscount_reasondoctor_codedoctor_nameidintervention_codeinvoiceis_activeis_cancellationis_returnitem_codeitem_nameline_copayline_net_amountline_numberline_total_amountlinked_invoice_linemap_requestmap_request_descriptionmapped_slade_codenhif_rebate_amountpatient_discount_amountpatient_net_pricepmf_line_statusquantityscheme_codescheme_namesponsor_net_priceuhc_exceededunitunit_priceResubmit a claim line
Resubmits a previously rejected or failed claim line so it can be reprocessed.
Related documentation: Resubmit Claim, Claim Resubmission Guide
Headers
X-Facility-IdFacility Registry (FR) code identifying the facility. Required when authenticating with a service-account token.
X-Facility-Id-TypeType of identifier supplied in X-Facility-Id. Currently only fr-code is supported.
Resubmit a claim line › Request Body
consent_tokenConsent token authorising resubmission of the claim line.
Resubmit a claim line › Responses
Claim line resubmitted successfully
line_idmessageresubmitted_atstatusPreview a provider claim
Previews the details of a virtual claim as the provider before submission, so the assembled claim can be reviewed.
Related documentation: Preview Provider Claim
Headers
X-Facility-IdFacility Registry (FR) code identifying the facility. Required when authenticating with a service-account token.
X-Facility-Id-TypeType of identifier supplied in X-Facility-Id. Currently only fr-code is supported.
Preview a provider claim › Request Body
consent_tokenConsent token from the authorization/visit step, identifying the claim to preview.
Preview a provider claim › Responses
Claim preview retrieved successfully
authorization_codeclaim_attachments_countclaim_auth_statuscreated_by_namediagnoses_countidinvoice_attachments_countis_negativeis_zeromember_numbernumber_of_invoicespatient_namepatient_numberprovider_namescheme_codescheme_nameservice_typetotal_claim_amounttotal_claim_copaytotal_claim_discounttotal_claim_net_amounttotal_claim_splitsvisit_endvisit_startworkflow_statePreview a payer claim
Previews how a claim will appear to the payer before submission. Identify the claim by its claim invoice guid, or alternatively by its provider_claim_no.
Related documentation: Preview Payer Claim
query Parameters
guidClaim invoice guid (alternatively provide provider_claim_no)
provider_claim_noProvider claim number (alternative to guid)
Headers
X-Facility-IdFacility Registry (FR) code identifying the facility. Required when authenticating with a service-account token.
X-Facility-Id-TypeType of identifier supplied in X-Facility-Id. Currently only fr-code is supported.
Preview a payer claim › Responses
Payer claim preview retrieved successfully
pageSizeUpload a file
Uploads a file and returns its storage identifier together with presigned URLs for inline preview and save-as download.
Headers
X-Facility-IdFacility Registry (FR) code identifying the facility. Required when authenticating with a service-account token.
X-Facility-Id-TypeType of identifier supplied in X-Facility-Id. Currently only fr-code is supported.
Upload a file › Responses
File stored successfully
download_urlexpires_in_secondsfile_idpreview_urlGet file download URL
Generates a pre-signed download URL for a previously uploaded file.
path Parameters
file_idFile ID returned when the file was uploaded
Headers
X-Facility-IdFacility Registry (FR) code identifying the facility. Required when authenticating with a service-account token.
X-Facility-Id-TypeType of identifier supplied in X-Facility-Id. Currently only fr-code is supported.
Get file download URL › Responses
Pre-signed URL generated successfully
@Description Response data payload containing operation details @Example {"status": "success"}
message@Description Success message describing the operation result @Example "Visit has been successfully started"

