Skip to the page

Search the titles, headings and text of every guide and API reference page.

    Chapters

    Claims

    Create the next payer's claim

    POST/api/v1/claims/{id}/next_claim

    For a claim its payer paid or denied, whose ERA was applied: makes a new claim for the payer that comes next (a secondary from a primary, a tertiary from a secondary). It copies the claim's office, provider, patient, lines, standard fields and service location (not its attachments) and sets coordination: the payers that already paid or denied it (the claim's own other payers that did, not other coverage it listed without a payment), then its payer, with what that payer paid, when, and its adjustments from the ERA: line by line (lines, with the ERA's claim-level adjustments only at claim level) when the ERA's lines match the claim's, else (or with adjudication claim) summed by group and reason at claim level. The new claim names its source in source_claim_id, and each claim's timeline names the other. The patient stays the claim's patient. subscriber defaults to the claim's own; a subscriber who is not the patient needs relationship (the patient's relationship to them), else 422; with submit false (the default) the new claim is a draft to check before you send it. Refused with NO_APPLIED_PAYMENT (no payment applied from an ERA), NO_NEXT_PAYER (the claim is tertiary) or PAYMENT_NOT_BALANCED (what the payer paid and its adjustments do not add up to the charge; details gives charge, paid, adjustments and difference). In those cases, create the claim with coordination written out. Needs an Idempotency-Key header and a key with the submit permission.

    Needs a key with submit permission.

    Request

    Headers

    Headers
    NameTypeRequiredDescription
    Idempotency-KeystringrequiredMakes 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

    Path parameters
    NameTypeRequiredDescription
    idstringrequiredA claim ID (clm_...).

    Body

    Body
    NameTypeRequiredDescription
    insurance_typestringoptionalThe 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`.
    patient_control_numbervalueoptionalYour identifier for the claim, sent on the claim and returned on its status: unique in your organization. Made for you when omitted.
    payer_idstringrequiredThe next payer: a Claim House payer ID (pyr_...), a payer ID or an alias from the payer directory.
    subscriberobjectoptionalThe next payer's subscriber (the person who holds that coverage). Default: the claim's own subscriber. The patient stays the claim's patient.
    subscriber.first_namestringrequired
    subscriber.last_namestringrequired
    subscriber.date_of_birthvalueoptional
    subscriber.genderstring or nulloptionalOne of: `F`, `M`, `U`.
    subscriber.member_idstringrequired
    subscriber.group_numbervalueoptional
    subscriber.addressobject or nulloptional
    subscriber.address.line1stringrequired
    subscriber.address.line2valueoptional
    subscriber.address.citystringrequired
    subscriber.address.statestringrequired
    subscriber.address.postal_codestringrequired
    relationshipstringoptionalWith subscriber: the patient's relationship to that subscriber (self, spouse, child or other). Required when subscriber is not the patient (a different name or date of birth).One of: `self`, `spouse`, `child`, `other`.
    submitbooleanoptionalfalse (the default): save the new claim as a draft, to check before it is sent. true: validate it and queue it when it has no errors.
    adjudicationstringoptionalline (the default): the payer's figures line by line (lines) when the ERA's lines match the claim's, by line control number (REF*6R) else by position; otherwise, and with claim, summed at claim level.One of: `line`, `claim`.

    Response

    The new claim: a draft, or queued, validated or needing attention with submit true. Status 201.

    Response fields
    NameTypeDescription
    idstringAn ID that starts with clm_.
    objectstringAlways `claim`.
    kindstringclaim, or predetermination (sent before treatment; its answer is an estimate). Set when it was made.One of: `claim`, `predetermination`.
    statestringOne of: `draft`, `validated`, `needs_attention`, `queued`, `submitted`, `accepted_clearinghouse`, `accepted_payer`, `rejected`, `voided`, `paid`, `denied`, `reconciled`, `returned`.
    next_stepstringOne sentence saying what happens next, or what you must do.
    frequencystringoriginal; replacement for a resubmission of a claim the payer has; void for a void transaction.One of: `original`, `replacement`, `void`.
    parent_idstring or nullThe claim a void transaction voids.
    patient_control_numberstringYour identifier for the claim, or the one we made: unique in your organization, sent on the claim and returned on its status.
    officeobject
    office.idstringAn ID that starts with off_.
    office.namestring
    payerobject
    payer.idstringAn ID that starts with pyr_.
    payer.payer_idstringThe payer's own payer ID.
    payer.namestring
    rendering_providerobject
    rendering_provider.idstringAn ID that starts with prv_.
    rendering_provider.first_namestring
    rendering_provider.last_namestring
    rendering_provider.npistring
    patient_nameobjectThe patient: the dependent when there is one, else the subscriber.
    patient_name.first_namestring
    patient_name.last_namestring
    patient_idstring or nullThe 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_datesobject
    service_dates.firststring (date) or null
    service_dates.laststring (date) or null
    totalsobject
    totals.chargestringThe sum of the line fees, in dollars, as a decimal string.Matches `^-?\d+\.\d{2}$`.
    totals.linesintegerAt least -9007199254740991.
    paymentobject or nullWhat 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.outcomestringpaid 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_idstringThe ERA of the claim's current payment (era_...): the latest one, when that is not certain.
    payment.paidstringWhat the payer paid in all: the sum of every payment applied, reversals subtracted.Matches `^-?\d+\.\d{2}$`.
    payment.allowedstring or nullThe amount the current payment allowed, when it said.Matches `^-?\d+\.\d{2}$`.
    payment.patient_responsibilitystringWhat the patient owes, as the payer says (deductible, coinsurance and the like).Matches `^-?\d+\.\d{2}$`.
    payment.payment_datestring (date) or nullThe payment date of the ERA.
    payment.reconciled_atstring (date-time) or nullWhen you confirmed you posted the payment (state reconciled); null until then.
    estimateobject or nullA predetermination's estimate (state returned); null before it arrives, and always on a claim.
    estimate.era_idstringThe ERA that carried the estimate (era_...).
    estimate.allowedstring or nullWhat the payer would allow, when it said.Matches `^-?\d+\.\d{2}$`.
    estimate.paystringWhat the payer would pay once the treatment is done.Matches `^-?\d+\.\d{2}$`.
    estimate.patientstringThe patient's estimated share.Matches `^-?\d+\.\d{2}$`.
    estimate.returned_atstring (date-time)When the estimate arrived.
    estimate.linesarray of objectThe estimate per line, where the payer said (line_number is the predetermination's).
    estimate.lines[].line_numberintegerAt least 1.
    estimate.lines[].allowedstring or nullAn amount in dollars, as a decimal string with two places (such as "113.60").Matches `^-?\d+\.\d{2}$`.
    estimate.lines[].paystringAn amount in dollars, as a decimal string with two places (such as "113.60").Matches `^-?\d+\.\d{2}$`.
    estimate.lines[].patientstringAn amount in dollars, as a decimal string with two places (such as "113.60").Matches `^-?\d+\.\d{2}$`.
    converted_fromstring or nullOn a claim made from a predetermination: the predetermination.
    converted_tostring or nullOn a converted predetermination: the claim made from it.
    source_claim_idstring or nullOn 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_typestringThe 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`.
    sequencestringprimary, secondary or tertiary: this claim's place among the payers (coordination.sequence).One of: `primary`, `secondary`, `tertiary`.
    encounterbooleanTrue for a capitation encounter: reported to the payer, not billed for payment (sent as reporting only, BHT06 RP). Always false on a predetermination.
    request_idstring or nullThe API request that made the claim (the x-request-id of its response); null for a claim made in the dashboard.
    created_atstring (date-time)
    updated_atstring (date-time)
    subscriberobject
    subscriber.first_namestring
    subscriber.last_namestring
    subscriber.date_of_birthstring (date) or null
    subscriber.genderstring or nullOne of: `F`, `M`, `U`.
    subscriber.member_idstring
    subscriber.group_numbervalue
    subscriber.addressobject or null
    subscriber.address.line1string
    subscriber.address.line2value
    subscriber.address.citystring
    subscriber.address.statestring
    subscriber.address.postal_codestring
    patientobject or nullThe patient, when not the subscriber.
    patient.first_namestring
    patient.last_namestring
    patient.date_of_birthstring (date) or null
    patient.genderstring or nullOne of: `F`, `M`, `U`.
    patient.relationshipstringOne of: `spouse`, `child`, `other`.
    patient.addressobject or null
    patient.address.line1string
    patient.address.line2value
    patient.address.citystring
    patient.address.statestring
    patient.address.postal_codestring
    place_of_servicestring
    linesarray of object
    lines[].line_numberintegerAt least 1.
    lines[].cdtstring
    lines[].descriptionvalueThe description you sent, or our short description of the code when you sent none and it is a common one.
    lines[].service_datestring (date) or nullThe date of service. Null on a predetermination (it has none), and on a claim made from one until you add it.
    lines[].feestringThe charge for the whole line, in dollars, as a decimal string (never multiplied by the quantity).Matches `^-?\d+\.\d{2}$`.
    lines[].quantityintegerHow many units the line is for: a count sent with the line (SV306).At least -9007199254740991.
    lines[].toothvalue
    lines[].surfacesvalue
    lines[].areavalueThe oral cavity code: a quadrant (10, 20, 30, 40), an arch (01, 02) or 00.
    lines[].teetharray of objectThe teeth of a line sent with several (each its own TOO segment); empty when the line gives tooth and surfaces instead.
    lines[].teeth[].toothstring
    lines[].teeth[].surfacesvalue
    lines[].areasarray of stringThe oral cavity codes of a line sent with several; empty when the line gives area instead.
    lines[].prosthesisstring or nullinitial or replacement, for a crown, bridge or denture.One of: `initial`, `replacement`.
    lines[].prior_placement_datestring (date) or nullWhen the prosthesis being replaced was first placed.
    lines[].diagnosis_pointersarray of integerPositions (from 1) in the claim's diagnosis_codes that this line points at.
    remarksvalue
    metadataobject
    coordinationobjectCoordination 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.sequencestringprimary, secondary or tertiary: this claim's place among the payers.One of: `primary`, `secondary`, `tertiary`.
    coordination.other_payersarray of object
    coordination.other_payers[].payer_idstring or nullThe directory payer (pyr_...), when the other payer is one; null for a payer named by payer_name and payer_identifier.
    coordination.other_payers[].payer_namevalueThe payer's name: the directory's for a directory payer.
    coordination.other_payers[].payer_identifiervalueThe payer ID the claim file carries for it (NM109): the directory's for a directory payer.
    coordination.other_payers[].responsibilitystringOne of: `primary`, `secondary`.
    coordination.other_payers[].insurance_typestringOne of: `commercial`, `medicaid`, `medicare_b`, `champus`, `dental_maintenance`, `ppo`, `pos`, `epo`, `indemnity`, `hmo`, `self_pay`, `other`.
    coordination.other_payers[].relationshipstringThe patient's relationship to this payer's subscriber.One of: `self`, `spouse`, `child`, `other`.
    coordination.other_payers[].subscriberobject
    coordination.other_payers[].subscriber.first_namestring
    coordination.other_payers[].subscriber.last_namestring
    coordination.other_payers[].subscriber.member_idstring
    coordination.other_payers[].subscriber.group_numbervalue
    coordination.other_payers[].paidstring or nullWhat this payer paid; null when it did not adjudicate the claim.Matches `^-?\d+\.\d{2}$`.
    coordination.other_payers[].paid_datestring (date) or null
    coordination.other_payers[].patient_responsibilitystring or nullAn amount in dollars, as a decimal string with two places (such as "113.60").Matches `^-?\d+\.\d{2}$`.
    coordination.other_payers[].adjustmentsarray of objectIts adjustments: claim level only when it has lines.
    coordination.other_payers[].adjustments[].groupstringOne of: `CO`, `OA`, `PI`, `PR`.
    coordination.other_payers[].adjustments[].reasonstring
    coordination.other_payers[].adjustments[].amountstringAn amount in dollars, as a decimal string with two places (such as "113.60").Matches `^-?\d+\.\d{2}$`.
    coordination.other_payers[].linesarray of object or nullWhat it paid and adjusted line by line (loop 2430); null when it gave claim-level figures only.
    coordination.other_payers[].lines[].lineintegerThe claim line, from 1.At least -9007199254740991.
    coordination.other_payers[].lines[].paidstringAn amount in dollars, as a decimal string with two places (such as "113.60").Matches `^-?\d+\.\d{2}$`.
    coordination.other_payers[].lines[].adjustmentsarray of object
    coordination.other_payers[].lines[].adjustments[].groupstringOne of: `CO`, `OA`, `PI`, `PR`.
    coordination.other_payers[].lines[].adjustments[].reasonstring
    coordination.other_payers[].lines[].adjustments[].amountstringAn amount in dollars, as a decimal string with two places (such as "113.60").Matches `^-?\d+\.\d{2}$`.
    accidentobject or null
    accident.causestringOne of: `auto`, `employment`, `other`.
    accident.datestring (date) or null
    accident.statevalue
    referral_numbervalue
    prior_authorizationvalue
    diagnosis_codesarray of stringThe ICD-10-CM codes of the claim, the first the principal diagnosis, as sent.
    orthodonticsobject or null
    orthodontics.appliance_placed_datestring (date)
    orthodontics.total_monthsintegerAt least -9007199254740991.
    orthodontics.months_remainingintegerAt least -9007199254740991.
    missing_teetharray of object
    missing_teeth[].toothstring
    missing_teeth[].statusstringOne of: `missing`, `to_be_extracted`.
    service_locationobject or nullWhere the treatment happened, when that is not the billing office's address.
    service_location.namestring
    service_location.npivalue
    service_location.addressobject
    service_location.address.line1string
    service_location.address.line2value
    service_location.address.citystring
    service_location.address.statestring
    service_location.address.postal_codestring
    payer_provider_idsobjectThe 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.billingvalue
    payer_provider_ids.renderingvalue
    attachmentsarray of stringThe 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_attachmentsarray of objectThe references of attachments a partner already holds a number for, carried by the claim file unchanged after the claim's own attachments.
    foreign_attachments[].pwkarray of stringThe elements of the PWK segment after its id.
    foreign_attachments[].ntevalueThe text of the NTE that followed it, or null.
    validationobject or nullThe result of the last validation; null while the claim has not been validated.
    validation.validated_atstring (date-time)
    validation.errorsintegerAt least -9007199254740991.
    validation.warningsintegerAt least -9007199254740991.
    validation.findingsarray of object
    validation.findings[].fieldvalueThe request field the finding is about, as a dotted path (lines[0].tooth), or null for the claim as a whole.
    validation.findings[].codestringA stable code for the finding.
    validation.findings[].messagestring
    validation.findings[].severitystringAn error keeps the claim from being sent; a warning does not.One of: `error`, `warning`.
    networkobject
    network.submitted_atstring (date-time) or null
    network.clearinghouse_claim_idvalue
    network.payer_claim_numbervalueThe payer's own number for the claim, once it has accepted it.
    network.rejectionobject or null
    network.rejection.sourcestringOne of: `clearinghouse`, `payer`.
    network.rejection.categoryvalueThe status category code from the 277 (such as A7).
    network.rejection.codevalueThe status code from the 277 (such as 33).
    network.rejection.messagestringWhy, in plain words.
    network.rejection.fixvalueWhat to change, when it is known.
    idempotency_keyvalueThe Idempotency-Key the claim was sent with.
    allow_duplicatebooleanTrue 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_uncertainobject or nullSet 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_idstringThe file the claim was last sent in, which may already be with the payer.
    no_payer_answerobject or nullSet 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_idstringThe file the claim was last sent in, which the payer never answered.
    no_payer_answer.sincestring (date-time)When that file was handed to the network.
    snapshotobject or nullWhat 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_officeobjectThe billing provider (2010AA): the claim's office as it was when the claim was queued.
    snapshot.billing_office.namestring
    snapshot.billing_office.npistring
    snapshot.billing_office.tax_idstring
    snapshot.billing_office.addressobject
    snapshot.billing_office.address.line1string
    snapshot.billing_office.address.line2value
    snapshot.billing_office.address.citystring
    snapshot.billing_office.address.statestring
    snapshot.billing_office.address.postal_codestring
    snapshot.billing_office.phonestring
    snapshot.billing_office.pay_to_addressobject or nullThe 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.line1string
    snapshot.billing_office.pay_to_address.line2value
    snapshot.billing_office.pay_to_address.citystring
    snapshot.billing_office.pay_to_address.statestring
    snapshot.billing_office.pay_to_address.postal_codestring
    snapshot.service_locationobject or nullThe 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.namestring
    snapshot.service_location.npivalue
    snapshot.service_location.addressobject
    snapshot.service_location.address.line1string
    snapshot.service_location.address.line2value
    snapshot.service_location.address.citystring
    snapshot.service_location.address.statestring
    snapshot.service_location.address.postal_codestring
    snapshot.payer_provider_idsobjectThe 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.billingvalue
    snapshot.payer_provider_ids.renderingvalue
    snapshot.rendering_providerobjectThe rendering provider (2310B) as it was when the claim was queued.
    snapshot.rendering_provider.first_namestring
    snapshot.rendering_provider.last_namestring
    snapshot.rendering_provider.npistring
    snapshot.rendering_provider.taxonomy_codestring
    snapshot.rendering_provider.licenseobject or nullThe 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.statestring
    snapshot.rendering_provider.license.numberstring

    Errors

    Errors
    HTTP statusCodeWhat it means
    401UNAUTHORIZEDA valid API key is required. Send it as "Authorization: Bearer <key>".
    403PERMISSION_DENIEDThis API key is not allowed to do that.
    404NOT_FOUNDNot found.
    422INVALID_REQUESTThe request is not valid.
    400IDEMPOTENCY_KEY_REQUIREDThis request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.
    400IDEMPOTENCY_KEY_INVALIDThe Idempotency-Key header must be 1 to 255 printable characters.
    422IDEMPOTENCY_KEY_REUSEDThat Idempotency-Key was already used with a different request.
    409IDEMPOTENCY_KEY_IN_USEA request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.
    429TOO_MANY_REQUESTSToo many requests of this kind lately. Wait, then try again.
    413PAYLOAD_TOO_LARGEThe request body is larger than 1 MB.
    504TIMEOUTThe 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>.
    503CLAIMS_UNAVAILABLEClaims are not available in live mode yet. Use a test key.
    409CONFLICTThe 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.
    409NO_APPLIED_PAYMENTThe claim has no payment applied from an ERA to carry to the next payer.
    409NO_NEXT_PAYERThe claim is tertiary: no payer comes after it.
    409PAYMENT_NOT_BALANCEDWhat the payer paid and its adjustments do not add up to the claim's charge. The details give the figures.
    500INTERNALSomething went wrong on our side. Quote the request ID if you contact us.

    Example

    Example request

    Shell
    curl -X POST "https://sandbox.myclaimhouse.com/api/v1/claims/clm_01JM000000E00800000000002G/next_claim" \
      -H "Authorization: Bearer $CLAIMHOUSE_KEY" \
      -H "Idempotency-Key: $(uuidgen)" \
      -H "Content-Type: application/json" \
      -d '{
      "payer_id": "pyr_01JM000000E00800000000009H"
    }'

    Example response: 201

    JSON
    {
      "id": "clm_01JM000000E00800000000009G",
      "object": "claim",
      "kind": "claim",
      "state": "draft",
      "next_step": "This claim is a draft: it has not been checked or sent. Validate it, then queue it to send it.",
      "frequency": "original",
      "parent_id": null,
      "patient_control_number": "CH7N2X5Q8KDA",
      "office": {
        "id": "off_01JM000000E008000000000003",
        "name": "Example Family Dental"
      },
      "payer": {
        "id": "pyr_01JM000000E00800000000009H",
        "payer_id": "00001",
        "name": "Example Secondary 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": "clm_01JM000000E00800000000002G",
      "patient_id": "pat_01JM000000E00800000000004K",
      "insurance_type": "commercial",
      "sequence": "secondary",
      "encounter": false,
      "request_id": "req_01JM000000E00800000000009J",
      "created_at": "2026-09-25T09:00:00.120000+00:00",
      "updated_at": "2026-09-25T09:00:00.120000+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": "secondary",
        "other_payers": [
          {
            "payer_id": "pyr_01JM000000E008000000000004",
            "payer_name": "Example Dental Plan",
            "payer_identifier": "00000",
            "responsibility": "primary",
            "insurance_type": "commercial",
            "relationship": "self",
            "subscriber": {
              "first_name": "Alex",
              "last_name": "Example",
              "member_id": "CH-ACTIVE-FULL",
              "group_number": null
            },
            "paid": "820.80",
            "paid_date": "2026-09-24",
            "patient_responsibility": "205.20",
            "adjustments": [],
            "lines": [
              {
                "line": 1,
                "paid": "820.80",
                "adjustments": [
                  {
                    "group": "CO",
                    "reason": "45",
                    "amount": "114.00"
                  },
                  {
                    "group": "PR",
                    "reason": "2",
                    "amount": "205.20"
                  }
                ]
              }
            ]
          }
        ]
      },
      "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": [],
      "foreign_attachments": [],
      "validation": null,
      "network": {
        "submitted_at": null,
        "clearinghouse_claim_id": null,
        "payer_claim_number": null,
        "rejection": null
      },
      "idempotency_key": "next-1042",
      "allow_duplicate": false,
      "delivery_uncertain": null,
      "no_payer_answer": null,
      "snapshot": null
    }

    A claim with no payment applied yet: 409

    JSON
    {
      "error": "NO_APPLIED_PAYMENT",
      "message": "This claim has no payment applied from an ERA to carry to the next payer: a claim the payer paid or denied, whose remittance was applied, can have one. To send the next payer a claim anyway, create it with coordination written out.",
      "errors": [],
      "request_id": "req_01JM000000E008000000000010"
    }

    A tertiary claim: no payer comes next: 409

    JSON
    {
      "error": "NO_NEXT_PAYER",
      "message": "This claim is tertiary: no payer comes after it.",
      "errors": [],
      "request_id": "req_01JM000000E008000000000010"
    }

    A payment one cent short of the charge: 409

    JSON
    {
      "error": "PAYMENT_NOT_BALANCED",
      "message": "The payer paid 820.80 and adjusted 319.19, which does not add up to the claim's charge of 1140.00. Create the next payer's claim with coordination written out instead.",
      "errors": [],
      "details": {
        "era_id": "era_01JM000000E00800000000003G",
        "charge": "1140.00",
        "paid": "820.80",
        "adjustments": "319.19",
        "difference": "0.01"
      },
      "request_id": "req_01JM000000E008000000000010"
    }