Skip to the page

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

    Chapters

    Offices

    Register an office for attachments

    POST/api/v1/offices/{id}/register_attachments

    Registers the office with the attachment network, once: it needs its contact name and email, its primary doctor's name, and its address, phone and tax ID, each within the network's limits (doctor names 25, contact name 40, contact email 80, address 48, city 32 characters, a 10-digit phone); anything missing or too long is a 422 naming each field, and nothing is sent. The answer is the office, its attachment_network.state registered, pending (the network has not answered, or could not be reached: Claim House tries again on its own for up to a day) or failed (attachment_network.failure says why). Each change sends office.attachment_registration.updated. In test mode an office whose name holds CH-REG-PENDING stays pending for 2 minutes, one holding CH-REG-FAIL fails (invalid_fields, contact_email). Closing an office's first attachment registers it too. A registered office is returned as it is. Needs an Idempotency-Key header and a key with the submit permission. Send an empty JSON object as the body.

    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 office ID (off_...).

    Response

    The office, with its registration. Status 200.

    Response fields
    NameTypeDescription
    idstringAn ID that starts with off_.
    objectstringAlways `office`.
    namestring
    address_line1string
    address_line2value
    citystring
    statestring
    postal_codestring
    phonestring
    npistring
    tax_id_last4stringThe last 4 digits of the tax ID. The full tax ID is never returned.
    specialtystring
    time_zonestringThe office's time zone (an IANA name): the main zone of its state unless one was chosen.
    pay_to_addressobject or nullWhere payers send payment when that is not the billing address (a PO box may be one); null when the office has none. Claims carry it when it differs from the billing address.
    pay_to_address.line1string
    pay_to_address.line2value
    pay_to_address.citystring
    pay_to_address.statestring
    pay_to_address.postal_codestring
    default_service_locationobject or nullWhere treatment happens for the office's claims that name no service_location; null when the office has none. Claims carry it when it differs from the billing address.
    default_service_location.namestring
    default_service_location.npivalue
    default_service_location.addressobject
    default_service_location.address.line1string
    default_service_location.address.line2value
    default_service_location.address.citystring
    default_service_location.address.statestring
    default_service_location.address.postal_codestring
    payer_provider_idsarray of objectThe office's IDs assigned by payers (a Medicaid provider ID, say), at most one per payer. A claim to that payer sends it as REF*G2 (the billing provider, 2010BB) unless the claim sends its own (payer_provider_ids). On a change, the list replaces the one on file: an empty list removes them all.
    payer_provider_ids[].payer_idstringAn ID that starts with pyr_.
    payer_provider_ids[].identifierstring
    contact_namevalueWho the attachment network contacts about this office; null when not given.
    contact_emailvalue
    contact_faxvalue
    doctor_first_namevalueThe office's primary doctor, for registering with the attachment network.
    doctor_last_namevalue
    attachment_networkobjectThe office's registration with the attachment network, which it needs before its first attachment is sent. Each change sends office.attachment_registration.updated.
    attachment_network.statestringnot_registered until the office is registered (POST /offices/{id}/register_attachments, or closing its first attachment). pending: the network has the request, or could not be reached and Claim House tries again on its own (for up to a day). registered: it has its facility ID. failed: see failure.One of: `not_registered`, `pending`, `registered`, `failed`.
    attachment_network.detailsstring or nullFor a registered office, whether the network has its current details after an edit of a registered field: in_sync; updating (being told, tried again); update_failed; needs_manual_update (the network takes no update: Claim House staff tell it). Null unless registered. Attachments are never blocked by it.One of: `in_sync`, `updating`, `update_failed`, `needs_manual_update`.
    attachment_network.facility_idvalueThe facility ID the attachment network gave the office.
    attachment_network.registered_atstring (date-time) or null
    attachment_network.failureobject or nullWhy the registration failed; null unless state is failed. Fix what it says, then register the office again.
    attachment_network.failure.codestringinvalid_fields: the network named office fields to fix (fields). duplicate_facility: the network has this office already. refused: any other refusal, in the network's words. network_unavailable: the network could not be reached for a day of tries.One of: `invalid_fields`, `duplicate_facility`, `refused`, `network_unavailable`.
    attachment_network.failure.messagestringWhy, in words.
    attachment_network.failure.fieldsarray of stringThe office fields to fix (their names in this API), when the network named them; else empty.
    attachment_network.updated_atstring (date-time) or nullWhen the state, the details or the failure last changed; null while never registered.
    originstringWhere the office came from: the dashboard, the API, or a file dropped over SFTP.One of: `dashboard`, `api`, `sftp`.
    practice_group_idstring or nullThe practice group the office is in; null for a standalone office (and always null while practice groups are not enabled).
    client_referencevalueYour own ID for the office; null when none was given.
    modestringOne of: `test`, `live`.
    created_atstring (date-time)

    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.
    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/offices/off_01JM000000E008000000000003/register_attachments" \
      -H "Authorization: Bearer $CLAIMHOUSE_KEY" \
      -H "Idempotency-Key: $(uuidgen)" \
      -H "Content-Type: application/json" \
      -d '{}'

    Example response: 200

    JSON
    {
      "id": "off_01JM000000E008000000000003",
      "object": "office",
      "name": "Example Family Dental",
      "address_line1": "100 Example Street",
      "address_line2": null,
      "city": "Exampleville",
      "state": "GA",
      "postal_code": "30000",
      "phone": "4045550100",
      "npi": "1999999000",
      "tax_id_last4": "0000",
      "specialty": "general",
      "time_zone": "America/New_York",
      "pay_to_address": null,
      "default_service_location": null,
      "payer_provider_ids": [],
      "contact_name": "Pat Example",
      "contact_email": null,
      "contact_fax": null,
      "doctor_first_name": "Riley",
      "doctor_last_name": "Example",
      "attachment_network": {
        "state": "registered",
        "details": "in_sync",
        "facility_id": "FAC-0001",
        "registered_at": "2026-09-24T20:58:00.000000+00:00",
        "failure": null,
        "updated_at": "2026-09-24T20:58:00.000000+00:00"
      },
      "origin": "api",
      "practice_group_id": null,
      "client_reference": null,
      "mode": "test",
      "created_at": "2026-01-15T14:00:00+00:00"
    }