Skip to the page

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

    Chapters

    Enrollments

    Withdraw an enrollment

    POST/api/v1/enrollments/{id}/withdraw

    An open enrollment becomes withdrawn: the office or provider no longer wants it. A live enrollment Claim House files (method S) may be withdrawn too, and Claim House stops filing it. One already withdrawn is returned as it is. An active or denied one is a 409: it can only start over. A withdrawn enrollment starts over with PATCH status not_started, except a live one Claim House files (method S): Claim House starts that one over on request. Send an empty JSON object as the body. 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 enrollment ID (enr_...).

    Response

    The enrollment as it is now. Status 200.

    Response fields
    NameTypeDescription
    idstringAn ID that starts with enr_.
    objectstringAlways `enrollment`.
    provider_idstring or nullThe provider it is for; null for an office enrollment.
    provider_namevalue
    office_idstring or nullThe office it was started for; null for a provider enrollment. It covers every office of yours with the same billing NPI and tax ID.
    office_namevalue
    npistringThe NPI it is for: the office's billing NPI when it was started, or the provider's.
    tax_idvalueThe office's tax ID when it was started; null for a provider enrollment.
    payer_idstringAn ID that starts with pyr_.
    payer_namestring
    typestringOne of: `claims`, `era`, `era_eft`.
    methodobject or nullHow the payer enrolls a provider, from the payer directory; null when the payer needs no enrollment for this (it started active).
    method.codestringThe payer directory's enrollment code when the enrollment was started (S, O, W, F, I or U, with * or L).
    method.labelstring
    method.instructionsstringWhat has to be done, in plain words.
    statusstringOne of: `not_started`, `awaiting_signature`, `provider_action`, `submitted`, `active`, `denied`, `withdrawn`.
    next_stepstringWhat someone has to do now, in plain words.
    sent_onstring (date) or null
    expected_onstring (date) or null
    notestring
    modestringOne of: `test`, `live`.
    activated_atstring (date-time) or nullWhen it last became active; null while it is not.
    created_atstring (date-time)
    updated_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>.
    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/enrollments/enr_01JM000000E00800000000004M/withdraw" \
      -H "Authorization: Bearer $CLAIMHOUSE_KEY" \
      -H "Idempotency-Key: $(uuidgen)" \
      -H "Content-Type: application/json" \
      -d '{}'

    Example response: 200

    JSON
    {
      "id": "enr_01JM000000E00800000000004M",
      "object": "enrollment",
      "provider_id": "prv_01JM000000E008000000000005",
      "provider_name": "Dr. Riley Example, DDS",
      "office_id": null,
      "office_name": null,
      "npi": "1999990017",
      "tax_id": null,
      "payer_id": "pyr_01JM000000E008000000000004",
      "payer_name": "Example Dental Plan",
      "type": "claims",
      "method": {
        "code": "W",
        "label": "Payer paperwork (fax or email)",
        "instructions": "The payer requires its own enrollment paperwork. Claim House supplies a copy, and the provider returns it by fax, email or mail so Claim House can submit it to the payer."
      },
      "status": "withdrawn",
      "next_step": "Withdrawn. Start it over (Not started) if the office wants it again.",
      "sent_on": null,
      "expected_on": null,
      "note": "",
      "mode": "test",
      "activated_at": null,
      "created_at": "2026-09-20T15:00:00+00:00",
      "updated_at": "2026-09-24T09:30:00+00:00"
    }

    An active or denied enrollment: 409

    JSON
    {
      "error": "CONFLICT",
      "message": "Only an open enrollment can be withdrawn. An active or denied one can only start over.",
      "errors": [],
      "request_id": "req_01JM000000E008000000000010"
    }