# Update a claim

Page: https://app.myclaimhouse.com/docs/api/updateClaim

`PATCH /api/v1/claims/{id}`

Changes the fields sent and keeps the rest, while the claim is a draft, needs attention, or was rejected (correct a rejected claim, then resubmit it). The subscriber and the patient are merged field by field; lines are replaced as a whole. A claim that needs attention is validated again. The patient control number never changes. 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 | Yes | 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}$`. |

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | Yes | A claim ID (clm_...). |

### Body

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `office_id` | string | No | The office that bills the claim (off_...). |
| `payer_id` | string | No | The payer (a Claim House payer ID, pyr_..., a payer ID or an alias from the payer directory). |
| `rendering_provider_id` | string | No | The dentist who did the treatment (prv_...). |
| `subscriber` | object | No | The subscriber fields to change; the others are kept. |
| `patient` | object or null | No | The patient fields to change; null removes the dependent patient. |
| `place_of_service` | string | No | The place of service code. Default 11 (office). |
| `lines` | array of object | No | The procedures, one line each. At least one for a claim to be sent. At most 100 items. |
| `lines[].cdt` | string | Yes |  |
| `lines[].description` | value | No |  |
| `lines[].service_date` | value | No |  |
| `lines[].fee` | number | No |  |
| `lines[].quantity` | integer | No | At least 0. At most 99999. |
| `lines[].tooth` | value | No | The tooth, for a line with one. For several teeth give teeth instead (never both). |
| `lines[].surfaces` | value | No | The surfaces of the tooth. With teeth, give the surfaces of each tooth there. |
| `lines[].area` | value | No | The oral cavity code, for a line with one area. For several give areas instead (never both). |
| `lines[].teeth` | array of object | No | 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 | Yes |  |
| `lines[].teeth[].surfaces` | value | No |  |
| `lines[].areas` | array of string | No | Several oral cavity codes (up to 5). Not with area. At most 5 items. |
| `lines[].prosthesis` | string or null | No | initial or replacement: whether the crown, bridge or denture is the first or a replacement. One of: `initial`, `replacement`. |
| `lines[].prior_placement_date` | value | No | When the prosthesis being replaced was first placed: needed for a replacement (a finding when missing). |
| `lines[].diagnosis_pointers` | array of integer | No | 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 | No | The total the claim comes to, in dollars: checked against the lines. |
| `remarks` | value | No | 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 | No | Up to 20 pairs of your own, returned with the claim and never sent to the payer. |
| `patient_control_number` | value | No | 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 | No | 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 | No | 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 | Yes | 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 | Yes | The text of the NTE segment that followed the PWK, or null when none did. At most 80 characters. |
| `coordination` | object | No | 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 | No | 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 | No | 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 | No | 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 | No | For a payer outside the directory: its name. |
| `coordination.other_payers[].payer_identifier` | string | No | For a payer outside the directory: its payer ID as the claim file carries it (NM109). |
| `coordination.other_payers[].responsibility` | string | Yes | primary or secondary: this payer's place before the claim's own payer. One of: `primary`, `secondary`. |
| `coordination.other_payers[].insurance_type` | string | No | 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 | Yes | 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 | Yes | This payer's subscriber. |
| `coordination.other_payers[].subscriber.first_name` | string | Yes |  |
| `coordination.other_payers[].subscriber.last_name` | string | Yes |  |
| `coordination.other_payers[].subscriber.member_id` | string | Yes |  |
| `coordination.other_payers[].subscriber.group_number` | value | No |  |
| `coordination.other_payers[].paid` | value | No | What this payer paid, in dollars; leave out when it did not adjudicate the claim. |
| `coordination.other_payers[].paid_date` | value | No | When it paid: needed when it paid anything. |
| `coordination.other_payers[].patient_responsibility` | value | No | What this payer says the patient owes, in dollars. |
| `coordination.other_payers[].adjustments` | array of object | No | 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 | Yes | CO contractual, OA other, PI payer initiated, PR patient responsibility. One of: `CO`, `OA`, `PI`, `PR`. |
| `coordination.other_payers[].adjustments[].reason` | string | Yes | The claim adjustment reason code (such as 45). |
| `coordination.other_payers[].adjustments[].amount` | number | No | In dollars; negative for a reversal. |
| `coordination.other_payers[].lines` | array of object or null | No | 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 | Yes | The claim line, from 1 in the order of lines. At least 1. At most 100. |
| `coordination.other_payers[].lines[].paid` | number | No | What this payer paid on the line, in dollars. |
| `coordination.other_payers[].lines[].adjustments` | array of object | No | 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 | Yes | CO contractual, OA other, PI payer initiated, PR patient responsibility. One of: `CO`, `OA`, `PI`, `PR`. |
| `coordination.other_payers[].lines[].adjustments[].reason` | string | Yes | The claim adjustment reason code (such as 45). |
| `coordination.other_payers[].lines[].adjustments[].amount` | number | No | In dollars; negative for a reversal. |
| `insurance_type` | string | No | 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 | No | The accident the treatment relates to: cause, date (always needed) and state (needed for auto). |
| `accident.cause` | string | Yes | One of: `auto`, `employment`, `other`. |
| `accident.date` | value | No | When the accident happened. Always needed (a finding when missing). |
| `accident.state` | value | No | The state the accident happened in: needed for an auto accident. |
| `referral_number` | value | No | The referral number (REF*9F), up to 50 characters. |
| `prior_authorization` | value | No | The prior authorization number (REF*G1), up to 50 characters. |
| `diagnosis_codes` | array of string | No | 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 | No | Orthodontic treatment: the date the appliance was placed, the months of treatment in all and the months remaining. |
| `orthodontics.appliance_placed_date` | string | Yes |  |
| `orthodontics.total_months` | integer | Yes | The months of treatment in all (0 to 99). At least -9007199254740991. |
| `orthodontics.months_remaining` | integer | Yes | The months of treatment remaining (0 to 99). At least -9007199254740991. |
| `missing_teeth` | array of object | No | 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 | Yes |  |
| `missing_teeth[].status` | string | Yes | One of: `missing`, `to_be_extracted`. |
| `service_location` | object or null | No | 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 | Yes |  |
| `service_location.npi` | value | No |  |
| `service_location.address` | object | Yes |  |
| `service_location.address.line1` | string | Yes |  |
| `service_location.address.line2` | value | No |  |
| `service_location.address.city` | string | Yes |  |
| `service_location.address.state` | string | Yes |  |
| `service_location.address.postal_code` | string | Yes |  |
| `payer_provider_ids` | object or null | No | 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 | No | The payer's own ID for the billing office (2010BB REF*G2). |
| `payer_provider_ids.rendering` | value | No | The payer's own ID for the rendering provider (2310B REF*G2). |
| `encounter` | boolean | No | 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 | No | 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. |

## Response

The claim as it is now. Status `200`.

| Name | Type | Description |
| --- | --- | --- |
| `id` | string | An ID that starts with clm_. |
| `object` | string | Always `claim`. |
| `kind` | string | claim, or predetermination (sent before treatment; its answer is an estimate). Set when it was made. One of: `claim`, `predetermination`. |
| `state` | string | One of: `draft`, `validated`, `needs_attention`, `queued`, `submitted`, `accepted_clearinghouse`, `accepted_payer`, `rejected`, `voided`, `paid`, `denied`, `reconciled`, `returned`. |
| `next_step` | string | One sentence saying what happens next, or what you must do. |
| `frequency` | string | original; replacement for a resubmission of a claim the payer has; void for a void transaction. One of: `original`, `replacement`, `void`. |
| `parent_id` | string or null | The claim a void transaction voids. |
| `patient_control_number` | string | Your identifier for the claim, or the one we made: unique in your organization, sent on the claim and returned on its status. |
| `office` | object |  |
| `office.id` | string | An ID that starts with off_. |
| `office.name` | string |  |
| `payer` | object |  |
| `payer.id` | string | An ID that starts with pyr_. |
| `payer.payer_id` | string | The payer's own payer ID. |
| `payer.name` | string |  |
| `rendering_provider` | object |  |
| `rendering_provider.id` | string | An ID that starts with prv_. |
| `rendering_provider.first_name` | string |  |
| `rendering_provider.last_name` | string |  |
| `rendering_provider.npi` | string |  |
| `patient_name` | object | The patient: the dependent when there is one, else the subscriber. |
| `patient_name.first_name` | string |  |
| `patient_name.last_name` | string |  |
| `patient_id` | string or null | The patient this is about (pat_...) in the patient directory: the dependent when there is one, else the subscriber. Set by Claim House when a check completes or a claim's patient is written; null while a check is pending, and when the patient has no date of birth or a name with no letters or digits to compare. |
| `service_dates` | object |  |
| `service_dates.first` | string (date) or null |  |
| `service_dates.last` | string (date) or null |  |
| `totals` | object |  |
| `totals.charge` | string | The sum of the line fees, in dollars, as a decimal string. Matches `^-?\d+\.\d{2}$`. |
| `totals.lines` | integer | At least -9007199254740991. |
| `payment` | object or null | What the payer paid (states paid, denied and reconciled), from its remittances; null before one arrives, when every payment was reversed, and always on a predetermination. |
| `payment.outcome` | string | paid or denied: the outcome of the claim's current payment (the latest one no reversal cancelled). A reconciled claim keeps it. One of: `paid`, `denied`. |
| `payment.era_id` | string | The ERA of the claim's current payment (era_...): the latest one, when that is not certain. |
| `payment.paid` | string | What the payer paid in all: the sum of every payment applied, reversals subtracted. Matches `^-?\d+\.\d{2}$`. |
| `payment.allowed` | string or null | The amount the current payment allowed, when it said. Matches `^-?\d+\.\d{2}$`. |
| `payment.patient_responsibility` | string | What the patient owes, as the payer says (deductible, coinsurance and the like). Matches `^-?\d+\.\d{2}$`. |
| `payment.payment_date` | string (date) or null | The payment date of the ERA. |
| `payment.reconciled_at` | string (date-time) or null | When you confirmed you posted the payment (state reconciled); null until then. |
| `estimate` | object or null | A predetermination's estimate (state returned); null before it arrives, and always on a claim. |
| `estimate.era_id` | string | The ERA that carried the estimate (era_...). |
| `estimate.allowed` | string or null | What the payer would allow, when it said. Matches `^-?\d+\.\d{2}$`. |
| `estimate.pay` | string | What the payer would pay once the treatment is done. Matches `^-?\d+\.\d{2}$`. |
| `estimate.patient` | string | The patient's estimated share. Matches `^-?\d+\.\d{2}$`. |
| `estimate.returned_at` | string (date-time) | When the estimate arrived. |
| `estimate.lines` | array of object | The estimate per line, where the payer said (line_number is the predetermination's). |
| `estimate.lines[].line_number` | integer | At least 1. |
| `estimate.lines[].allowed` | string or null | An amount in dollars, as a decimal string with two places (such as "113.60"). Matches `^-?\d+\.\d{2}$`. |
| `estimate.lines[].pay` | string | An amount in dollars, as a decimal string with two places (such as "113.60"). Matches `^-?\d+\.\d{2}$`. |
| `estimate.lines[].patient` | string | An amount in dollars, as a decimal string with two places (such as "113.60"). Matches `^-?\d+\.\d{2}$`. |
| `converted_from` | string or null | On a claim made from a predetermination: the predetermination. |
| `converted_to` | string or null | On a converted predetermination: the claim made from it. |
| `source_claim_id` | string or null | On a claim made for the next payer (POST /claims/{id}/next_claim): the claim it was made from, whose payer paid or denied it. Null otherwise. |
| `insurance_type` | string | The claim filing indicator (SBR09). commercial unless the claim says otherwise. One of: `commercial`, `medicaid`, `medicare_b`, `champus`, `dental_maintenance`, `ppo`, `pos`, `epo`, `indemnity`, `hmo`, `self_pay`, `other`. |
| `sequence` | string | primary, secondary or tertiary: this claim's place among the payers (coordination.sequence). One of: `primary`, `secondary`, `tertiary`. |
| `encounter` | boolean | True for a capitation encounter: reported to the payer, not billed for payment (sent as reporting only, BHT06 RP). Always false on a predetermination. |
| `request_id` | string or null | The API request that made the claim (the x-request-id of its response); null for a claim made in the dashboard. |
| `created_at` | string (date-time) |  |
| `updated_at` | string (date-time) |  |
| `subscriber` | object |  |
| `subscriber.first_name` | string |  |
| `subscriber.last_name` | string |  |
| `subscriber.date_of_birth` | string (date) or null |  |
| `subscriber.gender` | string or null | One of: `F`, `M`, `U`. |
| `subscriber.member_id` | string |  |
| `subscriber.group_number` | value |  |
| `subscriber.address` | object or null |  |
| `subscriber.address.line1` | string |  |
| `subscriber.address.line2` | value |  |
| `subscriber.address.city` | string |  |
| `subscriber.address.state` | string |  |
| `subscriber.address.postal_code` | string |  |
| `patient` | object or null | The patient, when not the subscriber. |
| `patient.first_name` | string |  |
| `patient.last_name` | string |  |
| `patient.date_of_birth` | string (date) or null |  |
| `patient.gender` | string or null | One of: `F`, `M`, `U`. |
| `patient.relationship` | string | One of: `spouse`, `child`, `other`. |
| `patient.address` | object or null |  |
| `patient.address.line1` | string |  |
| `patient.address.line2` | value |  |
| `patient.address.city` | string |  |
| `patient.address.state` | string |  |
| `patient.address.postal_code` | string |  |
| `place_of_service` | string |  |
| `lines` | array of object |  |
| `lines[].line_number` | integer | At least 1. |
| `lines[].cdt` | string |  |
| `lines[].description` | value | The description you sent, or our short description of the code when you sent none and it is a common one. |
| `lines[].service_date` | string (date) or null | The date of service. Null on a predetermination (it has none), and on a claim made from one until you add it. |
| `lines[].fee` | string | The charge for the whole line, in dollars, as a decimal string (never multiplied by the quantity). Matches `^-?\d+\.\d{2}$`. |
| `lines[].quantity` | integer | How many units the line is for: a count sent with the line (SV306). At least -9007199254740991. |
| `lines[].tooth` | value |  |
| `lines[].surfaces` | value |  |
| `lines[].area` | value | The oral cavity code: a quadrant (10, 20, 30, 40), an arch (01, 02) or 00. |
| `lines[].teeth` | array of object | The teeth of a line sent with several (each its own TOO segment); empty when the line gives tooth and surfaces instead. |
| `lines[].teeth[].tooth` | string |  |
| `lines[].teeth[].surfaces` | value |  |
| `lines[].areas` | array of string | The oral cavity codes of a line sent with several; empty when the line gives area instead. |
| `lines[].prosthesis` | string or null | initial or replacement, for a crown, bridge or denture. One of: `initial`, `replacement`. |
| `lines[].prior_placement_date` | string (date) or null | When the prosthesis being replaced was first placed. |
| `lines[].diagnosis_pointers` | array of integer | Positions (from 1) in the claim's diagnosis_codes that this line points at. |
| `remarks` | value |  |
| `metadata` | object |  |
| `coordination` | object | Coordination of benefits: this claim's sequence and the other payers responsible before or alongside it. A primary claim with no other payer has an empty list. |
| `coordination.sequence` | string | primary, secondary or tertiary: this claim's place among the payers. One of: `primary`, `secondary`, `tertiary`. |
| `coordination.other_payers` | array of object |  |
| `coordination.other_payers[].payer_id` | string or null | The directory payer (pyr_...), when the other payer is one; null for a payer named by payer_name and payer_identifier. |
| `coordination.other_payers[].payer_name` | value | The payer's name: the directory's for a directory payer. |
| `coordination.other_payers[].payer_identifier` | value | The payer ID the claim file carries for it (NM109): the directory's for a directory payer. |
| `coordination.other_payers[].responsibility` | string | One of: `primary`, `secondary`. |
| `coordination.other_payers[].insurance_type` | string | One of: `commercial`, `medicaid`, `medicare_b`, `champus`, `dental_maintenance`, `ppo`, `pos`, `epo`, `indemnity`, `hmo`, `self_pay`, `other`. |
| `coordination.other_payers[].relationship` | string | The patient's relationship to this payer's subscriber. One of: `self`, `spouse`, `child`, `other`. |
| `coordination.other_payers[].subscriber` | object |  |
| `coordination.other_payers[].subscriber.first_name` | string |  |
| `coordination.other_payers[].subscriber.last_name` | string |  |
| `coordination.other_payers[].subscriber.member_id` | string |  |
| `coordination.other_payers[].subscriber.group_number` | value |  |
| `coordination.other_payers[].paid` | string or null | What this payer paid; null when it did not adjudicate the claim. Matches `^-?\d+\.\d{2}$`. |
| `coordination.other_payers[].paid_date` | string (date) or null |  |
| `coordination.other_payers[].patient_responsibility` | string or null | An amount in dollars, as a decimal string with two places (such as "113.60"). Matches `^-?\d+\.\d{2}$`. |
| `coordination.other_payers[].adjustments` | array of object | Its adjustments: claim level only when it has lines. |
| `coordination.other_payers[].adjustments[].group` | string | One of: `CO`, `OA`, `PI`, `PR`. |
| `coordination.other_payers[].adjustments[].reason` | string |  |
| `coordination.other_payers[].adjustments[].amount` | string | An amount in dollars, as a decimal string with two places (such as "113.60"). Matches `^-?\d+\.\d{2}$`. |
| `coordination.other_payers[].lines` | array of object or null | What it paid and adjusted line by line (loop 2430); null when it gave claim-level figures only. |
| `coordination.other_payers[].lines[].line` | integer | The claim line, from 1. At least -9007199254740991. |
| `coordination.other_payers[].lines[].paid` | string | An amount in dollars, as a decimal string with two places (such as "113.60"). Matches `^-?\d+\.\d{2}$`. |
| `coordination.other_payers[].lines[].adjustments` | array of object |  |
| `coordination.other_payers[].lines[].adjustments[].group` | string | One of: `CO`, `OA`, `PI`, `PR`. |
| `coordination.other_payers[].lines[].adjustments[].reason` | string |  |
| `coordination.other_payers[].lines[].adjustments[].amount` | string | An amount in dollars, as a decimal string with two places (such as "113.60"). Matches `^-?\d+\.\d{2}$`. |
| `accident` | object or null |  |
| `accident.cause` | string | One of: `auto`, `employment`, `other`. |
| `accident.date` | string (date) or null |  |
| `accident.state` | value |  |
| `referral_number` | value |  |
| `prior_authorization` | value |  |
| `diagnosis_codes` | array of string | The ICD-10-CM codes of the claim, the first the principal diagnosis, as sent. |
| `orthodontics` | object or null |  |
| `orthodontics.appliance_placed_date` | string (date) |  |
| `orthodontics.total_months` | integer | At least -9007199254740991. |
| `orthodontics.months_remaining` | integer | At least -9007199254740991. |
| `missing_teeth` | array of object |  |
| `missing_teeth[].tooth` | string |  |
| `missing_teeth[].status` | string | One of: `missing`, `to_be_extracted`. |
| `service_location` | object or null | Where the treatment happened, when that is not the billing office's address. |
| `service_location.name` | string |  |
| `service_location.npi` | value |  |
| `service_location.address` | object |  |
| `service_location.address.line1` | string |  |
| `service_location.address.line2` | value |  |
| `service_location.address.city` | string |  |
| `service_location.address.state` | string |  |
| `service_location.address.postal_code` | string |  |
| `payer_provider_ids` | object | The payer's own IDs for the billing office and the rendering provider the claim sends itself (REF*G2); null where it leaves them to the office's and the provider's (see snapshot). |
| `payer_provider_ids.billing` | value |  |
| `payer_provider_ids.rendering` | value |  |
| `attachments` | array of string | The attachments the claim carries, in the order the claim file writes them (a PWK and a note for each). Each item matches `^att_[0-9A-HJKMNP-TV-Z]{26}$`. |
| `foreign_attachments` | array of object | The references of attachments a partner already holds a number for, carried by the claim file unchanged after the claim's own attachments. |
| `foreign_attachments[].pwk` | array of string | The elements of the PWK segment after its id. |
| `foreign_attachments[].nte` | value | The text of the NTE that followed it, or null. |
| `validation` | object or null | The result of the last validation; null while the claim has not been validated. |
| `validation.validated_at` | string (date-time) |  |
| `validation.errors` | integer | At least -9007199254740991. |
| `validation.warnings` | integer | At least -9007199254740991. |
| `validation.findings` | array of object |  |
| `validation.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. |
| `validation.findings[].code` | string | A stable code for the finding. |
| `validation.findings[].message` | string |  |
| `validation.findings[].severity` | string | An error keeps the claim from being sent; a warning does not. One of: `error`, `warning`. |
| `network` | object |  |
| `network.submitted_at` | string (date-time) or null |  |
| `network.clearinghouse_claim_id` | value |  |
| `network.payer_claim_number` | value | The payer's own number for the claim, once it has accepted it. |
| `network.rejection` | object or null |  |
| `network.rejection.source` | string | One of: `clearinghouse`, `payer`. |
| `network.rejection.category` | value | The status category code from the 277 (such as A7). |
| `network.rejection.code` | value | The status code from the 277 (such as 33). |
| `network.rejection.message` | string | Why, in plain words. |
| `network.rejection.fix` | value | What to change, when it is known. |
| `idempotency_key` | value | The Idempotency-Key the claim was sent with. |
| `allow_duplicate` | boolean | True when the claim was marked as a separate service identical to another claim: a duplicate is then a warning, not a DUPLICATE_CLAIM error. |
| `delivery_uncertain` | object or null | Set when the claim came back with DELIVERY_UNCERTAIN: its file was handed to the network and no acknowledgement came, so the claim may already be with the payer. Check its status; sending it again needs confirm_resend true. Null otherwise, and once it is queued again. |
| `delivery_uncertain.file_id` | string | The file the claim was last sent in, which may already be with the payer. |
| `no_payer_answer` | object or null | Set when the claim came back with NO_PAYER_ANSWER: the payer has not answered it since it was sent. Check its status with the payer, then send it again (confirm_resend true) or void it. A late answer from the payer still applies and clears it. Null otherwise. |
| `no_payer_answer.file_id` | string | The file the claim was last sent in, which the payer never answered. |
| `no_payer_answer.since` | string (date-time) | When that file was handed to the network. |
| `snapshot` | object or null | What the claim's file says of its billing office, service location and rendering provider, fixed when the claim was queued: an office or provider edited afterwards changes no queued or sent claim. Null while the claim follows the current records (draft, validated, needs_attention; a correction takes a new one when it is queued again), and on a claim queued before snapshots were kept. A claim flagged NO_PAYER_ANSWER keeps the one it was sent with. |
| `snapshot.billing_office` | object | The billing provider (2010AA): the claim's office as it was when the claim was queued. |
| `snapshot.billing_office.name` | string |  |
| `snapshot.billing_office.npi` | string |  |
| `snapshot.billing_office.tax_id` | string |  |
| `snapshot.billing_office.address` | object |  |
| `snapshot.billing_office.address.line1` | string |  |
| `snapshot.billing_office.address.line2` | value |  |
| `snapshot.billing_office.address.city` | string |  |
| `snapshot.billing_office.address.state` | string |  |
| `snapshot.billing_office.address.postal_code` | string |  |
| `snapshot.billing_office.phone` | string |  |
| `snapshot.billing_office.pay_to_address` | object or null | The pay-to address the file names (2010AB); null when it names none (the office has none, or it is the billing address). |
| `snapshot.billing_office.pay_to_address.line1` | string |  |
| `snapshot.billing_office.pay_to_address.line2` | value |  |
| `snapshot.billing_office.pay_to_address.city` | string |  |
| `snapshot.billing_office.pay_to_address.state` | string |  |
| `snapshot.billing_office.pay_to_address.postal_code` | string |  |
| `snapshot.service_location` | object or null | The service facility the file names (2310C): the claim's own service_location, else its office's default one; null when the treatment happened at the billing address. |
| `snapshot.service_location.name` | string |  |
| `snapshot.service_location.npi` | value |  |
| `snapshot.service_location.address` | object |  |
| `snapshot.service_location.address.line1` | string |  |
| `snapshot.service_location.address.line2` | value |  |
| `snapshot.service_location.address.city` | string |  |
| `snapshot.service_location.address.state` | string |  |
| `snapshot.service_location.address.postal_code` | string |  |
| `snapshot.payer_provider_ids` | object | The payer's own IDs the file sends (REF*G2 in 2010BB and 2310B): the claim's own payer_provider_ids, else the office's and the rendering provider's for the claim's payer; null where none. |
| `snapshot.payer_provider_ids.billing` | value |  |
| `snapshot.payer_provider_ids.rendering` | value |  |
| `snapshot.rendering_provider` | object | The rendering provider (2310B) as it was when the claim was queued. |
| `snapshot.rendering_provider.first_name` | string |  |
| `snapshot.rendering_provider.last_name` | string |  |
| `snapshot.rendering_provider.npi` | string |  |
| `snapshot.rendering_provider.taxonomy_code` | string |  |
| `snapshot.rendering_provider.license` | object or null | The one license the file sends (2310B REF*0B): the provider's license for the state of the service location, else of the billing office; null when the provider has none for that state. |
| `snapshot.rendering_provider.license.state` | string |  |
| `snapshot.rendering_provider.license.number` | string |  |

