Claim edit API: FHIR R4 Claim to OperationOutcome
One endpoint checks the lines of a claim against the published edits and returns what fires. Send a FHIR R4 Claim and get a FHIR OperationOutcome back, or send a plain list of codes. This page describes what the endpoint does today.
Endpoint
POST https://www.claimedits.com/api/v1/claimThe body is JSON. Send codes, modifiers and units only. Do not send patient names, member numbers or other identifiers; the check does not need them.
Authentication
Send your key in either of two headers. The endpoint reads Authorization as a bearer token first, then X-API-Key.
Authorization: Bearer YOUR_KEY
X-API-Key: YOUR_KEYA request with no key is treated as keyless and counted against the daily allowance below. A request with a key that does not match is refused with 401 and the message Invalid API key. It is not quietly downgraded to keyless.
Accepted payloads
A body that carries a resourceType is read as FHIR. Anything else is read as the simple form.
| Form | What the endpoint reads |
|---|---|
| FHIR | A Claim resource (resourceType "Claim"). Each entry of item[] gives the code in productOrService.coding[].code, units in quantity.value, and modifiers in modifier[].coding[].code. Units default to 1. Claim.type selects the rule set: "institutional" uses the hospital rules, anything else the practitioner rules. |
| Simple | {"claim":"99213, 36591 x2"} with codes, modifiers and units in one string. An optional "type" of "hospital" selects the hospital rules; any other value uses the practitioner rules. |
A request may carry at most 50 lines. More than that returns 400. Items with no usable code are skipped, and a Claim with no items, or no codes among them, returns 400 with a message saying so.
Example: the simple form
The pair 93000 with 36591 is a published bundling pair with modifier indicator 0, so modifier 59 on the second line does not clear it.
curl -X POST https://www.claimedits.com/api/v1/claim \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_KEY" \
-d '{"claim":"93000, 36591-59"}'{
"format": "simple",
"findings": [
{
"kind": "ptp",
"payable": "93000",
"denied": "36591",
"modifier_indicator": 0,
"bypass": "ineffective",
"bypass_modifiers": ["59"]
}
]
}The response is abridged here. It carries further fields, such as the effective date and rationale of each rule, the data quarter it was checked against, and a description of the lines it read. Each entry of findings has a kind that says which rule family fired; the bundling entry above is a ptp finding.
Example: a FHIR Claim
{
"resourceType": "Claim",
"type": { "coding": [{ "code": "professional" }] },
"item": [
{
"sequence": 1,
"productOrService": {
"coding": [{ "system": "http://www.ama-assn.org/go/cpt", "code": "93000" }]
},
"quantity": { "value": 1 }
},
{
"sequence": 2,
"productOrService": {
"coding": [{ "system": "http://www.ama-assn.org/go/cpt", "code": "36591" }]
},
"modifier": [{ "coding": [{ "code": "59" }] }]
}
]
}The FHIR response repeats the lines it read, the findings, and an outcome that is a FHIR OperationOutcome. Each issue has a severity, a code, the message in details.text, and, where the item had a sequence number, an expression that points at it. The number in the expression is the item's sequence value, not a 0-based FHIRPath index, so Claim.item[2] is the item whose sequence is 2.
{
"format": "fhir",
"claimType": "professional",
"fileType": "physician",
"lines": [
{ "sequence": 1, "code": "93000", "units": 1, "modifiers": [] },
{ "sequence": 2, "code": "36591", "units": 1, "modifiers": ["59"] }
],
"findings": [
{
"kind": "ptp",
"payable": "93000",
"denied": "36591",
"modifier_indicator": 0,
"bypass": "ineffective",
"bypass_modifiers": ["59"]
}
],
"outcome": {
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "error",
"code": "business-rule",
"details": {
"text": "Bundling: 36591 is denied when billed with 93000 (modifier indicator 0). … Modifier 59 is present but indicator 0 admits no override — this will deny again unchanged."
},
"expression": ["Claim.item[2]"]
}
]
}
}When nothing fires, the OperationOutcome carries a single informational issue saying nothing bundles and no unit limit is exceeded. That statement covers the rule families the endpoint checked. It is not a guarantee of payment.
Limits and headers
Without a key, a network address gets 25 checks per day. Calls that carry a valid key are not counted against that allowance. Keyless responses carry three headers, and the 429 carries a fourth.
| Header | Meaning |
|---|---|
| X-RateLimit-Limit | The daily allowance for keyless calls. |
| X-RateLimit-Remaining | Checks left in the current window. |
| X-RateLimit-Reset | Seconds until the daily window rolls over. |
| Retry-After | On a 429, the same number of seconds to wait. |
When the allowance is used up the endpoint answers 429. The body repeats the limit and the seconds until reset, and points to the key request below. The seconds in this example change with the time of day.
HTTP/1.1 429
Retry-After: 43200
X-RateLimit-Limit: 25
X-RateLimit-Remaining: 0
X-RateLimit-Reset: 43200
{
"error": "Free daily limit of 25 checks reached. Request an API key at https://www.claimedits.com/#contact …",
"limit": 25,
"resetSeconds": 43200
}Keyless calls are also paced per minute across the API. A request that is too fast gets a 429 with a Retry-After of 60.
Status codes
| Status | When |
|---|---|
| 200 | The claim was read and checked. |
| 400 | The body is not JSON, or has no claim, or has more than 50 lines, or a FHIR Claim could not be read. |
| 401 | A key was sent and does not match. |
| 403 | The caller is blocked from the site. |
| 413 | The request body is too large. |
| 429 | The keyless daily allowance is used up, or calls came too fast and should wait 60 seconds (see Retry-After). |
| 503 | The edit data is not available to the endpoint. |
Request an API key
Keys are issued on request. Tell us how you plan to call the endpoint and we will reply with one.