Najeeb Claims as a Service audits settled claims with Najeeb's AI Engine. Insurance companies in the Kingdom of Saudi Arabia send their claims after adjudication. Najeeb then returns a decision, the approved quantity and amount, and the rejection reasons for every service line, plus DRG results for in-patient claims when DRG is enabled.
Claims reach Najeeb as batches: one CSV file per batch, with one row per service line. Upload the file with POST /batch/file/upload, follow the batch status on your CLAIM webhook, and read the results with GET /batch/result/{erp_batch_id} and GET /batch/result/{erp_batch_id}/claims. Your reference for the batch is erp_batch_id, and for each claim claim_id. Every claim returns a Claim Result Object. Claims have their own endpoints: do not send claims to the Prior Authorization endpoints.
Batches are processed asynchronously. Processing takes from minutes to several hours, depending on the batch size, and the service is built to handle large volumes of items per batch.
Get your API key and your instance URL from Najeeb. See Authentication.
Register your reference data: the medical providers (by CCHI code) and the policy holders (by ERP ID) that your claims refer to. Claims that refer to an unknown provider or policy holder fail validation.
Register a webhook: use Create Webhook with hook_typeCLAIM for batch status updates.
Najeeb never needs real identities. Every person-level identifier can be an anonymized or pseudonymized ID, as long as you use the same value for the same person every time.
Field
Kind
Rule
provider_cchi_id
Lookup
CCHI code of a medical provider registered in Najeeb. An unknown code is a validation error
ph_erp_id
Lookup
ERP ID of a policy holder registered in Najeeb. An unknown ID is a validation error
nphies_service_code
Lookup
The NPHIES service code Najeeb looks the line's service up by
primary_diagnosis_code, secondary_diagnosis_code
Lookup
ICD-10 codes, looked up in Najeeb's diagnosis list
Any stable ID of the member. It can be anonymized. Najeeb uses it to link the member to the policy and, with send_patient_history, to load the member's earlier claims
doctor_id, principal_name_or_id
Stable ID
Any stable ID. Can be anonymized
erp_batch_id
Your reference
Your ID of the batch, 1-255 characters. Every batch endpoint uses it
claim_id
Your reference
Your ID of the claim. The lines that share it form one claim
item_erp_id
Your reference
Your ID of the service line. It is returned with every validation error and every item result
Your reference IDs only need to be unique within their scope, and any scheme works. Najeeb uses them to group lines into claims, to match results to your records, and to detect fraud, waste and abuse patterns.
Uploads a batch of claims as one CSV file. The call returns as soon as the file is stored. Validation and processing run in the background, and each status change is pushed to the CLAIM webhook.
A form field is invalid, or the file is missing, empty or not a .csv. details lists the problems
E_BATCH_004
413
The file is larger than 1 GB. Nothing is stored
401 Unauthorized
401
Missing or invalid access-key
Errors inside the file (a missing value, an unknown code, a wrong enum value) are not returned here. They are reported after upload, through the FAILED webhook and Get Validation Errors.
Each row is one service line (item). Rows that share a claim_id form one claim
Claim-level columns repeat
Claim-level columns (member, provider, policy, diagnoses, dates, DRG) must carry the same value on every row of the claim
Header row
Required. It must be within the first 10 lines of the file
Header names
Use the CSV headers listed below, e.g. claim_id. Header matching ignores letter case, spaces, underscores and hyphens. Column order does not matter
Unknown columns
Ignored
Encoding
UTF-8. A byte-order mark (BOM) is allowed
Separator and quoting
Comma-separated. Put a value in double quotes when it contains a comma, a quote or a line break; write a quote inside a quoted value as two quotes ("")
Empty values
An empty cell is "not sent". A required column must not be empty
Dates
Use YYYY-MM-DD, e.g. 2026-11-03, or a full ISO 8601 date-time, e.g. 2026-11-03T09:15:00.000Z. Do not use slash dates such as 03/11/2026: they are read month first and can be misread
Numbers
Plain numbers with . as the decimal separator, e.g. 1725.50. No thousands separators or currency symbols
Booleans
TRUE or FALSE. Y/N, Yes/No and 1/0 are also accepted
The first lines of the sample file, with some columns left out to keep it readable:
claim_id,item_erp_id,claim_type,claim_sub_type,claim_date,admission_date,discharge_date,admission_code,primary_diagnosis_code,provider_cchi_id,ph_erp_id,member_id,date_of_birth,gender,nphies_service_code,nphies_service_description,provider_service_code,provider_service_description,service_type,quantity_claimed,quantity_approved,amount_claimed,unit_price,amount_approved,discount,vat_amount,net_amount_including_vat_amount,drg_enabled,provider_drg_version,provider_drg_code,length_of_stay CLM-1001,CLM-1001-1,PROFESSIONAL,OUT_PATIENT,2026-11-01,2026-11-01,2026-11-01,1,J02.9,12345,PH-001,MBR-5001,1990-05-14,MALE,83600-00-10,Consultation general practitioner,CONS-GP,GP Consultation,CONSULTATION,1,1,200,200,200,0,30,230,FALSE,,, CLM-1002,CLM-1002-1,INSTITUTIONAL,IN_PATIENT,2026-11-03,2026-11-03,2026-11-06,1,J18.9,67890,PH-001,MBR-5002,1992-08-20,FEMALE,83300-00-10,Room and board,ROOM-STD,Standard room per day,AMBULATORY,3,3,1500,500,1500,0,225,1725,TRUE,9,E62B,3 CLM-1002,CLM-1002-2,INSTITUTIONAL,IN_PATIENT,2026-11-03,2026-11-03,2026-11-06,1,J18.9,67890,PH-001,MBR-5002,1992-08-20,FEMALE,7000000123,Ceftriaxone 1 g vial,DRG-CEF1G,Ceftriaxone 1g,PHARMACEUTICAL,2,2,90,45,90,0,13.5,103.5,TRUE,9,E62B,3
CLM-1002 has two lines. Both repeat the claim-level values, including the DRG columns.
Send authorization_number, transaction_id, or both. These are the same values used by Prior Authorization, so the AI Engine can compare what was approved with what was claimed.
Each value must exist in Najeeb. An unknown value is a validation error.
When both are sent, the transaction_id must belong to that authorization_number.
The old header ar_erp_id is still read as authorization_number, but new integrations should not use it.
Optional. These columns switch on DRG coding for an in-patient claim and carry the DRG the provider billed. DRG problems never fail a row or the batch. Accepted values, defaults and the issues they can raise are in Claims Batch DRG Validator: DRG Columns.
CSV Header
Description
drg_enabled
TRUE calculates the DRG of this claim. One TRUE row enables the whole claim
provider_drg_version
AR-DRG version of the billed DRG. Default 9
provider_drg_code
The DRG the provider billed, e.g. E62B
provider_drg_weight
Relative weight of the billed DRG
separation_mode
Mode of separation, 01 to 09
leave_days
Leave days within the stay
length_of_stay
Length of stay in days
same_day_flag
Same-day episode
admission_weight
Admission weight in grams, for patients under one year
Contracted price per unit, when different from unit_price
Number
amount_claimed*
number
Gross amount claimed by the provider
Number
amount_approved*
number
Gross amount approved in your adjudication
Number
discount*
number
Discount
Number. 0 when none
factor
number
Pricing factor
Number
provider_deductible_mount
number
Deductible
Number
exceeding_limitation
number
Amount above the benefit limit
Number
vat_amount*
number
VAT on the approved amount
Number. 0 when none
net_amount_including_vat_amount*
number
Approved amount plus VAT
Number
invoice_number
string
Invoice number
Text
Claimed and approved values
A prior authorization is sent before the service and carries claimed values only. A claim is sent after your adjudication and carries both the claimed and the approved values. This lets the AI Engine compare what was claimed with what you approved.
Prior Authorization accepts free text for doctor_speciality, items[].service_type and items[].frequency. Claims accept only the enum values above, so map the value, e.g. Cardiology to CARDIOLOGY.
Read the outcome of a batch in two calls: first the batch result summary, then the processed claims, page by page. Both use the erp_batch_id you uploaded with.
Returns the batch status, whether its claims can be read yet, the number of validation errors, and the batch statistics. It works in every status, so you can poll it instead of waiting for the webhook. For a batch with at least one DRG-enabled claim, it also returns drg_summary.
Returns the claims of a processed batch. Each claim comes with all of its lines, the decision on every line, the approved quantity and amount, the rejection reasons and, for DRG-enabled claims, the DRG results. The claims can be read from PENDING_AUDIT onward; before that the call answers 409.
Claims come page by page, in a fixed order. To read the whole batch, repeat the call, increasing skip by limit, until skip reaches totalCount.
A claim carries three optional DRG keys. They are left out, not null, when they do not apply, so a client that does not use DRG receives the same claim without them.
Register a webhook with hook_type set to CLAIM using Create Webhook. Najeeb sends a POST every time the status of a batch changes. See Batch Flow for the statuses.
{ "event_type":"CLAIM", "data":{ "event":"webHook.pushResultBack", "batch_id":801230, "erp_batch_id":"BATCH-2026-11-001", "status":"FAILED", "payload":[ { "claim_number":"CLM-1002", "column":"gender", "error":"gender must be one of the following values: MALE, FEMALE" } ] } }
Field
Type
Description
event_type
string
Always CLAIM
data.event
string
Always webHook.pushResultBack
data.batch_id
number
Najeeb's ID of the batch
data.erp_batch_id
string
Your ID of the batch
data.status
enum
The new batch status
data.payload
array
Only with FAILED. Validation errors, each with claim_number (the claim's claim_id), column and error. At most 100 errors. Empty when the file had no processable rows
Validation errors are capped in the webhook
The FAILED webhook carries at most 100 validation errors. When a batch has more, the webhook lists only the first 100. Read every error with Get Validation Errors (GET /batch/validation-errors/{erp_batch_id}). validation_errors_count in Get Batch Result Summary gives the total.
insurance_status is the batch status (see Batch Flow). mp_status is the medical-provider-side status: CLAIMED, PROCESSING or APPROVED. A 400 (E_BAD_REQUEST_400) is returned when limit or skip is not a whole number of 0 or more.
Returns every validation error of a batch, oldest first, page by page. A batch without errors returns totalCount0 and an empty data list. Use it to read the errors beyond the 100 sent in the FAILED webhook.
Parameter
Type
Required
Description
Accepted Values
limit
integer
No
Errors per page. 0 returns only totalCount
0-1000. Default 100
skip
integer
No
Errors to skip. Next page = skip + limit
0 or more. Default 0
{ "totalCount":2, "data":[ { "claim_id":"CLM-1002", "item_erp_id":"CLM-1002-1", "column":"gender", "row":4, "error":"gender must be one of the following values: MALE, FEMALE" } ] }
Field
Type
Description
claim_id
string
claim_id of the row. null when the error is not tied to a claim
item_erp_id
string
item_erp_id of the row. null when the error is not tied to a row
column
string
The column the error is on
row
number
Row number in the file
error
string
What is wrong with the value
Errors: 400E_BAD_REQUEST_400 when limit or skip is out of range; 404E_BATCH_001 when no batch has this erp_batch_id.