## 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. |
| 404 | `NOT_FOUND` | Not found. |
| 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. |
| 409 | `CONFLICT` | The resource is not in a state that allows this, or it changed while the request was handled. Read it, then decide whether to send the request again. |
| 500 | `INTERNAL` | Something went wrong on our side. Quote the request ID if you contact us. |

## Example

### Example request

```bash
curl -X PATCH "https://app.myclaimhouse.com/api/v1/claims/clm_01JM000000E00800000000002G" \
  -H "Authorization: Bearer $CLAIMHOUSE_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "lines": [
    {
      "cdt": "D2740",
      "fee": 1140,
      "service_date": "2026-09-24",
      "tooth": "3"
    }
  ]
}'
```

### Example response: 200

```json
{
  "id": "clm_01JM000000E00800000000002G",
  "object": "claim",
  "kind": "claim",
  "state": "queued",
  "next_step": "This claim is queued and goes out in the next batch.",
  "frequency": "original",
  "parent_id": null,
  "patient_control_number": "CH4Q7M2K9TRB",
  "office": {
    "id": "off_01JM000000E008000000000003",
    "name": "Example Family Dental"
  },
  "payer": {
    "id": "pyr_01JM000000E008000000000004",
    "payer_id": "00000",
    "name": "Example Dental Plan"
  },
  "rendering_provider": {
    "id": "prv_01JM000000E008000000000005",
    "first_name": "Riley",
    "last_name": "Example",
    "npi": "1999990017"
  },
  "patient_name": {
    "first_name": "Alex",
    "last_name": "Example"
  },
  "service_dates": {
    "first": "2026-09-24",
    "last": "2026-09-24"
  },
  "totals": {
    "charge": "1140.00",
    "lines": 1
  },
  "payment": null,
  "estimate": null,
  "converted_from": null,
  "converted_to": null,
  "source_claim_id": null,
  "patient_id": "pat_01JM000000E00800000000004K",
  "insurance_type": "commercial",
  "sequence": "primary",
  "encounter": false,
  "request_id": "req_01JM000000E00800000000002J",
  "created_at": "2026-09-24T21:00:00.120000+00:00",
  "updated_at": "2026-09-24T21:00:00.310000+00:00",
  "subscriber": {
    "first_name": "Alex",
    "last_name": "Example",
    "date_of_birth": "1985-04-12",
    "gender": "F",
    "member_id": "CH-ACTIVE-FULL",
    "group_number": null,
    "address": {
      "line1": "1 Example Street",
      "line2": null,
      "city": "Exampleville",
      "state": "GA",
      "postal_code": "30000"
    }
  },
  "patient": null,
  "place_of_service": "11",
  "lines": [
    {
      "line_number": 1,
      "cdt": "D2740",
      "description": "Porcelain or ceramic crown",
      "service_date": "2026-09-24",
      "fee": "1140.00",
      "quantity": 1,
      "tooth": "3",
      "surfaces": null,
      "area": null,
      "teeth": [],
      "areas": [],
      "prosthesis": null,
      "prior_placement_date": null,
      "diagnosis_pointers": []
    }
  ],
  "remarks": null,
  "metadata": {
    "pms_claim_number": "PMS-1042"
  },
  "coordination": {
    "sequence": "primary",
    "other_payers": []
  },
  "accident": null,
  "referral_number": null,
  "prior_authorization": null,
  "diagnosis_codes": [],
  "orthodontics": null,
  "missing_teeth": [],
  "service_location": null,
  "payer_provider_ids": {
    "billing": null,
    "rendering": null
  },
  "attachments": [
    "att_01JM000000E00800000000003G"
  ],
  "foreign_attachments": [],
  "validation": {
    "validated_at": "2026-09-24T21:00:00.300000+00:00",
    "errors": 0,
    "warnings": 0,
    "findings": []
  },
  "network": {
    "submitted_at": null,
    "clearinghouse_claim_id": null,
    "payer_claim_number": null,
    "rejection": null
  },
  "idempotency_key": "pms-1042",
  "allow_duplicate": false,
  "delivery_uncertain": null,
  "no_payer_answer": null,
  "snapshot": {
    "billing_office": {
      "name": "Example Family Dental",
      "npi": "1999999000",
      "tax_id": "009999999",
      "address": {
        "line1": "100 Example Street",
        "line2": null,
        "city": "Exampleville",
        "state": "GA",
        "postal_code": "303010000"
      },
      "phone": "4045550100",
      "pay_to_address": null
    },
    "service_location": null,
    "rendering_provider": {
      "first_name": "Riley",
      "last_name": "Example",
      "npi": "1999990017",
      "taxonomy_code": "1223G0001X",
      "license": {
        "state": "GA",
        "number": "GA-000000"
      }
    },
    "payer_provider_ids": {
      "billing": null,
      "rendering": null
    }
  }
}
```
