# Get the 270 and 271 of an eligibility check

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

`GET /api/v1/eligibility/{id}/x12`

The exchange of a check as text, one segment per line: the 270 request Claim House sent to the payer network and the 271 response it returned. When the check reused a saved answer, the texts are null and reused_from names the check whose exchange it is. A check that is still running, or that failed before anything was sent, has no exchange: both texts are null.

Needs a key with `read` permission.

## Request

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | Yes | An eligibility check ID (elg_...). |

## Response

The 270 and the 271 of the check. Status `200`.

| Name | Type | Description |
| --- | --- | --- |
| `object` | string | Always `eligibility_x12`. |
| `check_id` | string | An ID that starts with elg_. |
| `request` | value | The 270 request Claim House sent to the payer network, one segment per line. Null when the check has no exchange. |
| `response` | value | The 271 response the payer network returned, one segment per line. Null when no answer came back or the check has no exchange. |
| `reused_from` | string or null | The check whose answer this one reused (elg_...), whose exchange it is; null when the answer was made now. |

## 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. |
| 404 | `NOT_FOUND` | Not found. |
| 422 | `INVALID_REQUEST` | The request is not valid. |
| 429 | `TOO_MANY_REQUESTS` | Too many requests of this kind lately. Wait, then try again. |
| 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>. |
| 500 | `INTERNAL` | Something went wrong on our side. Quote the request ID if you contact us. |

## Example

### Example request

```bash
curl "https://app.myclaimhouse.com/api/v1/eligibility/elg_01JM000000E00800000000000G/x12" \
  -H "Authorization: Bearer $CLAIMHOUSE_KEY"
```

### Example response: 200

