error sentence for people, a stable code for your program, and for
validation errors every problem in errors. Switch on the status and the code, not on the sentence, which we
may reword.
A
403 can also carry a code that says the practice’s engagement has ended or lapsed; the sentence says which.
Unexpected errors
500 always has this body: it never repeats what you sent and never shows internal details. It does not
tell you whether anything was saved: some claims of a batch may have been. Sending claims is idempotent by
claim_number, so send the same request again; a claim that was saved comes back as the same claim. If it
keeps happening, write to us with the time of the request.
Validation errors
A422 lists every problem. In a batch, each message starts with the claim’s position, counting from 0. Messages
name the field and never repeat what you sent.
- The patient’s
first_name,last_nameanddate_of_birth. claim_number(up to 128 printable characters, once per batch) andpayer_claim_number(up to 128).payer_nameanddate_of_service.- A
billed_amountordenied_amount(positive). denial_codes(up to 20) or adenial_reason.- Dates as
YYYY-MM-DD, not in the future.plan_type, if you send it, from the documented list. already_appealed, if you send it, insideclaimas a JSON boolean:trueorfalse, not"yes","true"or1. A form-encoded body sends text, so it is refused too.
A refused claim inside a successful response
A claim whose claim number you already used for a different patient, or for a different claim of the same patient (another date of service or procedure code), doesn’t fail the request. It comes back inclaims with
created: false and an error, and the others are processed: