Skip to the page

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

    Chapters

    ERAs

    Match a payment to a claim

    POST/api/v1/eras/{id}/claims/{era_claim_id}/match

    Matches an unmatched payment of the ERA to one of your claims (sent, in the key's mode, and able to take a payment now: not while it is being corrected, rejected or voided) by hand, and applies it: the claim's figures become the sum of its payments, and it is paid or denied. The payer is your call: a claim of another payer than the ERA's (when the ERA's payer is known; a payment left unmatched with unmatched_reason payer_differs, say) is matched only with confirm_payer true, else 422 on confirm_payer. A reversal and its corrected payment can both be matched to one claim. A payment matched already is a conflict. Needs a key with both read and submit. An ERA posted already can still be matched: its claim is not reconciled by the post, so reconcile it on its own (POST /v1/claims/{id}/reconcile). 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
    idstringrequiredAn ERA ID (era_...).
    era_claim_idstringrequiredA payment of the ERA (erc_...).

    Body

    Body
    NameTypeRequiredDescription
    claim_idstringrequiredThe claim this payment is for (clm_...).
    confirm_payerbooleanoptionaltrue: you checked that the payment is for this claim although its payer is not the ERA's. Needed only then.

    Response

    The payment as it is now. Status 200.

    Response fields
    NameTypeDescription
    idstringAn ID that starts with erc_.
    objectstringAlways `era_claim`.
    claim_idstring or nullThe claim this payment is for; null while it is unmatched.
    matchstringmatched: by the patient control number or the payer claim number; manual: matched by hand; unmatched: no claim with certainty (match it by hand).One of: `matched`, `unmatched`, `manual`.
    unmatched_reasonstring or nullWhy a payment naming one of your claims was left unmatched: payer_differs (the ERA's payer is not the claim's), claim_not_payable (the claim could not take a payment in its state, such as while it is being corrected), estimate_for_claim (an estimate naming a claim), payment_for_predetermination (a payment naming a predetermination). Match it by hand once you have checked. Null otherwise.One of: `payer_differs`, `claim_not_payable`, `estimate_for_claim`, `payment_for_predetermination`.
    patient_control_numberstringThe patient control number as the payer echoed it.
    payer_claim_numberstring
    statusobject
    status.codestringThe payer's claim status (CLP02).
    status.descriptionstring
    outcomestringWhat the payment does to the claim: paid, denied, reversal (an earlier payment taken back), estimate (the answer to a predetermination, never a payment), or status (reported only).One of: `paid`, `denied`, `reversal`, `status`, `estimate`.
    chargestringAn amount in dollars, as a decimal string with two places (such as "113.60").Matches `^-?\d+\.\d{2}$`.
    paidstringAn amount in dollars, as a decimal string with two places (such as "113.60").Matches `^-?\d+\.\d{2}$`.
    allowedstring or nullAn amount in dollars, as a decimal string with two places (such as "113.60").Matches `^-?\d+\.\d{2}$`.
    patient_responsibilitystringAn amount in dollars, as a decimal string with two places (such as "113.60").Matches `^-?\d+\.\d{2}$`.
    adjustmentsarray of objectAdjustments at claim level (each line has its own).
    adjustments[].groupstringThe adjustment group: CO (contractual), PR (patient responsibility), OA (other), PI (payer initiated) or CR (correction).
    adjustments[].group_descriptionstringThe group in plain words.
    adjustments[].reasonstringThe claim adjustment reason code, as sent (such as 45, 2 or 119).
    adjustments[].descriptionstringThe reason in our own plain words, for the common codes; the code itself for any other.
    adjustments[].amountstringAn amount in dollars, as a decimal string with two places (such as "113.60").Matches `^-?\d+\.\d{2}$`.
    patient_namevalueThe patient as the payer wrote it, shown only while the payment is unmatched, to find its claim; null once matched.
    balancedbooleanWhether its charge less its payment is its adjustments: one that is not was not applied to its claim.
    appliedbooleanWhether it moved its claim (paid, denied or reversed).
    postablebooleanWhether posting the ERA marks its claim reconciled: applied, the ERA not posted yet, and the claim paid or denied with this ERA's payment as its current one.
    linesarray of object
    lines[].procedure_codestringThe CDT code the payer paid.
    lines[].modifiersarray of string
    lines[].service_datestring (date) or null
    lines[].chargestringAn amount in dollars, as a decimal string with two places (such as "113.60").Matches `^-?\d+\.\d{2}$`.
    lines[].paidstringAn amount in dollars, as a decimal string with two places (such as "113.60").Matches `^-?\d+\.\d{2}$`.
    lines[].allowedstring or nullAn amount in dollars, as a decimal string with two places (such as "113.60").Matches `^-?\d+\.\d{2}$`.
    lines[].unitsvalue
    lines[].adjustmentsarray of object
    lines[].adjustments[].groupstringThe adjustment group: CO (contractual), PR (patient responsibility), OA (other), PI (payer initiated) or CR (correction).
    lines[].adjustments[].group_descriptionstringThe group in plain words.
    lines[].adjustments[].reasonstringThe claim adjustment reason code, as sent (such as 45, 2 or 119).
    lines[].adjustments[].descriptionstringThe reason in our own plain words, for the common codes; the code itself for any other.
    lines[].adjustments[].amountstringAn amount in dollars, as a decimal string with two places (such as "113.60").Matches `^-?\d+\.\d{2}$`.
    lines[].remarksarray of stringRemark codes, as sent.
    lines[].line_control_numbervalueThe line control number the payer returned (ours is <patient control number>-<line>).
    lines[].claim_line_numberinteger or nullThe line of the matched claim this pays; null when no line matched with certainty.At least -9007199254740991.

    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>.
    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.
    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/eras/era_01JM000000E00800000000003G/claims/erc_01JM000000E00800000000003J/match" \
      -H "Authorization: Bearer $CLAIMHOUSE_KEY" \
      -H "Idempotency-Key: $(uuidgen)" \
      -H "Content-Type: application/json" \
      -d '{
      "claim_id": "clm_01JM000000E00800000000002J"
    }'

    Example response: 200

    JSON
    {
      "id": "erc_01JM000000E00800000000003J",
      "object": "era_claim",
      "claim_id": "clm_01JM000000E00800000000002J",
      "match": "manual",
      "unmatched_reason": null,
      "patient_control_number": "PMS-77812",
      "payer_claim_number": "990000001077",
      "status": {
        "code": "4",
        "description": "Denied."
      },
      "outcome": "denied",
      "charge": "310.00",
      "paid": "0.00",
      "allowed": null,
      "patient_responsibility": "0.00",
      "adjustments": [],
      "patient_name": null,
      "balanced": true,
      "applied": true,
      "postable": false,
      "lines": [
        {
          "procedure_code": "D4341",
          "modifiers": [],
          "service_date": "2026-09-24",
          "charge": "310.00",
          "paid": "0.00",
          "allowed": null,
          "units": 1,
          "adjustments": [
            {
              "group": "CO",
              "group_description": "The provider writes this off under its contract with the payer. The patient is not billed.",
              "reason": "119",
              "description": "The benefit maximum for the period has been reached.",
              "amount": "310.00"
            }
          ],
          "remarks": [
            "N130"
          ],
          "line_control_number": "1",
          "claim_line_number": 1
        }
      ]
    }

    A claim of another payer, not confirmed: 422

    JSON
    {
      "error": "INVALID_REQUEST",
      "message": "The request is not valid.",
      "errors": [
        {
          "field": "confirm_payer",
          "code": "required",
          "message": "This claim is to another payer than the ERA's. Check the payment is for it, then match it again with confirm_payer true."
        }
      ],
      "request_id": "req_01JM000000E008000000000010"
    }