Skip to the page

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

    Chapters

    Payer requests

    Answer a payer request

    POST/api/v1/payer_requests/{id}/answer

    Answers with a solicited attachment that carries the payer's reference number: the one named, else the request's open one (make it with POST /attachments, kind solicited, and upload its documents first), else a new one with the narrative given (for a request about no claim, with office_id and the patient, subscriber and service_dates, which the network's record needs). It is sent through the network (as an answer about the claim's earlier attachment when it has one) and closed, and the request is answered. Nothing is added to the claim file. An answered request returns its answer. 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 payer request ID (prq_...).

    Body

    Body
    NameTypeRequiredDescription
    attachment_idstringoptionalThe solicited attachment that answers it (made with payer_request_id, with its documents uploaded). Default: the request's open solicited attachment, or a new one.
    office_idstringoptionalThe office of a new attachment, for a request about no claim.
    narrativestringoptionalThe answer in words, kept on the attachment.
    patientobjectoptionalThe patient, for an attachment made for no claim (required then; one made for a claim takes the claim's).
    patient.first_namestringrequired
    patient.last_namestringrequired
    patient.date_of_birthstring (date)required
    subscriberobjectoptionalThe insured, for an attachment made for no claim (required then).
    subscriber.first_namestringrequired
    subscriber.last_namestringrequired
    subscriber.member_idstringrequired
    subscriber.relationshipstringrequiredThe patient's relationship to the insured.One of: `self`, `spouse`, `child`, `other`.
    service_datesobjectoptionalThe dates of service the documents are about, for an attachment made for no claim (required then).
    service_dates.fromstring (date)required
    service_dates.tostring (date)required

    Response

    The request, answered, and the attachment that answers it. Status 200.

    Response fields
    NameTypeDescription
    objectstringAlways `payer_request_answer`.
    payer_requestobject
    payer_request.idstringAn ID that starts with prq_.
    payer_request.objectstringAlways `payer_request`.
    payer_request.statestringOne of: `open`, `answered`.
    payer_request.sourcestringnetwork (it arrived through the network) or staff (recorded by hand, from a letter).One of: `network`, `staff`.
    payer_request.claim_idstring or nullAn ID that starts with clm_.
    payer_request.payerobject
    payer_request.payer.idstringAn ID that starts with pyr_.
    payer_request.payer.payer_idstringThe payer's own payer ID.
    payer_request.payer.namestring
    payer_request.reference_numberstringThe payer's reference number: the answering attachment carries it.
    payer_request.requestedstringWhat the payer asks for, in its words.
    payer_request.due_datestring (date) or null
    payer_request.answering_attachment_idstring or nullAn ID that starts with att_.
    payer_request.answered_atstring (date-time) or null
    payer_request.created_atstring (date-time)
    attachmentobject
    attachment.idstringAn ID that starts with att_.
    attachment.objectstringAlways `attachment`.
    attachment.statestringopen while documents can be added; closed once sent, with its number. Nothing changes after closing.One of: `open`, `closed`.
    attachment.kindstringunsolicited (sent with a claim); solicited (answering a payer request: never on a claim file).One of: `unsolicited`, `solicited`.
    attachment.claim_idstring or nullThe claim it was made for, if any. Which claims carry it is the claim's attachments field.
    attachment.office_idstringAn ID that starts with off_.
    attachment.payerobject
    attachment.payer.idstringAn ID that starts with pyr_.
    attachment.payer.payer_idstringThe payer's own payer ID.
    attachment.payer.namestring
    attachment.payer_request_idstring or nullAn ID that starts with prq_.
    attachment.payer_referencevalueThe payer's reference number, for a solicited attachment.
    attachment.narrativestringWhat the documents show, in words: at most 2000 characters.
    attachment.documentsarray of object
    attachment.documents[].idstringAn ID that starts with doc_.
    attachment.documents[].objectstringAlways `attachment_document`.
    attachment.documents[].document_typestringThe document type code (GET /attachments/document_types).
    attachment.documents[].mediumstringfilm (an X-ray or a photo: has an image date and an orientation) or paper.One of: `film`, `paper`.
    attachment.documents[].image_datestring (date) or null
    attachment.documents[].orientationstring or nullOne of: `left`, `right`.
    attachment.documents[].file_namestringThe name the file was sent with, for display: the last part of it, without control characters. The stored file is named by the document ID.
    attachment.documents[].converted_fromstring or nullpng when the upload was a PNG, converted to the JPEG that is stored and sent; pdf when it was a PDF, rendered to one JPEG for each page; null when it was a JPEG.One of: `png`, `pdf`.
    attachment.documents[].pagesintegerHow many pages the document has: 1 for an image, the PDF's page count for a PDF. Each page is one image, previewed by page and sent with the document.At least 1.
    attachment.documents[].sizeintegerThe size in bytes of the image as stored and sent: the upload rewritten without its metadata (a PNG converted to a JPEG first). For a PDF, size is the total of its page images and md5 is that of its first page's image.At least -9007199254740991.
    attachment.documents[].md5stringThe MD5 of the stored image (the JPEG), lower-case hex. For a PDF, size is the total of its page images and md5 is that of its first page's image.
    attachment.documents[].sent_to_networkbooleanTrue once the document has been sent to the attachment network (closing sends it).
    attachment.documents[].created_atstring (date-time)
    attachment.attachment_numbervalueThe number the attachment network gave when it closed; null while open.
    attachment.claim_fileobject or nullHow a claim carrying it refers to it; null while open.
    attachment.claim_file.pwkstringWhat the claim file carries in PWK06 (loop 2300).
    attachment.claim_file.ntestringThe note the claim file carries for it (NTE, loop 2300).
    attachment.request_idstring or nullThe API request that made it; null for one made in the dashboard.
    attachment.created_atstring (date-time)
    attachment.updated_atstring (date-time)
    attachment.closed_atstring (date-time) or null

    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>.
    503ATTACHMENTS_UNAVAILABLEAttachments are not available in live mode yet. Use a test key.
    502ATTACHMENTS_NETWORK_ERRORThe attachment network did not finish. The attachment is still open and nothing was lost: close it again.
    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://app.myclaimhouse.com/api/v1/payer_requests/prq_01JM000000E008000000000040/answer" \
      -H "Authorization: Bearer $CLAIMHOUSE_KEY" \
      -H "Idempotency-Key: $(uuidgen)" \
      -H "Content-Type: application/json" \
      -d '{
      "narrative": "The crack is visible on the bitewing sent with the claim."
    }'

    Example response: 200

    JSON
    {
      "object": "payer_request_answer",
      "payer_request": {
        "id": "prq_01JM000000E008000000000040",
        "object": "payer_request",
        "state": "answered",
        "source": "network",
        "claim_id": "clm_01JM000000E00800000000002G",
        "payer": {
          "id": "pyr_01JM000000E008000000000004",
          "payer_id": "00000",
          "name": "Example Dental Plan"
        },
        "reference_number": "PRQ000001042",
        "requested": "A narrative of the treatment and a current periapical X-ray of the tooth treated.",
        "due_date": "2026-10-25",
        "answering_attachment_id": "att_01JM000000E008000000000041",
        "answered_at": "2026-09-26T15:00:05.000000+00:00",
        "created_at": "2026-09-25T21:02:30.000000+00:00"
      },
      "attachment": {
        "id": "att_01JM000000E008000000000041",
        "object": "attachment",
        "state": "closed",
        "kind": "solicited",
        "claim_id": "clm_01JM000000E00800000000002G",
        "office_id": "off_01JM000000E008000000000003",
        "payer": {
          "id": "pyr_01JM000000E008000000000004",
          "payer_id": "00000",
          "name": "Example Dental Plan"
        },
        "payer_request_id": "prq_01JM000000E008000000000040",
        "payer_reference": "PRQ000001042",
        "narrative": "The crack is visible on the bitewing sent with the claim.",
        "documents": [],
        "attachment_number": "100001043",
        "claim_file": {
          "pwk": "NEA100001043",
          "nte": "NEA#100001043"
        },
        "request_id": "req_01JM000000E00800000000003K",
        "created_at": "2026-09-26T15:00:00.000000+00:00",
        "updated_at": "2026-09-26T15:00:05.000000+00:00",
        "closed_at": "2026-09-26T15:00:05.000000+00:00"
      }
    }