# Start an enrollment

Page: https://app.myclaimhouse.com/docs/api/createEnrollment

`POST /api/v1/enrollments`

Starts tracking the enrollment of a provider, or of an office's billing NPI and tax ID, with a payer for claims, ERAs, or ERAs with EFT. Send provider_id or office_id. One per provider, or per NPI and tax ID, with a payer and type in an organization and mode: a second is a 409 naming the first in details.enrollment_id. For your office's own notes about the paperwork. Never patient information. The method comes from the payer directory's enrollment code for the type when the enrollment is started; a payer that needs no enrollment for it starts active. In live mode Claim House files an enrollment whose method is S and moves its status. An open enrollment may be withdrawn. A claim to a payer that needs claims enrollment gets the ENROLLMENT_NOT_ACTIVE warning (it never blocks) unless its billing office's NPI and tax ID or its rendering provider has an active claims enrollment there. Each create and status change sends enrollment.updated. Needs an Idempotency-Key header and a key with the submit permission.

Needs a key with `submit` permission.

## Request

### Headers

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `Idempotency-Key` | string | Yes | Makes 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}$`. |

### Body

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `provider_id` | string | No | The provider (prv_...). Send this or office_id. |
| `office_id` | string | No | The office (off_...): the enrollment is for its billing NPI and tax ID, shared by every office that has the pair. Send this or provider_id. |
| `payer_id` | string | Yes | The payer (a Claim House payer ID, pyr_..., a payer ID or an alias from the payer directory). |
| `type` | string | Yes | claims (837D), era (835) or era_eft (835 with EFT). One of: `claims`, `era`, `era_eft`. |
| `sent_on` | string (date) or null | No | When the paperwork was sent (YYYY-MM-DD), or null for none. |
| `expected_on` | string (date) or null | No | When the payer is expected to finish (YYYY-MM-DD), or null for none. |
| `note` | string | No | For your office's own notes about the paperwork. Never patient information. At most 500 characters. |

## Response

The enrollment. Status `200`.

| Name | Type | Description |
| --- | --- | --- |
| `id` | string | An ID that starts with enr_. |
| `object` | string | Always `enrollment`. |
| `provider_id` | string or null | The provider it is for; null for an office enrollment. |
| `provider_name` | value |  |
| `office_id` | string or null | The 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_name` | value |  |
| `npi` | string | The NPI it is for: the office's billing NPI when it was started, or the provider's. |
| `tax_id` | value | The office's tax ID when it was started; null for a provider enrollment. |
| `payer_id` | string | An ID that starts with pyr_. |
| `payer_name` | string |  |
| `type` | string | One of: `claims`, `era`, `era_eft`. |
| `method` | object or null | How the payer enrolls a provider, from the payer directory; null when the payer needs no enrollment for this (it started active). |
| `method.code` | string | The payer directory's enrollment code when the enrollment was started (S, O, W, F, I or U, with * or L). |
| `method.label` | string |  |
| `method.instructions` | string | What has to be done, in plain words. |
| `status` | string | One of: `not_started`, `awaiting_signature`, `provider_action`, `submitted`, `active`, `denied`, `withdrawn`. |
| `next_step` | string | What someone has to do now, in plain words. |
| `sent_on` | string (date) or null |  |
| `expected_on` | string (date) or null |  |
| `note` | string |  |
| `mode` | string | One of: `test`, `live`. |
| `activated_at` | string (date-time) or null | When it last became active; null while it is not. |
| `created_at` | string (date-time) |  |
| `updated_at` | string (date-time) |  |

## Errors

| HTTP status | Code | What it means |
| --- | --- | --- |
| 401 | `UNAUTHORIZED` | A valid API key is required. Send it as "Authorization: Bearer <key>". |
| 403 | `PERMISSION_DENIED` | This API key is not allowed to do that. |
| 422 | `INVALID_REQUEST` | The request is not valid. |
| 400 | `IDEMPOTENCY_KEY_REQUIRED` | This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request. |
| 400 | `IDEMPOTENCY_KEY_INVALID` | The Idempotency-Key header must be 1 to 255 printable characters. |
| 422 | `IDEMPOTENCY_KEY_REUSED` | That Idempotency-Key was already used with a different request. |
| 409 | `IDEMPOTENCY_KEY_IN_USE` | A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds. |
| 429 | `TOO_MANY_REQUESTS` | Too many requests of this kind lately. Wait, then try again. |
| 413 | `PAYLOAD_TOO_LARGE` | The request body is larger than 1 MB. |
| 504 | `TIMEOUT` | The 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>. |
| 409 | `CONFLICT` | The 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. |
| 500 | `INTERNAL` | Something went wrong on our side. Quote the request ID if you contact us. |

## Example

### Example request

```bash
curl -X POST "https://app.myclaimhouse.com/api/v1/enrollments" \
  -H "Authorization: Bearer $CLAIMHOUSE_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "provider_id": "prv_01JM000000E008000000000005",
  "payer_id": "pyr_01JM000000E008000000000004",
  "type": "claims"
}'
```

### 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": "not_started",
  "next_step": "Start the paperwork.",
  "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-20T15:00:00+00:00"
}
```

### The same provider, payer and type again: 409

```json
{
  "error": "CONFLICT",
  "message": "This provider already has an enrollment of this type with this payer. Update that one.",
  "errors": [],
  "details": {
    "enrollment_id": "enr_01JM000000E00800000000004M"
  },
  "request_id": "req_01JM000000E008000000000010"
}
```

### Another office with the same NPI and tax ID: 409

```json
{
  "error": "CONFLICT",
  "message": "An enrollment of this type with this payer already covers this office's billing NPI and tax ID: enr_01JM000000E00800000000004N, started for Example Family Dental. Offices that share the pair share it: update that one.",
  "errors": [],
  "details": {
    "enrollment_id": "enr_01JM000000E00800000000004N"
  },
  "request_id": "req_01JM000000E008000000000010"
}
```
