Claims
Validate a claim
POST/api/v1/claims/validate
Checks a claim body the way creating it would and stores nothing: every finding together, errors (which keep a claim from being sent) and warnings. Needs an Idempotency-Key header and a key with the submit permission.
Needs a key with submit permission.
Request
Headers
| Name | Type | Required | Description |
|---|---|---|---|
| Idempotency-Key | string | required | Makes the request safe to repeat: a request with the same key and body returns the first answer (the reply has an idempotent-replayed header), and the same key with a different request is refused. 1 to 255 printable characters; a UUID is a good choice.At least 1 character.At most 255 characters.Matches `^[\x21-\x7e]{1,255}$`. |
Body
| Name | Type | Required | Description |
|---|---|---|---|
| kind | string | optional | claim (the default): treatment done. predetermination: sent before treatment to ask what the payer would pay; it has no service dates and comes back with an estimate. Set when the claim is made; it never changes.One of: `claim`, `predetermination`. |
| office_id | string | required | The office that bills the claim (off_...). |
| payer_id | string | required | The payer (a Claim House payer ID, pyr_..., a payer ID or an alias from the payer directory). |
| rendering_provider_id | string | required | The dentist who did the treatment (prv_...). |
| subscriber | object | required | The person who holds the coverage. Also the patient unless patient is given. |
| subscriber.first_name | string | required | |
| subscriber.last_name | string | required | |
| subscriber.date_of_birth | value | optional | |
| subscriber.gender | string or null | optional | One of: `F`, `M`, `U`. |
| subscriber.member_id | string | required | |
| subscriber.group_number | value | optional | |
| subscriber.address | object or null | optional | |
| subscriber.address.line1 | string | required | |
| subscriber.address.line2 | value | optional | |
| subscriber.address.city | string | required | |
| subscriber.address.state | string | required | |
| subscriber.address.postal_code | string | required | |
| patient | object or null | optional | The patient, when not the subscriber. |
| patient.first_name | string | required | |
| patient.last_name | string | required | |
| patient.date_of_birth | value | optional | |
| patient.gender | string or null | optional | One of: `F`, `M`, `U`. |
| patient.relationship | string | required | One of: `spouse`, `child`, `other`. |
| patient.address | object or null | optional | |
| patient.address.line1 | string | required | |
| patient.address.line2 | value | optional | |
| patient.address.city | string | required | |
| patient.address.state | string | required | |
| patient.address.postal_code | string | required | |
| place_of_service | string | optional | The place of service code. Default 11 (office). |
| lines | array of object | required | The procedures, one line each. At least one for a claim to be sent.At most 100 items. |
| lines[].cdt | string | required | |
| lines[].description | value | optional | |
| lines[].service_date | value | optional | |
| lines[].fee | number | optional | |
| lines[].quantity | integer | optional | At least 0.At most 99999. |
| lines[].tooth | value | optional | The tooth, for a line with one. For several teeth give teeth instead (never both). |
| lines[].surfaces | value | optional | The surfaces of the tooth. With teeth, give the surfaces of each tooth there. |
| lines[].area | value | optional | The oral cavity code, for a line with one area. For several give areas instead (never both). |
| lines[].teeth | array of object | optional | Several teeth, each with its surfaces (up to 32): one TOO segment each. Not with tooth or surfaces.At most 32 items. |
| lines[].teeth[].tooth | string | required | |
| lines[].teeth[].surfaces | value | optional | |
| lines[].areas | array of string | optional | Several oral cavity codes (up to 5). Not with area.At most 5 items. |
| lines[].prosthesis | string or null | optional | initial or replacement: whether the crown, bridge or denture is the first or a replacement.One of: `initial`, `replacement`. |
| lines[].prior_placement_date | value | optional | When the prosthesis being replaced was first placed: needed for a replacement (a finding when missing). |
| lines[].diagnosis_pointers | array of integer | optional | Positions, from 1, in the claim's diagnosis_codes (up to 4). A position past the codes is a finding.At most 4 items. |
| total | value | optional | The total the claim comes to, in dollars: checked against the lines. |
| remarks | value | optional | Notes for the payer: up to 5 notes of 80 characters, split between words (about 370 characters of ordinary text); a remark that does not fit is a TOO_LONG finding. |
| metadata | object | optional | Up to 20 pairs of your own, returned with the claim and never sent to the payer. |
| patient_control_number | value | optional | Your identifier for the claim, sent on the claim and returned on its status: unique in your organization. Made for you when omitted. |
| attachments | array of string | optional | The attachments the claim carries (att_...), at most 5: of your organization and mode, for the claim's payer, unsolicited and on no other claim. Each must be closed before the claim is sent (ATTACHMENT_OPEN); the claim file carries a PWK and a note for each.At most 5 items. |
| foreign_attachments | array of object | optional | For partners that already hold an attachment number (an attachment sent through their own NEA account, say): the PWK and NTE of each, which the claim file carries unchanged, after the claim's own attachments. At most 10 in all with attachments. Claim House keeps nothing else of such an attachment and does not check it.At most 10 items. |
| foreign_attachments[].pwk | array of string | required | The elements of the PWK segment after its id, in order (1 to 9); an empty string for an element the segment leaves empty.At most 9 items. |
| foreign_attachments[].nte | string or null | required | The text of the NTE segment that followed the PWK, or null when none did.At most 80 characters. |
| coordination | object | optional | Coordination of benefits: this claim's place among the payers (sequence) and the other payers that are responsible before or alongside this one. Absent: a primary claim with no other payer. On a correction it is replaced whole. |
| coordination.sequence | string | optional | primary (the default), secondary or tertiary: this claim's place among the payers. Written as SBR01 of the claim's subscriber loop.One of: `primary`, `secondary`, `tertiary`. |
| coordination.other_payers | array of object | optional | The payers responsible before or alongside this one (up to 2): a secondary claim has one primary, a tertiary claim a primary and a secondary.At most 2 items. |
| coordination.other_payers[].payer_id | string | optional | The other payer, as a directory reference (a Claim House payer ID, a payer ID or an alias). Or give payer_name and payer_identifier, never both ways. |
| coordination.other_payers[].payer_name | string | optional | For a payer outside the directory: its name. |
| coordination.other_payers[].payer_identifier | string | optional | For a payer outside the directory: its payer ID as the claim file carries it (NM109). |
| coordination.other_payers[].responsibility | string | required | primary or secondary: this payer's place before the claim's own payer.One of: `primary`, `secondary`. |
| coordination.other_payers[].insurance_type | string | optional | The filing indicator of this payer. Default commercial.One of: `commercial`, `medicaid`, `medicare_b`, `champus`, `dental_maintenance`, `ppo`, `pos`, `epo`, `indemnity`, `hmo`, `self_pay`, `other`. |
| coordination.other_payers[].relationship | string | required | The patient's relationship to this payer's subscriber: self, spouse, child or other.One of: `self`, `spouse`, `child`, `other`. |
| coordination.other_payers[].subscriber | object | required | This payer's subscriber. |
| coordination.other_payers[].subscriber.first_name | string | required | |
| coordination.other_payers[].subscriber.last_name | string | required | |
| coordination.other_payers[].subscriber.member_id | string | required | |
| coordination.other_payers[].subscriber.group_number | value | optional | |
| coordination.other_payers[].paid | value | optional | What this payer paid, in dollars; leave out when it did not adjudicate the claim. |
| coordination.other_payers[].paid_date | value | optional | When it paid: needed when it paid anything. |
| coordination.other_payers[].patient_responsibility | value | optional | What this payer says the patient owes, in dollars. |
| coordination.other_payers[].adjustments | array of object | optional | Its adjustments, which with paid add up to the claim's charge. With lines: its claim-level adjustments only.At most 30 items. |
| coordination.other_payers[].adjustments[].group | string | required | CO contractual, OA other, PI payer initiated, PR patient responsibility.One of: `CO`, `OA`, `PI`, `PR`. |
| coordination.other_payers[].adjustments[].reason | string | required | The claim adjustment reason code (such as 45). |
| coordination.other_payers[].adjustments[].amount | number | optional | In dollars; negative for a reversal. |
| coordination.other_payers[].lines | array of object or null | optional | What it paid and adjusted line by line (loop 2430): every line of the claim, once each. Needs paid and paid_date. Each line's paid and adjustments add up to its fee; the lines' paid less the claim-level adjustments is paid. Leave out (or null) for claim-level figures.At most 100 items. |
| coordination.other_payers[].lines[].line | integer | required | The claim line, from 1 in the order of lines.At least 1.At most 100. |
| coordination.other_payers[].lines[].paid | number | optional | What this payer paid on the line, in dollars. |
| coordination.other_payers[].lines[].adjustments | array of object | optional | Its adjustments of the line, which with paid add up to the line's fee.At most 30 items. |
| coordination.other_payers[].lines[].adjustments[].group | string | required | CO contractual, OA other, PI payer initiated, PR patient responsibility.One of: `CO`, `OA`, `PI`, `PR`. |
| coordination.other_payers[].lines[].adjustments[].reason | string | required | The claim adjustment reason code (such as 45). |
| coordination.other_payers[].lines[].adjustments[].amount | number | optional | In dollars; negative for a reversal. |
| insurance_type | string | optional | The claim filing indicator (SBR09). Default commercial. For a Medicaid claim: medicaid, with the Medicaid ID in subscriber.member_id.One of: `commercial`, `medicaid`, `medicare_b`, `champus`, `dental_maintenance`, `ppo`, `pos`, `epo`, `indemnity`, `hmo`, `self_pay`, `other`. |
| accident | object or null | optional | The accident the treatment relates to: cause, date (always needed) and state (needed for auto). |
| accident.cause | string | required | One of: `auto`, `employment`, `other`. |
| accident.date | value | optional | When the accident happened. Always needed (a finding when missing). |
| accident.state | value | optional | The state the accident happened in: needed for an auto accident. |
| referral_number | value | optional | The referral number (REF*9F), up to 50 characters. |
| prior_authorization | value | optional | The prior authorization number (REF*G1), up to 50 characters. |
| diagnosis_codes | array of string | optional | Up to 4 ICD-10-CM codes; the first is the principal diagnosis. Written without the dot. Lines point at them with diagnosis_pointers. On a correction the list is replaced whole.At most 4 items. |
| orthodontics | object or null | optional | Orthodontic treatment: the date the appliance was placed, the months of treatment in all and the months remaining. |
| orthodontics.appliance_placed_date | string | required | |
| orthodontics.total_months | integer | required | The months of treatment in all (0 to 99).At least -9007199254740991. |
| orthodontics.months_remaining | integer | required | The months of treatment remaining (0 to 99).At least -9007199254740991. |
| missing_teeth | array of object | optional | Teeth that are missing or to be extracted (up to 35). On a correction the list is replaced whole.At most 35 items. |
| missing_teeth[].tooth | string | required | |
| missing_teeth[].status | string | required | One of: `missing`, `to_be_extracted`. |
| service_location | object or null | optional | Where the treatment happened, when that is not the billing office's address: name, NPI (optional) and address. Not written when it is the billing address. |
| service_location.name | string | required | |
| service_location.npi | value | optional | |
| service_location.address | object | required | |
| service_location.address.line1 | string | required | |
| service_location.address.line2 | value | optional | |
| service_location.address.city | string | required | |
| service_location.address.state | string | required | |
| service_location.address.postal_code | string | required | |
| payer_provider_ids | object or null | optional | The payer's own IDs for the billing office and the rendering provider (REF*G2), such as Medicaid provider IDs, up to 50 characters each. One left out or null: the office's or the provider's payer_provider_ids entry for the claim's payer, taken when the claim is queued (see snapshot). On a correction it is replaced whole. |
| payer_provider_ids.billing | value | optional | The payer's own ID for the billing office (2010BB REF*G2). |
| payer_provider_ids.rendering | value | optional | The payer's own ID for the rendering provider (2310B REF*G2). |
| encounter | boolean | optional | true: a capitation encounter, reported to the payer and not billed for payment (sent as reporting only, BHT06 RP). Validated and priced like any claim. A claim's only: a predetermination with it is refused. Default false. |
| allow_duplicate | boolean | optional | true: this claim is a separate service identical to another claim (same payer, patient, rendering provider, service dates, codes and fees), billed on purpose. A duplicate of a claim already queued or sent is then a warning instead of a DUPLICATE_CLAIM error, and both are sent. Default false. |
| submit | boolean | optional | true (the default): validate the claim and queue it when it has no errors. false: save it as a draft. |
Response
The findings. Status 200.
| Name | Type | Description |
|---|---|---|
| object | string | Always `claim_validation`. |
| valid | boolean | True when there is no error: the claim would be queued. |
| errors | integer | At least -9007199254740991. |
| warnings | integer | At least -9007199254740991. |
| findings | array of object | |
| findings[].field | value | The request field the finding is about, as a dotted path (lines[0].tooth), or null for the claim as a whole. |
| findings[].code | string | A stable code for the finding. |
| findings[].message | string | |
| findings[].severity | string | An error keeps the claim from being sent; a warning does not.One of: `error`, `warning`. |
Errors
| HTTP status | Code | What it means |
|---|---|---|
| 401 | UNAUTHORIZED | A valid API key is required. Send it as "Authorization: Bearer <key>". |
| 403 | PERMISSION_DENIED | This API key is not allowed to do that. |
| 422 | INVALID_REQUEST | The request is not valid. |
| 400 | IDEMPOTENCY_KEY_REQUIRED | This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request. |
| 400 | IDEMPOTENCY_KEY_INVALID | The Idempotency-Key header must be 1 to 255 printable characters. |
| 422 | IDEMPOTENCY_KEY_REUSED | That Idempotency-Key was already used with a different request. |
| 409 | IDEMPOTENCY_KEY_IN_USE | A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds. |
| 429 | TOO_MANY_REQUESTS | Too many requests of this kind lately. Wait, then try again. |
| 413 | PAYLOAD_TOO_LARGE | The request body is larger than 1 MB. |
| 504 | TIMEOUT | The request took too long. Send it again with the same Idempotency-Key and body after Retry-After seconds: a 409 means it is still finishing (wait and send again), and any other answer is final. If this 504 comes back, find what the request made by listing with ?idempotency_key=<the key>. |
| 503 | CLAIMS_UNAVAILABLE | Claims are not available in live mode yet. Use a test key. |
| 500 | INTERNAL | Something went wrong on our side. Quote the request ID if you contact us. |
Example
Example request
curl -X POST "https://app.myclaimhouse.com/api/v1/claims/validate" \
-H "Authorization: Bearer $CLAIMHOUSE_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"office_id": "off_01JM000000E008000000000003",
"payer_id": "pyr_01JM000000E008000000000004",
"rendering_provider_id": "prv_01JM000000E008000000000005",
"subscriber": {
"first_name": "Alex",
"last_name": "Example",
"date_of_birth": "1985-04-12",
"gender": "F",
"member_id": "CH-ACTIVE-FULL",
"address": {
"line1": "1 Example Street",
"city": "Exampleville",
"state": "GA",
"postal_code": "30000"
}
},
"lines": [
{
"cdt": "D2740",
"fee": 1140,
"service_date": "2026-09-24",
"tooth": "3"
}
],
"metadata": {
"pms_claim_number": "PMS-1042"
},
"attachments": [
"att_01JM000000E00800000000003G"
]
}'Example response: 200
{
"object": "claim_validation",
"valid": true,
"errors": 0,
"warnings": 0,
"findings": []
}