```json
{
  "object": "eligibility_x12",
  "check_id": "elg_01JM000000E00800000000000G",
  "request": "ISA*00*          *00*          *ZZ*CLAIMHOUSE     *ZZ*262403888      *260310*1530*^*00501*000000001*0*T*:~\nGS*HS*CLAIMHOUSE*262403888*20260310*1530*1*X*005010X279A1~\nST*270*0001*005010X279A1~\nBHT*0022*13*01950000000070008000000000000020*20260310*1530~\nHL*1**20*1~\nNM1*PR*2*EXAMPLE DENTAL PLAN*****PI*00000~\nHL*2*1*21*1~\nNM1*1P*2*EXAMPLE FAMILY DENTAL*****XX*1900000005~\nHL*3*2*22*0~\nTRN*1*01950000000070008000000000000020*9CLAIMHOUS~\nNM1*IL*1*EXAMPLE*ALEX****MI*CH-ACTIVE-FULL~\nREF*6P*GRP-100~\nDMG*D8*19850412~\nDTP*291*D8*20260310~\nEQ*35~\nEQ**AD:D0120~\nEQ**AD:D1110~\nSE*16*0001~\nGE*1*1~\nIEA*1*000000001~\n",
  "response": "ISA*00*          *00*          *ZZ*262403888      *ZZ*CLAIMHOUSE     *260310*1530*^*00501*000000001*0*T*:~\nGS*HB*262403888*CLAIMHOUSE*20260310*1530*1*X*005010X279A1~\nST*271*0001*005010X279A1~\nBHT*0022*11*01950000000070008000000000000020*20260310*1530~\nHL*1**20*1~\nNM1*PR*2*EXAMPLE DENTAL PLAN*****PI*00000~\nHL*2*1*21*1~\nNM1*1P*2*EXAMPLE FAMILY DENTAL*****XX*1900000005~\nHL*3*2*22*0~\nTRN*2*01950000000070008000000000000020~\nNM1*IL*1*EXAMPLE*ALEX****MI*CH-ACTIVE-FULL~\nREF*6P*GRP-100~\nDMG*D8*19850412~\nDTP*346*D8*20240101~\nEB*1**35*PR*Example Dental Plan PPO~\nMSG*Posterior composites are paid as amalgam on molars.~\nMSG*Porcelain is downgraded on molars, not on bicuspids.~\nMSG*Multi-visit procedures are paid on the seat date.~\nMSG*D1110 and D4910 share 4 visits per calendar year.~\nMSG*D0210 and D0330 share one limit every 60 months.~\nMSG*Waiting period - None~\nMSG*Missing tooth clause - No~\nMSG*Pre-authorization - Suggested over $300~\nMSG*Coordination of benefits - Standard, birthday rule~\nEB*F*IND*35***23*2000~\nEB*F*IND*35**MET*23*0~\nEB*F*IND*35***29*2000~\nEB*F*IND*38***32*3000~\nEB*F*IND*38**MET*32*0~\nEB*F*IND*38***33*3000~\nEB*C*IND*35***23*50~\nEB*C*IND*35**MET*23*0~\nEB*C*IND*35***29*50~\nEB*C*FAM*35***23*150~\nEB*C*FAM*35**MET*23*0~\nEB*C*FAM*35***29*150~\nEB*A**41*****0****Y~\nMSG*Exams and cleanings 2 per calendar year; bitewings 1 per year~\nEB*A**41*****0.2****N~\nEB*A**23*****0****Y~\nEB*A**23*****0.2****N~\nEB*A**25*****0.2****Y~\nEB*A**25*****0.4****N~\nEB*A**26*****0.2****Y~\nEB*A**26*****0.4****N~\nEB*A**24*****0.2****Y~\nEB*A**24*****0.4****N~\nEB*A**40*****0.2****Y~\nEB*A**40*****0.4****N~\nEB*A**36*****0.5****Y~\nMSG*Every 5 years; paid on seat date~\nEB*A**36*****0.6****N~\nEB*A**39*****0.5****Y~\nEB*A**39*****0.6****N~\nEB*A**38*****0.5****Y~\nMSG*To age 26; $3,000 lifetime maximum~\nEB*A**38*****0.6****N~\nEB*A*******0****Y*AD:D0120~\nHSD*VS*2***23*1~\nDTP*472*D8*20250910~\nEB*A*******0.2****N*AD:D0120~\nEB*F*****29***VS*1***AD:D0120~\nEB*A*******0****Y*AD:D1110~\nHSD*VS*2***23*1~\nDTP*472*D8*20250910~\nMSG*Shares 4 visits a year with D4910~\nEB*A*******0.2****N*AD:D1110~\nEB*F*****29***VS*1***AD:D1110~\nEB*A*******0****Y*AD:D0274~\nHSD*VS*1***34*12~\nDTP*472*D8*20250312~\nEB*A*******0.2****N*AD:D0274~\nEB*F*****29***VS*0***AD:D0274~\nEB*A*******0****Y*AD:D0210~\nHSD*VS*1***34*60~\nDTP*472*D8*20230910~\nEB*A*******0.2****N*AD:D0210~\nEB*F*****29***VS*0***AD:D0210~\nEB*A*******0****Y*AD:D0330~\nHSD*VS*1***34*60~\nDTP*472*D8*20230910~\nMSG*Shares the D0210 limit~\nEB*A*******0.2****N*AD:D0330~\nEB*F*****29***VS*0***AD:D0330~\nEB*A*******0*S7*14**Y*AD:D1206~\nHSD*VS*1***34*6~\nEB*A*******0.2****N*AD:D1206~\nEB*F*****29***VS*1***AD:D1206~\nEB*A*******0*S7*16**Y*AD:D1351~\nHSD*VS*1***34*36~\nMSG*Permanent molars only~\nEB*A*******0.2****N*AD:D1351~\nEB*A*******0.2****Y*AD:D2392~\nMSG*Paid as amalgam (D2150) on molars~\nMSG*Downgraded~\nEB*A*******0.4****N*AD:D2392~\nEB*A*******0.5****Y*AD:D2740~\nHSD*VS*1***34*60~\nMSG*Tooth 14 last crowned Nov 10, 2021; eligible again Nov 2026~\nEB*A*******0.6****N*AD:D2740~\nEB*A*******0.5****Y*AD:D2750~\nHSD*VS*1***34*60~\nMSG*Downgraded on molars~\nEB*A*******0.6****N*AD:D2750~\nEB*A*******0.2****Y*AD:D3330~\nEB*A*******0.4****N*AD:D3330~\nEB*A*******0.2****Y*AD:D4341~\nHSD*VS*1***34*24~\nMSG*Upper right done Jul 10, 2024; eligible again Jul 2026~\nEB*A*******0.4****N*AD:D4341~\nEB*A*******0.2****Y*AD:D4910~\nHSD*VS*4***23*1~\nMSG*Shares 4 visits a year with D1110~\nEB*A*******0.4****N*AD:D4910~\nEB*F*****29***VS*3***AD:D4910~\nEB*A*******1****Y*AD:D6010~\nEB*A*******1****N*AD:D6010~\nEB*A*******0.2****Y*AD:D7140~\nEB*A*******0.4****N*AD:D7140~\nEB*A*******0.2****Y*AD:D7210~\nEB*A*******0.4****N*AD:D7210~\nEB*A*******0.5*S7*26**Y*AD:D8080~\nMSG*Counts toward the $3,000 orthodontic lifetime maximum~\nEB*A*******0.6****N*AD:D8080~\nEB*A*******1****Y*AD:D9944~\nEB*A*******0.4****N*AD:D9944~\nSE*125*0001~\nGE*1*1~\nIEA*1*000000001~\n",
  "reused_from": null
}
```
