{"openapi":"3.1.0","info":{"title":"Claim House API","version":"1.0.0","description":"Claim House is a dental clearinghouse API. Check a patient's dental coverage and benefits, send dental claims and follow them to the payer, find the payers Claim House reaches, read your offices, keep your rendering providers, and get signed webhooks when things happen.\n\nEvery request needs an API key, sent as a bearer token. A key is for one organization and one mode: a test key reads and writes sandbox data only. A key has a permission: `read` for GET requests, `submit` for requests that create, change or delete something (a search sent as a POST needs `read`). Each operation says which one it needs (`x-permission`).\n\nA POST or a PATCH needs an Idempotency-Key header, so a request that timed out can be repeated safely; for POST /api/v1/eligibility it is optional (recommended for retries); a search sent as a POST takes none. Lists return `data` and `next_cursor`: pass the cursor back to get the next page. Every error has the same shape (`ErrorReply`) and a stable `error` code."},"servers":[{"url":"https://app.myclaimhouse.com/api/v1"}],"security":[{"bearerAuth":[]}],"tags":[{"name":"Account","description":"The API key making the request and the organization it belongs to."},{"name":"Payers","description":"The payer directory: which payers Claim House reaches, and for what."},{"name":"Offices","description":"The offices of your organization. An office is who a check is made for."},{"name":"NPI lookup","description":"What the national NPI registry holds for an NPI: whose it is, its address and its primary taxonomy, to fill an office or a provider from."},{"name":"Providers","description":"The dentists who render treatment: add them, keep their NPIs, licenses and taxonomy codes current, and name one on each claim."},{"name":"Eligibility","description":"Check a patient's dental coverage and benefits."},{"name":"Claims","description":"Send dental claims: validated before anything is sent, batched into 837D files, and followed through the 997 and 277 responses on their timeline."},{"name":"Attachments","description":"X-rays, charts and narratives for a payer: upload JPEG images to an attachment, close it to get its number, and put it on a claim, whose 837D then carries it."},{"name":"ERAs","description":"Remittances (835) as JSON: what each payer paid on each claim and line, and why it adjusted the rest; each payment matched to its claim, posted when you have posted it."},{"name":"Patients","description":"The people in your checks and claims, one record each, with coverage as last verified, open claims and open charges. Kept by Claim House from what you send; your practice management system stays the system of record."},{"name":"Enrollments","description":"The payer paperwork each provider needs before some payers take claims or send ERAs and EFT: start one per provider, payer and type, with the method from the payer directory, and track its status and dates."},{"name":"Payer requests","description":"A payer asking for more about a claim it has: list them, record a paper one, and answer with a solicited attachment."},{"name":"Sandbox","description":"The scripted payer scenarios available to test keys."},{"name":"Events","description":"Everything Claim House emits: read an event, list events, and replay one to your endpoints."},{"name":"Webhook endpoints","description":"Where Claim House sends events: add, list and remove endpoints, and replace a signing secret."},{"name":"SFTP account","description":"The private SFTP account for batch partners: set it up, rotate its password, add and remove keys, disable it, and list the files dropped on it. Files dropped in the IN folders become claims."},{"name":"Reports","description":"Figures computed from your claims and remittances for a period: what was billed and paid, how fast, what was rejected and adjusted, and why."},{"name":"Usage and statements","description":"What your organization used this month, priced by your agreement: the month summary, every usage record, and the monthly statements."}],"paths":{"/me":{"get":{"operationId":"getCurrentKey","summary":"Get the current API key","description":"Returns the API key making the request (its name, mode and permissions) and the organization it belongs to. A quick way to check that a key works and what it may do.","tags":["Account"],"x-permission":"read","responses":{"200":{"description":"The key and its organization.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKey"},"examples":{"current_key":{"summary":"A test key that may read and submit","value":{"id":"key_01JM000000E008000000000002","object":"api_key","name":"Example integration (test)","mode":"test","permissions":["read","submit"],"organization":{"id":"org_01JM000000E008000000000001","object":"organization","name":"Example Dental Group","practice_groups_enabled":true}}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/rate_limits":{"get":{"operationId":"getRateLimits","summary":"Get your rate limits","description":"The rate limits of the key's organization as they apply to it now: for each bucket (the key, the organization, payer and registry calls, each office) the steady rate a second and the burst, and whether Claim House set the organization's own figures. Test and live have the same limits, each mode with buckets of its own. A 429 TOO_MANY_REQUESTS names the bucket and the same figures in its details. Ask Claim House to raise a limit.","tags":["Account"],"x-permission":"read","responses":{"200":{"description":"The organization's effective limits.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"rate_limits"},"mode":{"type":"string","enum":["test","live"],"description":"The mode of the key that asked. Test and live have the same limits, and buckets of their own."},"limits":{"type":"object","properties":{"key":{"type":"object","properties":{"per_second":{"type":"number","description":"Turns the bucket refills a second: the steady rate."},"burst":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Turns the bucket holds: how many requests may go at once after a quiet spell."},"custom":{"type":"boolean","description":"True when Claim House set this organization's own limit; false for the standard 20 a second (bursts of up to 40)."}},"required":["per_second","burst","custom"],"description":"Per API key: Every request of the key."},"organization":{"type":"object","properties":{"per_second":{"type":"number","description":"Turns the bucket refills a second: the steady rate."},"burst":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Turns the bucket holds: how many requests may go at once after a quiet spell."},"custom":{"type":"boolean","description":"True when Claim House set this organization's own limit; false for the standard 50 a second (bursts of up to 100)."}},"required":["per_second","burst","custom"],"description":"Per organization: Every request of all its keys of one mode (test and live each have their own)."},"network":{"type":"object","properties":{"per_second":{"type":"number","description":"Turns the bucket refills a second: the steady rate."},"burst":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Turns the bucket holds: how many requests may go at once after a quiet spell."},"custom":{"type":"boolean","description":"True when Claim House set this organization's own limit; false for the standard 5 a second (bursts of up to 50)."}},"required":["per_second","burst","custom"],"description":"Payer and registry calls: Eligibility checks and NPI lookups of the organization in one mode, on top of the two above."},"office":{"type":"object","properties":{"per_second":{"type":"number","description":"Turns the bucket refills a second: the steady rate."},"burst":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Turns the bucket holds: how many requests may go at once after a quiet spell."},"custom":{"type":"boolean","description":"True when Claim House set this organization's own limit; false for the standard 5 a second (bursts of up to 50)."}},"required":["per_second","burst","custom"],"description":"Per office: Eligibility checks of one office, on top of the three above."}},"required":["key","organization","network","office"]}},"required":["object","mode","limits"]},"examples":{"standard":{"summary":"An organization on the standard limits","value":{"object":"rate_limits","mode":"test","limits":{"key":{"per_second":20,"burst":40,"custom":false},"organization":{"per_second":50,"burst":100,"custom":false},"network":{"per_second":5,"burst":50,"custom":false},"office":{"per_second":5,"burst":50,"custom":false}}}},"raised":{"summary":"An organization whose payer and registry calls Claim House raised","value":{"object":"rate_limits","mode":"test","limits":{"key":{"per_second":20,"burst":40,"custom":false},"organization":{"per_second":50,"burst":100,"custom":false},"network":{"per_second":20,"burst":200,"custom":true},"office":{"per_second":5,"burst":50,"custom":false}}}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/payers":{"get":{"operationId":"listPayers","summary":"List payers","description":"The payer directory, ordered by name, one page at a time. Filter by the transaction a payer supports or by whether it needs enrollment. Removed payers are left out unless include_removed is true.","tags":["Payers"],"x-permission":"read","parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"name":"supports","in":"query","required":false,"description":"Only payers that support this transaction.","schema":{"type":"string","enum":["eligibility","claims","era","attachments"]},"example":"eligibility"},{"name":"enrollment_required","in":"query","required":false,"description":"true for payers that need enrollment for any transaction, false for those that need none.","schema":{"type":"string","enum":["true","false"]}},{"name":"include_removed","in":"query","required":false,"description":"true to include payers that are no longer in the directory. Default false.","schema":{"type":"string","enum":["true","false"]}}],"responses":{"200":{"description":"A page of payers.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Payer"}},"next_cursor":{"description":"Pass as cursor to get the next page; null when there is no next page.","type":["string","null"]}},"required":["data","next_cursor"]},"examples":{"eligibility_payers":{"summary":"Payers that answer eligibility checks","value":{"data":[{"id":"pyr_01JM000000E008000000000004","object":"payer","payer_id":"00000","name":"Example Dental Plan","additional_info":null,"aliases":["EXAMPLE","EXDENTAL"],"status":"active","transactions":{"eligibility":{"supported":true,"enrollment_required":false,"enrollment_type":null,"connection_type":"real_time","response_level":"detailed","returns":{"coinsurance":true,"deductibles":true,"benefit_descriptions":true,"benefit_limitations":true,"frequency_limitations":true},"notes":null},"claims":{"supported":true,"enrollment_required":true,"enrollment_type":{"code":"S","label":"Claim House facilitates","explanation":"Claim House can handle enrollment with the payer. The provider requests it by completing the Claim House enrollment request form and supplying the demographic details asked for, including tax ID and NPIs."},"submission_type":"real_time"},"era":{"supported":true,"enrollment_required":true,"enrollment_type":{"code":"W","label":"Payer paperwork (fax or email)","explanation":"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."},"paper_eob_shutoff_when_enrolled":false,"notes":null},"attachments":{"supported":true,"enrollment_required":false,"enrollment_type":null,"processor":"nea","nea_payer_id":null,"nea_master_id":"EXAMPLE01"}},"updated_at":"2026-01-05T00:00:00Z"},{"id":"pyr_01JM000000E008000000000005","object":"payer","payer_id":"00001","name":"Example Dental Plan Two","additional_info":null,"aliases":[],"status":"active","transactions":{"eligibility":{"supported":true,"enrollment_required":false,"enrollment_type":null,"connection_type":"real_time","response_level":"detailed","returns":{"coinsurance":true,"deductibles":true,"benefit_descriptions":true,"benefit_limitations":true,"frequency_limitations":true},"notes":null},"claims":{"supported":true,"enrollment_required":false,"enrollment_type":null,"submission_type":"real_time"},"era":{"supported":true,"enrollment_required":false,"enrollment_type":null,"paper_eob_shutoff_when_enrolled":false,"notes":null},"attachments":{"supported":true,"enrollment_required":false,"enrollment_type":null,"processor":"nea","nea_payer_id":null,"nea_master_id":"EXAMPLE01"}},"updated_at":"2026-01-05T00:00:00Z"}],"next_cursor":"eyJwIjoiW1wiRXhhbXBsZSBEZW50YWwgUGxhbiBUd29cIixcIjAxOTUwMDAwLTAwMDAtNzAwMC04MDAwLTAwMDAwMDAwMDAwNVwiXSJ9"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/payers/search":{"get":{"operationId":"searchPayers","summary":"Search payers","description":"Finds payers by name, payer ID or alias, best matches first, one page at a time (at most 25 a page). The filters of the list apply inside the search.","tags":["Payers"],"x-permission":"read","parameters":[{"name":"limit","in":"query","required":false,"description":"How many items to return, from 1 to 25. Default 25.","schema":{"type":"integer","minimum":1,"maximum":25}},{"name":"cursor","in":"query","required":false,"description":"The next_cursor of the previous page, to get the page after it. Opaque: pass it back unchanged.","schema":{"type":"string"}},{"name":"q","in":"query","required":true,"description":"What to search for: part of a name, a payer ID or an alias. Use up to 100 characters, with no control characters.","schema":{"type":"string","minLength":1,"maxLength":100},"example":"example"},{"name":"supports","in":"query","required":false,"description":"Only payers that support this transaction.","schema":{"type":"string","enum":["eligibility","claims","era","attachments"]},"example":"eligibility"},{"name":"enrollment_required","in":"query","required":false,"description":"true for payers that need enrollment for any transaction, false for those that need none.","schema":{"type":"string","enum":["true","false"]}},{"name":"include_removed","in":"query","required":false,"description":"true to include payers that are no longer in the directory. Default false.","schema":{"type":"string","enum":["true","false"]}}],"responses":{"200":{"description":"The best matches.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Payer"}},"next_cursor":{"description":"Pass as cursor to get the next page; null when there is no next page.","type":["string","null"]}},"required":["data","next_cursor"]},"examples":{"by_name":{"summary":"Search by part of a name","value":{"data":[{"id":"pyr_01JM000000E008000000000004","object":"payer","payer_id":"00000","name":"Example Dental Plan","additional_info":null,"aliases":["EXAMPLE","EXDENTAL"],"status":"active","transactions":{"eligibility":{"supported":true,"enrollment_required":false,"enrollment_type":null,"connection_type":"real_time","response_level":"detailed","returns":{"coinsurance":true,"deductibles":true,"benefit_descriptions":true,"benefit_limitations":true,"frequency_limitations":true},"notes":null},"claims":{"supported":true,"enrollment_required":true,"enrollment_type":{"code":"S","label":"Claim House facilitates","explanation":"Claim House can handle enrollment with the payer. The provider requests it by completing the Claim House enrollment request form and supplying the demographic details asked for, including tax ID and NPIs."},"submission_type":"real_time"},"era":{"supported":true,"enrollment_required":true,"enrollment_type":{"code":"W","label":"Payer paperwork (fax or email)","explanation":"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."},"paper_eob_shutoff_when_enrolled":false,"notes":null},"attachments":{"supported":true,"enrollment_required":false,"enrollment_type":null,"processor":"nea","nea_payer_id":null,"nea_master_id":"EXAMPLE01"}},"updated_at":"2026-01-05T00:00:00Z"}],"next_cursor":null}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/payers/{id}":{"get":{"operationId":"getPayer","summary":"Get a payer","description":"One payer, by its Claim House ID (pyr_...), its payer ID or any alias. When several payers share a payer ID or alias, the first active one by name is returned. Removed payers are still found.","tags":["Payers"],"x-permission":"read","parameters":[{"name":"id","in":"path","required":true,"description":"A Claim House payer ID (pyr_...), a payer ID or an alias.","schema":{"type":"string"},"example":"pyr_01JM000000E008000000000004"}],"responses":{"200":{"description":"The payer.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Payer"},"examples":{"by_id":{"summary":"A payer by its Claim House ID","value":{"id":"pyr_01JM000000E008000000000004","object":"payer","payer_id":"00000","name":"Example Dental Plan","additional_info":null,"aliases":["EXAMPLE","EXDENTAL"],"status":"active","transactions":{"eligibility":{"supported":true,"enrollment_required":false,"enrollment_type":null,"connection_type":"real_time","response_level":"detailed","returns":{"coinsurance":true,"deductibles":true,"benefit_descriptions":true,"benefit_limitations":true,"frequency_limitations":true},"notes":null},"claims":{"supported":true,"enrollment_required":true,"enrollment_type":{"code":"S","label":"Claim House facilitates","explanation":"Claim House can handle enrollment with the payer. The provider requests it by completing the Claim House enrollment request form and supplying the demographic details asked for, including tax ID and NPIs."},"submission_type":"real_time"},"era":{"supported":true,"enrollment_required":true,"enrollment_type":{"code":"W","label":"Payer paperwork (fax or email)","explanation":"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."},"paper_eob_shutoff_when_enrolled":false,"notes":null},"attachments":{"supported":true,"enrollment_required":false,"enrollment_type":null,"processor":"nea","nea_payer_id":null,"nea_master_id":"EXAMPLE01"}},"updated_at":"2026-01-05T00:00:00Z"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/offices":{"get":{"operationId":"listOffices","summary":"List offices","description":"The offices of the key's organization, in the key's mode (test or live), by name, 50 a page by default. An office ID is needed to run an eligibility check. Search with q (name, city, NPI or client reference) and filter by attachment network registration, practice group (none for the standalone offices) and your own client_reference.","tags":["Offices"],"x-permission":"read","parameters":[{"name":"limit","in":"query","required":false,"description":"How many items to return, from 1 to 100. Default 50.","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"description":"The next_cursor of the previous page, to get the page after it. Opaque: pass it back unchanged.","schema":{"type":"string"}},{"name":"q","in":"query","required":false,"description":"Words of the office's name, city, NPI or client reference, in any case: every word must be found. Use up to 100 characters, with no control characters.","schema":{"maxLength":100,"type":"string"}},{"name":"registration","in":"query","required":false,"description":"Only the offices in this attachment network registration state.","schema":{"type":"string","enum":["not_registered","pending","registered","failed"]}},{"name":"practice_group_id","in":"query","required":false,"description":"Only the offices in this practice group (pgr_...); none for the standalone offices, in no group. Not with office_id. Needs practice groups enabled for the organization: otherwise 403 FEATURE_NOT_ENABLED.","schema":{"pattern":"^(none|pgr_[0-9A-HJKMNP-TV-Z]{26})$","type":"string"}},{"name":"client_reference","in":"query","required":false,"description":"Only the offices with exactly this client reference.","schema":{"maxLength":120,"type":"string"}},{"name":"idempotency_key","in":"query","required":false,"description":"Only the office made with this Idempotency-Key (what a request that timed out made).","schema":{"type":"string"}}],"responses":{"200":{"description":"The offices.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Office"}},"next_cursor":{"description":"Pass as cursor to get the next page; null when there is no next page.","type":["string","null"]}},"required":["data","next_cursor"]},"examples":{"list":{"summary":"The offices of a test key","value":{"data":[{"id":"off_01JM000000E008000000000003","object":"office","name":"Example Family Dental","address_line1":"100 Example Street","address_line2":null,"city":"Exampleville","state":"GA","postal_code":"30000","phone":"4045550100","npi":"1999999000","tax_id_last4":"0000","specialty":"general","time_zone":"America/New_York","pay_to_address":null,"default_service_location":null,"payer_provider_ids":[],"contact_name":"Pat Example","contact_email":null,"contact_fax":null,"doctor_first_name":"Riley","doctor_last_name":"Example","attachment_network":{"state":"not_registered","details":null,"facility_id":null,"registered_at":null,"failure":null,"updated_at":null},"origin":"api","practice_group_id":null,"client_reference":null,"mode":"test","created_at":"2026-01-15T14:00:00+00:00"}],"next_cursor":null}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.\n\n`FEATURE_NOT_ENABLED`: Practice groups are not enabled for this organization. Ask Claim House to turn them on.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"FEATURE_NOT_ENABLED":{"summary":"FEATURE_NOT_ENABLED","value":{"error":"FEATURE_NOT_ENABLED","message":"Practice groups are not enabled for this organization. Ask Claim House to turn them on.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}},"post":{"operationId":"createOffice","summary":"Add an office","description":"Adds an office to the key's organization, in the key's mode: a test key adds a test office, to run sandbox checks for (a live office needs the organization to be live). It takes the fields of the dashboard's office form, checked by the same rules, and optionally a practice_group_id (while practice groups are enabled), your own client_reference, a pay_to_address (where payers send payment, when that is not the billing address), a default_service_location (where treatment happens for the claims that name no service_location) and payer_provider_ids (IDs payers assigned the office, sent on its claims to them). The billing address is a street address, never a PO box. Needs an Idempotency-Key header and a key with the submit permission.","tags":["Offices"],"x-permission":"submit","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120,"description":"The office's name."},"address_line1":{"type":"string","minLength":1,"maxLength":120,"description":"The street address the office bills from. Not a PO box: claims refuse one (a PO box can be the pay_to_address)."},"address_line2":{"default":"","description":"A second line of the billing address (a suite, a floor). Optional; never a PO box.","type":"string","maxLength":120},"city":{"type":"string","minLength":1,"maxLength":120},"state":{"type":"string","description":"The two-letter code of the state."},"postal_code":{"description":"The ZIP code: 5 or 9 digits. Claims need the 9-digit ZIP (ZIP+4) of the billing address.","type":"string"},"phone":{"description":"A 10-digit US phone number.","type":"string"},"npi":{"description":"The office's organization (type 2) NPI: 10 digits with a valid check digit.","type":"string"},"tax_id":{"description":"The 9-digit tax ID (EIN). Only its last 4 digits are ever shown back.","type":"string"},"specialty":{"type":"string","enum":["general","pediatric","orthodontics","periodontics","oral_surgery","endodontics","prosthodontics","unknown"],"description":"One of: general, pediatric, orthodontics, periodontics, oral_surgery, endodontics, prosthodontics, unknown."},"time_zone":{"description":"The office's time zone (an IANA name, such as America/New_York). Empty, or left out when the office is added: the main zone of its state.","default":"","type":"string"},"contact_name":{"description":"Who the attachment network contacts about this office. Optional; registering for attachments asks for it.","default":"","type":"string"},"contact_email":{"description":"The contact's email. Optional; registering for attachments asks for it.","default":"","type":"string"},"contact_fax":{"description":"The contact's fax: a 10-digit US number. Optional.","default":"","type":"string"},"doctor_first_name":{"description":"The first name of the office's primary doctor. Optional; registering for attachments asks for it.","default":"","type":"string"},"doctor_last_name":{"description":"The last name of the office's primary doctor. Optional; registering for attachments asks for it.","default":"","type":"string"},"practice_group_id":{"description":"The practice group to put the office in (pgr_...), or null for a standalone office. Only while practice groups are enabled for the organization: otherwise 403 FEATURE_NOT_ENABLED.","type":["string","null"]},"client_reference":{"maxLength":120,"description":"Your own ID for it (from your practice management system, say): up to 120 characters. Blank or null clears it.","anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"pay_to_address":{"description":"Where payers send payment, when that is not the billing address: line1, line2 (optional), city, state and postal_code (5 or 9 digits). A PO box is allowed here. Written on claims (the pay-to address) when it differs from the billing address. null: none.","anyOf":[{"type":"object","properties":{"line1":{"type":"string"},"line2":{"type":["string","null"]},"city":{"type":"string"},"state":{"type":"string"},"postal_code":{"type":"string"}},"required":["line1","city","state","postal_code"],"additionalProperties":false},{"type":"null"}]},"default_service_location":{"description":"Where treatment happens for the office's claims that name no service_location: name, npi (optional, with a valid check digit) and address. For an office that bills for another place. Written on a claim when it differs from the billing address. null: none.","anyOf":[{"type":"object","properties":{"name":{"type":"string"},"npi":{"type":["string","null"]},"address":{"type":"object","properties":{"line1":{"type":"string"},"line2":{"type":["string","null"]},"city":{"type":"string"},"state":{"type":"string"},"postal_code":{"type":"string"}},"required":["line1","city","state","postal_code"],"additionalProperties":false}},"required":["name","address"],"additionalProperties":false},{"type":"null"}]},"payer_provider_ids":{"description":"The office's IDs assigned by payers (a Medicaid provider ID, say), at most one per payer. A claim to that payer sends it as REF*G2 (the billing provider, 2010BB) unless the claim sends its own (payer_provider_ids). On a change, the list replaces the one on file: an empty list removes them all.","maxItems":50,"type":"array","items":{"type":"object","properties":{"payer_id":{"description":"The payer (a Claim House payer ID, pyr_...).","type":"string"},"identifier":{"maxLength":50,"description":"The payer's own ID, 1 to 50 characters: letters, digits, spaces and ! \" & ' ( ) + , - . / ; ? =.","type":"string"}},"required":["payer_id","identifier"],"additionalProperties":false}}},"required":["name","address_line1","city","state","postal_code","phone","npi","tax_id","specialty"],"additionalProperties":false},"examples":{"test_office":{"summary":"A test office","value":{"name":"Example Family Dental","address_line1":"100 Example Street","city":"Exampleville","state":"GA","postal_code":"30000","phone":"404-555-0100","npi":"1999999000","tax_id":"00-0000000","specialty":"general","contact_name":"Pat Example","doctor_first_name":"Riley","doctor_last_name":"Example"}}}}}},"responses":{"201":{"description":"The office.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Office"},"examples":{"test_office":{"summary":"A test office","value":{"id":"off_01JM000000E008000000000003","object":"office","name":"Example Family Dental","address_line1":"100 Example Street","address_line2":null,"city":"Exampleville","state":"GA","postal_code":"30000","phone":"4045550100","npi":"1999999000","tax_id_last4":"0000","specialty":"general","time_zone":"America/New_York","pay_to_address":null,"default_service_location":null,"payer_provider_ids":[],"contact_name":"Pat Example","contact_email":null,"contact_fax":null,"doctor_first_name":"Riley","doctor_last_name":"Example","attachment_network":{"state":"not_registered","details":null,"facility_id":null,"registered_at":null,"failure":null,"updated_at":null},"origin":"api","practice_group_id":null,"client_reference":null,"mode":"test","created_at":"2026-01-15T14:00:00+00:00"}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.\n\n`FEATURE_NOT_ENABLED`: Practice groups are not enabled for this organization. Ask Claim House to turn them on.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"FEATURE_NOT_ENABLED":{"summary":"FEATURE_NOT_ENABLED","value":{"error":"FEATURE_NOT_ENABLED","message":"Practice groups are not enabled for this organization. Ask Claim House to turn them on.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/offices/{id}":{"get":{"operationId":"getOffice","summary":"Get an office","description":"One office of the key's organization and mode. An office of another organization or of the other mode is not found.","tags":["Offices"],"x-permission":"read","parameters":[{"name":"id","in":"path","required":true,"description":"An office ID (off_...).","schema":{"type":"string"},"example":"off_01JM000000E008000000000003"}],"responses":{"200":{"description":"The office.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Office"},"examples":{"by_id":{"summary":"An office by its ID","value":{"id":"off_01JM000000E008000000000003","object":"office","name":"Example Family Dental","address_line1":"100 Example Street","address_line2":null,"city":"Exampleville","state":"GA","postal_code":"30000","phone":"4045550100","npi":"1999999000","tax_id_last4":"0000","specialty":"general","time_zone":"America/New_York","pay_to_address":null,"default_service_location":null,"payer_provider_ids":[],"contact_name":"Pat Example","contact_email":null,"contact_fax":null,"doctor_first_name":"Riley","doctor_last_name":"Example","attachment_network":{"state":"not_registered","details":null,"facility_id":null,"registered_at":null,"failure":null,"updated_at":null},"origin":"api","practice_group_id":null,"client_reference":null,"mode":"test","created_at":"2026-01-15T14:00:00+00:00"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}},"patch":{"operationId":"updateOffice","summary":"Update an office","description":"Changes an office: any field POST /offices takes, each checked by the same rule as there (an NPI's check digit, a billing address that is no PO box, a ZIP of 5 or 9 digits). Only the fields you send change. An empty string clears an optional text field (address_line2, the contact and doctor fields; time_zone, which goes back to the main zone of the office's state); null clears client_reference, pay_to_address and default_service_location, and takes the office out of its practice group; payer_provider_ids replaces the list. A payer given twice or not in the payer directory is a 422. An office whose time zone was never chosen follows its state when the state changes. A practice_group_id needs practice groups enabled for the organization (403 FEATURE_NOT_ENABLED otherwise) and must be a group of the same organization and mode. An office registered with the attachment network stays registered, with its facility ID, whatever changes. An office of another organization or of the other mode is not found. Needs an Idempotency-Key header and a key with the submit permission.","tags":["Offices"],"x-permission":"submit","parameters":[{"name":"id","in":"path","required":true,"description":"An office ID (off_...).","schema":{"type":"string"},"example":"off_01JM000000E008000000000003"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"description":"The office's name.","type":"string"},"address_line1":{"description":"The street address the office bills from. Not a PO box: claims refuse one (a PO box can be the pay_to_address).","type":"string"},"address_line2":{"description":"A second line of the billing address (a suite, a floor). Optional; never a PO box.","type":"string"},"city":{"type":"string"},"state":{"description":"The two-letter code of the state.","type":"string"},"postal_code":{"description":"The ZIP code: 5 or 9 digits. Claims need the 9-digit ZIP (ZIP+4) of the billing address.","type":"string"},"phone":{"description":"A 10-digit US phone number.","type":"string"},"npi":{"description":"The office's organization (type 2) NPI: 10 digits with a valid check digit.","type":"string"},"tax_id":{"description":"The 9-digit tax ID (EIN). Only its last 4 digits are ever shown back.","type":"string"},"specialty":{"description":"One of: general, pediatric, orthodontics, periodontics, oral_surgery, endodontics, prosthodontics, unknown.","type":"string"},"time_zone":{"description":"The office's time zone (an IANA name, such as America/New_York). Empty, or left out when the office is added: the main zone of its state.","type":"string"},"contact_name":{"description":"Who the attachment network contacts about this office. Optional; registering for attachments asks for it.","type":"string"},"contact_email":{"description":"The contact's email. Optional; registering for attachments asks for it.","type":"string"},"contact_fax":{"description":"The contact's fax: a 10-digit US number. Optional.","type":"string"},"doctor_first_name":{"description":"The first name of the office's primary doctor. Optional; registering for attachments asks for it.","type":"string"},"doctor_last_name":{"description":"The last name of the office's primary doctor. Optional; registering for attachments asks for it.","type":"string"},"practice_group_id":{"description":"The practice group to put the office in (pgr_...), or null for a standalone office. Only while practice groups are enabled for the organization: otherwise 403 FEATURE_NOT_ENABLED.","type":["string","null"]},"client_reference":{"maxLength":120,"description":"Your own ID for it (from your practice management system, say): up to 120 characters. Blank or null clears it.","anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"pay_to_address":{"description":"Where payers send payment, when that is not the billing address: line1, line2 (optional), city, state and postal_code (5 or 9 digits). A PO box is allowed here. Written on claims (the pay-to address) when it differs from the billing address. null: none.","anyOf":[{"type":"object","properties":{"line1":{"type":"string"},"line2":{"type":["string","null"]},"city":{"type":"string"},"state":{"type":"string"},"postal_code":{"type":"string"}},"required":["line1","city","state","postal_code"],"additionalProperties":false},{"type":"null"}]},"default_service_location":{"description":"Where treatment happens for the office's claims that name no service_location: name, npi (optional, with a valid check digit) and address. For an office that bills for another place. Written on a claim when it differs from the billing address. null: none.","anyOf":[{"type":"object","properties":{"name":{"type":"string"},"npi":{"type":["string","null"]},"address":{"type":"object","properties":{"line1":{"type":"string"},"line2":{"type":["string","null"]},"city":{"type":"string"},"state":{"type":"string"},"postal_code":{"type":"string"}},"required":["line1","city","state","postal_code"],"additionalProperties":false}},"required":["name","address"],"additionalProperties":false},{"type":"null"}]},"payer_provider_ids":{"description":"The office's IDs assigned by payers (a Medicaid provider ID, say), at most one per payer. A claim to that payer sends it as REF*G2 (the billing provider, 2010BB) unless the claim sends its own (payer_provider_ids). On a change, the list replaces the one on file: an empty list removes them all.","maxItems":50,"type":"array","items":{"type":"object","properties":{"payer_id":{"description":"The payer (a Claim House payer ID, pyr_...).","type":"string"},"identifier":{"maxLength":50,"description":"The payer's own ID, 1 to 50 characters: letters, digits, spaces and ! \" & ' ( ) + , - . / ; ? =.","type":"string"}},"required":["payer_id","identifier"],"additionalProperties":false}}},"additionalProperties":false},"examples":{"join_group":{"summary":"Put an office in a practice group, with your own reference","value":{"practice_group_id":"pgr_01JM000000E008000000000090","client_reference":"PMS-1001"}},"locations":{"summary":"A new street address, a PO box to be paid at, and where treatment happens","value":{"address_line1":"120 Example Street","postal_code":"30000-0100","pay_to_address":{"line1":"PO Box 100","line2":null,"city":"Exampleville","state":"GA","postal_code":"30001"},"default_service_location":{"name":"Example Family Dental North","npi":null,"address":{"line1":"250 Example Parkway","line2":"Suite 3","city":"Exampleton","state":"GA","postal_code":"300020100"}}}}}}}},"responses":{"200":{"description":"The office as it is now.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Office"},"examples":{"join_group":{"summary":"Put an office in a practice group, with your own reference","value":{"id":"off_01JM000000E008000000000003","object":"office","name":"Example Family Dental","address_line1":"100 Example Street","address_line2":null,"city":"Exampleville","state":"GA","postal_code":"30000","phone":"4045550100","npi":"1999999000","tax_id_last4":"0000","specialty":"general","time_zone":"America/New_York","pay_to_address":null,"default_service_location":null,"payer_provider_ids":[],"contact_name":"Pat Example","contact_email":null,"contact_fax":null,"doctor_first_name":"Riley","doctor_last_name":"Example","attachment_network":{"state":"not_registered","details":null,"facility_id":null,"registered_at":null,"failure":null,"updated_at":null},"origin":"api","practice_group_id":"pgr_01JM000000E008000000000090","client_reference":"PMS-1001","mode":"test","created_at":"2026-01-15T14:00:00+00:00"}},"locations":{"summary":"A new street address, a PO box to be paid at, and where treatment happens","value":{"id":"off_01JM000000E008000000000003","object":"office","name":"Example Family Dental","address_line1":"120 Example Street","address_line2":null,"city":"Exampleville","state":"GA","postal_code":"300000100","phone":"4045550100","npi":"1999999000","tax_id_last4":"0000","specialty":"general","time_zone":"America/New_York","pay_to_address":{"line1":"PO Box 100","line2":null,"city":"Exampleville","state":"GA","postal_code":"30001"},"default_service_location":{"name":"Example Family Dental North","npi":null,"address":{"line1":"250 Example Parkway","line2":"Suite 3","city":"Exampleton","state":"GA","postal_code":"300020100"}},"payer_provider_ids":[],"contact_name":"Pat Example","contact_email":null,"contact_fax":null,"doctor_first_name":"Riley","doctor_last_name":"Example","attachment_network":{"state":"not_registered","details":null,"facility_id":null,"registered_at":null,"failure":null,"updated_at":null},"origin":"api","practice_group_id":null,"client_reference":null,"mode":"test","created_at":"2026-01-15T14:00:00+00:00"}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.\n\n`FEATURE_NOT_ENABLED`: Practice groups are not enabled for this organization. Ask Claim House to turn them on.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"FEATURE_NOT_ENABLED":{"summary":"FEATURE_NOT_ENABLED","value":{"error":"FEATURE_NOT_ENABLED","message":"Practice groups are not enabled for this organization. Ask Claim House to turn them on.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/offices/{id}/move_claims":{"post":{"operationId":"moveOfficeClaims","summary":"Move an office's unsent claims to another office","description":"Moves the unsent claims and predeterminations of the office to another office of the same organization and mode (to_office_id): its drafts, the ones that need attention, the validated and the queued ones, and the rejected ones the payer never gave a number. A claim that was sent, or that the payer has (a claim with a payer claim number, a correction, a void transaction), stays with the office that sent it, with its files, payments and ERAs. Each moved claim gets a timeline entry (moved) and is validated for its new office, as after an edit: one that was queued is queued again when it still has no error, one that no longer validates needs attention, a draft and a rejected claim stay as they are. Attachments stay on their claims and keep the office they were made for. A request moves at most 100 claims, the queued ones first, all of them or none: while more is true, send it again with a new Idempotency-Key. A key with submit and no read moves the claims it made. The office in the path that is another organization's or the other mode's is not found; such a to_office_id, or the office itself, is a 422 on to_office_id. Needs an Idempotency-Key header and a key with the submit permission.","tags":["Offices"],"x-permission":"submit","parameters":[{"name":"id","in":"path","required":true,"description":"An office ID (off_...).","schema":{"type":"string"},"example":"off_01JM000000E008000000000003"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"to_office_id":{"description":"The office the claims move to (off_...): another office of the same organization and mode.","type":"string"}},"required":["to_office_id"],"additionalProperties":false},"examples":{"move":{"summary":"Seven unsent claims moved to another office","value":{"to_office_id":"off_01JM000000E008000000000091"}}}}}},"responses":{"200":{"description":"How many claims moved, by the state each was in.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"office_claims_move"},"from_office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"to_office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"moved":{"type":"object","properties":{"draft":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"needs_attention":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"validated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rejected":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"queued":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["draft","needs_attention","validated","rejected","queued"],"description":"How many claims moved, by the state each was in when it moved. Each was then validated for its new office; the queued ones were queued again when they still had no error."},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many claims this request moved."},"more":{"type":"boolean","description":"True when the office still has unsent claims: a request moves at most 100. Send it again, with a new Idempotency-Key, until this is false."}},"required":["object","from_office_id","to_office_id","moved","total","more"]},"examples":{"move":{"summary":"Seven unsent claims moved to another office","value":{"object":"office_claims_move","from_office_id":"off_01JM000000E008000000000003","to_office_id":"off_01JM000000E008000000000091","moved":{"draft":2,"needs_attention":1,"validated":0,"rejected":1,"queued":3},"total":7,"more":false}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"503":{"description":"`CLAIMS_UNAVAILABLE`: Claims are not available in live mode yet. Use a test key.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"CLAIMS_UNAVAILABLE":{"summary":"CLAIMS_UNAVAILABLE","value":{"error":"CLAIMS_UNAVAILABLE","message":"Claims are not available in live mode yet. Use a test key.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/practice_groups":{"get":{"operationId":"listPracticeGroups","summary":"List practice groups","description":"The practice groups of the key's organization in the key's mode, by name, one page at a time, each with how many offices it holds. Filter by your own client_reference. Needs practice groups enabled for the organization: otherwise 403 FEATURE_NOT_ENABLED.","tags":["Offices"],"x-permission":"read","parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"name":"client_reference","in":"query","required":false,"description":"Only the groups with exactly this client reference.","schema":{"maxLength":120,"type":"string"}},{"name":"idempotency_key","in":"query","required":false,"description":"Only the group made with this Idempotency-Key (what a request that timed out made).","schema":{"type":"string"}}],"responses":{"200":{"description":"A page of practice groups.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^pgr_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with pgr_."},"object":{"type":"string","const":"practice_group"},"name":{"type":"string"},"client_reference":{"description":"Your own ID for the group; null when none was given.","type":["string","null"]},"office_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many offices are in the group."},"mode":{"type":"string","enum":["test","live"]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["id","object","name","client_reference","office_count","mode","created_at","updated_at"]}},"next_cursor":{"description":"Pass as cursor to get the next page; null when there is no next page.","type":["string","null"]}},"required":["data","next_cursor"]},"examples":{"list":{"summary":"The practice groups of a test key","value":{"data":[{"id":"pgr_01JM000000E008000000000090","object":"practice_group","name":"Example North Region","client_reference":"REGION-N","office_count":1,"mode":"test","created_at":"2026-01-20T10:00:00+00:00","updated_at":"2026-01-20T10:00:00+00:00"}],"next_cursor":null}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.\n\n`FEATURE_NOT_ENABLED`: Practice groups are not enabled for this organization. Ask Claim House to turn them on.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"FEATURE_NOT_ENABLED":{"summary":"FEATURE_NOT_ENABLED","value":{"error":"FEATURE_NOT_ENABLED","message":"Practice groups are not enabled for this organization. Ask Claim House to turn them on.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}},"post":{"operationId":"createPracticeGroup","summary":"Add a practice group","description":"Adds a practice group to the key's organization, in the key's mode: a name, and optionally your own client_reference. Put offices in it with PATCH /offices/{id}. Needs practice groups enabled for the organization: otherwise 403 FEATURE_NOT_ENABLED. Needs an Idempotency-Key header and a key with the submit permission.","tags":["Offices"],"x-permission":"submit","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120,"description":"The group's name: up to 120 characters."},"client_reference":{"maxLength":120,"description":"Your own ID for it (from your practice management system, say): up to 120 characters. Blank or null clears it.","anyOf":[{"type":"string","maxLength":120},{"type":"null"}]}},"required":["name"],"additionalProperties":false},"examples":{"region":{"summary":"A practice group for a region","value":{"name":"Example North Region","client_reference":"REGION-N"}}}}}},"responses":{"201":{"description":"The practice group.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^pgr_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with pgr_."},"object":{"type":"string","const":"practice_group"},"name":{"type":"string"},"client_reference":{"description":"Your own ID for the group; null when none was given.","type":["string","null"]},"office_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many offices are in the group."},"mode":{"type":"string","enum":["test","live"]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["id","object","name","client_reference","office_count","mode","created_at","updated_at"]},"examples":{"region":{"summary":"A practice group for a region","value":{"id":"pgr_01JM000000E008000000000090","object":"practice_group","name":"Example North Region","client_reference":"REGION-N","office_count":0,"mode":"test","created_at":"2026-01-20T10:00:00+00:00","updated_at":"2026-01-20T10:00:00+00:00"}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.\n\n`FEATURE_NOT_ENABLED`: Practice groups are not enabled for this organization. Ask Claim House to turn them on.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"FEATURE_NOT_ENABLED":{"summary":"FEATURE_NOT_ENABLED","value":{"error":"FEATURE_NOT_ENABLED","message":"Practice groups are not enabled for this organization. Ask Claim House to turn them on.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/practice_groups/{id}":{"get":{"operationId":"getPracticeGroup","summary":"Get a practice group","description":"One practice group of the key's organization and mode, with how many offices it holds. A group of another organization or of the other mode is not found. Needs practice groups enabled for the organization: otherwise 403 FEATURE_NOT_ENABLED.","tags":["Offices"],"x-permission":"read","parameters":[{"name":"id","in":"path","required":true,"description":"A practice group ID (pgr_...).","schema":{"type":"string"},"example":"pgr_01JM000000E008000000000090"}],"responses":{"200":{"description":"The practice group.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^pgr_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with pgr_."},"object":{"type":"string","const":"practice_group"},"name":{"type":"string"},"client_reference":{"description":"Your own ID for the group; null when none was given.","type":["string","null"]},"office_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many offices are in the group."},"mode":{"type":"string","enum":["test","live"]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["id","object","name","client_reference","office_count","mode","created_at","updated_at"]},"examples":{"by_id":{"summary":"A practice group by its ID","value":{"id":"pgr_01JM000000E008000000000090","object":"practice_group","name":"Example North Region","client_reference":"REGION-N","office_count":1,"mode":"test","created_at":"2026-01-20T10:00:00+00:00","updated_at":"2026-01-20T10:00:00+00:00"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.\n\n`FEATURE_NOT_ENABLED`: Practice groups are not enabled for this organization. Ask Claim House to turn them on.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"FEATURE_NOT_ENABLED":{"summary":"FEATURE_NOT_ENABLED","value":{"error":"FEATURE_NOT_ENABLED","message":"Practice groups are not enabled for this organization. Ask Claim House to turn them on.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}},"patch":{"operationId":"updatePracticeGroup","summary":"Update a practice group","description":"Renames the group or changes its client_reference (null clears it); send at least one. Needs practice groups enabled for the organization: otherwise 403 FEATURE_NOT_ENABLED. Needs an Idempotency-Key header and a key with the submit permission.","tags":["Offices"],"x-permission":"submit","parameters":[{"name":"id","in":"path","required":true,"description":"A practice group ID (pgr_...).","schema":{"type":"string"},"example":"pgr_01JM000000E008000000000090"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120,"description":"The group's name: up to 120 characters."},"client_reference":{"maxLength":120,"description":"Your own ID for it (from your practice management system, say): up to 120 characters. Blank or null clears it.","anyOf":[{"type":"string","maxLength":120},{"type":"null"}]}},"additionalProperties":false},"examples":{"rename":{"summary":"Rename a practice group","value":{"name":"Example Northeast Region"}}}}}},"responses":{"200":{"description":"The practice group as it is now.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^pgr_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with pgr_."},"object":{"type":"string","const":"practice_group"},"name":{"type":"string"},"client_reference":{"description":"Your own ID for the group; null when none was given.","type":["string","null"]},"office_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many offices are in the group."},"mode":{"type":"string","enum":["test","live"]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["id","object","name","client_reference","office_count","mode","created_at","updated_at"]},"examples":{"rename":{"summary":"Rename a practice group","value":{"id":"pgr_01JM000000E008000000000090","object":"practice_group","name":"Example Northeast Region","client_reference":"REGION-N","office_count":1,"mode":"test","created_at":"2026-01-20T10:00:00+00:00","updated_at":"2026-02-01T09:30:00+00:00"}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.\n\n`FEATURE_NOT_ENABLED`: Practice groups are not enabled for this organization. Ask Claim House to turn them on.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"FEATURE_NOT_ENABLED":{"summary":"FEATURE_NOT_ENABLED","value":{"error":"FEATURE_NOT_ENABLED","message":"Practice groups are not enabled for this organization. Ask Claim House to turn them on.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}},"delete":{"operationId":"deletePracticeGroup","summary":"Delete a practice group","description":"Deletes a group that holds no offices; one that still holds offices is 409 CONFLICT (move them out with PATCH /offices/{id} first). Needs a key with the submit permission. Needs practice groups enabled for the organization: otherwise 403 FEATURE_NOT_ENABLED.","tags":["Offices"],"x-permission":"submit","parameters":[{"name":"id","in":"path","required":true,"description":"A practice group ID (pgr_...).","schema":{"type":"string"},"example":"pgr_01JM000000E008000000000090"}],"responses":{"200":{"description":"The practice group that was deleted.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^pgr_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with pgr_."},"object":{"type":"string","const":"practice_group"},"deleted":{"type":"boolean","const":true}},"required":["id","object","deleted"]},"examples":{"delete":{"summary":"Delete an empty practice group","value":{"id":"pgr_01JM000000E008000000000090","object":"practice_group","deleted":true}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.\n\n`FEATURE_NOT_ENABLED`: Practice groups are not enabled for this organization. Ask Claim House to turn them on.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"FEATURE_NOT_ENABLED":{"summary":"FEATURE_NOT_ENABLED","value":{"error":"FEATURE_NOT_ENABLED","message":"Practice groups are not enabled for this organization. Ask Claim House to turn them on.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`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.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"CONFLICT":{"summary":"CONFLICT","value":{"error":"CONFLICT","message":"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.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/npi/{npi}":{"get":{"operationId":"lookupNpi","summary":"Look up an NPI","description":"What the national NPI registry (NPPES) holds for an NPI: whether it is an organization or an individual, its status, name, primary practice address and phone, and primary taxonomy with the license listed for it. Use it to fill an office or a provider before you add it. It confirms that an NPI exists and whose it is; it does not prove that you own it. A deactivated NPI is returned with status deactivated. The path takes 10 digits with a valid check digit. A test key is answered by a sandbox registry with made-up records (see the Sandbox guide for the NPIs to try); a live key asks the real registry, which may be slow or down (502 NPI_REGISTRY_UNAVAILABLE: send the request again later).","tags":["NPI lookup"],"x-permission":"read","parameters":[{"name":"npi","in":"path","required":true,"description":"An NPI: 10 digits with a valid check digit.","schema":{"type":"string"},"example":"1999980018"}],"responses":{"200":{"description":"The registry's record.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"npi_record"},"npi":{"type":"string"},"type":{"type":"string","enum":["organization","individual"],"description":"organization is a type 2 NPI (an office or group), individual a type 1 NPI (a dentist)."},"status":{"type":"string","enum":["active","deactivated"],"description":"A deactivated NPI is still returned, so you can tell it from one that never existed."},"organization_name":{"description":"For an organization; null for an individual.","type":["string","null"]},"first_name":{"description":"For an individual; null for an organization.","type":["string","null"]},"last_name":{"description":"For an individual; null for an organization.","type":["string","null"]},"credential":{"description":"For an individual, such as DDS; null when the registry has none.","type":["string","null"]},"location":{"anyOf":[{"type":"object","properties":{"address_line1":{"type":["string","null"]},"address_line2":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"description":"The two-letter state code.","type":["string","null"]},"postal_code":{"description":"5 or 9 digits.","type":["string","null"]},"phone":{"description":"10 digits.","type":["string","null"]}},"required":["address_line1","address_line2","city","state","postal_code","phone"],"description":"The primary practice location. Each part is null where the registry has none."},{"type":"null"}]},"taxonomy":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"The NUCC taxonomy code."},"description":{"type":["string","null"]},"license_number":{"type":["string","null"]},"license_state":{"type":["string","null"]}},"required":["code","description","license_number","license_state"],"description":"The primary taxonomy, with the license the registry lists for it."},{"type":"null"}]},"last_updated":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"The date the registry last changed the record."}},"required":["object","npi","type","status","organization_name","first_name","last_name","credential","location","taxonomy","last_updated"]},"examples":{"organization":{"summary":"An organization NPI (type 2)","value":{"object":"npi_record","npi":"1999980018","type":"organization","status":"active","organization_name":"Lakeside Dental Group","first_name":null,"last_name":null,"credential":null,"location":{"address_line1":"60 Sample Lane","address_line2":"Suite 200","city":"Lakeside","state":"GA","postal_code":"303051234","phone":"4045550160"},"taxonomy":{"code":"1223G0001X","description":"General dentistry","license_number":null,"license_state":null},"last_updated":"2026-03-02"}},"individual":{"summary":"An individual NPI (type 1)","value":{"object":"npi_record","npi":"1999980026","type":"individual","status":"active","organization_name":null,"first_name":"Riley","last_name":"Scenario","credential":"DDS","location":{"address_line1":"60 Sample Lane","address_line2":null,"city":"Lakeside","state":"GA","postal_code":"303051234","phone":"4045550161"},"taxonomy":{"code":"1223G0001X","description":"General dentistry","license_number":"SAMPLE-4001","license_state":"GA"},"last_updated":"2026-03-02"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"not_in_registry":{"summary":"An NPI the registry does not have","value":{"error":"NOT_FOUND","message":"No such NPI is in the registry.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"502":{"description":"`NPI_REGISTRY_UNAVAILABLE`: The NPI registry is not answering right now. Nothing needs to change: send the request again later.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NPI_REGISTRY_UNAVAILABLE":{"summary":"NPI_REGISTRY_UNAVAILABLE","value":{"error":"NPI_REGISTRY_UNAVAILABLE","message":"The NPI registry is not answering right now. Nothing needs to change: send the request again later.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/providers":{"get":{"operationId":"listProviders","summary":"List providers","description":"The providers of the key's organization in the key's mode (test or live), by last name, one page at a time. Filter by status, or search by the words of a name or the digits of an NPI.","tags":["Providers"],"x-permission":"read","parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"name":"status","in":"query","required":false,"description":"Only providers with this status.","schema":{"type":"string","enum":["active","inactive"]},"example":"active"},{"name":"q","in":"query","required":false,"description":"Words of a name or digits of an NPI, in any case: every word must be found. Use up to 100 characters, with no control characters.","schema":{"maxLength":100,"type":"string"}},{"name":"idempotency_key","in":"query","required":false,"description":"Only the provider made with this Idempotency-Key (what a request that timed out made).","schema":{"type":"string"}}],"responses":{"200":{"description":"A page of providers.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Provider"}},"next_cursor":{"description":"Pass as cursor to get the next page; null when there is no next page.","type":["string","null"]}},"required":["data","next_cursor"]},"examples":{"active":{"summary":"The active providers","value":{"data":[{"id":"prv_01JM000000E008000000000005","object":"provider","first_name":"Riley","last_name":"Example","credential":"DDS","npi":"1999990017","licenses":[{"state":"GA","number":"GA-000000"}],"license":{"number":"GA-000000","state":"GA"},"taxonomy_code":"1223G0001X","specialty":"General dentistry","status":"active","payer_provider_ids":[],"origin":"api","mode":"test","created_at":"2026-01-15T14:00:00+00:00","updated_at":"2026-01-15T14:00:00+00:00"}],"next_cursor":null}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}},"post":{"operationId":"createProvider","summary":"Add a provider","description":"Adds a dentist who renders treatment, so a claim can name them as its rendering provider. The NPI must be 10 digits with a valid check digit, and one provider can have it in an organization and mode: an NPI already in use under the same last name (case and punctuation aside) is answered with 409 CONFLICT naming the provider that has it, whose ID you can use instead; under another last name, with 409 NPI_CONFLICT, naming none. A provider holds one license per state; a claim with none for the state where its treatment happened is sent without one and carries the warning NO_LICENSE_FOR_STATE. Names and license numbers are sent on the claim: none may contain control characters, and a license number may hold only letters, digits, spaces and basic punctuation (no * ~ : ^ |; in a name those are replaced with a space in the claim file). Needs an Idempotency-Key header and a key with the submit permission.","tags":["Providers"],"x-permission":"submit","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"first_name":{"maxLength":35,"description":"The provider's first name.","type":"string"},"last_name":{"maxLength":60,"description":"The provider's last name.","type":"string"},"credential":{"maxLength":10,"description":"The credential after the name, such as DDS or DMD.","type":"string"},"npi":{"description":"The provider's individual NPI: 10 digits with a valid check digit. One provider per NPI in an organization and mode.","type":"string"},"licenses":{"maxItems":56,"type":"array","items":{"type":"object","properties":{"number":{"maxLength":30,"description":"The state license number.","type":"string"},"state":{"type":"string","description":"The two-letter code of the state that issued the license."}},"required":["number","state"],"additionalProperties":false},"description":"The provider's state licenses, one per state, in the order to keep them. A claim sends the license of the state where the treatment happened (its service location, else the billing office) as the rendering provider's secondary identification, and none when the provider has no license for that state. On a change, the list replaces the licenses on file: an empty list removes them all."},"license":{"anyOf":[{"type":"object","properties":{"number":{"maxLength":30,"description":"The state license number.","type":"string"},"state":{"type":"string","description":"The two-letter code of the state that issued the license."}},"required":["number","state"],"additionalProperties":false},{"type":"null"}],"deprecated":true,"description":"Deprecated: the older form of `licenses`, for one license. It means a list of that one license, and null means an empty list. Send `licenses` instead; sending both is refused."},"taxonomy_code":{"description":"The NUCC taxonomy code sent on the claim: 9 letters or digits and a final X. Default 1223G0001X (general dentist).","type":"string"},"status":{"type":"string","enum":["active","inactive"],"description":"inactive providers stay on the claims that name them but cannot be chosen for new ones. Default active."},"payer_provider_ids":{"description":"The provider's IDs assigned by payers (a Medicaid provider ID, say), at most one per payer. A claim to that payer sends it as REF*G2 (the rendering provider, 2310B) unless the claim sends its own (payer_provider_ids). On a change, the list replaces the one on file: an empty list removes them all.","maxItems":50,"type":"array","items":{"type":"object","properties":{"payer_id":{"description":"The payer (a Claim House payer ID, pyr_...).","type":"string"},"identifier":{"maxLength":50,"description":"The payer's own ID, 1 to 50 characters: letters, digits, spaces and ! \" & ' ( ) + , - . / ; ? =.","type":"string"}},"required":["payer_id","identifier"],"additionalProperties":false}}},"required":["first_name","last_name","npi"],"additionalProperties":false},"examples":{"dentist":{"summary":"A general dentist with a Georgia license","value":{"first_name":"Riley","last_name":"Example","credential":"DDS","npi":"1999990017","licenses":[{"state":"GA","number":"GA-000000"}]}},"npi_in_use":{"summary":"An NPI a provider already has","value":{"first_name":"Riley","last_name":"Example","credential":"DDS","npi":"1999990017","licenses":[{"state":"GA","number":"GA-000000"}]}},"npi_conflict":{"summary":"An NPI another dentist has","value":{"first_name":"Riley","last_name":"Other","credential":"DDS","npi":"1999990017","licenses":[{"state":"GA","number":"GA-000000"}]}}}}}},"responses":{"200":{"description":"The provider.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Provider"},"examples":{"dentist":{"summary":"A general dentist with a Georgia license","value":{"id":"prv_01JM000000E008000000000005","object":"provider","first_name":"Riley","last_name":"Example","credential":"DDS","npi":"1999990017","licenses":[{"state":"GA","number":"GA-000000"}],"license":{"number":"GA-000000","state":"GA"},"taxonomy_code":"1223G0001X","specialty":"General dentistry","status":"active","payer_provider_ids":[],"origin":"api","mode":"test","created_at":"2026-01-15T14:00:00+00:00","updated_at":"2026-01-15T14:00:00+00:00"}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.\n\n`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.\n\n`NPI_CONFLICT`: This NPI belongs to another dentist in your organization: a provider with another last name has it. Check the NPI and the last name.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"npi_in_use":{"summary":"An NPI a provider already has","value":{"error":"CONFLICT","message":"A provider with this NPI already exists: prv_01JM000000E008000000000005.","errors":[{"field":"npi","code":"invalid","message":"A provider with this NPI already exists: prv_01JM000000E008000000000005."}],"details":{"provider_id":"prv_01JM000000E008000000000005"},"request_id":"req_01JM000000E008000000000010"}},"npi_conflict":{"summary":"An NPI another dentist has","value":{"error":"NPI_CONFLICT","message":"This NPI belongs to another dentist in your organization: a provider with another last name has it. Check the NPI and the last name.","errors":[{"field":"npi","code":"invalid","message":"This NPI belongs to another dentist in your organization: a provider with another last name has it. Check the NPI and the last name."}],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/providers/{id}":{"get":{"operationId":"getProvider","summary":"Get a provider","description":"One provider of the key's organization and mode. A provider of another organization or of the other mode is not found.","tags":["Providers"],"x-permission":"read","parameters":[{"name":"id","in":"path","required":true,"description":"A provider ID (prv_...).","schema":{"type":"string"},"example":"prv_01JM000000E008000000000005"}],"responses":{"200":{"description":"The provider.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Provider"},"examples":{"by_id":{"summary":"A provider by its ID","value":{"id":"prv_01JM000000E008000000000005","object":"provider","first_name":"Riley","last_name":"Example","credential":"DDS","npi":"1999990017","licenses":[{"state":"GA","number":"GA-000000"}],"license":{"number":"GA-000000","state":"GA"},"taxonomy_code":"1223G0001X","specialty":"General dentistry","status":"active","payer_provider_ids":[],"origin":"api","mode":"test","created_at":"2026-01-15T14:00:00+00:00","updated_at":"2026-01-15T14:00:00+00:00"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}},"patch":{"operationId":"updateProvider","summary":"Update a provider","description":"Changes the fields sent and leaves the rest. Send at least one. licenses, when sent, replaces the licenses on file with the list (an empty list removes them all); leave it out to keep them. An NPI another provider has is answered as on POST: 409 CONFLICT naming that provider when its last name is the one the provider will have, else 409 NPI_CONFLICT. Make a provider inactive when they stop rendering treatment: claims that name them keep their meaning, and new claims cannot choose them. Needs an Idempotency-Key header and a key with the submit permission.","tags":["Providers"],"x-permission":"submit","parameters":[{"name":"id","in":"path","required":true,"description":"A provider ID (prv_...).","schema":{"type":"string"},"example":"prv_01JM000000E008000000000005"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"first_name":{"maxLength":35,"description":"The provider's first name.","type":"string"},"last_name":{"maxLength":60,"description":"The provider's last name.","type":"string"},"credential":{"maxLength":10,"description":"The credential after the name, such as DDS or DMD.","type":"string"},"npi":{"description":"The provider's individual NPI: 10 digits with a valid check digit. One provider per NPI in an organization and mode.","type":"string"},"licenses":{"maxItems":56,"type":"array","items":{"type":"object","properties":{"number":{"maxLength":30,"description":"The state license number.","type":"string"},"state":{"type":"string","description":"The two-letter code of the state that issued the license."}},"required":["number","state"],"additionalProperties":false},"description":"The provider's state licenses, one per state, in the order to keep them. A claim sends the license of the state where the treatment happened (its service location, else the billing office) as the rendering provider's secondary identification, and none when the provider has no license for that state. On a change, the list replaces the licenses on file: an empty list removes them all."},"license":{"anyOf":[{"type":"object","properties":{"number":{"maxLength":30,"description":"The state license number.","type":"string"},"state":{"type":"string","description":"The two-letter code of the state that issued the license."}},"required":["number","state"],"additionalProperties":false},{"type":"null"}],"deprecated":true,"description":"Deprecated: the older form of `licenses`, for one license. It means a list of that one license, and null means an empty list. Send `licenses` instead; sending both is refused."},"taxonomy_code":{"description":"The NUCC taxonomy code sent on the claim: 9 letters or digits and a final X. Default 1223G0001X (general dentist).","type":"string"},"status":{"type":"string","enum":["active","inactive"],"description":"inactive providers stay on the claims that name them but cannot be chosen for new ones. Default active."},"payer_provider_ids":{"description":"The provider's IDs assigned by payers (a Medicaid provider ID, say), at most one per payer. A claim to that payer sends it as REF*G2 (the rendering provider, 2310B) unless the claim sends its own (payer_provider_ids). On a change, the list replaces the one on file: an empty list removes them all.","maxItems":50,"type":"array","items":{"type":"object","properties":{"payer_id":{"description":"The payer (a Claim House payer ID, pyr_...).","type":"string"},"identifier":{"maxLength":50,"description":"The payer's own ID, 1 to 50 characters: letters, digits, spaces and ! \" & ' ( ) + , - . / ; ? =.","type":"string"}},"required":["payer_id","identifier"],"additionalProperties":false}}},"additionalProperties":false},"examples":{"new_license":{"summary":"Add a taxonomy code and make the provider inactive","value":{"taxonomy_code":"1223P0221X","status":"inactive"}},"second_state":{"summary":"A license in a second state","value":{"licenses":[{"state":"GA","number":"GA-000000"},{"state":"TN","number":"TN-000000"}]}}}}}},"responses":{"200":{"description":"The provider as it is now.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Provider"},"examples":{"new_license":{"summary":"Add a taxonomy code and make the provider inactive","value":{"id":"prv_01JM000000E008000000000005","object":"provider","first_name":"Riley","last_name":"Example","credential":"DDS","npi":"1999990017","licenses":[{"state":"GA","number":"GA-000000"}],"license":{"number":"GA-000000","state":"GA"},"taxonomy_code":"1223P0221X","specialty":"Pediatric dentistry","status":"inactive","payer_provider_ids":[],"origin":"api","mode":"test","created_at":"2026-01-15T14:00:00+00:00","updated_at":"2026-02-01T09:30:00+00:00"}},"second_state":{"summary":"A license in a second state","value":{"id":"prv_01JM000000E008000000000005","object":"provider","first_name":"Riley","last_name":"Example","credential":"DDS","npi":"1999990017","licenses":[{"state":"GA","number":"GA-000000"},{"state":"TN","number":"TN-000000"}],"license":{"number":"GA-000000","state":"GA"},"taxonomy_code":"1223G0001X","specialty":"General dentistry","status":"active","payer_provider_ids":[],"origin":"api","mode":"test","created_at":"2026-01-15T14:00:00+00:00","updated_at":"2026-02-01T09:30:00+00:00"}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.\n\n`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.\n\n`NPI_CONFLICT`: This NPI belongs to another dentist in your organization: a provider with another last name has it. Check the NPI and the last name.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"CONFLICT":{"summary":"CONFLICT","value":{"error":"CONFLICT","message":"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.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"NPI_CONFLICT":{"summary":"NPI_CONFLICT","value":{"error":"NPI_CONFLICT","message":"This NPI belongs to another dentist in your organization: a provider with another last name has it. Check the NPI and the last name.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/eligibility":{"get":{"operationId":"listEligibilityChecks","summary":"List eligibility checks","description":"The checks of the key's organization in the key's mode, newest first, as summaries (without the request and the benefits; read one check for those). Filter by office, coverage status, outcome, creation time, the request or Idempotency-Key that made a check, your own tenant_reference, or the check it corrects.","tags":["Eligibility"],"x-permission":"read","parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"name":"office_id","in":"query","required":false,"description":"Only checks made for this office.","schema":{"pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}},{"name":"practice_group_id","in":"query","required":false,"description":"Only checks made for the offices of this practice group (pgr_...). Not with office_id. Needs practice groups enabled for the organization: otherwise 403 FEATURE_NOT_ENABLED.","schema":{"pattern":"^pgr_[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}},{"name":"status","in":"query","required":false,"description":"Only checks with this coverage status.","schema":{"type":"string","enum":["active","inactive","unknown"]},"example":"active"},{"name":"outcome","in":"query","required":false,"description":"Only checks that ended this way.","schema":{"type":"string","enum":["answered","rejected","payer_unavailable","error"]}},{"name":"created_after","in":"query","required":false,"description":"Only checks created after this instant (ISO 8601 with an offset, such as 2026-10-01T00:00:00Z).","schema":{"format":"date-time","type":"string"}},{"name":"request_id","in":"query","required":false,"description":"Only the check made by this API request (the x-request-id of its response, req_...).","schema":{"pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}},{"name":"idempotency_key","in":"query","required":false,"description":"Only the checks made with this Idempotency-Key.","schema":{"type":"string"}},{"name":"parent_id","in":"query","required":false,"description":"Only the checks that correct this one (elg_...).","schema":{"pattern":"^elg_[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}},{"name":"tenant_reference","in":"query","required":false,"description":"Only the checks sent with this tenant_reference (your own reference for the check).","schema":{"maxLength":255,"type":"string"}}],"responses":{"200":{"description":"A page of check summaries.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/EligibilityCheckSummary"}},"next_cursor":{"description":"Pass as cursor to get the next page; null when there is no next page.","type":["string","null"]}},"required":["data","next_cursor"]},"examples":{"active_checks":{"summary":"Checks with active coverage","value":{"data":[{"id":"elg_01JM000000E00800000000000G","object":"eligibility_check","office_id":"off_01JM000000E008000000000003","patient_id":"pat_01JM000000E00800000000004K","payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"state":"completed","outcome":"answered","status":"active","billing":{"charged":false,"state":"not_billable","reason":"test_mode","label":"Not billed: test mode"},"cache":{"state":"fresh","source_id":null},"parent_id":null,"request_id":"req_01JM000000E008000000000010","idempotency_key":"visit-1042-attempt-1","source":{"network":"sandbox","latency_ms":180,"completed_at":"2026-03-10T15:30:00.430000+00:00"},"tenant_reference":"visit-1042","created_at":"2026-03-10T15:30:00.250000+00:00"}],"next_cursor":null}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.\n\n`FEATURE_NOT_ENABLED`: Practice groups are not enabled for this organization. Ask Claim House to turn them on.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"FEATURE_NOT_ENABLED":{"summary":"FEATURE_NOT_ENABLED","value":{"error":"FEATURE_NOT_ENABLED","message":"Practice groups are not enabled for this organization. Ask Claim House to turn them on.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}},"post":{"operationId":"createEligibilityCheck","summary":"Check eligibility","description":"Asks the payer about a subscriber's (or a dependent patient's) dental coverage and returns the check: the coverage status, plan, maximums, deductibles, coverage by category and the detail for the procedure codes asked about. An Idempotency-Key header is optional and recommended for retries: repeating a request with the same key returns the first answer; without one, the request simply runs. Add Cache-Control: no-cache to skip a recent identical answer. When the payer rejects the check, answers that it is unavailable, or the network fails, the reply is an error that carries the check (see the check field of the error). In test mode the member ID chooses a sandbox scenario.","tags":["Eligibility"],"x-permission":"submit","parameters":[{"$ref":"#/components/parameters/OptionalIdempotencyKey"},{"$ref":"#/components/parameters/CacheControl"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"office_id":{"description":"The office the check is for (off_...), from GET /offices. Its mode must match the key. Optional when your organization has exactly one office in the key's mode, test or live: that office is used.","type":"string"},"payer_id":{"type":"string","description":"The payer: a Claim House payer ID (pyr_...), a payer ID or an alias from the payer directory."},"subscriber":{"type":"object","properties":{"first_name":{"type":"string","maxLength":120,"description":"The subscriber's first name."},"last_name":{"type":"string","maxLength":120,"description":"The subscriber's last name."},"date_of_birth":{"type":"string","format":"date","description":"YYYY-MM-DD."},"member_id":{"type":"string","maxLength":80,"description":"The subscriber's member ID. In test mode it chooses the sandbox scenario."},"group_number":{"description":"The plan group number.","anyOf":[{"type":"string","maxLength":80},{"type":"null"}]}},"additionalProperties":false,"description":"The plan holder.","required":["first_name","last_name","date_of_birth","member_id"]},"patient":{"description":"The patient, when a dependent is being checked. Leave it out when the subscriber is the person being checked.","anyOf":[{"type":"object","properties":{"first_name":{"type":"string","maxLength":120,"description":"The patient's first name."},"last_name":{"type":"string","maxLength":120,"description":"The patient's last name."},"date_of_birth":{"type":"string","format":"date","description":"YYYY-MM-DD."},"relationship":{"type":"string","enum":["spouse","child","other"],"description":"How the patient relates to the subscriber: spouse, child, other."}},"additionalProperties":false,"required":["first_name","last_name","date_of_birth","relationship"]},{"type":"null"}]},"service_date":{"description":"YYYY-MM-DD, within 12 months of today. Default: today, in the office's time zone.","anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"procedure_codes":{"description":"Up to 10 CDT codes (D followed by 4 digits) to get coverage detail for.","anyOf":[{"type":"array","items":{"type":"string","pattern":"^D\\d{4}$"},"maxItems":10},{"type":"null"}]},"detail_level":{"description":"One of standard, enhanced. Default: standard.","anyOf":[{"type":"string","enum":["standard","enhanced"]},{"type":"null"}]},"tenant_reference":{"description":"Your own reference for the check, returned with it. Up to 255 characters.","anyOf":[{"type":"string","maxLength":255},{"type":"null"}]},"parent_id":{"description":"The rejected check this one corrects (elg_...), when resending it with the fixes.","type":["string","null"]}},"required":["payer_id","subscriber"],"additionalProperties":false},"examples":{"active_coverage":{"summary":"Active coverage with full benefits","value":{"office_id":"off_01JM000000E008000000000003","payer_id":"pyr_01JM000000E008000000000004","subscriber":{"first_name":"Alex","last_name":"Example","date_of_birth":"1985-04-12","member_id":"CH-ACTIVE-FULL","group_number":"GRP-100"},"service_date":"2026-03-10","procedure_codes":["D0120","D1110"],"tenant_reference":"visit-1042"}},"member_not_found":{"summary":"A rejection with something to fix","value":{"office_id":"off_01JM000000E008000000000003","payer_id":"pyr_01JM000000E008000000000004","subscriber":{"first_name":"Alex","last_name":"Example","date_of_birth":"1985-04-12","member_id":"CH-NOT-FOUND","group_number":"GRP-100"},"service_date":"2026-03-10","procedure_codes":["D0120","D1110"],"tenant_reference":"visit-1042"}},"payer_down":{"summary":"A payer that is not answering","value":{"office_id":"off_01JM000000E008000000000003","payer_id":"pyr_01JM000000E008000000000004","subscriber":{"first_name":"Alex","last_name":"Example","date_of_birth":"1985-04-12","member_id":"CH-PAYER-DOWN","group_number":"GRP-100"},"service_date":"2026-03-10","procedure_codes":["D0120","D1110"],"tenant_reference":"visit-1042"}}}}}},"responses":{"200":{"description":"The check, when the payer answered it (active or inactive coverage).","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EligibilityCheck"},"examples":{"active_coverage":{"summary":"Active coverage with full benefits","value":{"id":"elg_01JM000000E00800000000000G","object":"eligibility_check","office_id":"off_01JM000000E008000000000003","patient_id":"pat_01JM000000E00800000000004K","payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"state":"completed","outcome":"answered","status":"active","billing":{"charged":false,"state":"not_billable","reason":"test_mode","label":"Not billed: test mode"},"cache":{"state":"fresh","source_id":null},"parent_id":null,"request_id":"req_01JM000000E008000000000010","idempotency_key":"visit-1042-attempt-1","source":{"network":"sandbox","latency_ms":180,"completed_at":"2026-03-10T15:30:00.430000+00:00"},"tenant_reference":"visit-1042","created_at":"2026-03-10T15:30:00.250000+00:00","request":{"subscriber":{"first_name":"Alex","last_name":"Example","date_of_birth":"1985-04-12","member_id":"CH-ACTIVE-FULL","group_number":"GRP-100"},"patient":null,"service_date":"2026-03-10","procedure_codes":["D0120","D1110"],"detail_level":"standard","office_npi":"1900000005"},"coverage_effective_date":"2024-01-01","coverage_termination_date":null,"plan":{"name":"Example Dental Plan PPO","type":"PPO","group_number":"GRP-100","benefit_period":"Calendar year"},"network_status":"unknown","maximums":[{"level":"individual","period":"calendar_year","amount":"2000.00","used":"0.00","remaining":"2000.00","applies_to":null,"network":"any","categories":[]},{"level":"individual","period":"lifetime","amount":"3000.00","used":"0.00","remaining":"3000.00","applies_to":"Orthodontics","network":"any","categories":["orthodontics"]}],"deductibles":[{"level":"individual","period":"calendar_year","amount":"50.00","used":"0.00","remaining":"50.00","applies_to":null,"network":"any","categories":[]},{"level":"family","period":"calendar_year","amount":"150.00","used":"0.00","remaining":"150.00","applies_to":null,"network":"any","categories":[]}],"coverage":[{"category":"preventive","percent_paid":100,"out_of_network_percent_paid":80,"covered":true,"frequency":null,"notes":null,"messages":["Exams and cleanings 2 per calendar year; bitewings 1 per year"]},{"category":"diagnostic","percent_paid":100,"out_of_network_percent_paid":80,"covered":true,"frequency":null,"notes":null,"messages":[]},{"category":"basic","percent_paid":80,"out_of_network_percent_paid":60,"covered":true,"frequency":null,"notes":null,"messages":[]},{"category":"endodontics","percent_paid":80,"out_of_network_percent_paid":60,"covered":true,"frequency":null,"notes":null,"messages":[]},{"category":"periodontics","percent_paid":80,"out_of_network_percent_paid":60,"covered":true,"frequency":null,"notes":null,"messages":[]},{"category":"oral_surgery","percent_paid":80,"out_of_network_percent_paid":60,"covered":true,"frequency":null,"notes":null,"messages":[]},{"category":"major","percent_paid":50,"out_of_network_percent_paid":40,"covered":true,"frequency":null,"notes":null,"messages":["Every 5 years; paid on seat date"]},{"category":"prosthodontics","percent_paid":50,"out_of_network_percent_paid":40,"covered":true,"frequency":null,"notes":null,"messages":[]},{"category":"implants","percent_paid":null,"out_of_network_percent_paid":null,"covered":null,"frequency":null,"notes":null,"messages":[]},{"category":"orthodontics","percent_paid":50,"out_of_network_percent_paid":40,"covered":true,"frequency":null,"notes":null,"messages":["To age 26; $3,000 lifetime maximum"]}],"procedures":[{"code":"D0120","description":"Routine check-up exam","percent_paid":100,"out_of_network_percent_paid":80,"covered":true,"frequency":{"count":2,"period":"calendar_year","scope":null,"used":1,"remaining":1},"max_age":null,"min_age":null,"last_service_date":"2025-09-10","next_eligible_date":null,"status":"covered_now","note":null,"messages":[]},{"code":"D1110","description":"Adult cleaning","percent_paid":100,"out_of_network_percent_paid":80,"covered":true,"frequency":{"count":2,"period":"calendar_year","scope":null,"used":1,"remaining":1},"max_age":null,"min_age":null,"last_service_date":"2025-09-10","next_eligible_date":null,"status":"covered_now","note":null,"messages":["Shares 4 visits a year with D4910"]}],"plan_rules":{"missing_tooth_clause":"Missing tooth clause - No","waiting_period":"Waiting period - None","pre_authorization":"Pre-authorization - Suggested over $300","coordination_of_benefits":"Coordination of benefits - Standard, birthday rule","major_services_paid_on":"seat_date"},"payer_notes":["Posterior composites are paid as amalgam on molars.","Porcelain is downgraded on molars, not on bicuspids.","Multi-visit procedures are paid on the seat date.","D1110 and D4910 share 4 visits per calendar year.","D0210 and D0330 share one limit every 60 months.","Waiting period - None","Missing tooth clause - No","Pre-authorization - Suggested over $300","Coordination of benefits - Standard, birthday rule"],"not_returned":["network_status","coverage_termination_date","coverage.implants"],"rejection":null}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.\n\n`PAYER_REJECTED`: The payer rejected the check. The check object says what to change, and whether resending can help.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorReply"},{"$ref":"#/components/schemas/CheckErrorReply"}]},"examples":{"member_not_found":{"summary":"A rejection with something to fix","value":{"error":"PAYER_REJECTED","message":"The payer rejected the check. The check object says what to change, and whether resending can help.","errors":[],"request_id":"req_01JM000000E008000000000010","check":{"id":"elg_01JM000000E00800000000000G","object":"eligibility_check","office_id":"off_01JM000000E008000000000003","patient_id":"pat_01JM000000E00800000000004K","payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"state":"completed","outcome":"rejected","status":null,"billing":{"charged":false,"state":"not_billable","reason":"test_mode","label":"Not billed: test mode"},"cache":{"state":"fresh","source_id":null},"parent_id":null,"request_id":"req_01JM000000E008000000000010","idempotency_key":"visit-1042-attempt-1","source":{"network":"sandbox","latency_ms":180,"completed_at":"2026-03-10T15:30:00.430000+00:00"},"tenant_reference":"visit-1042","created_at":"2026-03-10T15:30:00.250000+00:00","request":{"subscriber":{"first_name":"Alex","last_name":"Example","date_of_birth":"1985-04-12","member_id":"CH-NOT-FOUND","group_number":"GRP-100"},"patient":null,"service_date":"2026-03-10","procedure_codes":["D0120","D1110"],"detail_level":"standard","office_npi":"1900000005"},"coverage_effective_date":null,"coverage_termination_date":null,"plan":null,"network_status":null,"maximums":null,"deductibles":null,"coverage":null,"procedures":null,"plan_rules":null,"payer_notes":null,"not_returned":null,"rejection":{"kind":"fix_and_resend","payer_code":"75","reasons":[{"code":"MEMBER_NOT_FOUND","about":"subscriber","field":"subscriber.member_id","message":"Example Dental Plan could not find this subscriber.","fix":"Check the member ID, name and date of birth against the insurance card, then send the check again."}]}}}},"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorReply"},{"$ref":"#/components/schemas/CheckErrorReply"}]},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"502":{"description":"`PAYER_UNAVAILABLE`: The payer's system is not answering right now. Nothing needs to change: send the check again later.\n\n`NETWORK_ERROR`: The check could not be completed because the payer network failed. It is not billed. Send it again later.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorReply"},{"$ref":"#/components/schemas/CheckErrorReply"}]},"examples":{"payer_down":{"summary":"A payer that is not answering","value":{"error":"PAYER_UNAVAILABLE","message":"The payer's system is not answering right now. Nothing needs to change: send the check again later.","errors":[],"request_id":"req_01JM000000E008000000000010","check":{"id":"elg_01JM000000E00800000000000G","object":"eligibility_check","office_id":"off_01JM000000E008000000000003","patient_id":"pat_01JM000000E00800000000004K","payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"state":"completed","outcome":"payer_unavailable","status":null,"billing":{"charged":false,"state":"not_billable","reason":"test_mode","label":"Not billed: test mode"},"cache":{"state":"fresh","source_id":null},"parent_id":null,"request_id":"req_01JM000000E008000000000010","idempotency_key":"visit-1042-attempt-1","source":{"network":"sandbox","latency_ms":180,"completed_at":"2026-03-10T15:30:00.430000+00:00"},"tenant_reference":"visit-1042","created_at":"2026-03-10T15:30:00.250000+00:00","request":{"subscriber":{"first_name":"Alex","last_name":"Example","date_of_birth":"1985-04-12","member_id":"CH-PAYER-DOWN","group_number":"GRP-100"},"patient":null,"service_date":"2026-03-10","procedure_codes":["D0120","D1110"],"detail_level":"standard","office_npi":"1900000005"},"coverage_effective_date":null,"coverage_termination_date":null,"plan":null,"network_status":null,"maximums":null,"deductibles":null,"coverage":null,"procedures":null,"plan_rules":null,"payer_notes":null,"not_returned":null,"rejection":{"kind":"payer_unavailable","payer_code":"42","reasons":[{"code":"PAYER_NOT_ANSWERING","about":"payer","field":null,"message":"Example Dental Plan is not answering right now.","fix":"Nothing needs to change. Try again in a few minutes."}]}}}},"NETWORK_ERROR":{"summary":"NETWORK_ERROR","value":{"error":"NETWORK_ERROR","message":"The check could not be completed because the payer network failed. It is not billed. Send it again later.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"503":{"description":"`ELIGIBILITY_UNAVAILABLE`: Eligibility checks are not available in live mode yet. Use a test key.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"ELIGIBILITY_UNAVAILABLE":{"summary":"ELIGIBILITY_UNAVAILABLE","value":{"error":"ELIGIBILITY_UNAVAILABLE","message":"Eligibility checks are not available in live mode yet. Use a test key.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/eligibility/{id}":{"get":{"operationId":"getEligibilityCheck","summary":"Get an eligibility check","description":"One check of the key's organization and mode, with the request it was made from and the answer or rejection.","tags":["Eligibility"],"x-permission":"read","parameters":[{"name":"id","in":"path","required":true,"description":"An eligibility check ID (elg_...).","schema":{"type":"string"},"example":"elg_01JM000000E00800000000000G"}],"responses":{"200":{"description":"The check.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EligibilityCheck"},"examples":{"by_id":{"summary":"A check by its ID","value":{"id":"elg_01JM000000E00800000000000G","object":"eligibility_check","office_id":"off_01JM000000E008000000000003","patient_id":"pat_01JM000000E00800000000004K","payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"state":"completed","outcome":"answered","status":"active","billing":{"charged":false,"state":"not_billable","reason":"test_mode","label":"Not billed: test mode"},"cache":{"state":"fresh","source_id":null},"parent_id":null,"request_id":"req_01JM000000E008000000000010","idempotency_key":"visit-1042-attempt-1","source":{"network":"sandbox","latency_ms":180,"completed_at":"2026-03-10T15:30:00.430000+00:00"},"tenant_reference":"visit-1042","created_at":"2026-03-10T15:30:00.250000+00:00","request":{"subscriber":{"first_name":"Alex","last_name":"Example","date_of_birth":"1985-04-12","member_id":"CH-ACTIVE-FULL","group_number":"GRP-100"},"patient":null,"service_date":"2026-03-10","procedure_codes":["D0120","D1110"],"detail_level":"standard","office_npi":"1900000005"},"coverage_effective_date":"2024-01-01","coverage_termination_date":null,"plan":{"name":"Example Dental Plan PPO","type":"PPO","group_number":"GRP-100","benefit_period":"Calendar year"},"network_status":"unknown","maximums":[{"level":"individual","period":"calendar_year","amount":"2000.00","used":"0.00","remaining":"2000.00","applies_to":null,"network":"any","categories":[]},{"level":"individual","period":"lifetime","amount":"3000.00","used":"0.00","remaining":"3000.00","applies_to":"Orthodontics","network":"any","categories":["orthodontics"]}],"deductibles":[{"level":"individual","period":"calendar_year","amount":"50.00","used":"0.00","remaining":"50.00","applies_to":null,"network":"any","categories":[]},{"level":"family","period":"calendar_year","amount":"150.00","used":"0.00","remaining":"150.00","applies_to":null,"network":"any","categories":[]}],"coverage":[{"category":"preventive","percent_paid":100,"out_of_network_percent_paid":80,"covered":true,"frequency":null,"notes":null,"messages":["Exams and cleanings 2 per calendar year; bitewings 1 per year"]},{"category":"diagnostic","percent_paid":100,"out_of_network_percent_paid":80,"covered":true,"frequency":null,"notes":null,"messages":[]},{"category":"basic","percent_paid":80,"out_of_network_percent_paid":60,"covered":true,"frequency":null,"notes":null,"messages":[]},{"category":"endodontics","percent_paid":80,"out_of_network_percent_paid":60,"covered":true,"frequency":null,"notes":null,"messages":[]},{"category":"periodontics","percent_paid":80,"out_of_network_percent_paid":60,"covered":true,"frequency":null,"notes":null,"messages":[]},{"category":"oral_surgery","percent_paid":80,"out_of_network_percent_paid":60,"covered":true,"frequency":null,"notes":null,"messages":[]},{"category":"major","percent_paid":50,"out_of_network_percent_paid":40,"covered":true,"frequency":null,"notes":null,"messages":["Every 5 years; paid on seat date"]},{"category":"prosthodontics","percent_paid":50,"out_of_network_percent_paid":40,"covered":true,"frequency":null,"notes":null,"messages":[]},{"category":"implants","percent_paid":null,"out_of_network_percent_paid":null,"covered":null,"frequency":null,"notes":null,"messages":[]},{"category":"orthodontics","percent_paid":50,"out_of_network_percent_paid":40,"covered":true,"frequency":null,"notes":null,"messages":["To age 26; $3,000 lifetime maximum"]}],"procedures":[{"code":"D0120","description":"Routine check-up exam","percent_paid":100,"out_of_network_percent_paid":80,"covered":true,"frequency":{"count":2,"period":"calendar_year","scope":null,"used":1,"remaining":1},"max_age":null,"min_age":null,"last_service_date":"2025-09-10","next_eligible_date":null,"status":"covered_now","note":null,"messages":[]},{"code":"D1110","description":"Adult cleaning","percent_paid":100,"out_of_network_percent_paid":80,"covered":true,"frequency":{"count":2,"period":"calendar_year","scope":null,"used":1,"remaining":1},"max_age":null,"min_age":null,"last_service_date":"2025-09-10","next_eligible_date":null,"status":"covered_now","note":null,"messages":["Shares 4 visits a year with D4910"]}],"plan_rules":{"missing_tooth_clause":"Missing tooth clause - No","waiting_period":"Waiting period - None","pre_authorization":"Pre-authorization - Suggested over $300","coordination_of_benefits":"Coordination of benefits - Standard, birthday rule","major_services_paid_on":"seat_date"},"payer_notes":["Posterior composites are paid as amalgam on molars.","Porcelain is downgraded on molars, not on bicuspids.","Multi-visit procedures are paid on the seat date.","D1110 and D4910 share 4 visits per calendar year.","D0210 and D0330 share one limit every 60 months.","Waiting period - None","Missing tooth clause - No","Pre-authorization - Suggested over $300","Coordination of benefits - Standard, birthday rule"],"not_returned":["network_status","coverage_termination_date","coverage.implants"],"rejection":null}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/eligibility/{id}/x12":{"get":{"operationId":"getEligibilityCheckX12","summary":"Get the 270 and 271 of an eligibility check","description":"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.","tags":["Eligibility"],"x-permission":"read","parameters":[{"name":"id","in":"path","required":true,"description":"An eligibility check ID (elg_...).","schema":{"type":"string"},"example":"elg_01JM000000E00800000000000G"}],"responses":{"200":{"description":"The 270 and the 271 of the check.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"eligibility_x12"},"check_id":{"type":"string","pattern":"^elg_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with elg_."},"request":{"description":"The 270 request Claim House sent to the payer network, one segment per line. Null when the check has no exchange.","type":["string","null"]},"response":{"description":"The 271 response the payer network returned, one segment per line. Null when no answer came back or the check has no exchange.","type":["string","null"]},"reused_from":{"anyOf":[{"type":"string","pattern":"^elg_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with elg_."},{"type":"null"}],"description":"The check whose answer this one reused (elg_...), whose exchange it is; null when the answer was made now."}},"required":["object","check_id","request","response","reused_from"]},"examples":{"sent":{"summary":"The exchange of a check made in test mode (the receiver is the sandbox network)","value":{"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}},"reused":{"summary":"A check that reused a saved answer","value":{"object":"eligibility_x12","check_id":"elg_01JM000000E00800000000000G","request":null,"response":null,"reused_from":"elg_01JM000000E008000000000032"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/eligibility/batches":{"get":{"operationId":"listEligibilityBatches","summary":"List eligibility batches","description":"The batches of the key's organization in the key's mode, newest first, as summaries (with counts, without the items; read one batch for those).","tags":["Eligibility"],"x-permission":"read","parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"name":"idempotency_key","in":"query","required":false,"description":"Only the batch started with this Idempotency-Key (what a request that timed out started).","schema":{"type":"string"}}],"responses":{"200":{"description":"A page of batch summaries.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^elb_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with elb_."},"object":{"type":"string","const":"eligibility_batch"},"state":{"type":"string","enum":["running","completed","cancelled"],"description":"running: checks are still to run. completed: every check ran. cancelled: stopped; the checks not yet run were skipped."},"source":{"type":"string","enum":["patients","api"],"description":"patients: started from the Patients list in the dashboard. api: started with POST /eligibility/batches."},"description":{"description":"The name given to the batch, when there was one.","type":["string","null"]},"counts":{"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"completed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Checks that were made and answered."},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Checks that were rejected, could not be made, or ended in an error."},"skipped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Checks that were not made (the batch was cancelled)."},"queued":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Checks still to run, including the one running."}},"required":["total","completed","failed","skipped","queued"]},"service_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"procedure_codes":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made the batch; null for one made in the dashboard."},"idempotency_key":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["id","object","state","source","description","counts","service_date","procedure_codes","request_id","idempotency_key","created_at","completed_at"]}},"next_cursor":{"description":"Pass as cursor to get the next page; null when there is no next page.","type":["string","null"]}},"required":["data","next_cursor"]},"examples":{"recent_batches":{"summary":"The latest batches","value":{"data":[{"id":"elb_01JM000000E00800000000003G","object":"eligibility_batch","state":"completed","source":"api","description":"Tomorrow's schedule","counts":{"total":2,"completed":1,"failed":1,"skipped":0,"queued":0},"service_date":null,"procedure_codes":null,"request_id":"req_01JM000000E00800000000003H","idempotency_key":"schedule-2026-03-10","created_at":"2026-03-10T15:29:59.900000+00:00","completed_at":"2026-03-10T15:30:00.700000+00:00"}],"next_cursor":null}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}},"post":{"operationId":"createEligibilityBatch","summary":"Check eligibility in a batch","description":"Runs up to 200 eligibility checks together: each item of checks is a check request exactly as POST /eligibility takes it, and becomes an ordinary check (billed and reported as any other) once the batch runs. The shape of every item is checked when you post: a request with a malformed item is refused as a whole, naming the item. A check's own rules (the service date range, the office and the payer) are applied when the item runs, so an item that breaks one is listed as failed with the code validation and the others still run. The reply is the batch, running (202); read it by its ID for progress and for each item's check. Needs an Idempotency-Key header and a key with the submit permission. A live key without a network is refused as a single check is.","tags":["Eligibility"],"x-permission":"submit","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"description":{"description":"A name for the batch, up to 120 characters.","type":["string","null"]},"checks":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"office_id":{"description":"The office the check is for (off_...), from GET /offices. Its mode must match the key. Optional when your organization has exactly one office in the key's mode, test or live: that office is used.","type":"string"},"payer_id":{"type":"string","description":"The payer: a Claim House payer ID (pyr_...), a payer ID or an alias from the payer directory."},"subscriber":{"type":"object","properties":{"first_name":{"type":"string","maxLength":120,"description":"The subscriber's first name."},"last_name":{"type":"string","maxLength":120,"description":"The subscriber's last name."},"date_of_birth":{"type":"string","format":"date","description":"YYYY-MM-DD."},"member_id":{"type":"string","maxLength":80,"description":"The subscriber's member ID. In test mode it chooses the sandbox scenario."},"group_number":{"description":"The plan group number.","anyOf":[{"type":"string","maxLength":80},{"type":"null"}]}},"additionalProperties":false,"description":"The plan holder.","required":["first_name","last_name","date_of_birth","member_id"]},"patient":{"description":"The patient, when a dependent is being checked. Leave it out when the subscriber is the person being checked.","anyOf":[{"type":"object","properties":{"first_name":{"type":"string","maxLength":120,"description":"The patient's first name."},"last_name":{"type":"string","maxLength":120,"description":"The patient's last name."},"date_of_birth":{"type":"string","format":"date","description":"YYYY-MM-DD."},"relationship":{"type":"string","enum":["spouse","child","other"],"description":"How the patient relates to the subscriber: spouse, child, other."}},"additionalProperties":false,"required":["first_name","last_name","date_of_birth","relationship"]},{"type":"null"}]},"service_date":{"description":"YYYY-MM-DD, within 12 months of today. Default: today, in the office's time zone.","anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"procedure_codes":{"description":"Up to 10 CDT codes (D followed by 4 digits) to get coverage detail for.","anyOf":[{"type":"array","items":{"type":"string","pattern":"^D\\d{4}$"},"maxItems":10},{"type":"null"}]},"detail_level":{"description":"One of standard, enhanced. Default: standard.","anyOf":[{"type":"string","enum":["standard","enhanced"]},{"type":"null"}]},"tenant_reference":{"description":"Your own reference for the check, returned with it. Up to 255 characters.","anyOf":[{"type":"string","maxLength":255},{"type":"null"}]},"parent_id":{"description":"The rejected check this one corrects (elg_...), when resending it with the fixes.","type":["string","null"]}},"required":["payer_id","subscriber"],"additionalProperties":false},"description":"1 to 200 check requests, each as POST /eligibility takes it."}},"required":["checks"],"additionalProperties":false},"examples":{"two_patients":{"summary":"Two checks in one batch","value":{"description":"Tomorrow's schedule","checks":[{"office_id":"off_01JM000000E008000000000003","payer_id":"pyr_01JM000000E008000000000004","subscriber":{"first_name":"Alex","last_name":"Example","date_of_birth":"1985-04-12","member_id":"CH-ACTIVE-FULL","group_number":"GRP-100"},"service_date":"2026-03-10","procedure_codes":["D0120","D1110"],"tenant_reference":"visit-1042"},{"office_id":"off_01JM000000E008000000000003","payer_id":"pyr_01JM000000E008000000000004","subscriber":{"first_name":"Alex","last_name":"Example","date_of_birth":"1985-04-12","member_id":"CH-NOT-FOUND","group_number":"GRP-100"},"service_date":"2026-03-10","procedure_codes":["D0120","D1110"],"tenant_reference":"visit-1042"}]}}}}}},"responses":{"202":{"description":"The batch, running.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^elb_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with elb_."},"object":{"type":"string","const":"eligibility_batch"},"state":{"type":"string","enum":["running","completed","cancelled"],"description":"running: checks are still to run. completed: every check ran. cancelled: stopped; the checks not yet run were skipped."},"source":{"type":"string","enum":["patients","api"],"description":"patients: started from the Patients list in the dashboard. api: started with POST /eligibility/batches."},"description":{"description":"The name given to the batch, when there was one.","type":["string","null"]},"counts":{"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"completed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Checks that were made and answered."},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Checks that were rejected, could not be made, or ended in an error."},"skipped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Checks that were not made (the batch was cancelled)."},"queued":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Checks still to run, including the one running."}},"required":["total","completed","failed","skipped","queued"]},"service_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"procedure_codes":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made the batch; null for one made in the dashboard."},"idempotency_key":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"items":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The place of the check in the batch, from 1."},"state":{"type":"string","enum":["queued","running","completed","failed","skipped"]},"check_id":{"anyOf":[{"type":"string","pattern":"^elg_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with elg_."},{"type":"null"}],"description":"The eligibility check this item made; read it with GET /eligibility/{id}."},"patient_id":{"anyOf":[{"type":"string","pattern":"^pat_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with pat_."},{"type":"null"}]},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","enum":["rejected","payer_unavailable","error","unavailable","validation","forbidden","cancelled"]},"message":{"type":["string","null"]}},"required":["code","message"]},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["position","state","check_id","patient_id","failure","started_at","finished_at"]}}},"required":["id","object","state","source","description","counts","service_date","procedure_codes","request_id","idempotency_key","created_at","completed_at","items"]},"examples":{"two_patients":{"summary":"Two checks in one batch","value":{"id":"elb_01JM000000E00800000000003G","object":"eligibility_batch","state":"running","source":"api","description":"Tomorrow's schedule","counts":{"total":2,"completed":0,"failed":0,"skipped":0,"queued":2},"service_date":null,"procedure_codes":null,"request_id":"req_01JM000000E00800000000003H","idempotency_key":"schedule-2026-03-10","created_at":"2026-03-10T15:29:59.900000+00:00","completed_at":null,"items":[{"position":1,"state":"queued","check_id":null,"patient_id":null,"failure":null,"started_at":null,"finished_at":null},{"position":2,"state":"queued","check_id":null,"patient_id":null,"failure":null,"started_at":null,"finished_at":null}]}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ErrorReply"},{"$ref":"#/components/schemas/CheckErrorReply"}]},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"503":{"description":"`ELIGIBILITY_UNAVAILABLE`: Eligibility checks are not available in live mode yet. Use a test key.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"ELIGIBILITY_UNAVAILABLE":{"summary":"ELIGIBILITY_UNAVAILABLE","value":{"error":"ELIGIBILITY_UNAVAILABLE","message":"Eligibility checks are not available in live mode yet. Use a test key.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/eligibility/batches/{id}":{"get":{"operationId":"getEligibilityBatch","summary":"Get an eligibility batch","description":"One batch of the key's organization and mode: its state and counts, and each item in order with the check it made (read it with GET /eligibility/{id}) or why it failed or was skipped.","tags":["Eligibility"],"x-permission":"read","parameters":[{"name":"id","in":"path","required":true,"description":"An eligibility batch ID (elb_...).","schema":{"type":"string"},"example":"elb_01JM000000E00800000000003G"}],"responses":{"200":{"description":"The batch with its items.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^elb_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with elb_."},"object":{"type":"string","const":"eligibility_batch"},"state":{"type":"string","enum":["running","completed","cancelled"],"description":"running: checks are still to run. completed: every check ran. cancelled: stopped; the checks not yet run were skipped."},"source":{"type":"string","enum":["patients","api"],"description":"patients: started from the Patients list in the dashboard. api: started with POST /eligibility/batches."},"description":{"description":"The name given to the batch, when there was one.","type":["string","null"]},"counts":{"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"completed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Checks that were made and answered."},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Checks that were rejected, could not be made, or ended in an error."},"skipped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Checks that were not made (the batch was cancelled)."},"queued":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Checks still to run, including the one running."}},"required":["total","completed","failed","skipped","queued"]},"service_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"procedure_codes":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made the batch; null for one made in the dashboard."},"idempotency_key":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"items":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The place of the check in the batch, from 1."},"state":{"type":"string","enum":["queued","running","completed","failed","skipped"]},"check_id":{"anyOf":[{"type":"string","pattern":"^elg_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with elg_."},{"type":"null"}],"description":"The eligibility check this item made; read it with GET /eligibility/{id}."},"patient_id":{"anyOf":[{"type":"string","pattern":"^pat_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with pat_."},{"type":"null"}]},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","enum":["rejected","payer_unavailable","error","unavailable","validation","forbidden","cancelled"]},"message":{"type":["string","null"]}},"required":["code","message"]},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["position","state","check_id","patient_id","failure","started_at","finished_at"]}}},"required":["id","object","state","source","description","counts","service_date","procedure_codes","request_id","idempotency_key","created_at","completed_at","items"]},"examples":{"completed":{"summary":"A finished batch: one answered, one rejected","value":{"id":"elb_01JM000000E00800000000003G","object":"eligibility_batch","state":"completed","source":"api","description":"Tomorrow's schedule","counts":{"total":2,"completed":1,"failed":1,"skipped":0,"queued":0},"service_date":null,"procedure_codes":null,"request_id":"req_01JM000000E00800000000003H","idempotency_key":"schedule-2026-03-10","created_at":"2026-03-10T15:29:59.900000+00:00","completed_at":"2026-03-10T15:30:00.700000+00:00","items":[{"position":1,"state":"completed","check_id":"elg_01JM000000E00800000000000G","patient_id":"pat_01JM000000E00800000000004K","failure":null,"started_at":"2026-03-10T15:30:00.100000+00:00","finished_at":"2026-03-10T15:30:00.430000+00:00"},{"position":2,"state":"failed","check_id":null,"patient_id":null,"failure":{"code":"rejected","message":null},"started_at":"2026-03-10T15:30:00.440000+00:00","finished_at":"2026-03-10T15:30:00.700000+00:00"}]}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/eligibility/batches/{id}/cancel":{"post":{"operationId":"cancelEligibilityBatch","summary":"Cancel an eligibility batch","description":"Stops a running batch: the checks not yet run are skipped, a check already running finishes and is recorded. A batch that is not running cannot be cancelled (409). Send an empty JSON object as the body. Needs an Idempotency-Key header and a key with the submit permission.","tags":["Eligibility"],"x-permission":"submit","parameters":[{"name":"id","in":"path","required":true,"description":"An eligibility batch ID (elb_...).","schema":{"type":"string"},"example":"elb_01JM000000E00800000000003G"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false},"examples":{"cancel":{"summary":"Cancel a running batch","value":{}},"not_running":{"summary":"A batch that already finished","value":{}}}}}},"responses":{"200":{"description":"The batch as it is now.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^elb_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with elb_."},"object":{"type":"string","const":"eligibility_batch"},"state":{"type":"string","enum":["running","completed","cancelled"],"description":"running: checks are still to run. completed: every check ran. cancelled: stopped; the checks not yet run were skipped."},"source":{"type":"string","enum":["patients","api"],"description":"patients: started from the Patients list in the dashboard. api: started with POST /eligibility/batches."},"description":{"description":"The name given to the batch, when there was one.","type":["string","null"]},"counts":{"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"completed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Checks that were made and answered."},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Checks that were rejected, could not be made, or ended in an error."},"skipped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Checks that were not made (the batch was cancelled)."},"queued":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Checks still to run, including the one running."}},"required":["total","completed","failed","skipped","queued"]},"service_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"procedure_codes":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made the batch; null for one made in the dashboard."},"idempotency_key":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"items":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The place of the check in the batch, from 1."},"state":{"type":"string","enum":["queued","running","completed","failed","skipped"]},"check_id":{"anyOf":[{"type":"string","pattern":"^elg_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with elg_."},{"type":"null"}],"description":"The eligibility check this item made; read it with GET /eligibility/{id}."},"patient_id":{"anyOf":[{"type":"string","pattern":"^pat_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with pat_."},{"type":"null"}]},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","enum":["rejected","payer_unavailable","error","unavailable","validation","forbidden","cancelled"]},"message":{"type":["string","null"]}},"required":["code","message"]},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["position","state","check_id","patient_id","failure","started_at","finished_at"]}}},"required":["id","object","state","source","description","counts","service_date","procedure_codes","request_id","idempotency_key","created_at","completed_at","items"]},"examples":{"cancel":{"summary":"Cancel a running batch","value":{"id":"elb_01JM000000E00800000000003G","object":"eligibility_batch","state":"cancelled","source":"api","description":"Tomorrow's schedule","counts":{"total":2,"completed":0,"failed":0,"skipped":2,"queued":0},"service_date":null,"procedure_codes":null,"request_id":"req_01JM000000E00800000000003H","idempotency_key":"schedule-2026-03-10","created_at":"2026-03-10T15:29:59.900000+00:00","completed_at":"2026-03-10T15:30:00.700000+00:00","items":[{"position":1,"state":"skipped","check_id":null,"patient_id":null,"failure":{"code":"cancelled","message":null},"started_at":null,"finished_at":null},{"position":2,"state":"skipped","check_id":null,"patient_id":null,"failure":{"code":"cancelled","message":null},"started_at":null,"finished_at":null}]}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.\n\n`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.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"not_running":{"summary":"A batch that already finished","value":{"error":"CONFLICT","message":"This batch is not running.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/claims":{"get":{"operationId":"listClaims","summary":"List claims","description":"The claims of the key's organization in the key's mode, newest first, as summaries (read one claim for its lines, findings and network references). A list holds one kind: claims, unless kind=predetermination asks for the predeterminations. Filter by state, office, payer, claim filing indicator (insurance_type), sequence (primary, secondary or tertiary), creation time, the request that made a claim, or its patient control number. Needs a key with read, which sees every claim of its scope (a key with submit only gets a claim in the answers to its own writes).","tags":["Claims"],"x-permission":"read","parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"name":"kind","in":"query","required":false,"description":"claim (the default) or predetermination: a list holds one kind, so without kind it lists claims only (except a look-up by request_id, idempotency_key or patient_control_number, which finds either kind).","schema":{"type":"string","enum":["claim","predetermination"]}},{"name":"state","in":"query","required":false,"description":"Only claims in this state.","schema":{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},"example":"queued"},{"name":"office_id","in":"query","required":false,"description":"Only claims billed by this office (off_...).","schema":{"pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}},{"name":"practice_group_id","in":"query","required":false,"description":"Only claims billed by the offices of this practice group (pgr_...). Not with office_id. Needs practice groups enabled for the organization: otherwise 403 FEATURE_NOT_ENABLED.","schema":{"pattern":"^pgr_[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}},{"name":"payer_id","in":"query","required":false,"description":"Only claims to this payer (pyr_...).","schema":{"pattern":"^pyr_[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}},{"name":"created_after","in":"query","required":false,"description":"Only claims created after this instant (ISO 8601 with an offset, such as 2026-10-01T00:00:00Z).","schema":{"format":"date-time","type":"string"}},{"name":"created_before","in":"query","required":false,"description":"Only claims created before this instant (ISO 8601 with an offset, such as 2026-10-01T00:00:00Z).","schema":{"format":"date-time","type":"string"}},{"name":"insurance_type","in":"query","required":false,"description":"Only claims with this claim filing indicator (such as medicaid).","schema":{"type":"string","enum":["commercial","medicaid","medicare_b","champus","dental_maintenance","ppo","pos","epo","indemnity","hmo","self_pay","other"]}},{"name":"sequence","in":"query","required":false,"description":"Only claims in this place among the payers: primary, secondary or tertiary.","schema":{"type":"string","enum":["primary","secondary","tertiary"]}},{"name":"sent_from","in":"query","required":false,"description":"Only claims first sent to the payer at or after this instant (when the file carrying them was handed to the network; never a void transaction): the claims a report counts as billed in a period (ISO 8601 with an offset, such as 2026-10-01T00:00:00Z).","schema":{"format":"date-time","type":"string"}},{"name":"sent_to","in":"query","required":false,"description":"Only claims first sent before this instant (ISO 8601 with an offset, such as 2026-10-01T00:00:00Z).","schema":{"format":"date-time","type":"string"}},{"name":"request_id","in":"query","required":false,"description":"Only the claim made by this API request (the x-request-id of its response, req_...).","schema":{"pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}},{"name":"idempotency_key","in":"query","required":false,"description":"Only the claim made with this Idempotency-Key (what a request that timed out made, a void or a conversion included).","schema":{"type":"string"}},{"name":"patient_control_number","in":"query","required":false,"description":"Only the claim with this patient control number, in any case.","schema":{"type":"string"}}],"responses":{"200":{"description":"A page of claim summaries.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ClaimSummary"}},"next_cursor":{"description":"Pass as cursor to get the next page; null when there is no next page.","type":["string","null"]}},"required":["data","next_cursor"]},"examples":{"queued":{"summary":"The queued claims","value":{"data":[{"id":"clm_01JM000000E00800000000002G","object":"claim","kind":"claim","state":"queued","next_step":"This claim is queued and goes out in the next batch.","frequency":"original","parent_id":null,"patient_control_number":"CH4Q7M2K9TRB","office":{"id":"off_01JM000000E008000000000003","name":"Example Family Dental"},"payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"rendering_provider":{"id":"prv_01JM000000E008000000000005","first_name":"Riley","last_name":"Example","npi":"1999990017"},"patient_name":{"first_name":"Alex","last_name":"Example"},"service_dates":{"first":"2026-09-24","last":"2026-09-24"},"totals":{"charge":"1140.00","lines":1},"payment":null,"estimate":null,"converted_from":null,"converted_to":null,"source_claim_id":null,"patient_id":"pat_01JM000000E00800000000004K","insurance_type":"commercial","sequence":"primary","encounter":false,"request_id":"req_01JM000000E00800000000002J","created_at":"2026-09-24T21:00:00.120000+00:00","updated_at":"2026-09-24T21:00:00.310000+00:00"}],"next_cursor":null}},"predeterminations":{"summary":"The predeterminations whose estimate came back","value":{"data":[{"id":"clm_01JM000000E00800000000004G","object":"claim","kind":"predetermination","state":"returned","next_step":"The payer returned its estimate (what it would pay, not a payment). Once the treatment is done, convert it into a claim and add the service dates.","frequency":"original","parent_id":null,"patient_control_number":"CH7PD3K8M2QA","office":{"id":"off_01JM000000E008000000000003","name":"Example Family Dental"},"payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"rendering_provider":{"id":"prv_01JM000000E008000000000005","first_name":"Riley","last_name":"Example","npi":"1999990017"},"patient_name":{"first_name":"Alex","last_name":"Example"},"service_dates":{"first":null,"last":null},"totals":{"charge":"1140.00","lines":1},"payment":null,"estimate":{"era_id":"era_01JM000000E00800000000003G","allowed":"1026.00","pay":"820.80","patient":"205.20","returned_at":"2026-09-24T21:03:30.000000+00:00","lines":[{"line_number":1,"allowed":"1026.00","pay":"820.80","patient":"205.20"}]},"converted_from":null,"converted_to":null,"source_claim_id":null,"patient_id":"pat_01JM000000E00800000000004K","insurance_type":"commercial","sequence":"primary","encounter":false,"request_id":"req_01JM000000E00800000000002J","created_at":"2026-09-24T21:00:00.120000+00:00","updated_at":"2026-09-24T21:00:00.310000+00:00"}],"next_cursor":null}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.\n\n`FEATURE_NOT_ENABLED`: Practice groups are not enabled for this organization. Ask Claim House to turn them on.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"FEATURE_NOT_ENABLED":{"summary":"FEATURE_NOT_ENABLED","value":{"error":"FEATURE_NOT_ENABLED","message":"Practice groups are not enabled for this organization. Ask Claim House to turn them on.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}},"post":{"operationId":"createClaim","summary":"Create a claim","description":"Makes a dental claim from JSON. With submit true (the default) it is validated at once and, when it has no errors, queued for the next batch; with submit false it is saved as a draft. A claim with errors is still made: it comes back with state needs_attention and its findings (validation.findings), with 201 like any other. A body that is not a claim, or that names an office, provider or payer that does not exist, is refused with 422 and nothing is stored. With kind predetermination it makes a predetermination: the same body with no service dates (a date on a line is a SERVICE_DATE_NOT_ALLOWED error); in test mode the sandbox answers one it accepts with its estimate two minutes after the 277. In test mode the sandbox network answers each file with a 997 after 30 seconds and a 277 after 60; the subscriber's member ID picks a scenario (CH-REJECT-A7, CH-REJECT-A3, CH-997-REJECT, CH-ATTACH-REQUIRED, CH-SOLICITED, CH-PAID-ERA, CH-DENIED, CH-NO-ANSWER). In test mode, a claim with the member ID CH-ATTACH-REQUIRED needs a closed attachment before it can be sent. Needs an Idempotency-Key header and a key with the submit permission.","tags":["Claims"],"x-permission":"submit","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"description":"claim (the default): treatment done. predetermination: sent before treatment to ask what the payer would pay; it has no service dates and comes back with an estimate. Set when the claim is made; it never changes.","type":"string","enum":["claim","predetermination"]},"office_id":{"description":"The office that bills the claim (off_...).","type":"string"},"payer_id":{"description":"The payer (a Claim House payer ID, pyr_..., a payer ID or an alias from the payer directory).","type":"string"},"rendering_provider_id":{"description":"The dentist who did the treatment (prv_...).","type":"string"},"subscriber":{"description":"The person who holds the coverage. Also the patient unless patient is given.","type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"date_of_birth":{"type":["string","null"]},"gender":{"anyOf":[{"type":"string","enum":["F","M","U"]},{"type":"null"}]},"member_id":{"type":"string"},"group_number":{"type":["string","null"]},"address":{"anyOf":[{"type":"object","properties":{"line1":{"type":"string"},"line2":{"type":["string","null"]},"city":{"type":"string"},"state":{"type":"string"},"postal_code":{"type":"string"}},"required":["line1","city","state","postal_code"],"additionalProperties":false},{"type":"null"}]}},"required":["first_name","last_name","member_id"],"additionalProperties":false},"patient":{"description":"The patient, when not the subscriber.","anyOf":[{"type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"date_of_birth":{"type":["string","null"]},"gender":{"anyOf":[{"type":"string","enum":["F","M","U"]},{"type":"null"}]},"relationship":{"type":"string","enum":["spouse","child","other"]},"address":{"anyOf":[{"type":"object","properties":{"line1":{"type":"string"},"line2":{"type":["string","null"]},"city":{"type":"string"},"state":{"type":"string"},"postal_code":{"type":"string"}},"required":["line1","city","state","postal_code"],"additionalProperties":false},{"type":"null"}]}},"required":["first_name","last_name","relationship"],"additionalProperties":false},{"type":"null"}]},"place_of_service":{"description":"The place of service code. Default 11 (office).","type":"string"},"lines":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"cdt":{"type":"string"},"description":{"type":["string","null"]},"service_date":{"type":["string","null"]},"fee":{"type":"number"},"quantity":{"type":"integer","minimum":0,"maximum":99999},"tooth":{"description":"The tooth, for a line with one. For several teeth give teeth instead (never both).","type":["string","null"]},"surfaces":{"description":"The surfaces of the tooth. With teeth, give the surfaces of each tooth there.","type":["string","null"]},"area":{"description":"The oral cavity code, for a line with one area. For several give areas instead (never both).","type":["string","null"]},"teeth":{"description":"Several teeth, each with its surfaces (up to 32): one TOO segment each. Not with tooth or surfaces.","maxItems":32,"type":"array","items":{"type":"object","properties":{"tooth":{"type":"string"},"surfaces":{"type":["string","null"]}},"required":["tooth"],"additionalProperties":false}},"areas":{"description":"Several oral cavity codes (up to 5). Not with area.","maxItems":5,"type":"array","items":{"type":"string"}},"prosthesis":{"description":"initial or replacement: whether the crown, bridge or denture is the first or a replacement.","anyOf":[{"type":"string","enum":["initial","replacement"]},{"type":"null"}]},"prior_placement_date":{"description":"When the prosthesis being replaced was first placed: needed for a replacement (a finding when missing).","type":["string","null"]},"diagnosis_pointers":{"description":"Positions, from 1, in the claim's diagnosis_codes (up to 4). A position past the codes is a finding.","maxItems":4,"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},"required":["cdt"],"additionalProperties":false},"description":"The procedures, one line each. At least one for a claim to be sent."},"total":{"description":"The total the claim comes to, in dollars: checked against the lines.","type":["number","null"]},"remarks":{"description":"Notes for the payer: up to 5 notes of 80 characters, split between words (about 370 characters of ordinary text); a remark that does not fit is a TOO_LONG finding.","type":["string","null"]},"metadata":{"description":"Up to 20 pairs of your own, returned with the claim and never sent to the payer.","type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}},"patient_control_number":{"description":"Your identifier for the claim, sent on the claim and returned on its status: unique in your organization. Made for you when omitted.","type":["string","null"]},"attachments":{"description":"The attachments the claim carries (att_...), at most 5: of your organization and mode, for the claim's payer, unsolicited and on no other claim. Each must be closed before the claim is sent (ATTACHMENT_OPEN); the claim file carries a PWK and a note for each.","maxItems":5,"type":"array","items":{"type":"string"}},"foreign_attachments":{"description":"For partners that already hold an attachment number (an attachment sent through their own NEA account, say): the PWK and NTE of each, which the claim file carries unchanged, after the claim's own attachments. At most 10 in all with attachments. Claim House keeps nothing else of such an attachment and does not check it.","maxItems":10,"type":"array","items":{"type":"object","properties":{"pwk":{"minItems":1,"maxItems":9,"type":"array","items":{"type":"string"},"description":"The elements of the PWK segment after its id, in order (1 to 9); an empty string for an element the segment leaves empty."},"nte":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"description":"The text of the NTE segment that followed the PWK, or null when none did."}},"required":["pwk","nte"],"additionalProperties":false}},"coordination":{"description":"Coordination of benefits: this claim's place among the payers (sequence) and the other payers that are responsible before or alongside this one. Absent: a primary claim with no other payer. On a correction it is replaced whole.","type":"object","properties":{"sequence":{"description":"primary (the default), secondary or tertiary: this claim's place among the payers. Written as SBR01 of the claim's subscriber loop.","type":"string","enum":["primary","secondary","tertiary"]},"other_payers":{"description":"The payers responsible before or alongside this one (up to 2): a secondary claim has one primary, a tertiary claim a primary and a secondary.","maxItems":2,"type":"array","items":{"type":"object","properties":{"payer_id":{"description":"The other payer, as a directory reference (a Claim House payer ID, a payer ID or an alias). Or give payer_name and payer_identifier, never both ways.","type":"string"},"payer_name":{"description":"For a payer outside the directory: its name.","type":"string"},"payer_identifier":{"description":"For a payer outside the directory: its payer ID as the claim file carries it (NM109).","type":"string"},"responsibility":{"type":"string","enum":["primary","secondary"],"description":"primary or secondary: this payer's place before the claim's own payer."},"insurance_type":{"description":"The filing indicator of this payer. Default commercial.","type":"string","enum":["commercial","medicaid","medicare_b","champus","dental_maintenance","ppo","pos","epo","indemnity","hmo","self_pay","other"]},"relationship":{"type":"string","enum":["self","spouse","child","other"],"description":"The patient's relationship to this payer's subscriber: self, spouse, child or other."},"subscriber":{"type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"member_id":{"type":"string"},"group_number":{"type":["string","null"]}},"required":["first_name","last_name","member_id"],"additionalProperties":false,"description":"This payer's subscriber."},"paid":{"description":"What this payer paid, in dollars; leave out when it did not adjudicate the claim.","type":["number","null"]},"paid_date":{"description":"When it paid: needed when it paid anything.","type":["string","null"]},"patient_responsibility":{"description":"What this payer says the patient owes, in dollars.","type":["number","null"]},"adjustments":{"description":"Its adjustments, which with paid add up to the claim's charge. With lines: its claim-level adjustments only.","maxItems":30,"type":"array","items":{"type":"object","properties":{"group":{"type":"string","enum":["CO","OA","PI","PR"],"description":"CO contractual, OA other, PI payer initiated, PR patient responsibility."},"reason":{"description":"The claim adjustment reason code (such as 45).","type":"string"},"amount":{"description":"In dollars; negative for a reversal.","type":"number"}},"required":["group","reason"],"additionalProperties":false}},"lines":{"description":"What it paid and adjusted line by line (loop 2430): every line of the claim, once each. Needs paid and paid_date. Each line's paid and adjustments add up to its fee; the lines' paid less the claim-level adjustments is paid. Leave out (or null) for claim-level figures.","anyOf":[{"maxItems":100,"type":"array","items":{"type":"object","properties":{"line":{"type":"integer","minimum":1,"maximum":100,"description":"The claim line, from 1 in the order of lines."},"paid":{"description":"What this payer paid on the line, in dollars.","type":"number"},"adjustments":{"description":"Its adjustments of the line, which with paid add up to the line's fee.","maxItems":30,"type":"array","items":{"type":"object","properties":{"group":{"type":"string","enum":["CO","OA","PI","PR"],"description":"CO contractual, OA other, PI payer initiated, PR patient responsibility."},"reason":{"description":"The claim adjustment reason code (such as 45).","type":"string"},"amount":{"description":"In dollars; negative for a reversal.","type":"number"}},"required":["group","reason"],"additionalProperties":false}}},"required":["line"],"additionalProperties":false}},{"type":"null"}]}},"required":["responsibility","relationship","subscriber"],"additionalProperties":false}}},"additionalProperties":false},"insurance_type":{"description":"The claim filing indicator (SBR09). Default commercial. For a Medicaid claim: medicaid, with the Medicaid ID in subscriber.member_id.","type":"string","enum":["commercial","medicaid","medicare_b","champus","dental_maintenance","ppo","pos","epo","indemnity","hmo","self_pay","other"]},"accident":{"description":"The accident the treatment relates to: cause, date (always needed) and state (needed for auto).","anyOf":[{"type":"object","properties":{"cause":{"type":"string","enum":["auto","employment","other"]},"date":{"description":"When the accident happened. Always needed (a finding when missing).","type":["string","null"]},"state":{"description":"The state the accident happened in: needed for an auto accident.","type":["string","null"]}},"required":["cause"],"additionalProperties":false},{"type":"null"}]},"referral_number":{"description":"The referral number (REF*9F), up to 50 characters.","type":["string","null"]},"prior_authorization":{"description":"The prior authorization number (REF*G1), up to 50 characters.","type":["string","null"]},"diagnosis_codes":{"description":"Up to 4 ICD-10-CM codes; the first is the principal diagnosis. Written without the dot. Lines point at them with diagnosis_pointers. On a correction the list is replaced whole.","maxItems":4,"type":"array","items":{"type":"string"}},"orthodontics":{"description":"Orthodontic treatment: the date the appliance was placed, the months of treatment in all and the months remaining.","anyOf":[{"type":"object","properties":{"appliance_placed_date":{"type":"string"},"total_months":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The months of treatment in all (0 to 99)."},"months_remaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The months of treatment remaining (0 to 99)."}},"required":["appliance_placed_date","total_months","months_remaining"],"additionalProperties":false},{"type":"null"}]},"missing_teeth":{"description":"Teeth that are missing or to be extracted (up to 35). On a correction the list is replaced whole.","maxItems":35,"type":"array","items":{"type":"object","properties":{"tooth":{"type":"string"},"status":{"type":"string","enum":["missing","to_be_extracted"]}},"required":["tooth","status"],"additionalProperties":false}},"service_location":{"description":"Where the treatment happened, when that is not the billing office's address: name, NPI (optional) and address. Not written when it is the billing address.","anyOf":[{"type":"object","properties":{"name":{"type":"string"},"npi":{"type":["string","null"]},"address":{"type":"object","properties":{"line1":{"type":"string"},"line2":{"type":["string","null"]},"city":{"type":"string"},"state":{"type":"string"},"postal_code":{"type":"string"}},"required":["line1","city","state","postal_code"],"additionalProperties":false}},"required":["name","address"],"additionalProperties":false},{"type":"null"}]},"payer_provider_ids":{"description":"The payer's own IDs for the billing office and the rendering provider (REF*G2), such as Medicaid provider IDs, up to 50 characters each. One left out or null: the office's or the provider's payer_provider_ids entry for the claim's payer, taken when the claim is queued (see snapshot). On a correction it is replaced whole.","anyOf":[{"type":"object","properties":{"billing":{"description":"The payer's own ID for the billing office (2010BB REF*G2).","type":["string","null"]},"rendering":{"description":"The payer's own ID for the rendering provider (2310B REF*G2).","type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"encounter":{"description":"true: a capitation encounter, reported to the payer and not billed for payment (sent as reporting only, BHT06 RP). Validated and priced like any claim. A claim's only: a predetermination with it is refused. Default false.","type":"boolean"},"allow_duplicate":{"description":"true: this claim is a separate service identical to another claim (same payer, patient, rendering provider, service dates, codes and fees), billed on purpose. A duplicate of a claim already queued or sent is then a warning instead of a DUPLICATE_CLAIM error, and both are sent. Default false.","type":"boolean"},"submit":{"description":"true (the default): validate the claim and queue it when it has no errors. false: save it as a draft.","type":"boolean"}},"required":["office_id","payer_id","rendering_provider_id","subscriber","lines"],"additionalProperties":false},"examples":{"queued":{"summary":"A claim that passes validation and is queued","value":{"office_id":"off_01JM000000E008000000000003","payer_id":"pyr_01JM000000E008000000000004","rendering_provider_id":"prv_01JM000000E008000000000005","subscriber":{"first_name":"Alex","last_name":"Example","date_of_birth":"1985-04-12","gender":"F","member_id":"CH-ACTIVE-FULL","address":{"line1":"1 Example Street","city":"Exampleville","state":"GA","postal_code":"30000"}},"lines":[{"cdt":"D2740","fee":1140,"service_date":"2026-09-24","tooth":"3"}],"metadata":{"pms_claim_number":"PMS-1042"},"attachments":["att_01JM000000E00800000000003G"]}},"secondary":{"summary":"A secondary claim: the primary payer paid 800.00 and adjusted 340.00","value":{"office_id":"off_01JM000000E008000000000003","payer_id":"pyr_01JM000000E008000000000004","rendering_provider_id":"prv_01JM000000E008000000000005","subscriber":{"first_name":"Alex","last_name":"Example","date_of_birth":"1985-04-12","gender":"F","member_id":"CH-ACTIVE-FULL","address":{"line1":"1 Example Street","city":"Exampleville","state":"GA","postal_code":"30000"}},"lines":[{"cdt":"D2740","fee":1140,"service_date":"2026-09-24","tooth":"3"}],"metadata":{"pms_claim_number":"PMS-1042"},"attachments":["att_01JM000000E00800000000003G"],"coordination":{"sequence":"secondary","other_payers":[{"payer_name":"Example Primary Dental","payer_identifier":"EXPRI","responsibility":"primary","relationship":"self","subscriber":{"first_name":"Alex","last_name":"Example","member_id":"PRIMARY-1042"},"paid":800,"paid_date":"2026-10-01","adjustments":[{"group":"CO","reason":"45","amount":340}]}]}}},"needs_attention":{"summary":"A claim with an error, kept with its findings","value":{"office_id":"off_01JM000000E008000000000003","payer_id":"pyr_01JM000000E008000000000004","rendering_provider_id":"prv_01JM000000E008000000000005","subscriber":{"first_name":"Alex","last_name":"Example","date_of_birth":"1985-04-12","gender":"F","member_id":"CH-ACTIVE-FULL","address":{"line1":"1 Example Street","city":"Exampleville","state":"GA","postal_code":"30000"}},"lines":[{"cdt":"D2740","fee":1140,"service_date":"2026-09-24"}],"metadata":{"pms_claim_number":"PMS-1042"},"attachments":["att_01JM000000E00800000000003G"]}},"predetermination":{"summary":"A predetermination: the crown before treatment, no service date","value":{"office_id":"off_01JM000000E008000000000003","payer_id":"pyr_01JM000000E008000000000004","rendering_provider_id":"prv_01JM000000E008000000000005","subscriber":{"first_name":"Alex","last_name":"Example","date_of_birth":"1985-04-12","gender":"F","member_id":"CH-ACTIVE-FULL","address":{"line1":"1 Example Street","city":"Exampleville","state":"GA","postal_code":"30000"}},"lines":[{"cdt":"D2740","fee":1140,"tooth":"3"}],"metadata":{"pms_claim_number":"PMS-1042"},"attachments":["att_01JM000000E00800000000003G"],"kind":"predetermination"}}}}}},"responses":{"201":{"description":"The claim, as it is now: queued, validated, a draft, or needing attention.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Claim"},"examples":{"queued":{"summary":"A claim that passes validation and is queued","value":{"id":"clm_01JM000000E00800000000002G","object":"claim","kind":"claim","state":"queued","next_step":"This claim is queued and goes out in the next batch.","frequency":"original","parent_id":null,"patient_control_number":"CH4Q7M2K9TRB","office":{"id":"off_01JM000000E008000000000003","name":"Example Family Dental"},"payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"rendering_provider":{"id":"prv_01JM000000E008000000000005","first_name":"Riley","last_name":"Example","npi":"1999990017"},"patient_name":{"first_name":"Alex","last_name":"Example"},"service_dates":{"first":"2026-09-24","last":"2026-09-24"},"totals":{"charge":"1140.00","lines":1},"payment":null,"estimate":null,"converted_from":null,"converted_to":null,"source_claim_id":null,"patient_id":"pat_01JM000000E00800000000004K","insurance_type":"commercial","sequence":"primary","encounter":false,"request_id":"req_01JM000000E00800000000002J","created_at":"2026-09-24T21:00:00.120000+00:00","updated_at":"2026-09-24T21:00:00.310000+00:00","subscriber":{"first_name":"Alex","last_name":"Example","date_of_birth":"1985-04-12","gender":"F","member_id":"CH-ACTIVE-FULL","group_number":null,"address":{"line1":"1 Example Street","line2":null,"city":"Exampleville","state":"GA","postal_code":"30000"}},"patient":null,"place_of_service":"11","lines":[{"line_number":1,"cdt":"D2740","description":"Porcelain or ceramic crown","service_date":"2026-09-24","fee":"1140.00","quantity":1,"tooth":"3","surfaces":null,"area":null,"teeth":[],"areas":[],"prosthesis":null,"prior_placement_date":null,"diagnosis_pointers":[]}],"remarks":null,"metadata":{"pms_claim_number":"PMS-1042"},"coordination":{"sequence":"primary","other_payers":[]},"accident":null,"referral_number":null,"prior_authorization":null,"diagnosis_codes":[],"orthodontics":null,"missing_teeth":[],"service_location":null,"payer_provider_ids":{"billing":null,"rendering":null},"attachments":["att_01JM000000E00800000000003G"],"foreign_attachments":[],"validation":{"validated_at":"2026-09-24T21:00:00.300000+00:00","errors":0,"warnings":0,"findings":[]},"network":{"submitted_at":null,"clearinghouse_claim_id":null,"payer_claim_number":null,"rejection":null},"idempotency_key":"pms-1042","allow_duplicate":false,"delivery_uncertain":null,"no_payer_answer":null,"snapshot":{"billing_office":{"name":"Example Family Dental","npi":"1999999000","tax_id":"009999999","address":{"line1":"100 Example Street","line2":null,"city":"Exampleville","state":"GA","postal_code":"303010000"},"phone":"4045550100","pay_to_address":null},"service_location":null,"rendering_provider":{"first_name":"Riley","last_name":"Example","npi":"1999990017","taxonomy_code":"1223G0001X","license":{"state":"GA","number":"GA-000000"}},"payer_provider_ids":{"billing":null,"rendering":null}}}},"secondary":{"summary":"A secondary claim: the primary payer paid 800.00 and adjusted 340.00","value":{"id":"clm_01JM000000E00800000000002G","object":"claim","kind":"claim","state":"queued","next_step":"This claim is queued and goes out in the next batch.","frequency":"original","parent_id":null,"patient_control_number":"CH4Q7M2K9TRB","office":{"id":"off_01JM000000E008000000000003","name":"Example Family Dental"},"payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"rendering_provider":{"id":"prv_01JM000000E008000000000005","first_name":"Riley","last_name":"Example","npi":"1999990017"},"patient_name":{"first_name":"Alex","last_name":"Example"},"service_dates":{"first":"2026-09-24","last":"2026-09-24"},"totals":{"charge":"1140.00","lines":1},"payment":null,"estimate":null,"converted_from":null,"converted_to":null,"source_claim_id":null,"patient_id":"pat_01JM000000E00800000000004K","insurance_type":"commercial","sequence":"secondary","encounter":false,"request_id":"req_01JM000000E00800000000002J","created_at":"2026-09-24T21:00:00.120000+00:00","updated_at":"2026-09-24T21:00:00.310000+00:00","subscriber":{"first_name":"Alex","last_name":"Example","date_of_birth":"1985-04-12","gender":"F","member_id":"CH-ACTIVE-FULL","group_number":null,"address":{"line1":"1 Example Street","line2":null,"city":"Exampleville","state":"GA","postal_code":"30000"}},"patient":null,"place_of_service":"11","lines":[{"line_number":1,"cdt":"D2740","description":"Porcelain or ceramic crown","service_date":"2026-09-24","fee":"1140.00","quantity":1,"tooth":"3","surfaces":null,"area":null,"teeth":[],"areas":[],"prosthesis":null,"prior_placement_date":null,"diagnosis_pointers":[]}],"remarks":null,"metadata":{"pms_claim_number":"PMS-1042"},"coordination":{"sequence":"secondary","other_payers":[{"payer_id":null,"payer_name":"Example Primary Dental","payer_identifier":"EXPRI","responsibility":"primary","insurance_type":"commercial","relationship":"self","subscriber":{"first_name":"Alex","last_name":"Example","member_id":"PRIMARY-1042","group_number":null},"paid":"800.00","paid_date":"2026-10-01","patient_responsibility":null,"adjustments":[{"group":"CO","reason":"45","amount":"340.00"}],"lines":null}]},"accident":null,"referral_number":null,"prior_authorization":null,"diagnosis_codes":[],"orthodontics":null,"missing_teeth":[],"service_location":null,"payer_provider_ids":{"billing":null,"rendering":null},"attachments":["att_01JM000000E00800000000003G"],"foreign_attachments":[],"validation":{"validated_at":"2026-09-24T21:00:00.300000+00:00","errors":0,"warnings":0,"findings":[]},"network":{"submitted_at":null,"clearinghouse_claim_id":null,"payer_claim_number":null,"rejection":null},"idempotency_key":"pms-1042","allow_duplicate":false,"delivery_uncertain":null,"no_payer_answer":null,"snapshot":{"billing_office":{"name":"Example Family Dental","npi":"1999999000","tax_id":"009999999","address":{"line1":"100 Example Street","line2":null,"city":"Exampleville","state":"GA","postal_code":"303010000"},"phone":"4045550100","pay_to_address":null},"service_location":null,"rendering_provider":{"first_name":"Riley","last_name":"Example","npi":"1999990017","taxonomy_code":"1223G0001X","license":{"state":"GA","number":"GA-000000"}},"payer_provider_ids":{"billing":null,"rendering":null}}}},"needs_attention":{"summary":"A claim with an error, kept with its findings","value":{"id":"clm_01JM000000E00800000000002G","object":"claim","kind":"claim","state":"needs_attention","next_step":"This claim has errors, so it was not queued. Fix the errors in its validation results, then validate it again.","frequency":"original","parent_id":null,"patient_control_number":"CH4Q7M2K9TRB","office":{"id":"off_01JM000000E008000000000003","name":"Example Family Dental"},"payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"rendering_provider":{"id":"prv_01JM000000E008000000000005","first_name":"Riley","last_name":"Example","npi":"1999990017"},"patient_name":{"first_name":"Alex","last_name":"Example"},"service_dates":{"first":"2026-09-24","last":"2026-09-24"},"totals":{"charge":"1140.00","lines":1},"payment":null,"estimate":null,"converted_from":null,"converted_to":null,"source_claim_id":null,"patient_id":"pat_01JM000000E00800000000004K","insurance_type":"commercial","sequence":"primary","encounter":false,"request_id":"req_01JM000000E00800000000002J","created_at":"2026-09-24T21:00:00.120000+00:00","updated_at":"2026-09-24T21:00:00.310000+00:00","subscriber":{"first_name":"Alex","last_name":"Example","date_of_birth":"1985-04-12","gender":"F","member_id":"CH-ACTIVE-FULL","group_number":null,"address":{"line1":"1 Example Street","line2":null,"city":"Exampleville","state":"GA","postal_code":"30000"}},"patient":null,"place_of_service":"11","lines":[{"line_number":1,"cdt":"D2740","description":"Porcelain or ceramic crown","service_date":"2026-09-24","fee":"1140.00","quantity":1,"tooth":null,"surfaces":null,"area":null,"teeth":[],"areas":[],"prosthesis":null,"prior_placement_date":null,"diagnosis_pointers":[]}],"remarks":null,"metadata":{"pms_claim_number":"PMS-1042"},"coordination":{"sequence":"primary","other_payers":[]},"accident":null,"referral_number":null,"prior_authorization":null,"diagnosis_codes":[],"orthodontics":null,"missing_teeth":[],"service_location":null,"payer_provider_ids":{"billing":null,"rendering":null},"attachments":["att_01JM000000E00800000000003G"],"foreign_attachments":[],"validation":{"validated_at":"2026-09-24T21:00:00.300000+00:00","errors":1,"warnings":0,"findings":[{"field":"lines[0].tooth","code":"TOOTH_REQUIRED","message":"Line 1 tooth is required for this code.","severity":"error"}]},"network":{"submitted_at":null,"clearinghouse_claim_id":null,"payer_claim_number":null,"rejection":null},"idempotency_key":"pms-1042","allow_duplicate":false,"delivery_uncertain":null,"no_payer_answer":null,"snapshot":null}},"predetermination":{"summary":"A predetermination: the crown before treatment, no service date","value":{"id":"clm_01JM000000E00800000000004G","object":"claim","kind":"predetermination","state":"queued","next_step":"This predetermination is queued and goes out in the next batch.","frequency":"original","parent_id":null,"patient_control_number":"CH7PD3K8M2QA","office":{"id":"off_01JM000000E008000000000003","name":"Example Family Dental"},"payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"rendering_provider":{"id":"prv_01JM000000E008000000000005","first_name":"Riley","last_name":"Example","npi":"1999990017"},"patient_name":{"first_name":"Alex","last_name":"Example"},"service_dates":{"first":null,"last":null},"totals":{"charge":"1140.00","lines":1},"payment":null,"estimate":null,"converted_from":null,"converted_to":null,"source_claim_id":null,"patient_id":"pat_01JM000000E00800000000004K","insurance_type":"commercial","sequence":"primary","encounter":false,"request_id":"req_01JM000000E00800000000002J","created_at":"2026-09-24T21:00:00.120000+00:00","updated_at":"2026-09-24T21:00:00.310000+00:00","subscriber":{"first_name":"Alex","last_name":"Example","date_of_birth":"1985-04-12","gender":"F","member_id":"CH-ACTIVE-FULL","group_number":null,"address":{"line1":"1 Example Street","line2":null,"city":"Exampleville","state":"GA","postal_code":"30000"}},"patient":null,"place_of_service":"11","lines":[{"line_number":1,"cdt":"D2740","description":"Porcelain or ceramic crown","service_date":null,"fee":"1140.00","quantity":1,"tooth":"3","surfaces":null,"area":null,"teeth":[],"areas":[],"prosthesis":null,"prior_placement_date":null,"diagnosis_pointers":[]}],"remarks":null,"metadata":{"pms_claim_number":"PMS-1042"},"coordination":{"sequence":"primary","other_payers":[]},"accident":null,"referral_number":null,"prior_authorization":null,"diagnosis_codes":[],"orthodontics":null,"missing_teeth":[],"service_location":null,"payer_provider_ids":{"billing":null,"rendering":null},"attachments":["att_01JM000000E00800000000003G"],"foreign_attachments":[],"validation":{"validated_at":"2026-09-24T21:00:00.300000+00:00","errors":0,"warnings":0,"findings":[]},"network":{"submitted_at":null,"clearinghouse_claim_id":null,"payer_claim_number":null,"rejection":null},"idempotency_key":"pms-1042","allow_duplicate":false,"delivery_uncertain":null,"no_payer_answer":null,"snapshot":{"billing_office":{"name":"Example Family Dental","npi":"1999999000","tax_id":"009999999","address":{"line1":"100 Example Street","line2":null,"city":"Exampleville","state":"GA","postal_code":"303010000"},"phone":"4045550100","pay_to_address":null},"service_location":null,"rendering_provider":{"first_name":"Riley","last_name":"Example","npi":"1999990017","taxonomy_code":"1223G0001X","license":{"state":"GA","number":"GA-000000"}},"payer_provider_ids":{"billing":null,"rendering":null}}}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.\n\n`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.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"CONFLICT":{"summary":"CONFLICT","value":{"error":"CONFLICT","message":"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.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"503":{"description":"`CLAIMS_UNAVAILABLE`: Claims are not available in live mode yet. Use a test key.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"CLAIMS_UNAVAILABLE":{"summary":"CLAIMS_UNAVAILABLE","value":{"error":"CLAIMS_UNAVAILABLE","message":"Claims are not available in live mode yet. Use a test key.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/claims/validate":{"post":{"operationId":"validateClaim","summary":"Validate a claim","description":"Checks a claim body the way creating it would and stores nothing: every finding together, errors (which keep a claim from being sent) and warnings. Needs an Idempotency-Key header and a key with the submit permission.","tags":["Claims"],"x-permission":"submit","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"description":"claim (the default): treatment done. predetermination: sent before treatment to ask what the payer would pay; it has no service dates and comes back with an estimate. Set when the claim is made; it never changes.","type":"string","enum":["claim","predetermination"]},"office_id":{"description":"The office that bills the claim (off_...).","type":"string"},"payer_id":{"description":"The payer (a Claim House payer ID, pyr_..., a payer ID or an alias from the payer directory).","type":"string"},"rendering_provider_id":{"description":"The dentist who did the treatment (prv_...).","type":"string"},"subscriber":{"description":"The person who holds the coverage. Also the patient unless patient is given.","type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"date_of_birth":{"type":["string","null"]},"gender":{"anyOf":[{"type":"string","enum":["F","M","U"]},{"type":"null"}]},"member_id":{"type":"string"},"group_number":{"type":["string","null"]},"address":{"anyOf":[{"type":"object","properties":{"line1":{"type":"string"},"line2":{"type":["string","null"]},"city":{"type":"string"},"state":{"type":"string"},"postal_code":{"type":"string"}},"required":["line1","city","state","postal_code"],"additionalProperties":false},{"type":"null"}]}},"required":["first_name","last_name","member_id"],"additionalProperties":false},"patient":{"description":"The patient, when not the subscriber.","anyOf":[{"type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"date_of_birth":{"type":["string","null"]},"gender":{"anyOf":[{"type":"string","enum":["F","M","U"]},{"type":"null"}]},"relationship":{"type":"string","enum":["spouse","child","other"]},"address":{"anyOf":[{"type":"object","properties":{"line1":{"type":"string"},"line2":{"type":["string","null"]},"city":{"type":"string"},"state":{"type":"string"},"postal_code":{"type":"string"}},"required":["line1","city","state","postal_code"],"additionalProperties":false},{"type":"null"}]}},"required":["first_name","last_name","relationship"],"additionalProperties":false},{"type":"null"}]},"place_of_service":{"description":"The place of service code. Default 11 (office).","type":"string"},"lines":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"cdt":{"type":"string"},"description":{"type":["string","null"]},"service_date":{"type":["string","null"]},"fee":{"type":"number"},"quantity":{"type":"integer","minimum":0,"maximum":99999},"tooth":{"description":"The tooth, for a line with one. For several teeth give teeth instead (never both).","type":["string","null"]},"surfaces":{"description":"The surfaces of the tooth. With teeth, give the surfaces of each tooth there.","type":["string","null"]},"area":{"description":"The oral cavity code, for a line with one area. For several give areas instead (never both).","type":["string","null"]},"teeth":{"description":"Several teeth, each with its surfaces (up to 32): one TOO segment each. Not with tooth or surfaces.","maxItems":32,"type":"array","items":{"type":"object","properties":{"tooth":{"type":"string"},"surfaces":{"type":["string","null"]}},"required":["tooth"],"additionalProperties":false}},"areas":{"description":"Several oral cavity codes (up to 5). Not with area.","maxItems":5,"type":"array","items":{"type":"string"}},"prosthesis":{"description":"initial or replacement: whether the crown, bridge or denture is the first or a replacement.","anyOf":[{"type":"string","enum":["initial","replacement"]},{"type":"null"}]},"prior_placement_date":{"description":"When the prosthesis being replaced was first placed: needed for a replacement (a finding when missing).","type":["string","null"]},"diagnosis_pointers":{"description":"Positions, from 1, in the claim's diagnosis_codes (up to 4). A position past the codes is a finding.","maxItems":4,"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},"required":["cdt"],"additionalProperties":false},"description":"The procedures, one line each. At least one for a claim to be sent."},"total":{"description":"The total the claim comes to, in dollars: checked against the lines.","type":["number","null"]},"remarks":{"description":"Notes for the payer: up to 5 notes of 80 characters, split between words (about 370 characters of ordinary text); a remark that does not fit is a TOO_LONG finding.","type":["string","null"]},"metadata":{"description":"Up to 20 pairs of your own, returned with the claim and never sent to the payer.","type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}},"patient_control_number":{"description":"Your identifier for the claim, sent on the claim and returned on its status: unique in your organization. Made for you when omitted.","type":["string","null"]},"attachments":{"description":"The attachments the claim carries (att_...), at most 5: of your organization and mode, for the claim's payer, unsolicited and on no other claim. Each must be closed before the claim is sent (ATTACHMENT_OPEN); the claim file carries a PWK and a note for each.","maxItems":5,"type":"array","items":{"type":"string"}},"foreign_attachments":{"description":"For partners that already hold an attachment number (an attachment sent through their own NEA account, say): the PWK and NTE of each, which the claim file carries unchanged, after the claim's own attachments. At most 10 in all with attachments. Claim House keeps nothing else of such an attachment and does not check it.","maxItems":10,"type":"array","items":{"type":"object","properties":{"pwk":{"minItems":1,"maxItems":9,"type":"array","items":{"type":"string"},"description":"The elements of the PWK segment after its id, in order (1 to 9); an empty string for an element the segment leaves empty."},"nte":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"description":"The text of the NTE segment that followed the PWK, or null when none did."}},"required":["pwk","nte"],"additionalProperties":false}},"coordination":{"description":"Coordination of benefits: this claim's place among the payers (sequence) and the other payers that are responsible before or alongside this one. Absent: a primary claim with no other payer. On a correction it is replaced whole.","type":"object","properties":{"sequence":{"description":"primary (the default), secondary or tertiary: this claim's place among the payers. Written as SBR01 of the claim's subscriber loop.","type":"string","enum":["primary","secondary","tertiary"]},"other_payers":{"description":"The payers responsible before or alongside this one (up to 2): a secondary claim has one primary, a tertiary claim a primary and a secondary.","maxItems":2,"type":"array","items":{"type":"object","properties":{"payer_id":{"description":"The other payer, as a directory reference (a Claim House payer ID, a payer ID or an alias). Or give payer_name and payer_identifier, never both ways.","type":"string"},"payer_name":{"description":"For a payer outside the directory: its name.","type":"string"},"payer_identifier":{"description":"For a payer outside the directory: its payer ID as the claim file carries it (NM109).","type":"string"},"responsibility":{"type":"string","enum":["primary","secondary"],"description":"primary or secondary: this payer's place before the claim's own payer."},"insurance_type":{"description":"The filing indicator of this payer. Default commercial.","type":"string","enum":["commercial","medicaid","medicare_b","champus","dental_maintenance","ppo","pos","epo","indemnity","hmo","self_pay","other"]},"relationship":{"type":"string","enum":["self","spouse","child","other"],"description":"The patient's relationship to this payer's subscriber: self, spouse, child or other."},"subscriber":{"type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"member_id":{"type":"string"},"group_number":{"type":["string","null"]}},"required":["first_name","last_name","member_id"],"additionalProperties":false,"description":"This payer's subscriber."},"paid":{"description":"What this payer paid, in dollars; leave out when it did not adjudicate the claim.","type":["number","null"]},"paid_date":{"description":"When it paid: needed when it paid anything.","type":["string","null"]},"patient_responsibility":{"description":"What this payer says the patient owes, in dollars.","type":["number","null"]},"adjustments":{"description":"Its adjustments, which with paid add up to the claim's charge. With lines: its claim-level adjustments only.","maxItems":30,"type":"array","items":{"type":"object","properties":{"group":{"type":"string","enum":["CO","OA","PI","PR"],"description":"CO contractual, OA other, PI payer initiated, PR patient responsibility."},"reason":{"description":"The claim adjustment reason code (such as 45).","type":"string"},"amount":{"description":"In dollars; negative for a reversal.","type":"number"}},"required":["group","reason"],"additionalProperties":false}},"lines":{"description":"What it paid and adjusted line by line (loop 2430): every line of the claim, once each. Needs paid and paid_date. Each line's paid and adjustments add up to its fee; the lines' paid less the claim-level adjustments is paid. Leave out (or null) for claim-level figures.","anyOf":[{"maxItems":100,"type":"array","items":{"type":"object","properties":{"line":{"type":"integer","minimum":1,"maximum":100,"description":"The claim line, from 1 in the order of lines."},"paid":{"description":"What this payer paid on the line, in dollars.","type":"number"},"adjustments":{"description":"Its adjustments of the line, which with paid add up to the line's fee.","maxItems":30,"type":"array","items":{"type":"object","properties":{"group":{"type":"string","enum":["CO","OA","PI","PR"],"description":"CO contractual, OA other, PI payer initiated, PR patient responsibility."},"reason":{"description":"The claim adjustment reason code (such as 45).","type":"string"},"amount":{"description":"In dollars; negative for a reversal.","type":"number"}},"required":["group","reason"],"additionalProperties":false}}},"required":["line"],"additionalProperties":false}},{"type":"null"}]}},"required":["responsibility","relationship","subscriber"],"additionalProperties":false}}},"additionalProperties":false},"insurance_type":{"description":"The claim filing indicator (SBR09). Default commercial. For a Medicaid claim: medicaid, with the Medicaid ID in subscriber.member_id.","type":"string","enum":["commercial","medicaid","medicare_b","champus","dental_maintenance","ppo","pos","epo","indemnity","hmo","self_pay","other"]},"accident":{"description":"The accident the treatment relates to: cause, date (always needed) and state (needed for auto).","anyOf":[{"type":"object","properties":{"cause":{"type":"string","enum":["auto","employment","other"]},"date":{"description":"When the accident happened. Always needed (a finding when missing).","type":["string","null"]},"state":{"description":"The state the accident happened in: needed for an auto accident.","type":["string","null"]}},"required":["cause"],"additionalProperties":false},{"type":"null"}]},"referral_number":{"description":"The referral number (REF*9F), up to 50 characters.","type":["string","null"]},"prior_authorization":{"description":"The prior authorization number (REF*G1), up to 50 characters.","type":["string","null"]},"diagnosis_codes":{"description":"Up to 4 ICD-10-CM codes; the first is the principal diagnosis. Written without the dot. Lines point at them with diagnosis_pointers. On a correction the list is replaced whole.","maxItems":4,"type":"array","items":{"type":"string"}},"orthodontics":{"description":"Orthodontic treatment: the date the appliance was placed, the months of treatment in all and the months remaining.","anyOf":[{"type":"object","properties":{"appliance_placed_date":{"type":"string"},"total_months":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The months of treatment in all (0 to 99)."},"months_remaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The months of treatment remaining (0 to 99)."}},"required":["appliance_placed_date","total_months","months_remaining"],"additionalProperties":false},{"type":"null"}]},"missing_teeth":{"description":"Teeth that are missing or to be extracted (up to 35). On a correction the list is replaced whole.","maxItems":35,"type":"array","items":{"type":"object","properties":{"tooth":{"type":"string"},"status":{"type":"string","enum":["missing","to_be_extracted"]}},"required":["tooth","status"],"additionalProperties":false}},"service_location":{"description":"Where the treatment happened, when that is not the billing office's address: name, NPI (optional) and address. Not written when it is the billing address.","anyOf":[{"type":"object","properties":{"name":{"type":"string"},"npi":{"type":["string","null"]},"address":{"type":"object","properties":{"line1":{"type":"string"},"line2":{"type":["string","null"]},"city":{"type":"string"},"state":{"type":"string"},"postal_code":{"type":"string"}},"required":["line1","city","state","postal_code"],"additionalProperties":false}},"required":["name","address"],"additionalProperties":false},{"type":"null"}]},"payer_provider_ids":{"description":"The payer's own IDs for the billing office and the rendering provider (REF*G2), such as Medicaid provider IDs, up to 50 characters each. One left out or null: the office's or the provider's payer_provider_ids entry for the claim's payer, taken when the claim is queued (see snapshot). On a correction it is replaced whole.","anyOf":[{"type":"object","properties":{"billing":{"description":"The payer's own ID for the billing office (2010BB REF*G2).","type":["string","null"]},"rendering":{"description":"The payer's own ID for the rendering provider (2310B REF*G2).","type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"encounter":{"description":"true: a capitation encounter, reported to the payer and not billed for payment (sent as reporting only, BHT06 RP). Validated and priced like any claim. A claim's only: a predetermination with it is refused. Default false.","type":"boolean"},"allow_duplicate":{"description":"true: this claim is a separate service identical to another claim (same payer, patient, rendering provider, service dates, codes and fees), billed on purpose. A duplicate of a claim already queued or sent is then a warning instead of a DUPLICATE_CLAIM error, and both are sent. Default false.","type":"boolean"},"submit":{"description":"true (the default): validate the claim and queue it when it has no errors. false: save it as a draft.","type":"boolean"}},"required":["office_id","payer_id","rendering_provider_id","subscriber","lines"],"additionalProperties":false},"examples":{"valid":{"summary":"A claim with no findings","value":{"office_id":"off_01JM000000E008000000000003","payer_id":"pyr_01JM000000E008000000000004","rendering_provider_id":"prv_01JM000000E008000000000005","subscriber":{"first_name":"Alex","last_name":"Example","date_of_birth":"1985-04-12","gender":"F","member_id":"CH-ACTIVE-FULL","address":{"line1":"1 Example Street","city":"Exampleville","state":"GA","postal_code":"30000"}},"lines":[{"cdt":"D2740","fee":1140,"service_date":"2026-09-24","tooth":"3"}],"metadata":{"pms_claim_number":"PMS-1042"},"attachments":["att_01JM000000E00800000000003G"]}},"missing_tooth":{"summary":"A crown without its tooth","value":{"office_id":"off_01JM000000E008000000000003","payer_id":"pyr_01JM000000E008000000000004","rendering_provider_id":"prv_01JM000000E008000000000005","subscriber":{"first_name":"Alex","last_name":"Example","date_of_birth":"1985-04-12","gender":"F","member_id":"CH-ACTIVE-FULL","address":{"line1":"1 Example Street","city":"Exampleville","state":"GA","postal_code":"30000"}},"lines":[{"cdt":"D2740","fee":1140,"service_date":"2026-09-24"}],"metadata":{"pms_claim_number":"PMS-1042"},"attachments":["att_01JM000000E00800000000003G"]}}}}}},"responses":{"200":{"description":"The findings.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"claim_validation"},"valid":{"type":"boolean","description":"True when there is no error: the claim would be queued."},"errors":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"warnings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"findings":{"type":"array","items":{"type":"object","properties":{"field":{"description":"The request field the finding is about, as a dotted path (lines[0].tooth), or null for the claim as a whole.","type":["string","null"]},"code":{"type":"string","description":"A stable code for the finding."},"message":{"type":"string"},"severity":{"type":"string","enum":["error","warning"],"description":"An error keeps the claim from being sent; a warning does not."}},"required":["field","code","message","severity"]}}},"required":["object","valid","errors","warnings","findings"]},"examples":{"valid":{"summary":"A claim with no findings","value":{"object":"claim_validation","valid":true,"errors":0,"warnings":0,"findings":[]}},"missing_tooth":{"summary":"A crown without its tooth","value":{"object":"claim_validation","valid":false,"errors":1,"warnings":0,"findings":[{"field":"lines[0].tooth","code":"TOOTH_REQUIRED","message":"Line 1 tooth is required for this code.","severity":"error"}]}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"503":{"description":"`CLAIMS_UNAVAILABLE`: Claims are not available in live mode yet. Use a test key.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"CLAIMS_UNAVAILABLE":{"summary":"CLAIMS_UNAVAILABLE","value":{"error":"CLAIMS_UNAVAILABLE","message":"Claims are not available in live mode yet. Use a test key.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/claims/{id}":{"get":{"operationId":"getClaim","summary":"Get a claim","description":"One claim of the key's organization and mode, with its lines, the result of its last validation, its network references, the rejection in plain words when it was rejected, next_step, and once it is queued its snapshot: what its file says of the billing office, service location and rendering provider, which a later edit of the office or provider does not change. A claim of another organization or mode is not found.","tags":["Claims"],"x-permission":"read","parameters":[{"name":"id","in":"path","required":true,"description":"A claim ID (clm_...).","schema":{"type":"string"},"example":"clm_01JM000000E00800000000002G"}],"responses":{"200":{"description":"The claim.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Claim"},"examples":{"by_id":{"summary":"A queued claim","value":{"id":"clm_01JM000000E00800000000002G","object":"claim","kind":"claim","state":"queued","next_step":"This claim is queued and goes out in the next batch.","frequency":"original","parent_id":null,"patient_control_number":"CH4Q7M2K9TRB","office":{"id":"off_01JM000000E008000000000003","name":"Example Family Dental"},"payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"rendering_provider":{"id":"prv_01JM000000E008000000000005","first_name":"Riley","last_name":"Example","npi":"1999990017"},"patient_name":{"first_name":"Alex","last_name":"Example"},"service_dates":{"first":"2026-09-24","last":"2026-09-24"},"totals":{"charge":"1140.00","lines":1},"payment":null,"estimate":null,"converted_from":null,"converted_to":null,"source_claim_id":null,"patient_id":"pat_01JM000000E00800000000004K","insurance_type":"commercial","sequence":"primary","encounter":false,"request_id":"req_01JM000000E00800000000002J","created_at":"2026-09-24T21:00:00.120000+00:00","updated_at":"2026-09-24T21:00:00.310000+00:00","subscriber":{"first_name":"Alex","last_name":"Example","date_of_birth":"1985-04-12","gender":"F","member_id":"CH-ACTIVE-FULL","group_number":null,"address":{"line1":"1 Example Street","line2":null,"city":"Exampleville","state":"GA","postal_code":"30000"}},"patient":null,"place_of_service":"11","lines":[{"line_number":1,"cdt":"D2740","description":"Porcelain or ceramic crown","service_date":"2026-09-24","fee":"1140.00","quantity":1,"tooth":"3","surfaces":null,"area":null,"teeth":[],"areas":[],"prosthesis":null,"prior_placement_date":null,"diagnosis_pointers":[]}],"remarks":null,"metadata":{"pms_claim_number":"PMS-1042"},"coordination":{"sequence":"primary","other_payers":[]},"accident":null,"referral_number":null,"prior_authorization":null,"diagnosis_codes":[],"orthodontics":null,"missing_teeth":[],"service_location":null,"payer_provider_ids":{"billing":null,"rendering":null},"attachments":["att_01JM000000E00800000000003G"],"foreign_attachments":[],"validation":{"validated_at":"2026-09-24T21:00:00.300000+00:00","errors":0,"warnings":0,"findings":[]},"network":{"submitted_at":null,"clearinghouse_claim_id":null,"payer_claim_number":null,"rejection":null},"idempotency_key":"pms-1042","allow_duplicate":false,"delivery_uncertain":null,"no_payer_answer":null,"snapshot":{"billing_office":{"name":"Example Family Dental","npi":"1999999000","tax_id":"009999999","address":{"line1":"100 Example Street","line2":null,"city":"Exampleville","state":"GA","postal_code":"303010000"},"phone":"4045550100","pay_to_address":null},"service_location":null,"rendering_provider":{"first_name":"Riley","last_name":"Example","npi":"1999990017","taxonomy_code":"1223G0001X","license":{"state":"GA","number":"GA-000000"}},"payer_provider_ids":{"billing":null,"rendering":null}}}},"rejected":{"summary":"A claim the payer rejected (CH-REJECT-A7)","value":{"id":"clm_01JM000000E00800000000002G","object":"claim","kind":"claim","state":"rejected","next_step":"This claim was rejected. Fix what the rejection names, then resubmit it.","frequency":"original","parent_id":null,"patient_control_number":"CH4Q7M2K9TRB","office":{"id":"off_01JM000000E008000000000003","name":"Example Family Dental"},"payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"rendering_provider":{"id":"prv_01JM000000E008000000000005","first_name":"Riley","last_name":"Example","npi":"1999990017"},"patient_name":{"first_name":"Alex","last_name":"Example"},"service_dates":{"first":"2026-09-24","last":"2026-09-24"},"totals":{"charge":"1140.00","lines":1},"payment":null,"estimate":null,"converted_from":null,"converted_to":null,"source_claim_id":null,"patient_id":"pat_01JM000000E00800000000004K","insurance_type":"commercial","sequence":"primary","encounter":false,"request_id":"req_01JM000000E00800000000002J","created_at":"2026-09-24T21:00:00.120000+00:00","updated_at":"2026-09-24T21:00:00.310000+00:00","subscriber":{"first_name":"Alex","last_name":"Example","date_of_birth":"1985-04-12","gender":"F","member_id":"CH-ACTIVE-FULL","group_number":null,"address":{"line1":"1 Example Street","line2":null,"city":"Exampleville","state":"GA","postal_code":"30000"}},"patient":null,"place_of_service":"11","lines":[{"line_number":1,"cdt":"D2740","description":"Porcelain or ceramic crown","service_date":"2026-09-24","fee":"1140.00","quantity":1,"tooth":"3","surfaces":null,"area":null,"teeth":[],"areas":[],"prosthesis":null,"prior_placement_date":null,"diagnosis_pointers":[]}],"remarks":null,"metadata":{"pms_claim_number":"PMS-1042"},"coordination":{"sequence":"primary","other_payers":[]},"accident":null,"referral_number":null,"prior_authorization":null,"diagnosis_codes":[],"orthodontics":null,"missing_teeth":[],"service_location":null,"payer_provider_ids":{"billing":null,"rendering":null},"attachments":["att_01JM000000E00800000000003G"],"foreign_attachments":[],"validation":{"validated_at":"2026-09-24T21:00:00.300000+00:00","errors":0,"warnings":0,"findings":[]},"network":{"submitted_at":"2026-09-24T21:00:30.000000+00:00","clearinghouse_claim_id":"SBX4K7Q2M9TB","payer_claim_number":null,"rejection":{"source":"payer","category":"A7","code":"33","message":"Rejected because information is not valid.","fix":"The payer cannot find the subscriber or the member ID. Check the member ID and the subscriber's name and date of birth against the insurance card or a recent eligibility check, then resubmit."}},"idempotency_key":"pms-1042","allow_duplicate":false,"delivery_uncertain":null,"no_payer_answer":null,"snapshot":{"billing_office":{"name":"Example Family Dental","npi":"1999999000","tax_id":"009999999","address":{"line1":"100 Example Street","line2":null,"city":"Exampleville","state":"GA","postal_code":"303010000"},"phone":"4045550100","pay_to_address":null},"service_location":null,"rendering_provider":{"first_name":"Riley","last_name":"Example","npi":"1999990017","taxonomy_code":"1223G0001X","license":{"state":"GA","number":"GA-000000"}},"payer_provider_ids":{"billing":null,"rendering":null}}}},"returned":{"summary":"A predetermination with its estimate","value":{"id":"clm_01JM000000E00800000000004G","object":"claim","kind":"predetermination","state":"returned","next_step":"The payer returned its estimate (what it would pay, not a payment). Once the treatment is done, convert it into a claim and add the service dates.","frequency":"original","parent_id":null,"patient_control_number":"CH7PD3K8M2QA","office":{"id":"off_01JM000000E008000000000003","name":"Example Family Dental"},"payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"rendering_provider":{"id":"prv_01JM000000E008000000000005","first_name":"Riley","last_name":"Example","npi":"1999990017"},"patient_name":{"first_name":"Alex","last_name":"Example"},"service_dates":{"first":null,"last":null},"totals":{"charge":"1140.00","lines":1},"payment":null,"estimate":{"era_id":"era_01JM000000E00800000000003G","allowed":"1026.00","pay":"820.80","patient":"205.20","returned_at":"2026-09-24T21:03:30.000000+00:00","lines":[{"line_number":1,"allowed":"1026.00","pay":"820.80","patient":"205.20"}]},"converted_from":null,"converted_to":null,"source_claim_id":null,"patient_id":"pat_01JM000000E00800000000004K","insurance_type":"commercial","sequence":"primary","encounter":false,"request_id":"req_01JM000000E00800000000002J","created_at":"2026-09-24T21:00:00.120000+00:00","updated_at":"2026-09-24T21:00:00.310000+00:00","subscriber":{"first_name":"Alex","last_name":"Example","date_of_birth":"1985-04-12","gender":"F","member_id":"CH-ACTIVE-FULL","group_number":null,"address":{"line1":"1 Example Street","line2":null,"city":"Exampleville","state":"GA","postal_code":"30000"}},"patient":null,"place_of_service":"11","lines":[{"line_number":1,"cdt":"D2740","description":"Porcelain or ceramic crown","service_date":null,"fee":"1140.00","quantity":1,"tooth":"3","surfaces":null,"area":null,"teeth":[],"areas":[],"prosthesis":null,"prior_placement_date":null,"diagnosis_pointers":[]}],"remarks":null,"metadata":{"pms_claim_number":"PMS-1042"},"coordination":{"sequence":"primary","other_payers":[]},"accident":null,"referral_number":null,"prior_authorization":null,"diagnosis_codes":[],"orthodontics":null,"missing_teeth":[],"service_location":null,"payer_provider_ids":{"billing":null,"rendering":null},"attachments":["att_01JM000000E00800000000003G"],"foreign_attachments":[],"validation":{"validated_at":"2026-09-24T21:00:00.300000+00:00","errors":0,"warnings":0,"findings":[]},"network":{"submitted_at":"2026-09-24T21:00:30.000000+00:00","clearinghouse_claim_id":"SBX7PD3K8M2Q","payer_claim_number":"990000001090","rejection":null},"idempotency_key":"pms-1042","allow_duplicate":false,"delivery_uncertain":null,"no_payer_answer":null,"snapshot":{"billing_office":{"name":"Example Family Dental","npi":"1999999000","tax_id":"009999999","address":{"line1":"100 Example Street","line2":null,"city":"Exampleville","state":"GA","postal_code":"303010000"},"phone":"4045550100","pay_to_address":null},"service_location":null,"rendering_provider":{"first_name":"Riley","last_name":"Example","npi":"1999990017","taxonomy_code":"1223G0001X","license":{"state":"GA","number":"GA-000000"}},"payer_provider_ids":{"billing":null,"rendering":null}}}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}},"patch":{"operationId":"updateClaim","summary":"Update a claim","description":"Changes the fields sent and keeps the rest, while the claim is a draft, needs attention, or was rejected (correct a rejected claim, then resubmit it). The subscriber and the patient are merged field by field; lines are replaced as a whole. A claim that needs attention is validated again. The patient control number never changes. Needs an Idempotency-Key header and a key with the submit permission.","tags":["Claims"],"x-permission":"submit","parameters":[{"name":"id","in":"path","required":true,"description":"A claim ID (clm_...).","schema":{"type":"string"},"example":"clm_01JM000000E00800000000002G"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"office_id":{"description":"The office that bills the claim (off_...).","type":"string"},"payer_id":{"description":"The payer (a Claim House payer ID, pyr_..., a payer ID or an alias from the payer directory).","type":"string"},"rendering_provider_id":{"description":"The dentist who did the treatment (prv_...).","type":"string"},"subscriber":{"description":"The subscriber fields to change; the others are kept.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"patient":{"description":"The patient fields to change; null removes the dependent patient.","anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"place_of_service":{"description":"The place of service code. Default 11 (office).","type":"string"},"lines":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"cdt":{"type":"string"},"description":{"type":["string","null"]},"service_date":{"type":["string","null"]},"fee":{"type":"number"},"quantity":{"type":"integer","minimum":0,"maximum":99999},"tooth":{"description":"The tooth, for a line with one. For several teeth give teeth instead (never both).","type":["string","null"]},"surfaces":{"description":"The surfaces of the tooth. With teeth, give the surfaces of each tooth there.","type":["string","null"]},"area":{"description":"The oral cavity code, for a line with one area. For several give areas instead (never both).","type":["string","null"]},"teeth":{"description":"Several teeth, each with its surfaces (up to 32): one TOO segment each. Not with tooth or surfaces.","maxItems":32,"type":"array","items":{"type":"object","properties":{"tooth":{"type":"string"},"surfaces":{"type":["string","null"]}},"required":["tooth"],"additionalProperties":false}},"areas":{"description":"Several oral cavity codes (up to 5). Not with area.","maxItems":5,"type":"array","items":{"type":"string"}},"prosthesis":{"description":"initial or replacement: whether the crown, bridge or denture is the first or a replacement.","anyOf":[{"type":"string","enum":["initial","replacement"]},{"type":"null"}]},"prior_placement_date":{"description":"When the prosthesis being replaced was first placed: needed for a replacement (a finding when missing).","type":["string","null"]},"diagnosis_pointers":{"description":"Positions, from 1, in the claim's diagnosis_codes (up to 4). A position past the codes is a finding.","maxItems":4,"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},"required":["cdt"],"additionalProperties":false},"description":"The procedures, one line each. At least one for a claim to be sent."},"total":{"description":"The total the claim comes to, in dollars: checked against the lines.","type":["number","null"]},"remarks":{"description":"Notes for the payer: up to 5 notes of 80 characters, split between words (about 370 characters of ordinary text); a remark that does not fit is a TOO_LONG finding.","type":["string","null"]},"metadata":{"description":"Up to 20 pairs of your own, returned with the claim and never sent to the payer.","type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}},"patient_control_number":{"description":"Your identifier for the claim, sent on the claim and returned on its status: unique in your organization. Made for you when omitted.","type":["string","null"]},"attachments":{"description":"The attachments the claim carries (att_...), at most 5: of your organization and mode, for the claim's payer, unsolicited and on no other claim. Each must be closed before the claim is sent (ATTACHMENT_OPEN); the claim file carries a PWK and a note for each.","maxItems":5,"type":"array","items":{"type":"string"}},"foreign_attachments":{"description":"For partners that already hold an attachment number (an attachment sent through their own NEA account, say): the PWK and NTE of each, which the claim file carries unchanged, after the claim's own attachments. At most 10 in all with attachments. Claim House keeps nothing else of such an attachment and does not check it.","maxItems":10,"type":"array","items":{"type":"object","properties":{"pwk":{"minItems":1,"maxItems":9,"type":"array","items":{"type":"string"},"description":"The elements of the PWK segment after its id, in order (1 to 9); an empty string for an element the segment leaves empty."},"nte":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"description":"The text of the NTE segment that followed the PWK, or null when none did."}},"required":["pwk","nte"],"additionalProperties":false}},"coordination":{"description":"Coordination of benefits: this claim's place among the payers (sequence) and the other payers that are responsible before or alongside this one. Absent: a primary claim with no other payer. On a correction it is replaced whole.","type":"object","properties":{"sequence":{"description":"primary (the default), secondary or tertiary: this claim's place among the payers. Written as SBR01 of the claim's subscriber loop.","type":"string","enum":["primary","secondary","tertiary"]},"other_payers":{"description":"The payers responsible before or alongside this one (up to 2): a secondary claim has one primary, a tertiary claim a primary and a secondary.","maxItems":2,"type":"array","items":{"type":"object","properties":{"payer_id":{"description":"The other payer, as a directory reference (a Claim House payer ID, a payer ID or an alias). Or give payer_name and payer_identifier, never both ways.","type":"string"},"payer_name":{"description":"For a payer outside the directory: its name.","type":"string"},"payer_identifier":{"description":"For a payer outside the directory: its payer ID as the claim file carries it (NM109).","type":"string"},"responsibility":{"type":"string","enum":["primary","secondary"],"description":"primary or secondary: this payer's place before the claim's own payer."},"insurance_type":{"description":"The filing indicator of this payer. Default commercial.","type":"string","enum":["commercial","medicaid","medicare_b","champus","dental_maintenance","ppo","pos","epo","indemnity","hmo","self_pay","other"]},"relationship":{"type":"string","enum":["self","spouse","child","other"],"description":"The patient's relationship to this payer's subscriber: self, spouse, child or other."},"subscriber":{"type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"member_id":{"type":"string"},"group_number":{"type":["string","null"]}},"required":["first_name","last_name","member_id"],"additionalProperties":false,"description":"This payer's subscriber."},"paid":{"description":"What this payer paid, in dollars; leave out when it did not adjudicate the claim.","type":["number","null"]},"paid_date":{"description":"When it paid: needed when it paid anything.","type":["string","null"]},"patient_responsibility":{"description":"What this payer says the patient owes, in dollars.","type":["number","null"]},"adjustments":{"description":"Its adjustments, which with paid add up to the claim's charge. With lines: its claim-level adjustments only.","maxItems":30,"type":"array","items":{"type":"object","properties":{"group":{"type":"string","enum":["CO","OA","PI","PR"],"description":"CO contractual, OA other, PI payer initiated, PR patient responsibility."},"reason":{"description":"The claim adjustment reason code (such as 45).","type":"string"},"amount":{"description":"In dollars; negative for a reversal.","type":"number"}},"required":["group","reason"],"additionalProperties":false}},"lines":{"description":"What it paid and adjusted line by line (loop 2430): every line of the claim, once each. Needs paid and paid_date. Each line's paid and adjustments add up to its fee; the lines' paid less the claim-level adjustments is paid. Leave out (or null) for claim-level figures.","anyOf":[{"maxItems":100,"type":"array","items":{"type":"object","properties":{"line":{"type":"integer","minimum":1,"maximum":100,"description":"The claim line, from 1 in the order of lines."},"paid":{"description":"What this payer paid on the line, in dollars.","type":"number"},"adjustments":{"description":"Its adjustments of the line, which with paid add up to the line's fee.","maxItems":30,"type":"array","items":{"type":"object","properties":{"group":{"type":"string","enum":["CO","OA","PI","PR"],"description":"CO contractual, OA other, PI payer initiated, PR patient responsibility."},"reason":{"description":"The claim adjustment reason code (such as 45).","type":"string"},"amount":{"description":"In dollars; negative for a reversal.","type":"number"}},"required":["group","reason"],"additionalProperties":false}}},"required":["line"],"additionalProperties":false}},{"type":"null"}]}},"required":["responsibility","relationship","subscriber"],"additionalProperties":false}}},"additionalProperties":false},"insurance_type":{"description":"The claim filing indicator (SBR09). Default commercial. For a Medicaid claim: medicaid, with the Medicaid ID in subscriber.member_id.","type":"string","enum":["commercial","medicaid","medicare_b","champus","dental_maintenance","ppo","pos","epo","indemnity","hmo","self_pay","other"]},"accident":{"description":"The accident the treatment relates to: cause, date (always needed) and state (needed for auto).","anyOf":[{"type":"object","properties":{"cause":{"type":"string","enum":["auto","employment","other"]},"date":{"description":"When the accident happened. Always needed (a finding when missing).","type":["string","null"]},"state":{"description":"The state the accident happened in: needed for an auto accident.","type":["string","null"]}},"required":["cause"],"additionalProperties":false},{"type":"null"}]},"referral_number":{"description":"The referral number (REF*9F), up to 50 characters.","type":["string","null"]},"prior_authorization":{"description":"The prior authorization number (REF*G1), up to 50 characters.","type":["string","null"]},"diagnosis_codes":{"description":"Up to 4 ICD-10-CM codes; the first is the principal diagnosis. Written without the dot. Lines point at them with diagnosis_pointers. On a correction the list is replaced whole.","maxItems":4,"type":"array","items":{"type":"string"}},"orthodontics":{"description":"Orthodontic treatment: the date the appliance was placed, the months of treatment in all and the months remaining.","anyOf":[{"type":"object","properties":{"appliance_placed_date":{"type":"string"},"total_months":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The months of treatment in all (0 to 99)."},"months_remaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The months of treatment remaining (0 to 99)."}},"required":["appliance_placed_date","total_months","months_remaining"],"additionalProperties":false},{"type":"null"}]},"missing_teeth":{"description":"Teeth that are missing or to be extracted (up to 35). On a correction the list is replaced whole.","maxItems":35,"type":"array","items":{"type":"object","properties":{"tooth":{"type":"string"},"status":{"type":"string","enum":["missing","to_be_extracted"]}},"required":["tooth","status"],"additionalProperties":false}},"service_location":{"description":"Where the treatment happened, when that is not the billing office's address: name, NPI (optional) and address. Not written when it is the billing address.","anyOf":[{"type":"object","properties":{"name":{"type":"string"},"npi":{"type":["string","null"]},"address":{"type":"object","properties":{"line1":{"type":"string"},"line2":{"type":["string","null"]},"city":{"type":"string"},"state":{"type":"string"},"postal_code":{"type":"string"}},"required":["line1","city","state","postal_code"],"additionalProperties":false}},"required":["name","address"],"additionalProperties":false},{"type":"null"}]},"payer_provider_ids":{"description":"The payer's own IDs for the billing office and the rendering provider (REF*G2), such as Medicaid provider IDs, up to 50 characters each. One left out or null: the office's or the provider's payer_provider_ids entry for the claim's payer, taken when the claim is queued (see snapshot). On a correction it is replaced whole.","anyOf":[{"type":"object","properties":{"billing":{"description":"The payer's own ID for the billing office (2010BB REF*G2).","type":["string","null"]},"rendering":{"description":"The payer's own ID for the rendering provider (2310B REF*G2).","type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"encounter":{"description":"true: a capitation encounter, reported to the payer and not billed for payment (sent as reporting only, BHT06 RP). Validated and priced like any claim. A claim's only: a predetermination with it is refused. Default false.","type":"boolean"},"allow_duplicate":{"description":"true: this claim is a separate service identical to another claim (same payer, patient, rendering provider, service dates, codes and fees), billed on purpose. A duplicate of a claim already queued or sent is then a warning instead of a DUPLICATE_CLAIM error, and both are sent. Default false.","type":"boolean"}},"additionalProperties":false},"examples":{"add_tooth":{"summary":"Give the crown its tooth","value":{"lines":[{"cdt":"D2740","fee":1140,"service_date":"2026-09-24","tooth":"3"}]}}}}}},"responses":{"200":{"description":"The claim as it is now.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Claim"},"examples":{"add_tooth":{"summary":"Give the crown its tooth","value":{"id":"clm_01JM000000E00800000000002G","object":"claim","kind":"claim","state":"queued","next_step":"This claim is queued and goes out in the next batch.","frequency":"original","parent_id":null,"patient_control_number":"CH4Q7M2K9TRB","office":{"id":"off_01JM000000E008000000000003","name":"Example Family Dental"},"payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"rendering_provider":{"id":"prv_01JM000000E008000000000005","first_name":"Riley","last_name":"Example","npi":"1999990017"},"patient_name":{"first_name":"Alex","last_name":"Example"},"service_dates":{"first":"2026-09-24","last":"2026-09-24"},"totals":{"charge":"1140.00","lines":1},"payment":null,"estimate":null,"converted_from":null,"converted_to":null,"source_claim_id":null,"patient_id":"pat_01JM000000E00800000000004K","insurance_type":"commercial","sequence":"primary","encounter":false,"request_id":"req_01JM000000E00800000000002J","created_at":"2026-09-24T21:00:00.120000+00:00","updated_at":"2026-09-24T21:00:00.310000+00:00","subscriber":{"first_name":"Alex","last_name":"Example","date_of_birth":"1985-04-12","gender":"F","member_id":"CH-ACTIVE-FULL","group_number":null,"address":{"line1":"1 Example Street","line2":null,"city":"Exampleville","state":"GA","postal_code":"30000"}},"patient":null,"place_of_service":"11","lines":[{"line_number":1,"cdt":"D2740","description":"Porcelain or ceramic crown","service_date":"2026-09-24","fee":"1140.00","quantity":1,"tooth":"3","surfaces":null,"area":null,"teeth":[],"areas":[],"prosthesis":null,"prior_placement_date":null,"diagnosis_pointers":[]}],"remarks":null,"metadata":{"pms_claim_number":"PMS-1042"},"coordination":{"sequence":"primary","other_payers":[]},"accident":null,"referral_number":null,"prior_authorization":null,"diagnosis_codes":[],"orthodontics":null,"missing_teeth":[],"service_location":null,"payer_provider_ids":{"billing":null,"rendering":null},"attachments":["att_01JM000000E00800000000003G"],"foreign_attachments":[],"validation":{"validated_at":"2026-09-24T21:00:00.300000+00:00","errors":0,"warnings":0,"findings":[]},"network":{"submitted_at":null,"clearinghouse_claim_id":null,"payer_claim_number":null,"rejection":null},"idempotency_key":"pms-1042","allow_duplicate":false,"delivery_uncertain":null,"no_payer_answer":null,"snapshot":{"billing_office":{"name":"Example Family Dental","npi":"1999999000","tax_id":"009999999","address":{"line1":"100 Example Street","line2":null,"city":"Exampleville","state":"GA","postal_code":"303010000"},"phone":"4045550100","pay_to_address":null},"service_location":null,"rendering_provider":{"first_name":"Riley","last_name":"Example","npi":"1999990017","taxonomy_code":"1223G0001X","license":{"state":"GA","number":"GA-000000"}},"payer_provider_ids":{"billing":null,"rendering":null}}}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.\n\n`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.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"CONFLICT":{"summary":"CONFLICT","value":{"error":"CONFLICT","message":"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.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"503":{"description":"`CLAIMS_UNAVAILABLE`: Claims are not available in live mode yet. Use a test key.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"CLAIMS_UNAVAILABLE":{"summary":"CLAIMS_UNAVAILABLE","value":{"error":"CLAIMS_UNAVAILABLE","message":"Claims are not available in live mode yet. Use a test key.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/claims/{id}/timeline":{"get":{"operationId":"getClaimTimeline","summary":"Get a claim's timeline","description":"What happened to the claim, oldest first, in plain words: created, validated, queued, submitted (with the file and the claim's place in it), the 997 and 277 statuses, rejections, corrections and voids. Each entry has structured detail (the file, control numbers, the status category and code).","tags":["Claims"],"x-permission":"read","parameters":[{"name":"id","in":"path","required":true,"description":"A claim ID (clm_...).","schema":{"type":"string"},"example":"clm_01JM000000E00800000000002G"}],"responses":{"200":{"description":"The timeline.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimTimeline"},"examples":{"accepted":{"summary":"A claim accepted by the payer","value":{"object":"claim_timeline","claim_id":"clm_01JM000000E00800000000002G","data":[{"type":"created","occurred_at":"2026-09-24T21:00:00.120000+00:00","summary":"Claim created","detail":{"via":"api_key"},"actor":{"kind":"api_key","id":"key_01JM000000E008000000000002"}},{"type":"validated","occurred_at":"2026-09-24T21:00:00.300000+00:00","summary":"Validated · 0 errors, 0 warnings","detail":{"errors":0,"warnings":0},"actor":null},{"type":"queued","occurred_at":"2026-09-24T21:00:00.310000+00:00","summary":"Queued for the next batch","detail":{},"actor":null},{"type":"submitted","occurred_at":"2026-09-24T21:00:30.000000+00:00","summary":"Submitted to network · batch 20260924210030000.837, claim 1 of 1","detail":{"file_name":"20260924210030000.837","position":1,"interchange_control_number":"000000042"},"actor":null},{"type":"accepted_clearinghouse","occurred_at":"2026-09-24T21:01:00.000000+00:00","summary":"Accepted by clearinghouse · 997","detail":{"file_name":"20260924210030000.837"},"actor":null},{"type":"accepted_payer","occurred_at":"2026-09-24T21:01:30.000000+00:00","summary":"Accepted by payer front end · 277 · STC A1:20","detail":{"payer_claim_number":"990000001042"},"actor":null}]}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/claims/{id}/x12":{"get":{"operationId":"getClaimX12","summary":"Get a claim's 837D","description":"The claim as it was sent, as text: the envelope of the file it travelled in, the levels above the claim and the claim's own segments, one per line. The other claims of the file are left out (SE, GE and IEA are counted for what is shown). Not found until the claim is in a file.","tags":["Claims"],"x-permission":"read","parameters":[{"name":"id","in":"path","required":true,"description":"A claim ID (clm_...).","schema":{"type":"string"},"example":"clm_01JM000000E00800000000002G"}],"responses":{"200":{"description":"The claim's 837D segments.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"text/plain":{"schema":{"type":"string"},"examples":{"sent":{"summary":"A claim sent in test mode (the receiver is the sandbox network)","value":"ISA*00*          *00*          *ZZ*CLAIMHOUSE     *ZZ*262403888      *260924*2100*^*00501*000001042*0*T*:~\nGS*HC*CLAIMHOUSE*262403888*20260924*2100*1042*X*005010X224A2~\nST*837*1042*005010X224A2~\nBHT*0019*00*000001042*20260924*2100*CH~\nNM1*41*2*CLAIM HOUSE*****46*CLAIMHOUSE~\nPER*IC*CLAIM HOUSE EDI*TE*5555550100~\nNM1*40*2*CLAIM HOUSE SANDBOX*****46*262403888~\nHL*1**20*1~\nNM1*85*2*EXAMPLE FAMILY DENTAL*****XX*1999999000~\nN3*100 EXAMPLE STREET~\nN4*EXAMPLEVILLE*GA*303010000~\nREF*EI*009999999~\nPER*IC**TE*4045550100~\nHL*2*1*22*0~\nSBR*P*18*******CI~\nNM1*IL*1*EXAMPLE*ALEX****MI*CH-ACTIVE-FULL~\nN3*1 EXAMPLE STREET~\nN4*EXAMPLEVILLE*GA*30000~\nDMG*D8*19850412*F~\nNM1*PR*2*EXAMPLE DENTAL PLAN*****PI*00000~\nCLM*CH4Q7M2K9TRB*1140***11:B:1*Y*A*Y*Y~\nPWK*OZ*EL***AC*NEA100001042~\nNTE*ADD*NEA#100001042~\nNM1*82*1*EXAMPLE*RILEY****XX*1999990017~\nPRV*PE*PXC*1223G0001X~\nREF*0B*GA-000000~\nLX*1~\nSV3*AD:D2740*1140~\nTOO*JP*3~\nDTP*472*D8*20260924~\nREF*6R*CH4Q7M2K9TRB-1~\nSE*30*1042~\nGE*1*1042~\nIEA*1*000001042~\n"}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"not_sent":{"summary":"A claim that is not in a file yet","value":{"error":"NOT_FOUND","message":"This claim has not been sent in a file yet.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/claims/{id}/submit":{"post":{"operationId":"submitClaim","summary":"Submit a claim","description":"Validates a draft or a claim that needs attention and queues it when it has no errors (a claim with errors comes back as needs_attention with its findings; one identical to a claim already queued or sent comes back with a DUPLICATE_CLAIM error unless either carries allow_duplicate). Queueing fixes what the claim's file says of its office and provider (snapshot). A queued claim is returned as it is; a claim already sent is a 409 CONFLICT whose details give its state, and is never sent twice. A claim that came back with DELIVERY_UNCERTAIN (its file may already be with the payer) or NO_PAYER_ANSWER (the payer never answered it) is refused with that 409 unless confirm_resend is true. Send an empty JSON object as the body otherwise. Needs an Idempotency-Key header and a key with the submit permission.","tags":["Claims"],"x-permission":"submit","parameters":[{"name":"id","in":"path","required":true,"description":"A claim ID (clm_...).","schema":{"type":"string"},"example":"clm_01JM000000E00800000000002G"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"confirm_resend":{"description":"true: send the claim again although the payer may already have it: it came back with DELIVERY_UNCERTAIN (handed to the network, no acknowledgement) or NO_PAYER_ANSWER (no answer from the payer). Check its status first. Without it such a claim is refused with 409 DELIVERY_UNCERTAIN or NO_PAYER_ANSWER. Has no effect on any other claim.","type":"boolean"}},"additionalProperties":false},"examples":{"queue":{"summary":"Queue a draft","value":{}},"already_sent":{"summary":"A claim already sent: never sent twice","value":{}},"delivery_uncertain":{"summary":"A claim whose last file may already be with the payer, without confirm_resend","value":{}},"no_payer_answer":{"summary":"A claim the payer never answered, without confirm_resend","value":{}},"confirm_resend":{"summary":"The same claim, its status checked, sent again","value":{"confirm_resend":true}}}}}},"responses":{"200":{"description":"The claim as it is now.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Claim"},"examples":{"queue":{"summary":"Queue a draft","value":{"id":"clm_01JM000000E00800000000002G","object":"claim","kind":"claim","state":"queued","next_step":"This claim is queued and goes out in the next batch.","frequency":"original","parent_id":null,"patient_control_number":"CH4Q7M2K9TRB","office":{"id":"off_01JM000000E008000000000003","name":"Example Family Dental"},"payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"rendering_provider":{"id":"prv_01JM000000E008000000000005","first_name":"Riley","last_name":"Example","npi":"1999990017"},"patient_name":{"first_name":"Alex","last_name":"Example"},"service_dates":{"first":"2026-09-24","last":"2026-09-24"},"totals":{"charge":"1140.00","lines":1},"payment":null,"estimate":null,"converted_from":null,"converted_to":null,"source_claim_id":null,"patient_id":"pat_01JM000000E00800000000004K","insurance_type":"commercial","sequence":"primary","encounter":false,"request_id":"req_01JM000000E00800000000002J","created_at":"2026-09-24T21:00:00.120000+00:00","updated_at":"2026-09-24T21:00:00.310000+00:00","subscriber":{"first_name":"Alex","last_name":"Example","date_of_birth":"1985-04-12","gender":"F","member_id":"CH-ACTIVE-FULL","group_number":null,"address":{"line1":"1 Example Street","line2":null,"city":"Exampleville","state":"GA","postal_code":"30000"}},"patient":null,"place_of_service":"11","lines":[{"line_number":1,"cdt":"D2740","description":"Porcelain or ceramic crown","service_date":"2026-09-24","fee":"1140.00","quantity":1,"tooth":"3","surfaces":null,"area":null,"teeth":[],"areas":[],"prosthesis":null,"prior_placement_date":null,"diagnosis_pointers":[]}],"remarks":null,"metadata":{"pms_claim_number":"PMS-1042"},"coordination":{"sequence":"primary","other_payers":[]},"accident":null,"referral_number":null,"prior_authorization":null,"diagnosis_codes":[],"orthodontics":null,"missing_teeth":[],"service_location":null,"payer_provider_ids":{"billing":null,"rendering":null},"attachments":["att_01JM000000E00800000000003G"],"foreign_attachments":[],"validation":{"validated_at":"2026-09-24T21:00:00.300000+00:00","errors":0,"warnings":0,"findings":[]},"network":{"submitted_at":null,"clearinghouse_claim_id":null,"payer_claim_number":null,"rejection":null},"idempotency_key":"pms-1042","allow_duplicate":false,"delivery_uncertain":null,"no_payer_answer":null,"snapshot":{"billing_office":{"name":"Example Family Dental","npi":"1999999000","tax_id":"009999999","address":{"line1":"100 Example Street","line2":null,"city":"Exampleville","state":"GA","postal_code":"303010000"},"phone":"4045550100","pay_to_address":null},"service_location":null,"rendering_provider":{"first_name":"Riley","last_name":"Example","npi":"1999990017","taxonomy_code":"1223G0001X","license":{"state":"GA","number":"GA-000000"}},"payer_provider_ids":{"billing":null,"rendering":null}}}},"confirm_resend":{"summary":"The same claim, its status checked, sent again","value":{"id":"clm_01JM000000E00800000000002G","object":"claim","kind":"claim","state":"queued","next_step":"This claim is queued and goes out in the next batch.","frequency":"original","parent_id":null,"patient_control_number":"CH4Q7M2K9TRB","office":{"id":"off_01JM000000E008000000000003","name":"Example Family Dental"},"payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"rendering_provider":{"id":"prv_01JM000000E008000000000005","first_name":"Riley","last_name":"Example","npi":"1999990017"},"patient_name":{"first_name":"Alex","last_name":"Example"},"service_dates":{"first":"2026-09-24","last":"2026-09-24"},"totals":{"charge":"1140.00","lines":1},"payment":null,"estimate":null,"converted_from":null,"converted_to":null,"source_claim_id":null,"patient_id":"pat_01JM000000E00800000000004K","insurance_type":"commercial","sequence":"primary","encounter":false,"request_id":"req_01JM000000E00800000000002J","created_at":"2026-09-24T21:00:00.120000+00:00","updated_at":"2026-09-24T21:00:00.310000+00:00","subscriber":{"first_name":"Alex","last_name":"Example","date_of_birth":"1985-04-12","gender":"F","member_id":"CH-ACTIVE-FULL","group_number":null,"address":{"line1":"1 Example Street","line2":null,"city":"Exampleville","state":"GA","postal_code":"30000"}},"patient":null,"place_of_service":"11","lines":[{"line_number":1,"cdt":"D2740","description":"Porcelain or ceramic crown","service_date":"2026-09-24","fee":"1140.00","quantity":1,"tooth":"3","surfaces":null,"area":null,"teeth":[],"areas":[],"prosthesis":null,"prior_placement_date":null,"diagnosis_pointers":[]}],"remarks":null,"metadata":{"pms_claim_number":"PMS-1042"},"coordination":{"sequence":"primary","other_payers":[]},"accident":null,"referral_number":null,"prior_authorization":null,"diagnosis_codes":[],"orthodontics":null,"missing_teeth":[],"service_location":null,"payer_provider_ids":{"billing":null,"rendering":null},"attachments":["att_01JM000000E00800000000003G"],"foreign_attachments":[],"validation":{"validated_at":"2026-09-24T21:00:00.300000+00:00","errors":0,"warnings":0,"findings":[]},"network":{"submitted_at":null,"clearinghouse_claim_id":null,"payer_claim_number":null,"rejection":null},"idempotency_key":"pms-1042","allow_duplicate":false,"delivery_uncertain":null,"no_payer_answer":null,"snapshot":{"billing_office":{"name":"Example Family Dental","npi":"1999999000","tax_id":"009999999","address":{"line1":"100 Example Street","line2":null,"city":"Exampleville","state":"GA","postal_code":"303010000"},"phone":"4045550100","pay_to_address":null},"service_location":null,"rendering_provider":{"first_name":"Riley","last_name":"Example","npi":"1999990017","taxonomy_code":"1223G0001X","license":{"state":"GA","number":"GA-000000"}},"payer_provider_ids":{"billing":null,"rendering":null}}}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.\n\n`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.\n\n`DELIVERY_UNCERTAIN`: This claim's last file may already be with the payer: no acknowledgement came after it was handed to the network. Check the claim's status before you send it again; to send it anyway, repeat the request with confirm_resend set to true.\n\n`NO_PAYER_ANSWER`: The payer has not answered this claim's last submission. Check its status with the payer before you send it again; to send it anyway, repeat the request with confirm_resend set to true, or void it.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"already_sent":{"summary":"A claim already sent: never sent twice","value":{"error":"CONFLICT","message":"This claim was already sent.","errors":[],"details":{"claim_id":"clm_01JM000000E00800000000002G","state":"submitted"},"request_id":"req_01JM000000E008000000000010"}},"delivery_uncertain":{"summary":"A claim whose last file may already be with the payer, without confirm_resend","value":{"error":"DELIVERY_UNCERTAIN","message":"This claim's last file may already be with the payer: no acknowledgement came after it was handed to the network. Check the claim's status before you send it again; to send it anyway, repeat the request with confirm_resend set to true.","errors":[],"details":{"claim_id":"clm_01JM000000E00800000000002G","file_id":"fil_01JM000000E0080000000000A0"},"request_id":"req_01JM000000E008000000000010"}},"no_payer_answer":{"summary":"A claim the payer never answered, without confirm_resend","value":{"error":"NO_PAYER_ANSWER","message":"The payer has not answered this claim's last submission. Check its status with the payer before you send it again; to send it anyway, repeat the request with confirm_resend set to true, or void it.","errors":[],"details":{"claim_id":"clm_01JM000000E00800000000002G","file_id":"fil_01JM000000E0080000000000A0"},"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"503":{"description":"`CLAIMS_UNAVAILABLE`: Claims are not available in live mode yet. Use a test key.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"CLAIMS_UNAVAILABLE":{"summary":"CLAIMS_UNAVAILABLE","value":{"error":"CLAIMS_UNAVAILABLE","message":"Claims are not available in live mode yet. Use a test key.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/claims/{id}/resubmit":{"post":{"operationId":"resubmitClaim","summary":"Correct and resubmit a claim","description":"For a claim that was rejected or needs attention, or that the payer accepted, paid or denied (to correct it): applies the corrections in the body (only the fields to change, as for an update; an empty object for none), validates the claim and queues it, under the same claim ID, with a new snapshot of its office and provider as they are now. A claim that came back with DELIVERY_UNCERTAIN (its file may already be with the payer) or NO_PAYER_ANSWER (the payer never answered it) is refused with that 409, nothing changed, unless the body has confirm_resend true; it goes out again as it went before. A claim the payer already has goes out as a replacement naming the payer claim number, with its attachments; one it never had, as an original. Refused while a void transaction for the claim is in progress, and for a reconciled claim. A predetermination is never replaced: a rejected one is corrected and sent again as an original; once the payer has accepted one, void it and make a new one. Needs an Idempotency-Key header and a key with the submit permission.","tags":["Claims"],"x-permission":"submit","parameters":[{"name":"id","in":"path","required":true,"description":"A claim ID (clm_...).","schema":{"type":"string"},"example":"clm_01JM000000E00800000000002G"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"office_id":{"description":"The office that bills the claim (off_...).","type":"string"},"payer_id":{"description":"The payer (a Claim House payer ID, pyr_..., a payer ID or an alias from the payer directory).","type":"string"},"rendering_provider_id":{"description":"The dentist who did the treatment (prv_...).","type":"string"},"subscriber":{"description":"The subscriber fields to change; the others are kept.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"patient":{"description":"The patient fields to change; null removes the dependent patient.","anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"place_of_service":{"description":"The place of service code. Default 11 (office).","type":"string"},"lines":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"cdt":{"type":"string"},"description":{"type":["string","null"]},"service_date":{"type":["string","null"]},"fee":{"type":"number"},"quantity":{"type":"integer","minimum":0,"maximum":99999},"tooth":{"description":"The tooth, for a line with one. For several teeth give teeth instead (never both).","type":["string","null"]},"surfaces":{"description":"The surfaces of the tooth. With teeth, give the surfaces of each tooth there.","type":["string","null"]},"area":{"description":"The oral cavity code, for a line with one area. For several give areas instead (never both).","type":["string","null"]},"teeth":{"description":"Several teeth, each with its surfaces (up to 32): one TOO segment each. Not with tooth or surfaces.","maxItems":32,"type":"array","items":{"type":"object","properties":{"tooth":{"type":"string"},"surfaces":{"type":["string","null"]}},"required":["tooth"],"additionalProperties":false}},"areas":{"description":"Several oral cavity codes (up to 5). Not with area.","maxItems":5,"type":"array","items":{"type":"string"}},"prosthesis":{"description":"initial or replacement: whether the crown, bridge or denture is the first or a replacement.","anyOf":[{"type":"string","enum":["initial","replacement"]},{"type":"null"}]},"prior_placement_date":{"description":"When the prosthesis being replaced was first placed: needed for a replacement (a finding when missing).","type":["string","null"]},"diagnosis_pointers":{"description":"Positions, from 1, in the claim's diagnosis_codes (up to 4). A position past the codes is a finding.","maxItems":4,"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},"required":["cdt"],"additionalProperties":false},"description":"The procedures, one line each. At least one for a claim to be sent."},"total":{"description":"The total the claim comes to, in dollars: checked against the lines.","type":["number","null"]},"remarks":{"description":"Notes for the payer: up to 5 notes of 80 characters, split between words (about 370 characters of ordinary text); a remark that does not fit is a TOO_LONG finding.","type":["string","null"]},"metadata":{"description":"Up to 20 pairs of your own, returned with the claim and never sent to the payer.","type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":40},"additionalProperties":{"type":"string","maxLength":500}},"patient_control_number":{"description":"Your identifier for the claim, sent on the claim and returned on its status: unique in your organization. Made for you when omitted.","type":["string","null"]},"attachments":{"description":"The attachments the claim carries (att_...), at most 5: of your organization and mode, for the claim's payer, unsolicited and on no other claim. Each must be closed before the claim is sent (ATTACHMENT_OPEN); the claim file carries a PWK and a note for each.","maxItems":5,"type":"array","items":{"type":"string"}},"foreign_attachments":{"description":"For partners that already hold an attachment number (an attachment sent through their own NEA account, say): the PWK and NTE of each, which the claim file carries unchanged, after the claim's own attachments. At most 10 in all with attachments. Claim House keeps nothing else of such an attachment and does not check it.","maxItems":10,"type":"array","items":{"type":"object","properties":{"pwk":{"minItems":1,"maxItems":9,"type":"array","items":{"type":"string"},"description":"The elements of the PWK segment after its id, in order (1 to 9); an empty string for an element the segment leaves empty."},"nte":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"description":"The text of the NTE segment that followed the PWK, or null when none did."}},"required":["pwk","nte"],"additionalProperties":false}},"coordination":{"description":"Coordination of benefits: this claim's place among the payers (sequence) and the other payers that are responsible before or alongside this one. Absent: a primary claim with no other payer. On a correction it is replaced whole.","type":"object","properties":{"sequence":{"description":"primary (the default), secondary or tertiary: this claim's place among the payers. Written as SBR01 of the claim's subscriber loop.","type":"string","enum":["primary","secondary","tertiary"]},"other_payers":{"description":"The payers responsible before or alongside this one (up to 2): a secondary claim has one primary, a tertiary claim a primary and a secondary.","maxItems":2,"type":"array","items":{"type":"object","properties":{"payer_id":{"description":"The other payer, as a directory reference (a Claim House payer ID, a payer ID or an alias). Or give payer_name and payer_identifier, never both ways.","type":"string"},"payer_name":{"description":"For a payer outside the directory: its name.","type":"string"},"payer_identifier":{"description":"For a payer outside the directory: its payer ID as the claim file carries it (NM109).","type":"string"},"responsibility":{"type":"string","enum":["primary","secondary"],"description":"primary or secondary: this payer's place before the claim's own payer."},"insurance_type":{"description":"The filing indicator of this payer. Default commercial.","type":"string","enum":["commercial","medicaid","medicare_b","champus","dental_maintenance","ppo","pos","epo","indemnity","hmo","self_pay","other"]},"relationship":{"type":"string","enum":["self","spouse","child","other"],"description":"The patient's relationship to this payer's subscriber: self, spouse, child or other."},"subscriber":{"type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"member_id":{"type":"string"},"group_number":{"type":["string","null"]}},"required":["first_name","last_name","member_id"],"additionalProperties":false,"description":"This payer's subscriber."},"paid":{"description":"What this payer paid, in dollars; leave out when it did not adjudicate the claim.","type":["number","null"]},"paid_date":{"description":"When it paid: needed when it paid anything.","type":["string","null"]},"patient_responsibility":{"description":"What this payer says the patient owes, in dollars.","type":["number","null"]},"adjustments":{"description":"Its adjustments, which with paid add up to the claim's charge. With lines: its claim-level adjustments only.","maxItems":30,"type":"array","items":{"type":"object","properties":{"group":{"type":"string","enum":["CO","OA","PI","PR"],"description":"CO contractual, OA other, PI payer initiated, PR patient responsibility."},"reason":{"description":"The claim adjustment reason code (such as 45).","type":"string"},"amount":{"description":"In dollars; negative for a reversal.","type":"number"}},"required":["group","reason"],"additionalProperties":false}},"lines":{"description":"What it paid and adjusted line by line (loop 2430): every line of the claim, once each. Needs paid and paid_date. Each line's paid and adjustments add up to its fee; the lines' paid less the claim-level adjustments is paid. Leave out (or null) for claim-level figures.","anyOf":[{"maxItems":100,"type":"array","items":{"type":"object","properties":{"line":{"type":"integer","minimum":1,"maximum":100,"description":"The claim line, from 1 in the order of lines."},"paid":{"description":"What this payer paid on the line, in dollars.","type":"number"},"adjustments":{"description":"Its adjustments of the line, which with paid add up to the line's fee.","maxItems":30,"type":"array","items":{"type":"object","properties":{"group":{"type":"string","enum":["CO","OA","PI","PR"],"description":"CO contractual, OA other, PI payer initiated, PR patient responsibility."},"reason":{"description":"The claim adjustment reason code (such as 45).","type":"string"},"amount":{"description":"In dollars; negative for a reversal.","type":"number"}},"required":["group","reason"],"additionalProperties":false}}},"required":["line"],"additionalProperties":false}},{"type":"null"}]}},"required":["responsibility","relationship","subscriber"],"additionalProperties":false}}},"additionalProperties":false},"insurance_type":{"description":"The claim filing indicator (SBR09). Default commercial. For a Medicaid claim: medicaid, with the Medicaid ID in subscriber.member_id.","type":"string","enum":["commercial","medicaid","medicare_b","champus","dental_maintenance","ppo","pos","epo","indemnity","hmo","self_pay","other"]},"accident":{"description":"The accident the treatment relates to: cause, date (always needed) and state (needed for auto).","anyOf":[{"type":"object","properties":{"cause":{"type":"string","enum":["auto","employment","other"]},"date":{"description":"When the accident happened. Always needed (a finding when missing).","type":["string","null"]},"state":{"description":"The state the accident happened in: needed for an auto accident.","type":["string","null"]}},"required":["cause"],"additionalProperties":false},{"type":"null"}]},"referral_number":{"description":"The referral number (REF*9F), up to 50 characters.","type":["string","null"]},"prior_authorization":{"description":"The prior authorization number (REF*G1), up to 50 characters.","type":["string","null"]},"diagnosis_codes":{"description":"Up to 4 ICD-10-CM codes; the first is the principal diagnosis. Written without the dot. Lines point at them with diagnosis_pointers. On a correction the list is replaced whole.","maxItems":4,"type":"array","items":{"type":"string"}},"orthodontics":{"description":"Orthodontic treatment: the date the appliance was placed, the months of treatment in all and the months remaining.","anyOf":[{"type":"object","properties":{"appliance_placed_date":{"type":"string"},"total_months":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The months of treatment in all (0 to 99)."},"months_remaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The months of treatment remaining (0 to 99)."}},"required":["appliance_placed_date","total_months","months_remaining"],"additionalProperties":false},{"type":"null"}]},"missing_teeth":{"description":"Teeth that are missing or to be extracted (up to 35). On a correction the list is replaced whole.","maxItems":35,"type":"array","items":{"type":"object","properties":{"tooth":{"type":"string"},"status":{"type":"string","enum":["missing","to_be_extracted"]}},"required":["tooth","status"],"additionalProperties":false}},"service_location":{"description":"Where the treatment happened, when that is not the billing office's address: name, NPI (optional) and address. Not written when it is the billing address.","anyOf":[{"type":"object","properties":{"name":{"type":"string"},"npi":{"type":["string","null"]},"address":{"type":"object","properties":{"line1":{"type":"string"},"line2":{"type":["string","null"]},"city":{"type":"string"},"state":{"type":"string"},"postal_code":{"type":"string"}},"required":["line1","city","state","postal_code"],"additionalProperties":false}},"required":["name","address"],"additionalProperties":false},{"type":"null"}]},"payer_provider_ids":{"description":"The payer's own IDs for the billing office and the rendering provider (REF*G2), such as Medicaid provider IDs, up to 50 characters each. One left out or null: the office's or the provider's payer_provider_ids entry for the claim's payer, taken when the claim is queued (see snapshot). On a correction it is replaced whole.","anyOf":[{"type":"object","properties":{"billing":{"description":"The payer's own ID for the billing office (2010BB REF*G2).","type":["string","null"]},"rendering":{"description":"The payer's own ID for the rendering provider (2310B REF*G2).","type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"encounter":{"description":"true: a capitation encounter, reported to the payer and not billed for payment (sent as reporting only, BHT06 RP). Validated and priced like any claim. A claim's only: a predetermination with it is refused. Default false.","type":"boolean"},"allow_duplicate":{"description":"true: this claim is a separate service identical to another claim (same payer, patient, rendering provider, service dates, codes and fees), billed on purpose. A duplicate of a claim already queued or sent is then a warning instead of a DUPLICATE_CLAIM error, and both are sent. Default false.","type":"boolean"},"confirm_resend":{"description":"true: send the claim again although the payer may already have it: it came back with DELIVERY_UNCERTAIN (handed to the network, no acknowledgement) or NO_PAYER_ANSWER (no answer from the payer). Check its status first. Without it such a claim is refused with 409 DELIVERY_UNCERTAIN or NO_PAYER_ANSWER. Has no effect on any other claim.","type":"boolean"}},"additionalProperties":false},"examples":{"member_id":{"summary":"Correct the member ID and resubmit","value":{"subscriber":{"member_id":"CH-ACTIVE-FULL"}}}}}}},"responses":{"200":{"description":"The claim as it is now: queued, or needing attention when the corrections still have errors.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Claim"},"examples":{"member_id":{"summary":"Correct the member ID and resubmit","value":{"id":"clm_01JM000000E00800000000002G","object":"claim","kind":"claim","state":"queued","next_step":"This claim is queued and goes out in the next batch.","frequency":"original","parent_id":null,"patient_control_number":"CH4Q7M2K9TRB","office":{"id":"off_01JM000000E008000000000003","name":"Example Family Dental"},"payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"rendering_provider":{"id":"prv_01JM000000E008000000000005","first_name":"Riley","last_name":"Example","npi":"1999990017"},"patient_name":{"first_name":"Alex","last_name":"Example"},"service_dates":{"first":"2026-09-24","last":"2026-09-24"},"totals":{"charge":"1140.00","lines":1},"payment":null,"estimate":null,"converted_from":null,"converted_to":null,"source_claim_id":null,"patient_id":"pat_01JM000000E00800000000004K","insurance_type":"commercial","sequence":"primary","encounter":false,"request_id":"req_01JM000000E00800000000002J","created_at":"2026-09-24T21:00:00.120000+00:00","updated_at":"2026-09-24T21:00:00.310000+00:00","subscriber":{"first_name":"Alex","last_name":"Example","date_of_birth":"1985-04-12","gender":"F","member_id":"CH-ACTIVE-FULL","group_number":null,"address":{"line1":"1 Example Street","line2":null,"city":"Exampleville","state":"GA","postal_code":"30000"}},"patient":null,"place_of_service":"11","lines":[{"line_number":1,"cdt":"D2740","description":"Porcelain or ceramic crown","service_date":"2026-09-24","fee":"1140.00","quantity":1,"tooth":"3","surfaces":null,"area":null,"teeth":[],"areas":[],"prosthesis":null,"prior_placement_date":null,"diagnosis_pointers":[]}],"remarks":null,"metadata":{"pms_claim_number":"PMS-1042"},"coordination":{"sequence":"primary","other_payers":[]},"accident":null,"referral_number":null,"prior_authorization":null,"diagnosis_codes":[],"orthodontics":null,"missing_teeth":[],"service_location":null,"payer_provider_ids":{"billing":null,"rendering":null},"attachments":["att_01JM000000E00800000000003G"],"foreign_attachments":[],"validation":{"validated_at":"2026-09-24T21:00:00.300000+00:00","errors":0,"warnings":0,"findings":[]},"network":{"submitted_at":null,"clearinghouse_claim_id":null,"payer_claim_number":null,"rejection":null},"idempotency_key":"pms-1042","allow_duplicate":false,"delivery_uncertain":null,"no_payer_answer":null,"snapshot":{"billing_office":{"name":"Example Family Dental","npi":"1999999000","tax_id":"009999999","address":{"line1":"100 Example Street","line2":null,"city":"Exampleville","state":"GA","postal_code":"303010000"},"phone":"4045550100","pay_to_address":null},"service_location":null,"rendering_provider":{"first_name":"Riley","last_name":"Example","npi":"1999990017","taxonomy_code":"1223G0001X","license":{"state":"GA","number":"GA-000000"}},"payer_provider_ids":{"billing":null,"rendering":null}}}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.\n\n`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.\n\n`DELIVERY_UNCERTAIN`: This claim's last file may already be with the payer: no acknowledgement came after it was handed to the network. Check the claim's status before you send it again; to send it anyway, repeat the request with confirm_resend set to true.\n\n`NO_PAYER_ANSWER`: The payer has not answered this claim's last submission. Check its status with the payer before you send it again; to send it anyway, repeat the request with confirm_resend set to true, or void it.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"CONFLICT":{"summary":"CONFLICT","value":{"error":"CONFLICT","message":"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.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"DELIVERY_UNCERTAIN":{"summary":"DELIVERY_UNCERTAIN","value":{"error":"DELIVERY_UNCERTAIN","message":"This claim's last file may already be with the payer: no acknowledgement came after it was handed to the network. Check the claim's status before you send it again; to send it anyway, repeat the request with confirm_resend set to true.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"NO_PAYER_ANSWER":{"summary":"NO_PAYER_ANSWER","value":{"error":"NO_PAYER_ANSWER","message":"The payer has not answered this claim's last submission. Check its status with the payer before you send it again; to send it anyway, repeat the request with confirm_resend set to true, or void it.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"503":{"description":"`CLAIMS_UNAVAILABLE`: Claims are not available in live mode yet. Use a test key.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"CLAIMS_UNAVAILABLE":{"summary":"CLAIMS_UNAVAILABLE","value":{"error":"CLAIMS_UNAVAILABLE","message":"Claims are not available in live mode yet. Use a test key.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/claims/{id}/void":{"post":{"operationId":"voidClaim","summary":"Void a claim","description":"A claim the payer has not seen (a draft, validated, needing attention, queued, or rejected without a payer claim number) becomes voided at once. For a claim the payer has (a payer claim number, or a correction of one, whatever its state), a void transaction is validated and queued: a new claim linked to it (void_transaction), and the original becomes voided when the payer accepts the void. A replacement queued to go out is a conflict until it is sent or its correction cancelled. A claim the payer never answered (NO_PAYER_ANSWER) is voided at once, with no void transaction; a void transaction it never answered is a conflict (send it again with confirm_resend). A predetermination is voided the same way, a returned one included (the way to withdraw it); a converted one is a conflict: void the claim made from it. Send an empty JSON object as the body. Needs an Idempotency-Key header and a key with the submit permission.","tags":["Claims"],"x-permission":"submit","parameters":[{"name":"id","in":"path","required":true,"description":"A claim ID (clm_...).","schema":{"type":"string"},"example":"clm_01JM000000E00800000000002G"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false},"examples":{"after_acceptance":{"summary":"Void a claim the payer accepted","value":{}}}}}},"responses":{"200":{"description":"The claim, and the void transaction when one was queued.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"claim_void"},"claim":{"description":"The claim as it is now: voided when it was never sent; unchanged (until the payer accepts the void) when it was.","$ref":"#/components/schemas/Claim"},"void_transaction":{"anyOf":[{"$ref":"#/components/schemas/Claim"},{"type":"null"}],"description":"The void transaction queued for a claim the payer has, or null."}},"required":["object","claim","void_transaction"]},"examples":{"after_acceptance":{"summary":"Void a claim the payer accepted","value":{"object":"claim_void","claim":{"id":"clm_01JM000000E00800000000002G","object":"claim","kind":"claim","state":"accepted_payer","next_step":"The payer accepted the claim. Nothing is needed from you while it is processed.","frequency":"original","parent_id":null,"patient_control_number":"CH4Q7M2K9TRB","office":{"id":"off_01JM000000E008000000000003","name":"Example Family Dental"},"payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"rendering_provider":{"id":"prv_01JM000000E008000000000005","first_name":"Riley","last_name":"Example","npi":"1999990017"},"patient_name":{"first_name":"Alex","last_name":"Example"},"service_dates":{"first":"2026-09-24","last":"2026-09-24"},"totals":{"charge":"1140.00","lines":1},"payment":null,"estimate":null,"converted_from":null,"converted_to":null,"source_claim_id":null,"patient_id":"pat_01JM000000E00800000000004K","insurance_type":"commercial","sequence":"primary","encounter":false,"request_id":"req_01JM000000E00800000000002J","created_at":"2026-09-24T21:00:00.120000+00:00","updated_at":"2026-09-24T21:00:00.310000+00:00","subscriber":{"first_name":"Alex","last_name":"Example","date_of_birth":"1985-04-12","gender":"F","member_id":"CH-ACTIVE-FULL","group_number":null,"address":{"line1":"1 Example Street","line2":null,"city":"Exampleville","state":"GA","postal_code":"30000"}},"patient":null,"place_of_service":"11","lines":[{"line_number":1,"cdt":"D2740","description":"Porcelain or ceramic crown","service_date":"2026-09-24","fee":"1140.00","quantity":1,"tooth":"3","surfaces":null,"area":null,"teeth":[],"areas":[],"prosthesis":null,"prior_placement_date":null,"diagnosis_pointers":[]}],"remarks":null,"metadata":{"pms_claim_number":"PMS-1042"},"coordination":{"sequence":"primary","other_payers":[]},"accident":null,"referral_number":null,"prior_authorization":null,"diagnosis_codes":[],"orthodontics":null,"missing_teeth":[],"service_location":null,"payer_provider_ids":{"billing":null,"rendering":null},"attachments":["att_01JM000000E00800000000003G"],"foreign_attachments":[],"validation":{"validated_at":"2026-09-24T21:00:00.300000+00:00","errors":0,"warnings":0,"findings":[]},"network":{"submitted_at":"2026-09-24T21:00:30.000000+00:00","clearinghouse_claim_id":"SBX4K7Q2M9TB","payer_claim_number":"990000001042","rejection":null},"idempotency_key":"pms-1042","allow_duplicate":false,"delivery_uncertain":null,"no_payer_answer":null,"snapshot":{"billing_office":{"name":"Example Family Dental","npi":"1999999000","tax_id":"009999999","address":{"line1":"100 Example Street","line2":null,"city":"Exampleville","state":"GA","postal_code":"303010000"},"phone":"4045550100","pay_to_address":null},"service_location":null,"rendering_provider":{"first_name":"Riley","last_name":"Example","npi":"1999990017","taxonomy_code":"1223G0001X","license":{"state":"GA","number":"GA-000000"}},"payer_provider_ids":{"billing":null,"rendering":null}}},"void_transaction":{"id":"clm_01JM000000E00800000000002H","object":"claim","kind":"claim","state":"queued","next_step":"This claim is queued and goes out in the next batch.","frequency":"void","parent_id":"clm_01JM000000E00800000000002G","patient_control_number":"CH0001043","office":{"id":"off_01JM000000E008000000000003","name":"Example Family Dental"},"payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"rendering_provider":{"id":"prv_01JM000000E008000000000005","first_name":"Riley","last_name":"Example","npi":"1999990017"},"patient_name":{"first_name":"Alex","last_name":"Example"},"service_dates":{"first":"2026-09-24","last":"2026-09-24"},"totals":{"charge":"1140.00","lines":1},"payment":null,"estimate":null,"converted_from":null,"converted_to":null,"source_claim_id":null,"patient_id":"pat_01JM000000E00800000000004K","insurance_type":"commercial","sequence":"primary","encounter":false,"request_id":"req_01JM000000E00800000000002K","created_at":"2026-09-24T21:00:00.120000+00:00","updated_at":"2026-09-24T21:00:00.310000+00:00","subscriber":{"first_name":"Alex","last_name":"Example","date_of_birth":"1985-04-12","gender":"F","member_id":"CH-ACTIVE-FULL","group_number":null,"address":{"line1":"1 Example Street","line2":null,"city":"Exampleville","state":"GA","postal_code":"30000"}},"patient":null,"place_of_service":"11","lines":[{"line_number":1,"cdt":"D2740","description":"Porcelain or ceramic crown","service_date":"2026-09-24","fee":"1140.00","quantity":1,"tooth":"3","surfaces":null,"area":null,"teeth":[],"areas":[],"prosthesis":null,"prior_placement_date":null,"diagnosis_pointers":[]}],"remarks":null,"metadata":{"pms_claim_number":"PMS-1042"},"coordination":{"sequence":"primary","other_payers":[]},"accident":null,"referral_number":null,"prior_authorization":null,"diagnosis_codes":[],"orthodontics":null,"missing_teeth":[],"service_location":null,"payer_provider_ids":{"billing":null,"rendering":null},"attachments":["att_01JM000000E00800000000003G"],"foreign_attachments":[],"validation":{"validated_at":"2026-09-24T21:00:00.300000+00:00","errors":0,"warnings":0,"findings":[]},"network":{"submitted_at":null,"clearinghouse_claim_id":null,"payer_claim_number":null,"rejection":null},"idempotency_key":"void-1042","allow_duplicate":false,"delivery_uncertain":null,"no_payer_answer":null,"snapshot":{"billing_office":{"name":"Example Family Dental","npi":"1999999000","tax_id":"009999999","address":{"line1":"100 Example Street","line2":null,"city":"Exampleville","state":"GA","postal_code":"303010000"},"phone":"4045550100","pay_to_address":null},"service_location":null,"rendering_provider":{"first_name":"Riley","last_name":"Example","npi":"1999990017","taxonomy_code":"1223G0001X","license":{"state":"GA","number":"GA-000000"}},"payer_provider_ids":{"billing":null,"rendering":null}}}}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.\n\n`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.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"CONFLICT":{"summary":"CONFLICT","value":{"error":"CONFLICT","message":"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.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"503":{"description":"`CLAIMS_UNAVAILABLE`: Claims are not available in live mode yet. Use a test key.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"CLAIMS_UNAVAILABLE":{"summary":"CLAIMS_UNAVAILABLE","value":{"error":"CLAIMS_UNAVAILABLE","message":"Claims are not available in live mode yet. Use a test key.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/claims/{id}/reconcile":{"post":{"operationId":"reconcileClaim","summary":"Reconcile a claim","description":"Says you posted the claim's payment in your system: a paid or denied claim becomes reconciled (a reconciled one is returned as it is). If the payer later reverses or corrects the payment, the claim leaves reconciled with a timeline entry and an event (claim.payment_reversed or claim.paid), so you can undo or redo the posting. To post every claim of a remittance at once, post its ERA. Send an empty JSON object as the body. Needs an Idempotency-Key header and a key with the submit permission.","tags":["Claims"],"x-permission":"submit","parameters":[{"name":"id","in":"path","required":true,"description":"A claim ID (clm_...).","schema":{"type":"string"},"example":"clm_01JM000000E00800000000002G"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false},"examples":{"reconcile":{"summary":"Reconcile a paid claim","value":{}}}}}},"responses":{"200":{"description":"The claim as it is now.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Claim"},"examples":{"reconcile":{"summary":"Reconcile a paid claim","value":{"id":"clm_01JM000000E00800000000002G","object":"claim","kind":"claim","state":"reconciled","next_step":"The payment is posted. Nothing is needed unless the payer changes or reverses it.","frequency":"original","parent_id":null,"patient_control_number":"CH4Q7M2K9TRB","office":{"id":"off_01JM000000E008000000000003","name":"Example Family Dental"},"payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"rendering_provider":{"id":"prv_01JM000000E008000000000005","first_name":"Riley","last_name":"Example","npi":"1999990017"},"patient_name":{"first_name":"Alex","last_name":"Example"},"service_dates":{"first":"2026-09-24","last":"2026-09-24"},"totals":{"charge":"1140.00","lines":1},"payment":{"outcome":"paid","era_id":"era_01JM000000E00800000000003G","paid":"820.80","allowed":"1026.00","patient_responsibility":"205.20","payment_date":"2026-09-24","reconciled_at":"2026-09-25T09:00:00.000000+00:00"},"estimate":null,"converted_from":null,"converted_to":null,"source_claim_id":null,"patient_id":"pat_01JM000000E00800000000004K","insurance_type":"commercial","sequence":"primary","encounter":false,"request_id":"req_01JM000000E00800000000002J","created_at":"2026-09-24T21:00:00.120000+00:00","updated_at":"2026-09-24T21:00:00.310000+00:00","subscriber":{"first_name":"Alex","last_name":"Example","date_of_birth":"1985-04-12","gender":"F","member_id":"CH-ACTIVE-FULL","group_number":null,"address":{"line1":"1 Example Street","line2":null,"city":"Exampleville","state":"GA","postal_code":"30000"}},"patient":null,"place_of_service":"11","lines":[{"line_number":1,"cdt":"D2740","description":"Porcelain or ceramic crown","service_date":"2026-09-24","fee":"1140.00","quantity":1,"tooth":"3","surfaces":null,"area":null,"teeth":[],"areas":[],"prosthesis":null,"prior_placement_date":null,"diagnosis_pointers":[]}],"remarks":null,"metadata":{"pms_claim_number":"PMS-1042"},"coordination":{"sequence":"primary","other_payers":[]},"accident":null,"referral_number":null,"prior_authorization":null,"diagnosis_codes":[],"orthodontics":null,"missing_teeth":[],"service_location":null,"payer_provider_ids":{"billing":null,"rendering":null},"attachments":["att_01JM000000E00800000000003G"],"foreign_attachments":[],"validation":{"validated_at":"2026-09-24T21:00:00.300000+00:00","errors":0,"warnings":0,"findings":[]},"network":{"submitted_at":"2026-09-24T21:00:30.000000+00:00","clearinghouse_claim_id":"SBXEXAMPLE1042","payer_claim_number":"990000001042","rejection":null},"idempotency_key":"pms-1042","allow_duplicate":false,"delivery_uncertain":null,"no_payer_answer":null,"snapshot":{"billing_office":{"name":"Example Family Dental","npi":"1999999000","tax_id":"009999999","address":{"line1":"100 Example Street","line2":null,"city":"Exampleville","state":"GA","postal_code":"303010000"},"phone":"4045550100","pay_to_address":null},"service_location":null,"rendering_provider":{"first_name":"Riley","last_name":"Example","npi":"1999990017","taxonomy_code":"1223G0001X","license":{"state":"GA","number":"GA-000000"}},"payer_provider_ids":{"billing":null,"rendering":null}}}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.\n\n`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.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"CONFLICT":{"summary":"CONFLICT","value":{"error":"CONFLICT","message":"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.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"503":{"description":"`CLAIMS_UNAVAILABLE`: Claims are not available in live mode yet. Use a test key.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"CLAIMS_UNAVAILABLE":{"summary":"CLAIMS_UNAVAILABLE","value":{"error":"CLAIMS_UNAVAILABLE","message":"Claims are not available in live mode yet. Use a test key.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/claims/{id}/convert":{"post":{"operationId":"convertClaim","summary":"Convert a predetermination into a claim","description":"For a predetermination whose estimate came back (state returned): makes a new claim (kind claim, a draft) with the same patient, subscriber, payer, office, provider and lines, awaiting its service dates, linked both ways (converted_from, converted_to). The predetermination's attachments move to the new claim (an attachment is on one claim at a time). Add the service dates with an update, then submit the claim. Converting again answers with the claim made the first time (created false), unless that claim was voided before it was sent: then a new claim is made, and the attachments the void released go on it. Anything else (a claim, a predetermination still waiting for its estimate, one with a void open) is a conflict. A predetermination (kind predetermination) is made, validated, sent, voided and read with the same endpoints: it has no service dates, goes out with the predetermination indicator, and comes back returned with its estimate instead of a payment. Send an empty JSON object as the body. Needs an Idempotency-Key header and a key with the submit permission.","tags":["Claims"],"x-permission":"submit","parameters":[{"name":"id","in":"path","required":true,"description":"A claim ID (clm_...).","schema":{"type":"string"},"example":"clm_01JM000000E00800000000004G"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false},"examples":{"convert":{"summary":"Convert a returned predetermination","value":{}},"not_returned":{"summary":"A predetermination still waiting for its estimate","value":{}}}}}},"responses":{"200":{"description":"The predetermination and the claim made from it.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"claim_conversion"},"predetermination":{"description":"The predetermination, as it is now (converted_to names the claim).","$ref":"#/components/schemas/Claim"},"claim":{"description":"The claim made from it: a draft with the same patient, subscriber, payer, office, provider, lines and attachments, and no service dates yet.","$ref":"#/components/schemas/Claim"},"created":{"type":"boolean","description":"False when the predetermination was converted already: the claim made then."}},"required":["object","predetermination","claim","created"]},"examples":{"convert":{"summary":"Convert a returned predetermination","value":{"object":"claim_conversion","predetermination":{"id":"clm_01JM000000E00800000000004G","object":"claim","kind":"predetermination","state":"returned","next_step":"The payer returned its estimate (what it would pay, not a payment). Once the treatment is done, convert it into a claim and add the service dates.","frequency":"original","parent_id":null,"patient_control_number":"CH7PD3K8M2QA","office":{"id":"off_01JM000000E008000000000003","name":"Example Family Dental"},"payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"rendering_provider":{"id":"prv_01JM000000E008000000000005","first_name":"Riley","last_name":"Example","npi":"1999990017"},"patient_name":{"first_name":"Alex","last_name":"Example"},"service_dates":{"first":null,"last":null},"totals":{"charge":"1140.00","lines":1},"payment":null,"estimate":{"era_id":"era_01JM000000E00800000000003G","allowed":"1026.00","pay":"820.80","patient":"205.20","returned_at":"2026-09-24T21:03:30.000000+00:00","lines":[{"line_number":1,"allowed":"1026.00","pay":"820.80","patient":"205.20"}]},"converted_from":null,"converted_to":"clm_01JM000000E00800000000004H","source_claim_id":null,"patient_id":"pat_01JM000000E00800000000004K","insurance_type":"commercial","sequence":"primary","encounter":false,"request_id":"req_01JM000000E00800000000002J","created_at":"2026-09-24T21:00:00.120000+00:00","updated_at":"2026-09-24T21:00:00.310000+00:00","subscriber":{"first_name":"Alex","last_name":"Example","date_of_birth":"1985-04-12","gender":"F","member_id":"CH-ACTIVE-FULL","group_number":null,"address":{"line1":"1 Example Street","line2":null,"city":"Exampleville","state":"GA","postal_code":"30000"}},"patient":null,"place_of_service":"11","lines":[{"line_number":1,"cdt":"D2740","description":"Porcelain or ceramic crown","service_date":null,"fee":"1140.00","quantity":1,"tooth":"3","surfaces":null,"area":null,"teeth":[],"areas":[],"prosthesis":null,"prior_placement_date":null,"diagnosis_pointers":[]}],"remarks":null,"metadata":{"pms_claim_number":"PMS-1042"},"coordination":{"sequence":"primary","other_payers":[]},"accident":null,"referral_number":null,"prior_authorization":null,"diagnosis_codes":[],"orthodontics":null,"missing_teeth":[],"service_location":null,"payer_provider_ids":{"billing":null,"rendering":null},"attachments":["att_01JM000000E00800000000003G"],"foreign_attachments":[],"validation":{"validated_at":"2026-09-24T21:00:00.300000+00:00","errors":0,"warnings":0,"findings":[]},"network":{"submitted_at":"2026-09-24T21:00:30.000000+00:00","clearinghouse_claim_id":"SBX7PD3K8M2Q","payer_claim_number":"990000001090","rejection":null},"idempotency_key":"pms-1042","allow_duplicate":false,"delivery_uncertain":null,"no_payer_answer":null,"snapshot":{"billing_office":{"name":"Example Family Dental","npi":"1999999000","tax_id":"009999999","address":{"line1":"100 Example Street","line2":null,"city":"Exampleville","state":"GA","postal_code":"303010000"},"phone":"4045550100","pay_to_address":null},"service_location":null,"rendering_provider":{"first_name":"Riley","last_name":"Example","npi":"1999990017","taxonomy_code":"1223G0001X","license":{"state":"GA","number":"GA-000000"}},"payer_provider_ids":{"billing":null,"rendering":null}}},"claim":{"id":"clm_01JM000000E00800000000004H","object":"claim","kind":"claim","state":"draft","next_step":"This claim is a draft: it has not been checked or sent. Validate it, then queue it to send it.","frequency":"original","parent_id":null,"patient_control_number":"CH9CV4T7N1RB","office":{"id":"off_01JM000000E008000000000003","name":"Example Family Dental"},"payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"rendering_provider":{"id":"prv_01JM000000E008000000000005","first_name":"Riley","last_name":"Example","npi":"1999990017"},"patient_name":{"first_name":"Alex","last_name":"Example"},"service_dates":{"first":null,"last":null},"totals":{"charge":"1140.00","lines":1},"payment":null,"estimate":null,"converted_from":"clm_01JM000000E00800000000004G","converted_to":null,"source_claim_id":null,"patient_id":"pat_01JM000000E00800000000004K","insurance_type":"commercial","sequence":"primary","encounter":false,"request_id":"req_01JM000000E00800000000004J","created_at":"2026-09-24T21:00:00.120000+00:00","updated_at":"2026-09-24T21:00:00.310000+00:00","subscriber":{"first_name":"Alex","last_name":"Example","date_of_birth":"1985-04-12","gender":"F","member_id":"CH-ACTIVE-FULL","group_number":null,"address":{"line1":"1 Example Street","line2":null,"city":"Exampleville","state":"GA","postal_code":"30000"}},"patient":null,"place_of_service":"11","lines":[{"line_number":1,"cdt":"D2740","description":"Porcelain or ceramic crown","service_date":null,"fee":"1140.00","quantity":1,"tooth":"3","surfaces":null,"area":null,"teeth":[],"areas":[],"prosthesis":null,"prior_placement_date":null,"diagnosis_pointers":[]}],"remarks":null,"metadata":{"pms_claim_number":"PMS-1042"},"coordination":{"sequence":"primary","other_payers":[]},"accident":null,"referral_number":null,"prior_authorization":null,"diagnosis_codes":[],"orthodontics":null,"missing_teeth":[],"service_location":null,"payer_provider_ids":{"billing":null,"rendering":null},"attachments":["att_01JM000000E00800000000003G"],"foreign_attachments":[],"validation":null,"network":{"submitted_at":null,"clearinghouse_claim_id":null,"payer_claim_number":null,"rejection":null},"idempotency_key":"convert-1090","allow_duplicate":false,"delivery_uncertain":null,"no_payer_answer":null,"snapshot":null},"created":true}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.\n\n`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.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"not_returned":{"summary":"A predetermination still waiting for its estimate","value":{"error":"CONFLICT","message":"Only a predetermination whose estimate has come back (state returned), and with no void transaction in flight, can be converted into a claim.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"503":{"description":"`CLAIMS_UNAVAILABLE`: Claims are not available in live mode yet. Use a test key.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"CLAIMS_UNAVAILABLE":{"summary":"CLAIMS_UNAVAILABLE","value":{"error":"CLAIMS_UNAVAILABLE","message":"Claims are not available in live mode yet. Use a test key.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/claims/{id}/cancel_correction":{"post":{"operationId":"cancelClaimCorrection","summary":"Cancel a correction","description":"For a claim opened for a correction (resubmit of a claim the payer accepted, paid or denied) and not yet sent again (needs attention, validated or queued): the claim gets back the content, lines, attachments, frequency and snapshot it had before the correction (what the payer has: edits made since are undone; an attachment that cannot be put back is named on the timeline) and the state its payments derive (paid or denied as its payment stands, else accepted_payer); a timeline entry and claim.status_updated. Also after the clearinghouse rejected the replacement's file, or the network would not take it. Once the replacement went to the payer, or with no correction open, it is a conflict. Send an empty JSON object as the body. Needs an Idempotency-Key header and a key with the submit permission.","tags":["Claims"],"x-permission":"submit","parameters":[{"name":"id","in":"path","required":true,"description":"A claim ID (clm_...).","schema":{"type":"string"},"example":"clm_01JM000000E00800000000002G"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false},"examples":{"cancel":{"summary":"Cancel the correction of a paid claim","value":{}},"none_open":{"summary":"A claim with no correction open","value":{}}}}}},"responses":{"200":{"description":"The claim as it is now.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Claim"},"examples":{"cancel":{"summary":"Cancel the correction of a paid claim","value":{"id":"clm_01JM000000E00800000000002G","object":"claim","kind":"claim","state":"paid","next_step":"The payer paid this claim (see its payment). Post the payment in your system, then mark the claim reconciled.","frequency":"original","parent_id":null,"patient_control_number":"CH4Q7M2K9TRB","office":{"id":"off_01JM000000E008000000000003","name":"Example Family Dental"},"payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"rendering_provider":{"id":"prv_01JM000000E008000000000005","first_name":"Riley","last_name":"Example","npi":"1999990017"},"patient_name":{"first_name":"Alex","last_name":"Example"},"service_dates":{"first":"2026-09-24","last":"2026-09-24"},"totals":{"charge":"1140.00","lines":1},"payment":{"outcome":"paid","era_id":"era_01JM000000E00800000000003G","paid":"820.80","allowed":"1026.00","patient_responsibility":"205.20","payment_date":"2026-09-24","reconciled_at":null},"estimate":null,"converted_from":null,"converted_to":null,"source_claim_id":null,"patient_id":"pat_01JM000000E00800000000004K","insurance_type":"commercial","sequence":"primary","encounter":false,"request_id":"req_01JM000000E00800000000002J","created_at":"2026-09-24T21:00:00.120000+00:00","updated_at":"2026-09-24T21:00:00.310000+00:00","subscriber":{"first_name":"Alex","last_name":"Example","date_of_birth":"1985-04-12","gender":"F","member_id":"CH-ACTIVE-FULL","group_number":null,"address":{"line1":"1 Example Street","line2":null,"city":"Exampleville","state":"GA","postal_code":"30000"}},"patient":null,"place_of_service":"11","lines":[{"line_number":1,"cdt":"D2740","description":"Porcelain or ceramic crown","service_date":"2026-09-24","fee":"1140.00","quantity":1,"tooth":"3","surfaces":null,"area":null,"teeth":[],"areas":[],"prosthesis":null,"prior_placement_date":null,"diagnosis_pointers":[]}],"remarks":null,"metadata":{"pms_claim_number":"PMS-1042"},"coordination":{"sequence":"primary","other_payers":[]},"accident":null,"referral_number":null,"prior_authorization":null,"diagnosis_codes":[],"orthodontics":null,"missing_teeth":[],"service_location":null,"payer_provider_ids":{"billing":null,"rendering":null},"attachments":["att_01JM000000E00800000000003G"],"foreign_attachments":[],"validation":{"validated_at":"2026-09-24T21:00:00.300000+00:00","errors":0,"warnings":0,"findings":[]},"network":{"submitted_at":"2026-09-24T21:00:30.000000+00:00","clearinghouse_claim_id":"SBXEXAMPLE1042","payer_claim_number":"990000001042","rejection":null},"idempotency_key":"pms-1042","allow_duplicate":false,"delivery_uncertain":null,"no_payer_answer":null,"snapshot":{"billing_office":{"name":"Example Family Dental","npi":"1999999000","tax_id":"009999999","address":{"line1":"100 Example Street","line2":null,"city":"Exampleville","state":"GA","postal_code":"303010000"},"phone":"4045550100","pay_to_address":null},"service_location":null,"rendering_provider":{"first_name":"Riley","last_name":"Example","npi":"1999990017","taxonomy_code":"1223G0001X","license":{"state":"GA","number":"GA-000000"}},"payer_provider_ids":{"billing":null,"rendering":null}}}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.\n\n`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.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"none_open":{"summary":"A claim with no correction open","value":{"error":"CONFLICT","message":"This claim has no correction open: only a claim opened for a correction and not yet sent again can have it cancelled.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"503":{"description":"`CLAIMS_UNAVAILABLE`: Claims are not available in live mode yet. Use a test key.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"CLAIMS_UNAVAILABLE":{"summary":"CLAIMS_UNAVAILABLE","value":{"error":"CLAIMS_UNAVAILABLE","message":"Claims are not available in live mode yet. Use a test key.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/claims/{id}/next_claim":{"post":{"operationId":"createNextClaim","summary":"Create the next payer's claim","description":"For a claim its payer paid or denied, whose ERA was applied: makes a new claim for the payer that comes next (a secondary from a primary, a tertiary from a secondary). It copies the claim's office, provider, patient, lines, standard fields and service location (not its attachments) and sets coordination: the payers that already paid or denied it (the claim's own other payers that did, not other coverage it listed without a payment), then its payer, with what that payer paid, when, and its adjustments from the ERA: line by line (lines, with the ERA's claim-level adjustments only at claim level) when the ERA's lines match the claim's, else (or with adjudication claim) summed by group and reason at claim level. The new claim names its source in source_claim_id, and each claim's timeline names the other. The patient stays the claim's patient. subscriber defaults to the claim's own; a subscriber who is not the patient needs relationship (the patient's relationship to them), else 422; with submit false (the default) the new claim is a draft to check before you send it. Refused with NO_APPLIED_PAYMENT (no payment applied from an ERA), NO_NEXT_PAYER (the claim is tertiary) or PAYMENT_NOT_BALANCED (what the payer paid and its adjustments do not add up to the charge; details gives charge, paid, adjustments and difference). In those cases, create the claim with coordination written out. Needs an Idempotency-Key header and a key with the submit permission.","tags":["Claims"],"x-permission":"submit","parameters":[{"name":"id","in":"path","required":true,"description":"A claim ID (clm_...).","schema":{"type":"string"},"example":"clm_01JM000000E00800000000002G"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"insurance_type":{"description":"The claim filing indicator (SBR09). Default commercial. For a Medicaid claim: medicaid, with the Medicaid ID in subscriber.member_id.","type":"string","enum":["commercial","medicaid","medicare_b","champus","dental_maintenance","ppo","pos","epo","indemnity","hmo","self_pay","other"]},"patient_control_number":{"description":"Your identifier for the claim, sent on the claim and returned on its status: unique in your organization. Made for you when omitted.","type":["string","null"]},"payer_id":{"description":"The next payer: a Claim House payer ID (pyr_...), a payer ID or an alias from the payer directory.","type":"string"},"subscriber":{"description":"The next payer's subscriber (the person who holds that coverage). Default: the claim's own subscriber. The patient stays the claim's patient.","type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"date_of_birth":{"type":["string","null"]},"gender":{"anyOf":[{"type":"string","enum":["F","M","U"]},{"type":"null"}]},"member_id":{"type":"string"},"group_number":{"type":["string","null"]},"address":{"anyOf":[{"type":"object","properties":{"line1":{"type":"string"},"line2":{"type":["string","null"]},"city":{"type":"string"},"state":{"type":"string"},"postal_code":{"type":"string"}},"required":["line1","city","state","postal_code"],"additionalProperties":false},{"type":"null"}]}},"required":["first_name","last_name","member_id"],"additionalProperties":false},"relationship":{"description":"With subscriber: the patient's relationship to that subscriber (self, spouse, child or other). Required when subscriber is not the patient (a different name or date of birth).","type":"string","enum":["self","spouse","child","other"]},"submit":{"description":"false (the default): save the new claim as a draft, to check before it is sent. true: validate it and queue it when it has no errors.","type":"boolean"},"adjudication":{"description":"line (the default): the payer's figures line by line (lines) when the ERA's lines match the claim's, by line control number (REF*6R) else by position; otherwise, and with claim, summed at claim level.","type":"string","enum":["line","claim"]}},"required":["payer_id"],"additionalProperties":false},"examples":{"secondary":{"summary":"A secondary claim from a paid primary","value":{"payer_id":"pyr_01JM000000E00800000000009H"}},"no_payment":{"summary":"A claim with no payment applied yet","value":{"payer_id":"pyr_01JM000000E00800000000009H"}},"tertiary":{"summary":"A tertiary claim: no payer comes next","value":{"payer_id":"pyr_01JM000000E00800000000009H"}},"not_balanced":{"summary":"A payment one cent short of the charge","value":{"payer_id":"pyr_01JM000000E00800000000009H"}}}}}},"responses":{"201":{"description":"The new claim: a draft, or queued, validated or needing attention with submit true.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Claim"},"examples":{"secondary":{"summary":"A secondary claim from a paid primary","value":{"id":"clm_01JM000000E00800000000009G","object":"claim","kind":"claim","state":"draft","next_step":"This claim is a draft: it has not been checked or sent. Validate it, then queue it to send it.","frequency":"original","parent_id":null,"patient_control_number":"CH7N2X5Q8KDA","office":{"id":"off_01JM000000E008000000000003","name":"Example Family Dental"},"payer":{"id":"pyr_01JM000000E00800000000009H","payer_id":"00001","name":"Example Secondary Plan"},"rendering_provider":{"id":"prv_01JM000000E008000000000005","first_name":"Riley","last_name":"Example","npi":"1999990017"},"patient_name":{"first_name":"Alex","last_name":"Example"},"service_dates":{"first":"2026-09-24","last":"2026-09-24"},"totals":{"charge":"1140.00","lines":1},"payment":null,"estimate":null,"converted_from":null,"converted_to":null,"source_claim_id":"clm_01JM000000E00800000000002G","patient_id":"pat_01JM000000E00800000000004K","insurance_type":"commercial","sequence":"secondary","encounter":false,"request_id":"req_01JM000000E00800000000009J","created_at":"2026-09-25T09:00:00.120000+00:00","updated_at":"2026-09-25T09:00:00.120000+00:00","subscriber":{"first_name":"Alex","last_name":"Example","date_of_birth":"1985-04-12","gender":"F","member_id":"CH-ACTIVE-FULL","group_number":null,"address":{"line1":"1 Example Street","line2":null,"city":"Exampleville","state":"GA","postal_code":"30000"}},"patient":null,"place_of_service":"11","lines":[{"line_number":1,"cdt":"D2740","description":"Porcelain or ceramic crown","service_date":"2026-09-24","fee":"1140.00","quantity":1,"tooth":"3","surfaces":null,"area":null,"teeth":[],"areas":[],"prosthesis":null,"prior_placement_date":null,"diagnosis_pointers":[]}],"remarks":null,"metadata":{"pms_claim_number":"PMS-1042"},"coordination":{"sequence":"secondary","other_payers":[{"payer_id":"pyr_01JM000000E008000000000004","payer_name":"Example Dental Plan","payer_identifier":"00000","responsibility":"primary","insurance_type":"commercial","relationship":"self","subscriber":{"first_name":"Alex","last_name":"Example","member_id":"CH-ACTIVE-FULL","group_number":null},"paid":"820.80","paid_date":"2026-09-24","patient_responsibility":"205.20","adjustments":[],"lines":[{"line":1,"paid":"820.80","adjustments":[{"group":"CO","reason":"45","amount":"114.00"},{"group":"PR","reason":"2","amount":"205.20"}]}]}]},"accident":null,"referral_number":null,"prior_authorization":null,"diagnosis_codes":[],"orthodontics":null,"missing_teeth":[],"service_location":null,"payer_provider_ids":{"billing":null,"rendering":null},"attachments":[],"foreign_attachments":[],"validation":null,"network":{"submitted_at":null,"clearinghouse_claim_id":null,"payer_claim_number":null,"rejection":null},"idempotency_key":"next-1042","allow_duplicate":false,"delivery_uncertain":null,"no_payer_answer":null,"snapshot":null}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.\n\n`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.\n\n`NO_APPLIED_PAYMENT`: The claim has no payment applied from an ERA to carry to the next payer.\n\n`NO_NEXT_PAYER`: The claim is tertiary: no payer comes after it.\n\n`PAYMENT_NOT_BALANCED`: What the payer paid and its adjustments do not add up to the claim's charge. The details give the figures.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"no_payment":{"summary":"A claim with no payment applied yet","value":{"error":"NO_APPLIED_PAYMENT","message":"This claim has no payment applied from an ERA to carry to the next payer: a claim the payer paid or denied, whose remittance was applied, can have one. To send the next payer a claim anyway, create it with coordination written out.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"tertiary":{"summary":"A tertiary claim: no payer comes next","value":{"error":"NO_NEXT_PAYER","message":"This claim is tertiary: no payer comes after it.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"not_balanced":{"summary":"A payment one cent short of the charge","value":{"error":"PAYMENT_NOT_BALANCED","message":"The payer paid 820.80 and adjusted 319.19, which does not add up to the claim's charge of 1140.00. Create the next payer's claim with coordination written out instead.","errors":[],"details":{"era_id":"era_01JM000000E00800000000003G","charge":"1140.00","paid":"820.80","adjustments":"319.19","difference":"0.01"},"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"CONFLICT":{"summary":"CONFLICT","value":{"error":"CONFLICT","message":"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.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"503":{"description":"`CLAIMS_UNAVAILABLE`: Claims are not available in live mode yet. Use a test key.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"CLAIMS_UNAVAILABLE":{"summary":"CLAIMS_UNAVAILABLE","value":{"error":"CLAIMS_UNAVAILABLE","message":"Claims are not available in live mode yet. Use a test key.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/eras":{"get":{"operationId":"listEras","summary":"List ERAs","description":"The remittances (835) the payers sent to your organization in the key's mode, newest first, as summaries (read one for its claims and lines). Filter by state, payer, payment date, office (the payee) or practice group. In test mode the sandbox sends one for a claim with member ID CH-PAID-ERA (paid in part) or CH-DENIED (denied), or to the test payer CHTEST (paid in full), 2 minutes after the payer accepts it.","tags":["ERAs"],"x-permission":"read","parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"name":"state","in":"query","required":false,"description":"Only ERAs in this state.","schema":{"type":"string","enum":["needs_review","posted"]},"example":"needs_review"},{"name":"payer_id","in":"query","required":false,"description":"Only ERAs from this payer (pyr_...).","schema":{"pattern":"^pyr_[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}},{"name":"office_id","in":"query","required":false,"description":"Only ERAs paid to this office (the payee, off_...).","schema":{"pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}},{"name":"practice_group_id","in":"query","required":false,"description":"Only ERAs paid to the offices of this practice group (pgr_...). Not with office_id. Needs practice groups enabled for the organization: otherwise 403 FEATURE_NOT_ENABLED.","schema":{"pattern":"^pgr_[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}},{"name":"paid_from","in":"query","required":false,"description":"Only ERAs paid on or after this date (YYYY-MM-DD).","schema":{"type":"string","format":"date"}},{"name":"paid_to","in":"query","required":false,"description":"Only ERAs paid on or before this date (YYYY-MM-DD).","schema":{"type":"string","format":"date"}},{"name":"received_from","in":"query","required":false,"description":"Only ERAs received at or after this instant: the range a report adds up adjustments over (ISO 8601 with an offset, such as 2026-10-01T00:00:00Z).","schema":{"format":"date-time","type":"string"}},{"name":"received_to","in":"query","required":false,"description":"Only ERAs received before this instant (ISO 8601 with an offset, such as 2026-10-01T00:00:00Z).","schema":{"format":"date-time","type":"string"}}],"responses":{"200":{"description":"A page of ERA summaries.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"object":{"type":"string","const":"era"},"state":{"type":"string","enum":["needs_review","posted"],"description":"needs_review: received, not yet posted; posted: you posted it."},"payer":{"anyOf":[{"$ref":"#/components/schemas/PayerLabel"},{"type":"null"}],"description":"The payer in the directory, when the remittance names one we know."},"payer_name":{"type":"string","description":"The payer's name as the remittance gives it."},"office_id":{"anyOf":[{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},{"type":"null"}],"description":"The office the payment was made to (the payee), when exactly one office of yours matches it."},"payment":{"type":"object","properties":{"method":{"type":"string","description":"ACH (an electronic transfer), CHK (a check), NON (no payment) or another code as sent."},"trace_number":{"type":"string","description":"The EFT trace or check number: matches the deposit in your bank account."},"date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"total":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"The amount paid."},"provider_adjustments_total":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"Adjustments at provider level (a recoupment, a forward balance): a positive one reduced the payment."}},"required":["method","trace_number","date","total","provider_adjustments_total"]},"balanced":{"type":"boolean","description":"Whether the remittance adds up (the payment, each claim and each line). One that does not is flagged for review: only the claims that add up on their own were applied."},"counts":{"type":"object","properties":{"claims":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"matched":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unmatched":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["claims","matched","unmatched"]},"received_at":{"type":"string","format":"date-time"},"posted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["id","object","state","payer","payer_name","office_id","payment","balanced","counts","received_at","posted_at"]}},"next_cursor":{"description":"Pass as cursor to get the next page; null when there is no next page.","type":["string","null"]}},"required":["data","next_cursor"]},"examples":{"needs_review":{"summary":"The ERAs not yet posted","value":{"data":[{"id":"era_01JM000000E00800000000003G","object":"era","state":"needs_review","payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"payer_name":"EXAMPLE DENTAL PLAN","office_id":"off_01JM000000E008000000000003","payment":{"method":"ACH","trace_number":"SBXEFT000001042","date":"2026-09-24","total":"820.80","provider_adjustments_total":"0.00"},"balanced":true,"counts":{"claims":2,"matched":1,"unmatched":1},"received_at":"2026-09-24T21:03:30.000000+00:00","posted_at":null}],"next_cursor":null}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.\n\n`FEATURE_NOT_ENABLED`: Practice groups are not enabled for this organization. Ask Claim House to turn them on.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"FEATURE_NOT_ENABLED":{"summary":"FEATURE_NOT_ENABLED","value":{"error":"FEATURE_NOT_ENABLED","message":"Practice groups are not enabled for this organization. Ask Claim House to turn them on.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/eras/{id}":{"get":{"operationId":"getEra","summary":"Get an ERA","description":"One remittance as JSON: the payment (method, trace number, date, total), whether it adds up, and every claim payment with its lines, each matched to its claim or shown unmatched (with the patient's name as the payer wrote it, to match it by hand). Adjustment codes come with plain words. An ERA of another organization or mode is not found.","tags":["ERAs"],"x-permission":"read","parameters":[{"name":"id","in":"path","required":true,"description":"An ERA ID (era_...).","schema":{"type":"string"},"example":"era_01JM000000E00800000000003G"}],"responses":{"200":{"description":"The ERA.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"object":{"type":"string","const":"era"},"state":{"type":"string","enum":["needs_review","posted"],"description":"needs_review: received, not yet posted; posted: you posted it."},"payer":{"anyOf":[{"$ref":"#/components/schemas/PayerLabel"},{"type":"null"}],"description":"The payer in the directory, when the remittance names one we know."},"payer_name":{"type":"string","description":"The payer's name as the remittance gives it."},"office_id":{"anyOf":[{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},{"type":"null"}],"description":"The office the payment was made to (the payee), when exactly one office of yours matches it."},"payment":{"type":"object","properties":{"method":{"type":"string","description":"ACH (an electronic transfer), CHK (a check), NON (no payment) or another code as sent."},"trace_number":{"type":"string","description":"The EFT trace or check number: matches the deposit in your bank account."},"date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"total":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"The amount paid."},"provider_adjustments_total":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"Adjustments at provider level (a recoupment, a forward balance): a positive one reduced the payment."}},"required":["method","trace_number","date","total","provider_adjustments_total"]},"balanced":{"type":"boolean","description":"Whether the remittance adds up (the payment, each claim and each line). One that does not is flagged for review: only the claims that add up on their own were applied."},"counts":{"type":"object","properties":{"claims":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"matched":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unmatched":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["claims","matched","unmatched"]},"received_at":{"type":"string","format":"date-time"},"posted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"findings":{"type":"array","items":{"type":"object","properties":{"scope":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"expected":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},{"type":"null"}]},"actual":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},{"type":"null"}]}},"required":["scope","path","message","expected","actual"]},"description":"What does not add up, if anything: each with where (payment, a claim or a line) and the two figures."},"provider_adjustments":{"type":"array","items":{"type":"object","properties":{"reason_code":{"type":"string"},"reference":{"type":"string"},"amount":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."}},"required":["reason_code","reference","amount"]}},"claims":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^erc_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with erc_."},"object":{"type":"string","const":"era_claim"},"claim_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"The claim this payment is for; null while it is unmatched."},"match":{"type":"string","enum":["matched","unmatched","manual"],"description":"matched: by the patient control number or the payer claim number; manual: matched by hand; unmatched: no claim with certainty (match it by hand)."},"unmatched_reason":{"anyOf":[{"type":"string","enum":["payer_differs","claim_not_payable","estimate_for_claim","payment_for_predetermination"]},{"type":"null"}],"description":"Why a payment naming one of your claims was left unmatched: payer_differs (the ERA's payer is not the claim's), claim_not_payable (the claim could not take a payment in its state, such as while it is being corrected), estimate_for_claim (an estimate naming a claim), payment_for_predetermination (a payment naming a predetermination). Match it by hand once you have checked. Null otherwise."},"patient_control_number":{"type":"string","description":"The patient control number as the payer echoed it."},"payer_claim_number":{"type":"string"},"status":{"type":"object","properties":{"code":{"type":"string","description":"The payer's claim status (CLP02)."},"description":{"type":"string"}},"required":["code","description"]},"outcome":{"type":"string","enum":["paid","denied","reversal","status","estimate"],"description":"What the payment does to the claim: paid, denied, reversal (an earlier payment taken back), estimate (the answer to a predetermination, never a payment), or status (reported only)."},"charge":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},{"type":"null"}]},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},"adjustments":{"type":"array","items":{"type":"object","properties":{"group":{"type":"string","description":"The adjustment group: CO (contractual), PR (patient responsibility), OA (other), PI (payer initiated) or CR (correction)."},"group_description":{"type":"string","description":"The group in plain words."},"reason":{"type":"string","description":"The claim adjustment reason code, as sent (such as 45, 2 or 119)."},"description":{"type":"string","description":"The reason in our own plain words, for the common codes; the code itself for any other."},"amount":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."}},"required":["group","group_description","reason","description","amount"]},"description":"Adjustments at claim level (each line has its own)."},"patient_name":{"description":"The patient as the payer wrote it, shown only while the payment is unmatched, to find its claim; null once matched.","type":["string","null"]},"balanced":{"type":"boolean","description":"Whether its charge less its payment is its adjustments: one that is not was not applied to its claim."},"applied":{"type":"boolean","description":"Whether it moved its claim (paid, denied or reversed)."},"postable":{"type":"boolean","description":"Whether posting the ERA marks its claim reconciled: applied, the ERA not posted yet, and the claim paid or denied with this ERA's payment as its current one."},"lines":{"type":"array","items":{"type":"object","properties":{"procedure_code":{"type":"string","description":"The CDT code the payer paid."},"modifiers":{"type":"array","items":{"type":"string"}},"service_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"charge":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},{"type":"null"}]},"units":{"type":["number","null"]},"adjustments":{"type":"array","items":{"type":"object","properties":{"group":{"type":"string","description":"The adjustment group: CO (contractual), PR (patient responsibility), OA (other), PI (payer initiated) or CR (correction)."},"group_description":{"type":"string","description":"The group in plain words."},"reason":{"type":"string","description":"The claim adjustment reason code, as sent (such as 45, 2 or 119)."},"description":{"type":"string","description":"The reason in our own plain words, for the common codes; the code itself for any other."},"amount":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."}},"required":["group","group_description","reason","description","amount"]}},"remarks":{"type":"array","items":{"type":"string"},"description":"Remark codes, as sent."},"line_control_number":{"description":"The line control number the payer returned (ours is <patient control number>-<line>).","type":["string","null"]},"claim_line_number":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"The line of the matched claim this pays; null when no line matched with certainty."}},"required":["procedure_code","modifiers","service_date","charge","paid","allowed","units","adjustments","remarks","line_control_number","claim_line_number"]}}},"required":["id","object","claim_id","match","unmatched_reason","patient_control_number","payer_claim_number","status","outcome","charge","paid","allowed","patient_responsibility","adjustments","patient_name","balanced","applied","postable","lines"]}},"postable_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many claims posting this ERA marks reconciled now (each claim once); 0 when it was posted, or has nothing to reconcile (posting it then marks it reviewed)."}},"required":["id","object","state","payer","payer_name","office_id","payment","balanced","counts","received_at","posted_at","findings","provider_adjustments","claims","postable_count"]},"examples":{"by_id":{"summary":"An ERA with a payment matched and a denial unmatched","value":{"id":"era_01JM000000E00800000000003G","object":"era","state":"needs_review","payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"payer_name":"EXAMPLE DENTAL PLAN","office_id":"off_01JM000000E008000000000003","payment":{"method":"ACH","trace_number":"SBXEFT000001042","date":"2026-09-24","total":"820.80","provider_adjustments_total":"0.00"},"balanced":true,"counts":{"claims":2,"matched":1,"unmatched":1},"received_at":"2026-09-24T21:03:30.000000+00:00","posted_at":null,"findings":[],"provider_adjustments":[],"claims":[{"id":"erc_01JM000000E00800000000003H","object":"era_claim","claim_id":"clm_01JM000000E00800000000002G","match":"matched","unmatched_reason":null,"patient_control_number":"CH4Q7M2K9TRB","payer_claim_number":"990000001042","status":{"code":"1","description":"Processed as primary."},"outcome":"paid","charge":"1140.00","paid":"820.80","allowed":"1026.00","patient_responsibility":"205.20","adjustments":[],"patient_name":null,"balanced":true,"applied":true,"postable":true,"lines":[{"procedure_code":"D2740","modifiers":[],"service_date":"2026-09-24","charge":"1140.00","paid":"820.80","allowed":"1026.00","units":1,"adjustments":[{"group":"CO","group_description":"The provider writes this off under its contract with the payer. The patient is not billed.","reason":"45","description":"The charge is more than the payer fee schedule allows.","amount":"114.00"},{"group":"PR","group_description":"The patient owes this.","reason":"2","description":"The patient coinsurance share.","amount":"205.20"}],"remarks":[],"line_control_number":"CH4Q7M2K9TRB-1","claim_line_number":1}]},{"id":"erc_01JM000000E00800000000003J","object":"era_claim","claim_id":null,"match":"unmatched","unmatched_reason":null,"patient_control_number":"PMS-77812","payer_claim_number":"990000001077","status":{"code":"4","description":"Denied."},"outcome":"denied","charge":"310.00","paid":"0.00","allowed":null,"patient_responsibility":"0.00","adjustments":[],"patient_name":"SAMPLE, MIA","balanced":true,"applied":false,"postable":false,"lines":[{"procedure_code":"D4341","modifiers":[],"service_date":"2026-09-24","charge":"310.00","paid":"0.00","allowed":null,"units":1,"adjustments":[{"group":"CO","group_description":"The provider writes this off under its contract with the payer. The patient is not billed.","reason":"119","description":"The benefit maximum for the period has been reached.","amount":"310.00"}],"remarks":["N130"],"line_control_number":"1","claim_line_number":null}]}],"postable_count":1}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/eras/{id}/x12":{"get":{"operationId":"getEraX12","summary":"Get an ERA's 835","description":"The remittance as the payer sent it, as text: your organization's remittance only, as an interchange of its own (a file shared with others is never shown), one segment per line. Bank and account numbers show only their last four characters.","tags":["ERAs"],"x-permission":"read","parameters":[{"name":"id","in":"path","required":true,"description":"An ERA ID (era_...).","schema":{"type":"string"},"example":"era_01JM000000E00800000000003G"}],"responses":{"200":{"description":"The remittance's 835 segments.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"text/plain":{"schema":{"type":"string"},"examples":{"sandbox":{"summary":"A sandbox remittance (CH-PAID-ERA)","value":"ISA*00*          *00*          *ZZ*262403888      *ZZ*CLAIMHOUSE     *260924*2103*^*00501*000001042*0*T*:~\nGS*HP*262403888*CLAIMHOUSE*20260924*2103*1042*X*005010X221A1~\nST*835*0001*005010X221A1~\nBPR*C*820.8*C*ACH*CCP*01*XXXXX1112*DA*XXXXXXXX5678*1000000000**01*XXXXX2223*DA*XXXXXXXX4321*20260924~\nTRN*1*SBXEFT000001042*1000000000~\nDTM*405*20260924~\nN1*PR*EXAMPLE DENTAL PLAN*PI*00000~\nN1*PE*EXAMPLE FAMILY DENTAL*XX*1999999992~\nREF*TJ*009999999~\nREF*PQ*org_01JM000000E008000000000001~\nLX*1~\nCLP*CH4Q7M2K9TRB*1*1140*820.8*205.2*12*990000001042*11*1~\nNM1*QC*1*EXAMPLE*ALEX****MI*CH-PAID-ERA~\nSVC*AD:D2740*1140*820.8**1~\nDTM*472*20260924~\nCAS*CO*45*114~\nCAS*PR*2*205.2~\nREF*6R*CH4Q7M2K9TRB-1~\nAMT*B6*1026~\nSE*18*0001~\nGE*1*1042~\nIEA*1*000001042~\n"}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"not_found":{"summary":"An ERA of another organization or mode","value":{"error":"NOT_FOUND","message":"ERA not found","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/eras/{id}/post":{"post":{"operationId":"postEra","summary":"Post an ERA","description":"Says you posted the ERA in your system: every claim it paid or denied (and that no later remittance changed) becomes reconciled, and the ERA posted. An ERA posted already is returned as it is. Unmatched payments stay unmatched: match them by hand, then reconcile their claims. Send an empty JSON object as the body. Needs a key with both read and submit: an ERA holds payments of the whole organization. Needs an Idempotency-Key header and a key with the submit permission.","tags":["ERAs"],"x-permission":"submit","parameters":[{"name":"id","in":"path","required":true,"description":"An ERA ID (era_...).","schema":{"type":"string"},"example":"era_01JM000000E00800000000003G"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false},"examples":{"post":{"summary":"Post an ERA","value":{}}}}}},"responses":{"200":{"description":"The ERA as it is now, and how many claims this marked reconciled.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"era_post"},"era":{"type":"object","properties":{"id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"object":{"type":"string","const":"era"},"state":{"type":"string","enum":["needs_review","posted"],"description":"needs_review: received, not yet posted; posted: you posted it."},"payer":{"anyOf":[{"$ref":"#/components/schemas/PayerLabel"},{"type":"null"}],"description":"The payer in the directory, when the remittance names one we know."},"payer_name":{"type":"string","description":"The payer's name as the remittance gives it."},"office_id":{"anyOf":[{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},{"type":"null"}],"description":"The office the payment was made to (the payee), when exactly one office of yours matches it."},"payment":{"type":"object","properties":{"method":{"type":"string","description":"ACH (an electronic transfer), CHK (a check), NON (no payment) or another code as sent."},"trace_number":{"type":"string","description":"The EFT trace or check number: matches the deposit in your bank account."},"date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"total":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"The amount paid."},"provider_adjustments_total":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"Adjustments at provider level (a recoupment, a forward balance): a positive one reduced the payment."}},"required":["method","trace_number","date","total","provider_adjustments_total"]},"balanced":{"type":"boolean","description":"Whether the remittance adds up (the payment, each claim and each line). One that does not is flagged for review: only the claims that add up on their own were applied."},"counts":{"type":"object","properties":{"claims":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"matched":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unmatched":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["claims","matched","unmatched"]},"received_at":{"type":"string","format":"date-time"},"posted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"findings":{"type":"array","items":{"type":"object","properties":{"scope":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"},"expected":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},{"type":"null"}]},"actual":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},{"type":"null"}]}},"required":["scope","path","message","expected","actual"]},"description":"What does not add up, if anything: each with where (payment, a claim or a line) and the two figures."},"provider_adjustments":{"type":"array","items":{"type":"object","properties":{"reason_code":{"type":"string"},"reference":{"type":"string"},"amount":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."}},"required":["reason_code","reference","amount"]}},"claims":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^erc_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with erc_."},"object":{"type":"string","const":"era_claim"},"claim_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"The claim this payment is for; null while it is unmatched."},"match":{"type":"string","enum":["matched","unmatched","manual"],"description":"matched: by the patient control number or the payer claim number; manual: matched by hand; unmatched: no claim with certainty (match it by hand)."},"unmatched_reason":{"anyOf":[{"type":"string","enum":["payer_differs","claim_not_payable","estimate_for_claim","payment_for_predetermination"]},{"type":"null"}],"description":"Why a payment naming one of your claims was left unmatched: payer_differs (the ERA's payer is not the claim's), claim_not_payable (the claim could not take a payment in its state, such as while it is being corrected), estimate_for_claim (an estimate naming a claim), payment_for_predetermination (a payment naming a predetermination). Match it by hand once you have checked. Null otherwise."},"patient_control_number":{"type":"string","description":"The patient control number as the payer echoed it."},"payer_claim_number":{"type":"string"},"status":{"type":"object","properties":{"code":{"type":"string","description":"The payer's claim status (CLP02)."},"description":{"type":"string"}},"required":["code","description"]},"outcome":{"type":"string","enum":["paid","denied","reversal","status","estimate"],"description":"What the payment does to the claim: paid, denied, reversal (an earlier payment taken back), estimate (the answer to a predetermination, never a payment), or status (reported only)."},"charge":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},{"type":"null"}]},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},"adjustments":{"type":"array","items":{"type":"object","properties":{"group":{"type":"string","description":"The adjustment group: CO (contractual), PR (patient responsibility), OA (other), PI (payer initiated) or CR (correction)."},"group_description":{"type":"string","description":"The group in plain words."},"reason":{"type":"string","description":"The claim adjustment reason code, as sent (such as 45, 2 or 119)."},"description":{"type":"string","description":"The reason in our own plain words, for the common codes; the code itself for any other."},"amount":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."}},"required":["group","group_description","reason","description","amount"]},"description":"Adjustments at claim level (each line has its own)."},"patient_name":{"description":"The patient as the payer wrote it, shown only while the payment is unmatched, to find its claim; null once matched.","type":["string","null"]},"balanced":{"type":"boolean","description":"Whether its charge less its payment is its adjustments: one that is not was not applied to its claim."},"applied":{"type":"boolean","description":"Whether it moved its claim (paid, denied or reversed)."},"postable":{"type":"boolean","description":"Whether posting the ERA marks its claim reconciled: applied, the ERA not posted yet, and the claim paid or denied with this ERA's payment as its current one."},"lines":{"type":"array","items":{"type":"object","properties":{"procedure_code":{"type":"string","description":"The CDT code the payer paid."},"modifiers":{"type":"array","items":{"type":"string"}},"service_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"charge":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},{"type":"null"}]},"units":{"type":["number","null"]},"adjustments":{"type":"array","items":{"type":"object","properties":{"group":{"type":"string","description":"The adjustment group: CO (contractual), PR (patient responsibility), OA (other), PI (payer initiated) or CR (correction)."},"group_description":{"type":"string","description":"The group in plain words."},"reason":{"type":"string","description":"The claim adjustment reason code, as sent (such as 45, 2 or 119)."},"description":{"type":"string","description":"The reason in our own plain words, for the common codes; the code itself for any other."},"amount":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."}},"required":["group","group_description","reason","description","amount"]}},"remarks":{"type":"array","items":{"type":"string"},"description":"Remark codes, as sent."},"line_control_number":{"description":"The line control number the payer returned (ours is <patient control number>-<line>).","type":["string","null"]},"claim_line_number":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"The line of the matched claim this pays; null when no line matched with certainty."}},"required":["procedure_code","modifiers","service_date","charge","paid","allowed","units","adjustments","remarks","line_control_number","claim_line_number"]}}},"required":["id","object","claim_id","match","unmatched_reason","patient_control_number","payer_claim_number","status","outcome","charge","paid","allowed","patient_responsibility","adjustments","patient_name","balanced","applied","postable","lines"]}},"postable_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many claims posting this ERA marks reconciled now (each claim once); 0 when it was posted, or has nothing to reconcile (posting it then marks it reviewed)."}},"required":["id","object","state","payer","payer_name","office_id","payment","balanced","counts","received_at","posted_at","findings","provider_adjustments","claims","postable_count"]},"reconciled":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many claims this post marked reconciled (none when the ERA was posted already)."}},"required":["object","era","reconciled"]},"examples":{"post":{"summary":"Post an ERA","value":{"object":"era_post","era":{"id":"era_01JM000000E00800000000003G","object":"era","state":"posted","payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"payer_name":"EXAMPLE DENTAL PLAN","office_id":"off_01JM000000E008000000000003","payment":{"method":"ACH","trace_number":"SBXEFT000001042","date":"2026-09-24","total":"820.80","provider_adjustments_total":"0.00"},"balanced":true,"counts":{"claims":2,"matched":1,"unmatched":1},"received_at":"2026-09-24T21:03:30.000000+00:00","posted_at":"2026-09-25T09:00:00.000000+00:00","findings":[],"provider_adjustments":[],"claims":[{"id":"erc_01JM000000E00800000000003H","object":"era_claim","claim_id":"clm_01JM000000E00800000000002G","match":"matched","unmatched_reason":null,"patient_control_number":"CH4Q7M2K9TRB","payer_claim_number":"990000001042","status":{"code":"1","description":"Processed as primary."},"outcome":"paid","charge":"1140.00","paid":"820.80","allowed":"1026.00","patient_responsibility":"205.20","adjustments":[],"patient_name":null,"balanced":true,"applied":true,"postable":false,"lines":[{"procedure_code":"D2740","modifiers":[],"service_date":"2026-09-24","charge":"1140.00","paid":"820.80","allowed":"1026.00","units":1,"adjustments":[{"group":"CO","group_description":"The provider writes this off under its contract with the payer. The patient is not billed.","reason":"45","description":"The charge is more than the payer fee schedule allows.","amount":"114.00"},{"group":"PR","group_description":"The patient owes this.","reason":"2","description":"The patient coinsurance share.","amount":"205.20"}],"remarks":[],"line_control_number":"CH4Q7M2K9TRB-1","claim_line_number":1}]},{"id":"erc_01JM000000E00800000000003J","object":"era_claim","claim_id":null,"match":"unmatched","unmatched_reason":null,"patient_control_number":"PMS-77812","payer_claim_number":"990000001077","status":{"code":"4","description":"Denied."},"outcome":"denied","charge":"310.00","paid":"0.00","allowed":null,"patient_responsibility":"0.00","adjustments":[],"patient_name":"SAMPLE, MIA","balanced":true,"applied":false,"postable":false,"lines":[{"procedure_code":"D4341","modifiers":[],"service_date":"2026-09-24","charge":"310.00","paid":"0.00","allowed":null,"units":1,"adjustments":[{"group":"CO","group_description":"The provider writes this off under its contract with the payer. The patient is not billed.","reason":"119","description":"The benefit maximum for the period has been reached.","amount":"310.00"}],"remarks":["N130"],"line_control_number":"1","claim_line_number":null}]}],"postable_count":0},"reconciled":1}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/eras/{id}/claims/{era_claim_id}/match":{"post":{"operationId":"matchEraClaim","summary":"Match a payment to a claim","description":"Matches an unmatched payment of the ERA to one of your claims (sent, in the key's mode, and able to take a payment now: not while it is being corrected, rejected or voided) by hand, and applies it: the claim's figures become the sum of its payments, and it is paid or denied. The payer is your call: a claim of another payer than the ERA's (when the ERA's payer is known; a payment left unmatched with unmatched_reason payer_differs, say) is matched only with confirm_payer true, else 422 on confirm_payer. A reversal and its corrected payment can both be matched to one claim. A payment matched already is a conflict. Needs a key with both read and submit. An ERA posted already can still be matched: its claim is not reconciled by the post, so reconcile it on its own (POST /v1/claims/{id}/reconcile). Needs an Idempotency-Key header and a key with the submit permission.","tags":["ERAs"],"x-permission":"submit","parameters":[{"name":"id","in":"path","required":true,"description":"An ERA ID (era_...).","schema":{"type":"string"},"example":"era_01JM000000E00800000000003G"},{"name":"era_claim_id","in":"path","required":true,"description":"A payment of the ERA (erc_...).","schema":{"type":"string"},"example":"erc_01JM000000E00800000000003J"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"claim_id":{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"The claim this payment is for (clm_...)."},"confirm_payer":{"description":"true: you checked that the payment is for this claim although its payer is not the ERA's. Needed only then.","type":"boolean"}},"required":["claim_id"],"additionalProperties":false},"examples":{"match":{"summary":"Match a denial to its claim","value":{"claim_id":"clm_01JM000000E00800000000002J"}},"payer_differs":{"summary":"A claim of another payer, not confirmed","value":{"claim_id":"clm_01JM000000E00800000000002J"}}}}}},"responses":{"200":{"description":"The payment as it is now.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^erc_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with erc_."},"object":{"type":"string","const":"era_claim"},"claim_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"The claim this payment is for; null while it is unmatched."},"match":{"type":"string","enum":["matched","unmatched","manual"],"description":"matched: by the patient control number or the payer claim number; manual: matched by hand; unmatched: no claim with certainty (match it by hand)."},"unmatched_reason":{"anyOf":[{"type":"string","enum":["payer_differs","claim_not_payable","estimate_for_claim","payment_for_predetermination"]},{"type":"null"}],"description":"Why a payment naming one of your claims was left unmatched: payer_differs (the ERA's payer is not the claim's), claim_not_payable (the claim could not take a payment in its state, such as while it is being corrected), estimate_for_claim (an estimate naming a claim), payment_for_predetermination (a payment naming a predetermination). Match it by hand once you have checked. Null otherwise."},"patient_control_number":{"type":"string","description":"The patient control number as the payer echoed it."},"payer_claim_number":{"type":"string"},"status":{"type":"object","properties":{"code":{"type":"string","description":"The payer's claim status (CLP02)."},"description":{"type":"string"}},"required":["code","description"]},"outcome":{"type":"string","enum":["paid","denied","reversal","status","estimate"],"description":"What the payment does to the claim: paid, denied, reversal (an earlier payment taken back), estimate (the answer to a predetermination, never a payment), or status (reported only)."},"charge":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},{"type":"null"}]},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},"adjustments":{"type":"array","items":{"type":"object","properties":{"group":{"type":"string","description":"The adjustment group: CO (contractual), PR (patient responsibility), OA (other), PI (payer initiated) or CR (correction)."},"group_description":{"type":"string","description":"The group in plain words."},"reason":{"type":"string","description":"The claim adjustment reason code, as sent (such as 45, 2 or 119)."},"description":{"type":"string","description":"The reason in our own plain words, for the common codes; the code itself for any other."},"amount":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."}},"required":["group","group_description","reason","description","amount"]},"description":"Adjustments at claim level (each line has its own)."},"patient_name":{"description":"The patient as the payer wrote it, shown only while the payment is unmatched, to find its claim; null once matched.","type":["string","null"]},"balanced":{"type":"boolean","description":"Whether its charge less its payment is its adjustments: one that is not was not applied to its claim."},"applied":{"type":"boolean","description":"Whether it moved its claim (paid, denied or reversed)."},"postable":{"type":"boolean","description":"Whether posting the ERA marks its claim reconciled: applied, the ERA not posted yet, and the claim paid or denied with this ERA's payment as its current one."},"lines":{"type":"array","items":{"type":"object","properties":{"procedure_code":{"type":"string","description":"The CDT code the payer paid."},"modifiers":{"type":"array","items":{"type":"string"}},"service_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"charge":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},{"type":"null"}]},"units":{"type":["number","null"]},"adjustments":{"type":"array","items":{"type":"object","properties":{"group":{"type":"string","description":"The adjustment group: CO (contractual), PR (patient responsibility), OA (other), PI (payer initiated) or CR (correction)."},"group_description":{"type":"string","description":"The group in plain words."},"reason":{"type":"string","description":"The claim adjustment reason code, as sent (such as 45, 2 or 119)."},"description":{"type":"string","description":"The reason in our own plain words, for the common codes; the code itself for any other."},"amount":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."}},"required":["group","group_description","reason","description","amount"]}},"remarks":{"type":"array","items":{"type":"string"},"description":"Remark codes, as sent."},"line_control_number":{"description":"The line control number the payer returned (ours is <patient control number>-<line>).","type":["string","null"]},"claim_line_number":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"The line of the matched claim this pays; null when no line matched with certainty."}},"required":["procedure_code","modifiers","service_date","charge","paid","allowed","units","adjustments","remarks","line_control_number","claim_line_number"]}}},"required":["id","object","claim_id","match","unmatched_reason","patient_control_number","payer_claim_number","status","outcome","charge","paid","allowed","patient_responsibility","adjustments","patient_name","balanced","applied","postable","lines"]},"examples":{"match":{"summary":"Match a denial to its claim","value":{"id":"erc_01JM000000E00800000000003J","object":"era_claim","claim_id":"clm_01JM000000E00800000000002J","match":"manual","unmatched_reason":null,"patient_control_number":"PMS-77812","payer_claim_number":"990000001077","status":{"code":"4","description":"Denied."},"outcome":"denied","charge":"310.00","paid":"0.00","allowed":null,"patient_responsibility":"0.00","adjustments":[],"patient_name":null,"balanced":true,"applied":true,"postable":false,"lines":[{"procedure_code":"D4341","modifiers":[],"service_date":"2026-09-24","charge":"310.00","paid":"0.00","allowed":null,"units":1,"adjustments":[{"group":"CO","group_description":"The provider writes this off under its contract with the payer. The patient is not billed.","reason":"119","description":"The benefit maximum for the period has been reached.","amount":"310.00"}],"remarks":["N130"],"line_control_number":"1","claim_line_number":1}]}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.\n\n`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.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"CONFLICT":{"summary":"CONFLICT","value":{"error":"CONFLICT","message":"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.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"payer_differs":{"summary":"A claim of another payer, not confirmed","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[{"field":"confirm_payer","code":"required","message":"This claim is to another payer than the ERA's. Check the payment is for it, then match it again with confirm_payer true."}],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/patients":{"get":{"operationId":"listPatients","summary":"List patients","description":"The patients of your organization in the key's mode, newest first (by when Claim House first saw them), with coverage as last verified, open claims and open charges. Filter by office, practice group or coverage. To find a patient by name, date of birth or member ID use Search patients: patient details never go in an address. A patient record ties the eligibility checks, claims and payments of one person together. Claim House makes it from the checks and claims you send; your practice management system stays the system of record, so there is no adding or importing patients here. One person is one record per organization and mode: the same family name, given name and date of birth, compared with case, spacing, punctuation, accents and a suffix such as Jr or III left out. A different member ID never splits a person (coverage changes).","tags":["Patients"],"x-permission":"read","parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"name":"office_id","in":"query","required":false,"description":"Only the patients last seen at this office (off_...).","schema":{"pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}},{"name":"practice_group_id","in":"query","required":false,"description":"Only the patients last seen at the offices of this practice group (pgr_...). Not with office_id. Needs practice groups enabled for the organization: otherwise 403 FEATURE_NOT_ENABLED.","schema":{"pattern":"^pgr_[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}},{"name":"coverage","in":"query","required":false,"description":"verified: the newest completed check was answered by the payer in the last 30 days; unverified: not that; inactive: that answer says the coverage is inactive.","schema":{"type":"string","enum":["verified","unverified","inactive"]},"example":"verified"}],"responses":{"200":{"description":"A page of patients.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^pat_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with pat_."},"object":{"type":"string","const":"patient"},"first_name":{"type":"string","description":"As first seen on a check or claim."},"last_name":{"type":"string","description":"As first seen on a check or claim."},"date_of_birth":{"type":"string","format":"date"},"office_id":{"anyOf":[{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},{"type":"null"}],"description":"Office, primary insurance and member ID are those of the newest completed check or claim."},"primary_insurance":{"anyOf":[{"$ref":"#/components/schemas/PayerLabel"},{"type":"null"}],"description":"The payer of the newest completed check or claim."},"member_id":{"description":"The member ID of the newest completed check or claim.","type":["string","null"]},"coverage":{"anyOf":[{"type":"object","properties":{"check_id":{"type":"string","pattern":"^elg_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with elg_."},"checked_at":{"type":"string","format":"date-time"},"outcome":{"type":"string","enum":["answered","rejected","payer_unavailable","error"]},"status":{"anyOf":[{"type":"string","enum":["active","inactive","unknown"]},{"type":"null"}]},"label":{"type":"string","description":"The result in words, as the Eligibility screen says it."},"verified":{"type":"boolean","description":"True when the payer answered this check in the last 30 days."}},"required":["check_id","checked_at","outcome","status","label","verified"]},{"type":"null"}],"description":"Coverage as last verified: the result of the newest completed check, in the Eligibility screen's words, with its date. Verified: the payer answered that check in the last 30 days. Inactive: that answer says the coverage is inactive. Null when no check of the patient has completed."},"open_claims":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Open claims: the patient's claims not paid, denied, reconciled or voided (drafts included; predeterminations and void transactions are not claims here)."},"open_charges":{"type":"object","properties":{"total":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},"claims":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"The charges of the open claims."},"patient_owes":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes on the paid, denied and reconciled claims, where known."}},"required":["total","claims","patient_owes"],"description":"Open charges: the charges of the open claims, plus what the patient owes on the paid, denied and reconciled ones, where the payer's remittance says."},"created_at":{"type":"string","format":"date-time","description":"When Claim House first saw the patient."}},"required":["id","object","first_name","last_name","date_of_birth","office_id","primary_insurance","member_id","coverage","open_claims","open_charges","created_at"]}},"next_cursor":{"description":"Pass as cursor to get the next page; null when there is no next page.","type":["string","null"]}},"required":["data","next_cursor"]},"examples":{"verified":{"summary":"The patients verified in the last 30 days","value":{"data":[{"id":"pat_01JM000000E00800000000004K","object":"patient","first_name":"Alex","last_name":"Example","date_of_birth":"1985-04-12","office_id":"off_01JM000000E008000000000003","primary_insurance":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"member_id":"CH-ACTIVE-FULL","coverage":{"check_id":"elg_01JM000000E00800000000000G","checked_at":"2026-09-24T20:55:00.430000+00:00","outcome":"answered","status":"active","label":"Active","verified":true},"open_claims":0,"open_charges":{"total":"205.20","claims":"0.00","patient_owes":"205.20"},"created_at":"2026-03-10T15:30:00.430000+00:00"}],"next_cursor":null}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.\n\n`FEATURE_NOT_ENABLED`: Practice groups are not enabled for this organization. Ask Claim House to turn them on.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"FEATURE_NOT_ENABLED":{"summary":"FEATURE_NOT_ENABLED","value":{"error":"FEATURE_NOT_ENABLED","message":"Practice groups are not enabled for this organization. Ask Claim House to turn them on.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/patients/search":{"post":{"operationId":"searchPatients","summary":"Search patients","description":"Finds patients by the words of their name, their date of birth or a member ID on any of their checks or claims (all that are given must match), inside the list's filters, newest first. A search is sent as a POST so that what you search for travels in the body, never in an address or a log; it needs a key with read and no Idempotency-Key. Two different people with the same name and date of birth share one record. A person with no date of birth, or with a name that has no letters or digits to compare (written in another script), is linked to no record.","tags":["Patients"],"x-permission":"read","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"description":"Words of the patient's name, in any order and case; each must be in the family or given name (accents and punctuation ignored).","type":"string"},"date_of_birth":{"description":"The patient's date of birth (YYYY-MM-DD).","type":"string","format":"date"},"member_id":{"description":"A member ID on any of the patient's checks or claims, in any case.","type":"string"},"office_id":{"pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"Only the patients last seen at this office (off_...).","type":"string"},"practice_group_id":{"pattern":"^pgr_[0-9A-HJKMNP-TV-Z]{26}$","description":"Only the patients last seen at the offices of this practice group (pgr_...). Not with office_id. Needs practice groups enabled for the organization: otherwise 403 FEATURE_NOT_ENABLED.","type":"string"},"coverage":{"description":"verified: the newest completed check was answered by the payer in the last 30 days; unverified: not that; inactive: that answer says the coverage is inactive.","type":"string","enum":["verified","unverified","inactive"]},"limit":{"description":"How many patients to return, from 1 to 100. Default 25.","type":"integer","minimum":1,"maximum":100},"cursor":{"description":"The next_cursor of the previous answer, to get the patients after it.","type":"string"}},"additionalProperties":false},"examples":{"by_name_and_birth":{"summary":"By name and date of birth","value":{"name":"alex example","date_of_birth":"1985-04-12"}},"nothing_to_search":{"summary":"A body with nothing to look for","value":{}}}}}},"responses":{"200":{"description":"A page of the patients found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^pat_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with pat_."},"object":{"type":"string","const":"patient"},"first_name":{"type":"string","description":"As first seen on a check or claim."},"last_name":{"type":"string","description":"As first seen on a check or claim."},"date_of_birth":{"type":"string","format":"date"},"office_id":{"anyOf":[{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},{"type":"null"}],"description":"Office, primary insurance and member ID are those of the newest completed check or claim."},"primary_insurance":{"anyOf":[{"$ref":"#/components/schemas/PayerLabel"},{"type":"null"}],"description":"The payer of the newest completed check or claim."},"member_id":{"description":"The member ID of the newest completed check or claim.","type":["string","null"]},"coverage":{"anyOf":[{"type":"object","properties":{"check_id":{"type":"string","pattern":"^elg_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with elg_."},"checked_at":{"type":"string","format":"date-time"},"outcome":{"type":"string","enum":["answered","rejected","payer_unavailable","error"]},"status":{"anyOf":[{"type":"string","enum":["active","inactive","unknown"]},{"type":"null"}]},"label":{"type":"string","description":"The result in words, as the Eligibility screen says it."},"verified":{"type":"boolean","description":"True when the payer answered this check in the last 30 days."}},"required":["check_id","checked_at","outcome","status","label","verified"]},{"type":"null"}],"description":"Coverage as last verified: the result of the newest completed check, in the Eligibility screen's words, with its date. Verified: the payer answered that check in the last 30 days. Inactive: that answer says the coverage is inactive. Null when no check of the patient has completed."},"open_claims":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Open claims: the patient's claims not paid, denied, reconciled or voided (drafts included; predeterminations and void transactions are not claims here)."},"open_charges":{"type":"object","properties":{"total":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},"claims":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"The charges of the open claims."},"patient_owes":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes on the paid, denied and reconciled claims, where known."}},"required":["total","claims","patient_owes"],"description":"Open charges: the charges of the open claims, plus what the patient owes on the paid, denied and reconciled ones, where the payer's remittance says."},"created_at":{"type":"string","format":"date-time","description":"When Claim House first saw the patient."}},"required":["id","object","first_name","last_name","date_of_birth","office_id","primary_insurance","member_id","coverage","open_claims","open_charges","created_at"]}},"next_cursor":{"description":"Pass as cursor to get the next page; null when there is no next page.","type":["string","null"]}},"required":["data","next_cursor"]},"examples":{"by_name_and_birth":{"summary":"By name and date of birth","value":{"data":[{"id":"pat_01JM000000E00800000000004K","object":"patient","first_name":"Alex","last_name":"Example","date_of_birth":"1985-04-12","office_id":"off_01JM000000E008000000000003","primary_insurance":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"member_id":"CH-ACTIVE-FULL","coverage":{"check_id":"elg_01JM000000E00800000000000G","checked_at":"2026-09-24T20:55:00.430000+00:00","outcome":"answered","status":"active","label":"Active","verified":true},"open_claims":0,"open_charges":{"total":"205.20","claims":"0.00","patient_owes":"205.20"},"created_at":"2026-03-10T15:30:00.430000+00:00"}],"next_cursor":null}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.\n\n`FEATURE_NOT_ENABLED`: Practice groups are not enabled for this organization. Ask Claim House to turn them on.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"FEATURE_NOT_ENABLED":{"summary":"FEATURE_NOT_ENABLED","value":{"error":"FEATURE_NOT_ENABLED","message":"Practice groups are not enabled for this organization. Ask Claim House to turn them on.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"nothing_to_search":{"summary":"A body with nothing to look for","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[{"field":"name","code":"required","message":"Give a name, a date of birth or a member ID to search for."}],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/patients/{id}":{"get":{"operationId":"getPatient","summary":"Get a patient","description":"One patient with coverage as last verified, and their newest checks, claims (void transactions left out) and payments on any of their claims (up to 25 of each), by ID and state. A patient of another organization or mode is not found. Open charges: the charges of the open claims, plus what the patient owes on the paid, denied and reconciled ones, where the payer's remittance says.","tags":["Patients"],"x-permission":"read","parameters":[{"name":"id","in":"path","required":true,"description":"A patient ID (pat_...).","schema":{"type":"string"},"example":"pat_01JM000000E00800000000004K"}],"responses":{"200":{"description":"The patient.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^pat_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with pat_."},"object":{"type":"string","const":"patient"},"first_name":{"type":"string","description":"As first seen on a check or claim."},"last_name":{"type":"string","description":"As first seen on a check or claim."},"date_of_birth":{"type":"string","format":"date"},"office_id":{"anyOf":[{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},{"type":"null"}],"description":"Office, primary insurance and member ID are those of the newest completed check or claim."},"primary_insurance":{"anyOf":[{"$ref":"#/components/schemas/PayerLabel"},{"type":"null"}],"description":"The payer of the newest completed check or claim."},"member_id":{"description":"The member ID of the newest completed check or claim.","type":["string","null"]},"coverage":{"anyOf":[{"type":"object","properties":{"check_id":{"type":"string","pattern":"^elg_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with elg_."},"checked_at":{"type":"string","format":"date-time"},"outcome":{"type":"string","enum":["answered","rejected","payer_unavailable","error"]},"status":{"anyOf":[{"type":"string","enum":["active","inactive","unknown"]},{"type":"null"}]},"label":{"type":"string","description":"The result in words, as the Eligibility screen says it."},"verified":{"type":"boolean","description":"True when the payer answered this check in the last 30 days."}},"required":["check_id","checked_at","outcome","status","label","verified"]},{"type":"null"}],"description":"Coverage as last verified: the result of the newest completed check, in the Eligibility screen's words, with its date. Verified: the payer answered that check in the last 30 days. Inactive: that answer says the coverage is inactive. Null when no check of the patient has completed."},"open_claims":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Open claims: the patient's claims not paid, denied, reconciled or voided (drafts included; predeterminations and void transactions are not claims here)."},"open_charges":{"type":"object","properties":{"total":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},"claims":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"The charges of the open claims."},"patient_owes":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes on the paid, denied and reconciled claims, where known."}},"required":["total","claims","patient_owes"],"description":"Open charges: the charges of the open claims, plus what the patient owes on the paid, denied and reconciled ones, where the payer's remittance says."},"created_at":{"type":"string","format":"date-time","description":"When Claim House first saw the patient."},"checks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^elg_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with elg_."},"state":{"type":"string","enum":["pending","completed"]},"outcome":{"anyOf":[{"type":"string","enum":["answered","rejected","payer_unavailable","error"]},{"type":"null"}]},"status":{"anyOf":[{"type":"string","enum":["active","inactive","unknown"]},{"type":"null"}]},"label":{"type":"string"},"payer_id":{"type":"string","pattern":"^pyr_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with pyr_."},"created_at":{"type":"string","format":"date-time"}},"required":["id","state","outcome","status","label","payer_id","created_at"]},"description":"The newest checks about the patient (up to 25), newest first."},"claims":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},"kind":{"type":"string","enum":["claim","predetermination"]},"state":{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},"charge":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},"payer_id":{"type":"string","pattern":"^pyr_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with pyr_."},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["id","kind","state","charge","payer_id","created_at","updated_at"]},"description":"The newest claims for the patient, never a void transaction (up to 25), newest first."},"payments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^erc_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with erc_."},"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"claim_id":{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},"outcome":{"type":"string","enum":["paid","denied","reversal"],"description":"paid, denied or reversal: the remittance rows that moved the claim (never an estimate or a status row)."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},"payment_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"applied":{"type":"boolean","description":"Whether the payment stands on the claim (a later remittance can replace it)."}},"required":["id","era_id","claim_id","outcome","paid","patient_responsibility","payment_date","applied"]},"description":"The newest payments, denials and reversals on any of the patient's claims (never a predetermination's estimate; applied false: replaced by a later remittance) (up to 25), newest first."}},"required":["id","object","first_name","last_name","date_of_birth","office_id","primary_insurance","member_id","coverage","open_claims","open_charges","created_at","checks","claims","payments"]},"examples":{"by_id":{"summary":"A patient with a check, a paid claim and its payment","value":{"id":"pat_01JM000000E00800000000004K","object":"patient","first_name":"Alex","last_name":"Example","date_of_birth":"1985-04-12","office_id":"off_01JM000000E008000000000003","primary_insurance":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"member_id":"CH-ACTIVE-FULL","coverage":{"check_id":"elg_01JM000000E00800000000000G","checked_at":"2026-09-24T20:55:00.430000+00:00","outcome":"answered","status":"active","label":"Active","verified":true},"open_claims":0,"open_charges":{"total":"205.20","claims":"0.00","patient_owes":"205.20"},"created_at":"2026-03-10T15:30:00.430000+00:00","checks":[{"id":"elg_01JM000000E00800000000000G","state":"completed","outcome":"answered","status":"active","label":"Active","payer_id":"pyr_01JM000000E008000000000004","created_at":"2026-03-10T15:30:00.250000+00:00"}],"claims":[{"id":"clm_01JM000000E00800000000002G","kind":"claim","state":"paid","charge":"1140.00","payer_id":"pyr_01JM000000E008000000000004","created_at":"2026-09-24T21:00:00.120000+00:00","updated_at":"2026-09-24T21:00:00.310000+00:00"}],"payments":[{"id":"erc_01JM000000E00800000000003H","era_id":"era_01JM000000E00800000000003G","claim_id":"clm_01JM000000E00800000000002G","outcome":"paid","paid":"820.80","patient_responsibility":"205.20","payment_date":"2026-09-24","applied":true}]}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"not_found":{"summary":"A patient of another organization or mode","value":{"error":"NOT_FOUND","message":"Patient not found","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/enrollments":{"get":{"operationId":"listEnrollments","summary":"List enrollments","description":"The enrollments of the key's organization in the key's mode, newest first, one page at a time. Filter by provider, office, payer, type or status. 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.","tags":["Enrollments"],"x-permission":"read","parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"name":"provider_id","in":"query","required":false,"description":"Only the enrollments of this provider (prv_...).","schema":{"pattern":"^prv_[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}},{"name":"office_id","in":"query","required":false,"description":"Only the enrollments started for this office (off_...).","schema":{"pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}},{"name":"payer_id","in":"query","required":false,"description":"Only the enrollments with this payer (pyr_...).","schema":{"pattern":"^pyr_[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}},{"name":"type","in":"query","required":false,"description":"Only enrollments of this type.","schema":{"type":"string","enum":["claims","era","era_eft"]}},{"name":"status","in":"query","required":false,"description":"Only enrollments in this status.","schema":{"type":"string","enum":["not_started","awaiting_signature","provider_action","submitted","active","denied","withdrawn"]},"example":"not_started"},{"name":"idempotency_key","in":"query","required":false,"description":"Only the enrollment started with this Idempotency-Key (what a request that timed out started).","schema":{"type":"string"}}],"responses":{"200":{"description":"A page of enrollments.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^enr_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with enr_."},"object":{"type":"string","const":"enrollment"},"provider_id":{"anyOf":[{"type":"string","pattern":"^prv_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with prv_."},{"type":"null"}],"description":"The provider it is for; null for an office enrollment."},"provider_name":{"type":["string","null"]},"office_id":{"anyOf":[{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},{"type":"null"}],"description":"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":{"type":["string","null"]},"npi":{"type":"string","description":"The NPI it is for: the office's billing NPI when it was started, or the provider's."},"tax_id":{"description":"The office's tax ID when it was started; null for a provider enrollment.","type":["string","null"]},"payer_id":{"type":"string","pattern":"^pyr_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with pyr_."},"payer_name":{"type":"string"},"type":{"type":"string","enum":["claims","era","era_eft"]},"method":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"The payer directory's enrollment code when the enrollment was started (S, O, W, F, I or U, with * or L)."},"label":{"type":"string"},"instructions":{"type":"string","description":"What has to be done, in plain words."}},"required":["code","label","instructions"]},{"type":"null"}],"description":"How the payer enrolls a provider, from the payer directory; null when the payer needs no enrollment for this (it started active)."},"status":{"type":"string","enum":["not_started","awaiting_signature","provider_action","submitted","active","denied","withdrawn"]},"next_step":{"type":"string","description":"What someone has to do now, in plain words."},"sent_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"expected_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"note":{"type":"string"},"mode":{"type":"string","enum":["test","live"]},"activated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When it last became active; null while it is not."},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["id","object","provider_id","provider_name","office_id","office_name","npi","tax_id","payer_id","payer_name","type","method","status","next_step","sent_on","expected_on","note","mode","activated_at","created_at","updated_at"]}},"next_cursor":{"description":"Pass as cursor to get the next page; null when there is no next page.","type":["string","null"]}},"required":["data","next_cursor"]},"examples":{"not_started":{"summary":"The enrollments not started yet","value":{"data":[{"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"}],"next_cursor":null}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}},"post":{"operationId":"createEnrollment","summary":"Start an enrollment","description":"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.","tags":["Enrollments"],"x-permission":"submit","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"provider_id":{"description":"The provider (prv_...). Send this or office_id.","type":"string"},"office_id":{"description":"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.","type":"string"},"payer_id":{"description":"The payer (a Claim House payer ID, pyr_..., a payer ID or an alias from the payer directory).","type":"string"},"type":{"type":"string","enum":["claims","era","era_eft"],"description":"claims (837D), era (835) or era_eft (835 with EFT)."},"sent_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"When the paperwork was sent (YYYY-MM-DD), or null for none."},"expected_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"When the payer is expected to finish (YYYY-MM-DD), or null for none."},"note":{"maxLength":500,"description":"For your office's own notes about the paperwork. Never patient information.","type":"string"}},"required":["payer_id","type"],"additionalProperties":false},"examples":{"claims":{"summary":"Claims enrollment with a payer that needs its own paperwork","value":{"provider_id":"prv_01JM000000E008000000000005","payer_id":"pyr_01JM000000E008000000000004","type":"claims"}},"office":{"summary":"An office's billing NPI and tax ID, with a payer Claim House files for","value":{"office_id":"off_01JM000000E008000000000003","payer_id":"pyr_01JM000000E008000000000004","type":"claims"}},"already_started":{"summary":"The same provider, payer and type again","value":{"provider_id":"prv_01JM000000E008000000000005","payer_id":"pyr_01JM000000E008000000000004","type":"claims"}},"pair_enrolled":{"summary":"Another office with the same NPI and tax ID","value":{"office_id":"off_01JM000000E008000000000003","payer_id":"pyr_01JM000000E008000000000004","type":"claims"}}}}}},"responses":{"200":{"description":"The enrollment.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^enr_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with enr_."},"object":{"type":"string","const":"enrollment"},"provider_id":{"anyOf":[{"type":"string","pattern":"^prv_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with prv_."},{"type":"null"}],"description":"The provider it is for; null for an office enrollment."},"provider_name":{"type":["string","null"]},"office_id":{"anyOf":[{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},{"type":"null"}],"description":"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":{"type":["string","null"]},"npi":{"type":"string","description":"The NPI it is for: the office's billing NPI when it was started, or the provider's."},"tax_id":{"description":"The office's tax ID when it was started; null for a provider enrollment.","type":["string","null"]},"payer_id":{"type":"string","pattern":"^pyr_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with pyr_."},"payer_name":{"type":"string"},"type":{"type":"string","enum":["claims","era","era_eft"]},"method":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"The payer directory's enrollment code when the enrollment was started (S, O, W, F, I or U, with * or L)."},"label":{"type":"string"},"instructions":{"type":"string","description":"What has to be done, in plain words."}},"required":["code","label","instructions"]},{"type":"null"}],"description":"How the payer enrolls a provider, from the payer directory; null when the payer needs no enrollment for this (it started active)."},"status":{"type":"string","enum":["not_started","awaiting_signature","provider_action","submitted","active","denied","withdrawn"]},"next_step":{"type":"string","description":"What someone has to do now, in plain words."},"sent_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"expected_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"note":{"type":"string"},"mode":{"type":"string","enum":["test","live"]},"activated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When it last became active; null while it is not."},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["id","object","provider_id","provider_name","office_id","office_name","npi","tax_id","payer_id","payer_name","type","method","status","next_step","sent_on","expected_on","note","mode","activated_at","created_at","updated_at"]},"examples":{"claims":{"summary":"Claims enrollment with a payer that needs its own paperwork","value":{"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"}},"office":{"summary":"An office's billing NPI and tax ID, with a payer Claim House files for","value":{"id":"enr_01JM000000E00800000000004N","object":"enrollment","provider_id":null,"provider_name":null,"office_id":"off_01JM000000E008000000000003","office_name":"Example Family Dental","npi":"1999999000","tax_id":"009999999","payer_id":"pyr_01JM000000E008000000000004","payer_name":"Example Dental Plan","type":"claims","method":{"code":"S","label":"Claim House facilitates","instructions":"Claim House can handle enrollment with the payer. The provider requests it by completing the Claim House enrollment request form and supplying the demographic details asked for, including tax ID and NPIs."},"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"}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.\n\n`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.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"already_started":{"summary":"The same provider, payer and type again","value":{"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"}},"pair_enrolled":{"summary":"Another office with the same NPI and tax ID","value":{"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"}},"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/enrollments/{id}":{"get":{"operationId":"getEnrollment","summary":"Get an enrollment","description":"One enrollment of the key's organization and mode. One of another organization or mode is not found.","tags":["Enrollments"],"x-permission":"read","parameters":[{"name":"id","in":"path","required":true,"description":"An enrollment ID (enr_...).","schema":{"type":"string"},"example":"enr_01JM000000E00800000000004M"}],"responses":{"200":{"description":"The enrollment.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^enr_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with enr_."},"object":{"type":"string","const":"enrollment"},"provider_id":{"anyOf":[{"type":"string","pattern":"^prv_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with prv_."},{"type":"null"}],"description":"The provider it is for; null for an office enrollment."},"provider_name":{"type":["string","null"]},"office_id":{"anyOf":[{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},{"type":"null"}],"description":"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":{"type":["string","null"]},"npi":{"type":"string","description":"The NPI it is for: the office's billing NPI when it was started, or the provider's."},"tax_id":{"description":"The office's tax ID when it was started; null for a provider enrollment.","type":["string","null"]},"payer_id":{"type":"string","pattern":"^pyr_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with pyr_."},"payer_name":{"type":"string"},"type":{"type":"string","enum":["claims","era","era_eft"]},"method":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"The payer directory's enrollment code when the enrollment was started (S, O, W, F, I or U, with * or L)."},"label":{"type":"string"},"instructions":{"type":"string","description":"What has to be done, in plain words."}},"required":["code","label","instructions"]},{"type":"null"}],"description":"How the payer enrolls a provider, from the payer directory; null when the payer needs no enrollment for this (it started active)."},"status":{"type":"string","enum":["not_started","awaiting_signature","provider_action","submitted","active","denied","withdrawn"]},"next_step":{"type":"string","description":"What someone has to do now, in plain words."},"sent_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"expected_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"note":{"type":"string"},"mode":{"type":"string","enum":["test","live"]},"activated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When it last became active; null while it is not."},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["id","object","provider_id","provider_name","office_id","office_name","npi","tax_id","payer_id","payer_name","type","method","status","next_step","sent_on","expected_on","note","mode","activated_at","created_at","updated_at"]},"examples":{"by_id":{"summary":"An enrollment by its ID","value":{"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"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"not_found":{"summary":"An enrollment of another organization or mode","value":{"error":"NOT_FOUND","message":"Enrollment not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}},"patch":{"operationId":"updateEnrollment","summary":"Update an enrollment","description":"Changes the fields sent and leaves the rest: the status (only along the allowed changes: an open enrollment may move to another open status, to active or to denied, and an open one may also be withdrawn; paperwork submitted to the payer is never not started again; an active, denied or withdrawn one may only start over), the dates (null clears one) and the note. Send at least one. A new status for a live enrollment Claim House files (method S) is 409 STATUS_MANAGED: its notes and dates are still yours, and POST /enrollments/{id}/withdraw withdraws it. Every status change is on the organization's audit trail. Needs an Idempotency-Key header and a key with the submit permission.","tags":["Enrollments"],"x-permission":"submit","parameters":[{"name":"id","in":"path","required":true,"description":"An enrollment ID (enr_...).","schema":{"type":"string"},"example":"enr_01JM000000E00800000000004M"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["not_started","awaiting_signature","provider_action","submitted","active","denied","withdrawn"],"description":"The new status, along the allowed changes."},"sent_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"When the paperwork was sent (YYYY-MM-DD), or null for none."},"expected_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"When the payer is expected to finish (YYYY-MM-DD), or null for none."},"note":{"maxLength":500,"description":"For your office's own notes about the paperwork. Never patient information.","type":"string"}},"additionalProperties":false},"examples":{"submitted":{"summary":"The paperwork went to the payer","value":{"status":"submitted","sent_on":"2026-09-22","expected_on":"2026-10-10","note":"Faxed to the payer's provider services."}},"status_managed":{"summary":"A new status for a live enrollment Claim House files","value":{"status":"submitted"}}}}}},"responses":{"200":{"description":"The enrollment as it is now.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^enr_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with enr_."},"object":{"type":"string","const":"enrollment"},"provider_id":{"anyOf":[{"type":"string","pattern":"^prv_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with prv_."},{"type":"null"}],"description":"The provider it is for; null for an office enrollment."},"provider_name":{"type":["string","null"]},"office_id":{"anyOf":[{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},{"type":"null"}],"description":"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":{"type":["string","null"]},"npi":{"type":"string","description":"The NPI it is for: the office's billing NPI when it was started, or the provider's."},"tax_id":{"description":"The office's tax ID when it was started; null for a provider enrollment.","type":["string","null"]},"payer_id":{"type":"string","pattern":"^pyr_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with pyr_."},"payer_name":{"type":"string"},"type":{"type":"string","enum":["claims","era","era_eft"]},"method":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"The payer directory's enrollment code when the enrollment was started (S, O, W, F, I or U, with * or L)."},"label":{"type":"string"},"instructions":{"type":"string","description":"What has to be done, in plain words."}},"required":["code","label","instructions"]},{"type":"null"}],"description":"How the payer enrolls a provider, from the payer directory; null when the payer needs no enrollment for this (it started active)."},"status":{"type":"string","enum":["not_started","awaiting_signature","provider_action","submitted","active","denied","withdrawn"]},"next_step":{"type":"string","description":"What someone has to do now, in plain words."},"sent_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"expected_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"note":{"type":"string"},"mode":{"type":"string","enum":["test","live"]},"activated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When it last became active; null while it is not."},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["id","object","provider_id","provider_name","office_id","office_name","npi","tax_id","payer_id","payer_name","type","method","status","next_step","sent_on","expected_on","note","mode","activated_at","created_at","updated_at"]},"examples":{"submitted":{"summary":"The paperwork went to the payer","value":{"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":"submitted","next_step":"Wait for the payer to confirm, then mark it active.","sent_on":"2026-09-22","expected_on":"2026-10-10","note":"Faxed to the payer's provider services.","mode":"test","activated_at":null,"created_at":"2026-09-20T15:00:00+00:00","updated_at":"2026-09-22T16:10:00+00:00"}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.\n\n`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.\n\n`STATUS_MANAGED`: Claim House moves this enrollment's status.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"status_managed":{"summary":"A new status for a live enrollment Claim House files","value":{"error":"STATUS_MANAGED","message":"Claim House moves this enrollment's status.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"CONFLICT":{"summary":"CONFLICT","value":{"error":"CONFLICT","message":"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.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/enrollments/{id}/withdraw":{"post":{"operationId":"withdrawEnrollment","summary":"Withdraw an enrollment","description":"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.","tags":["Enrollments"],"x-permission":"submit","parameters":[{"name":"id","in":"path","required":true,"description":"An enrollment ID (enr_...).","schema":{"type":"string"},"example":"enr_01JM000000E00800000000004M"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false},"examples":{"withdrawn":{"summary":"The office no longer wants it","value":{}},"not_open":{"summary":"An active or denied enrollment","value":{}}}}}},"responses":{"200":{"description":"The enrollment as it is now.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^enr_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with enr_."},"object":{"type":"string","const":"enrollment"},"provider_id":{"anyOf":[{"type":"string","pattern":"^prv_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with prv_."},{"type":"null"}],"description":"The provider it is for; null for an office enrollment."},"provider_name":{"type":["string","null"]},"office_id":{"anyOf":[{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},{"type":"null"}],"description":"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":{"type":["string","null"]},"npi":{"type":"string","description":"The NPI it is for: the office's billing NPI when it was started, or the provider's."},"tax_id":{"description":"The office's tax ID when it was started; null for a provider enrollment.","type":["string","null"]},"payer_id":{"type":"string","pattern":"^pyr_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with pyr_."},"payer_name":{"type":"string"},"type":{"type":"string","enum":["claims","era","era_eft"]},"method":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"The payer directory's enrollment code when the enrollment was started (S, O, W, F, I or U, with * or L)."},"label":{"type":"string"},"instructions":{"type":"string","description":"What has to be done, in plain words."}},"required":["code","label","instructions"]},{"type":"null"}],"description":"How the payer enrolls a provider, from the payer directory; null when the payer needs no enrollment for this (it started active)."},"status":{"type":"string","enum":["not_started","awaiting_signature","provider_action","submitted","active","denied","withdrawn"]},"next_step":{"type":"string","description":"What someone has to do now, in plain words."},"sent_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"expected_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"note":{"type":"string"},"mode":{"type":"string","enum":["test","live"]},"activated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When it last became active; null while it is not."},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["id","object","provider_id","provider_name","office_id","office_name","npi","tax_id","payer_id","payer_name","type","method","status","next_step","sent_on","expected_on","note","mode","activated_at","created_at","updated_at"]},"examples":{"withdrawn":{"summary":"The office no longer wants it","value":{"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"}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.\n\n`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.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"not_open":{"summary":"An active or denied enrollment","value":{"error":"CONFLICT","message":"Only an open enrollment can be withdrawn. An active or denied one can only start over.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/attachments":{"get":{"operationId":"listAttachments","summary":"List attachments","description":"The attachments of the key's organization in the key's mode, newest first, each with its documents. Filter by state, kind, the claim it was made for, office or practice group, or find what a request made by its request_id or its Idempotency-Key (after a 504, before sending it again). Needs a key with read (a key with submit only sees the attachments it made).","tags":["Attachments"],"x-permission":"read","parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"name":"state","in":"query","required":false,"description":"Only open or closed attachments.","schema":{"type":"string","enum":["open","closed"]},"example":"closed"},{"name":"kind","in":"query","required":false,"description":"Only unsolicited or solicited attachments.","schema":{"type":"string","enum":["unsolicited","solicited"]}},{"name":"claim_id","in":"query","required":false,"description":"Only the attachments made for this claim (clm_...).","schema":{"pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}},{"name":"office_id","in":"query","required":false,"description":"Only the attachments of this office (off_...).","schema":{"pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}},{"name":"practice_group_id","in":"query","required":false,"description":"Only the attachments of the offices of this practice group (pgr_...). Not with office_id. Needs practice groups enabled for the organization: otherwise 403 FEATURE_NOT_ENABLED.","schema":{"pattern":"^pgr_[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}},{"name":"request_id","in":"query","required":false,"description":"Only the attachment made by this API request (the x-request-id of its response, req_...).","schema":{"pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}},{"name":"idempotency_key","in":"query","required":false,"description":"Only the attachment made with this Idempotency-Key (what a request that timed out made).","schema":{"type":"string"}}],"responses":{"200":{"description":"A page of attachments.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^att_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with att_."},"object":{"type":"string","const":"attachment"},"state":{"type":"string","enum":["open","closed"],"description":"open while documents can be added; closed once sent, with its number. Nothing changes after closing."},"kind":{"type":"string","enum":["unsolicited","solicited"],"description":"unsolicited (sent with a claim); solicited (answering a payer request: never on a claim file)."},"claim_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"The claim it was made for, if any. Which claims carry it is the claim's attachments field."},"office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"payer":{"$ref":"#/components/schemas/PayerLabel"},"payer_request_id":{"anyOf":[{"type":"string","pattern":"^prq_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with prq_."},{"type":"null"}]},"payer_reference":{"description":"The payer's reference number, for a solicited attachment.","type":["string","null"]},"narrative":{"type":"string","description":"What the documents show, in words: at most 2000 characters."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^doc_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with doc_."},"object":{"type":"string","const":"attachment_document"},"document_type":{"type":"string","description":"The document type code (GET /attachments/document_types)."},"medium":{"type":"string","enum":["film","paper"],"description":"film (an X-ray or a photo: has an image date and an orientation) or paper."},"image_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"orientation":{"anyOf":[{"type":"string","enum":["left","right"]},{"type":"null"}]},"file_name":{"type":"string","description":"The name the file was sent with, for display: the last part of it, without control characters. The stored file is named by the document ID."},"converted_from":{"anyOf":[{"type":"string","enum":["png","pdf"]},{"type":"null"}],"description":"png when the upload was a PNG, converted to the JPEG that is stored and sent; pdf when it was a PDF, rendered to one JPEG for each page; null when it was a JPEG."},"pages":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"How many pages the document has: 1 for an image, the PDF's page count for a PDF. Each page is one image, previewed by page and sent with the document."},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The size in bytes of the image as stored and sent: the upload rewritten without its metadata (a PNG converted to a JPEG first). For a PDF, size is the total of its page images and md5 is that of its first page's image."},"md5":{"type":"string","description":"The MD5 of the stored image (the JPEG), lower-case hex. For a PDF, size is the total of its page images and md5 is that of its first page's image."},"sent_to_network":{"type":"boolean","description":"True once the document has been sent to the attachment network (closing sends it)."},"created_at":{"type":"string","format":"date-time"}},"required":["id","object","document_type","medium","image_date","orientation","file_name","converted_from","pages","size","md5","sent_to_network","created_at"]}},"attachment_number":{"description":"The number the attachment network gave when it closed; null while open.","type":["string","null"]},"claim_file":{"anyOf":[{"type":"object","properties":{"pwk":{"type":"string","description":"What the claim file carries in PWK06 (loop 2300)."},"nte":{"type":"string","description":"The note the claim file carries for it (NTE, loop 2300)."}},"required":["pwk","nte"]},{"type":"null"}],"description":"How a claim carrying it refers to it; null while open."},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made it; null for one made in the dashboard."},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"closed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["id","object","state","kind","claim_id","office_id","payer","payer_request_id","payer_reference","narrative","documents","attachment_number","claim_file","request_id","created_at","updated_at","closed_at"]}},"next_cursor":{"description":"Pass as cursor to get the next page; null when there is no next page.","type":["string","null"]}},"required":["data","next_cursor"]},"examples":{"closed":{"summary":"The closed attachments","value":{"data":[{"id":"att_01JM000000E00800000000003G","object":"attachment","state":"closed","kind":"unsolicited","claim_id":"clm_01JM000000E00800000000002G","office_id":"off_01JM000000E008000000000003","payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"payer_request_id":null,"payer_reference":null,"narrative":"Fractured distal cusp on tooth 3, shown on the bitewing.","documents":[{"id":"doc_01JM000000E00800000000003H","object":"attachment_document","document_type":"bitewing_xray","medium":"film","image_date":"2026-09-24","orientation":"right","file_name":"bitewing-right.jpg","converted_from":null,"pages":1,"size":184211,"md5":"3f2a9c1e5b7d4f60a8c2e1d3b5f7a9c0","sent_to_network":true,"created_at":"2026-09-24T20:57:20.000000+00:00"},{"id":"doc_01JM000000E00800000000003J","object":"attachment_document","document_type":"narrative","medium":"paper","image_date":null,"orientation":null,"file_name":"narrative.png","converted_from":"png","pages":1,"size":92480,"md5":"7d1e3c5a9b2f4d6e8a0c1b3d5f7e9a2b","sent_to_network":true,"created_at":"2026-09-24T20:57:20.000000+00:00"}],"attachment_number":"100001042","claim_file":{"pwk":"NEA100001042","nte":"NEA#100001042"},"request_id":"req_01JM000000E00800000000003K","created_at":"2026-09-24T20:57:00.000000+00:00","updated_at":"2026-09-24T20:58:10.000000+00:00","closed_at":"2026-09-24T20:58:10.000000+00:00"}],"next_cursor":null}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.\n\n`FEATURE_NOT_ENABLED`: Practice groups are not enabled for this organization. Ask Claim House to turn them on.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"FEATURE_NOT_ENABLED":{"summary":"FEATURE_NOT_ENABLED","value":{"error":"FEATURE_NOT_ENABLED","message":"Practice groups are not enabled for this organization. Ask Claim House to turn them on.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}},"post":{"operationId":"createAttachment","summary":"Create an attachment","description":"Makes an open attachment: for a claim (its office, payer and patient are taken from it), for a payer request (kind solicited: its claim and payer, and the payer's reference number), or on its own (an office and a payer that takes attachments). Then upload its documents and close it. Needs an Idempotency-Key header and a key with the submit permission.","tags":["Attachments"],"x-permission":"submit","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"office_id":{"description":"The office the attachment is for. Default: the claim's office.","type":"string"},"payer_id":{"description":"The payer (pyr_..., a payer ID or an alias): one that takes attachments. Default: the claim's or the payer request's payer.","type":"string"},"claim_id":{"description":"The claim it is for: its office, payer and patient are copied onto the attachment.","type":"string"},"kind":{"description":"unsolicited (the default) or solicited (answering payer_request_id).","type":"string","enum":["unsolicited","solicited"]},"payer_request_id":{"description":"The payer request a solicited attachment answers.","type":"string"},"narrative":{"description":"What the documents show, in words: at most 2000 characters.","type":"string"},"patient":{"description":"The patient, for an attachment made for no claim (required then; one made for a claim takes the claim's).","type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"date_of_birth":{"type":"string","format":"date"}},"required":["first_name","last_name","date_of_birth"],"additionalProperties":false},"subscriber":{"description":"The insured, for an attachment made for no claim (required then).","type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"member_id":{"type":"string"},"relationship":{"type":"string","enum":["self","spouse","child","other"],"description":"The patient's relationship to the insured."}},"required":["first_name","last_name","member_id","relationship"],"additionalProperties":false},"service_dates":{"description":"The dates of service the documents are about, for an attachment made for no claim (required then).","type":"object","properties":{"from":{"type":"string","format":"date"},"to":{"type":"string","format":"date"}},"required":["from","to"],"additionalProperties":false}},"additionalProperties":false},"examples":{"for_claim":{"summary":"An attachment for a claim","value":{"claim_id":"clm_01JM000000E00800000000002G","narrative":"Fractured distal cusp on tooth 3, shown on the bitewing."}}}}}},"responses":{"201":{"description":"The attachment, open.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^att_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with att_."},"object":{"type":"string","const":"attachment"},"state":{"type":"string","enum":["open","closed"],"description":"open while documents can be added; closed once sent, with its number. Nothing changes after closing."},"kind":{"type":"string","enum":["unsolicited","solicited"],"description":"unsolicited (sent with a claim); solicited (answering a payer request: never on a claim file)."},"claim_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"The claim it was made for, if any. Which claims carry it is the claim's attachments field."},"office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"payer":{"$ref":"#/components/schemas/PayerLabel"},"payer_request_id":{"anyOf":[{"type":"string","pattern":"^prq_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with prq_."},{"type":"null"}]},"payer_reference":{"description":"The payer's reference number, for a solicited attachment.","type":["string","null"]},"narrative":{"type":"string","description":"What the documents show, in words: at most 2000 characters."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^doc_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with doc_."},"object":{"type":"string","const":"attachment_document"},"document_type":{"type":"string","description":"The document type code (GET /attachments/document_types)."},"medium":{"type":"string","enum":["film","paper"],"description":"film (an X-ray or a photo: has an image date and an orientation) or paper."},"image_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"orientation":{"anyOf":[{"type":"string","enum":["left","right"]},{"type":"null"}]},"file_name":{"type":"string","description":"The name the file was sent with, for display: the last part of it, without control characters. The stored file is named by the document ID."},"converted_from":{"anyOf":[{"type":"string","enum":["png","pdf"]},{"type":"null"}],"description":"png when the upload was a PNG, converted to the JPEG that is stored and sent; pdf when it was a PDF, rendered to one JPEG for each page; null when it was a JPEG."},"pages":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"How many pages the document has: 1 for an image, the PDF's page count for a PDF. Each page is one image, previewed by page and sent with the document."},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The size in bytes of the image as stored and sent: the upload rewritten without its metadata (a PNG converted to a JPEG first). For a PDF, size is the total of its page images and md5 is that of its first page's image."},"md5":{"type":"string","description":"The MD5 of the stored image (the JPEG), lower-case hex. For a PDF, size is the total of its page images and md5 is that of its first page's image."},"sent_to_network":{"type":"boolean","description":"True once the document has been sent to the attachment network (closing sends it)."},"created_at":{"type":"string","format":"date-time"}},"required":["id","object","document_type","medium","image_date","orientation","file_name","converted_from","pages","size","md5","sent_to_network","created_at"]}},"attachment_number":{"description":"The number the attachment network gave when it closed; null while open.","type":["string","null"]},"claim_file":{"anyOf":[{"type":"object","properties":{"pwk":{"type":"string","description":"What the claim file carries in PWK06 (loop 2300)."},"nte":{"type":"string","description":"The note the claim file carries for it (NTE, loop 2300)."}},"required":["pwk","nte"]},{"type":"null"}],"description":"How a claim carrying it refers to it; null while open."},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made it; null for one made in the dashboard."},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"closed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["id","object","state","kind","claim_id","office_id","payer","payer_request_id","payer_reference","narrative","documents","attachment_number","claim_file","request_id","created_at","updated_at","closed_at"]},"examples":{"for_claim":{"summary":"An attachment for a claim","value":{"id":"att_01JM000000E00800000000003G","object":"attachment","state":"open","kind":"unsolicited","claim_id":"clm_01JM000000E00800000000002G","office_id":"off_01JM000000E008000000000003","payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"payer_request_id":null,"payer_reference":null,"narrative":"Fractured distal cusp on tooth 3, shown on the bitewing.","documents":[],"attachment_number":null,"claim_file":null,"request_id":"req_01JM000000E00800000000003K","created_at":"2026-09-24T20:57:00.000000+00:00","updated_at":"2026-09-24T20:57:00.000000+00:00","closed_at":null}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.\n\n`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.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"CONFLICT":{"summary":"CONFLICT","value":{"error":"CONFLICT","message":"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.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"503":{"description":"`ATTACHMENTS_UNAVAILABLE`: Attachments are not available in live mode yet. Use a test key.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"ATTACHMENTS_UNAVAILABLE":{"summary":"ATTACHMENTS_UNAVAILABLE","value":{"error":"ATTACHMENTS_UNAVAILABLE","message":"Attachments are not available in live mode yet. Use a test key.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/attachments/document_types":{"get":{"operationId":"listAttachmentDocumentTypes","summary":"List document types","description":"The document types an attachment's documents can be. A film type (an X-ray or a photo) needs the date the image was taken and its orientation.","tags":["Attachments"],"x-permission":"read","responses":{"200":{"description":"The document types.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"label":{"type":"string"},"medium":{"type":"string","enum":["film","paper"]},"requires_image_date":{"type":"boolean"},"requires_orientation":{"type":"boolean"}},"required":["code","label","medium","requires_image_date","requires_orientation"]}}},"required":["object","data"]},"examples":{"all":{"summary":"Every document type","value":{"object":"list","data":[{"code":"periapical_xray","label":"Periapical X-ray","medium":"film","requires_image_date":true,"requires_orientation":true},{"code":"bitewing_xray","label":"Bitewing X-ray","medium":"film","requires_image_date":true,"requires_orientation":true},{"code":"panoramic_xray","label":"Panoramic X-ray","medium":"film","requires_image_date":true,"requires_orientation":true},{"code":"full_mouth_series","label":"Full-mouth series","medium":"film","requires_image_date":true,"requires_orientation":true},{"code":"intraoral_photo","label":"Intraoral photo","medium":"film","requires_image_date":true,"requires_orientation":true},{"code":"perio_chart","label":"Perio chart","medium":"paper","requires_image_date":false,"requires_orientation":false},{"code":"narrative","label":"Narrative","medium":"paper","requires_image_date":false,"requires_orientation":false},{"code":"eob_primary_payer","label":"EOB from the primary payer","medium":"paper","requires_image_date":false,"requires_orientation":false},{"code":"other","label":"Other","medium":"paper","requires_image_date":false,"requires_orientation":false}]}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/attachments/{id}":{"get":{"operationId":"getAttachment","summary":"Get an attachment","description":"One attachment of the key's organization and mode, with its documents, and once closed its number and what a claim file carries for it.","tags":["Attachments"],"x-permission":"read","parameters":[{"name":"id","in":"path","required":true,"description":"An attachment ID (att_...).","schema":{"type":"string"},"example":"att_01JM000000E00800000000003G"}],"responses":{"200":{"description":"The attachment.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^att_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with att_."},"object":{"type":"string","const":"attachment"},"state":{"type":"string","enum":["open","closed"],"description":"open while documents can be added; closed once sent, with its number. Nothing changes after closing."},"kind":{"type":"string","enum":["unsolicited","solicited"],"description":"unsolicited (sent with a claim); solicited (answering a payer request: never on a claim file)."},"claim_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"The claim it was made for, if any. Which claims carry it is the claim's attachments field."},"office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"payer":{"$ref":"#/components/schemas/PayerLabel"},"payer_request_id":{"anyOf":[{"type":"string","pattern":"^prq_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with prq_."},{"type":"null"}]},"payer_reference":{"description":"The payer's reference number, for a solicited attachment.","type":["string","null"]},"narrative":{"type":"string","description":"What the documents show, in words: at most 2000 characters."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^doc_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with doc_."},"object":{"type":"string","const":"attachment_document"},"document_type":{"type":"string","description":"The document type code (GET /attachments/document_types)."},"medium":{"type":"string","enum":["film","paper"],"description":"film (an X-ray or a photo: has an image date and an orientation) or paper."},"image_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"orientation":{"anyOf":[{"type":"string","enum":["left","right"]},{"type":"null"}]},"file_name":{"type":"string","description":"The name the file was sent with, for display: the last part of it, without control characters. The stored file is named by the document ID."},"converted_from":{"anyOf":[{"type":"string","enum":["png","pdf"]},{"type":"null"}],"description":"png when the upload was a PNG, converted to the JPEG that is stored and sent; pdf when it was a PDF, rendered to one JPEG for each page; null when it was a JPEG."},"pages":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"How many pages the document has: 1 for an image, the PDF's page count for a PDF. Each page is one image, previewed by page and sent with the document."},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The size in bytes of the image as stored and sent: the upload rewritten without its metadata (a PNG converted to a JPEG first). For a PDF, size is the total of its page images and md5 is that of its first page's image."},"md5":{"type":"string","description":"The MD5 of the stored image (the JPEG), lower-case hex. For a PDF, size is the total of its page images and md5 is that of its first page's image."},"sent_to_network":{"type":"boolean","description":"True once the document has been sent to the attachment network (closing sends it)."},"created_at":{"type":"string","format":"date-time"}},"required":["id","object","document_type","medium","image_date","orientation","file_name","converted_from","pages","size","md5","sent_to_network","created_at"]}},"attachment_number":{"description":"The number the attachment network gave when it closed; null while open.","type":["string","null"]},"claim_file":{"anyOf":[{"type":"object","properties":{"pwk":{"type":"string","description":"What the claim file carries in PWK06 (loop 2300)."},"nte":{"type":"string","description":"The note the claim file carries for it (NTE, loop 2300)."}},"required":["pwk","nte"]},{"type":"null"}],"description":"How a claim carrying it refers to it; null while open."},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made it; null for one made in the dashboard."},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"closed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["id","object","state","kind","claim_id","office_id","payer","payer_request_id","payer_reference","narrative","documents","attachment_number","claim_file","request_id","created_at","updated_at","closed_at"]},"examples":{"closed":{"summary":"A closed attachment","value":{"id":"att_01JM000000E00800000000003G","object":"attachment","state":"closed","kind":"unsolicited","claim_id":"clm_01JM000000E00800000000002G","office_id":"off_01JM000000E008000000000003","payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"payer_request_id":null,"payer_reference":null,"narrative":"Fractured distal cusp on tooth 3, shown on the bitewing.","documents":[{"id":"doc_01JM000000E00800000000003H","object":"attachment_document","document_type":"bitewing_xray","medium":"film","image_date":"2026-09-24","orientation":"right","file_name":"bitewing-right.jpg","converted_from":null,"pages":1,"size":184211,"md5":"3f2a9c1e5b7d4f60a8c2e1d3b5f7a9c0","sent_to_network":true,"created_at":"2026-09-24T20:57:20.000000+00:00"},{"id":"doc_01JM000000E00800000000003J","object":"attachment_document","document_type":"narrative","medium":"paper","image_date":null,"orientation":null,"file_name":"narrative.png","converted_from":"png","pages":1,"size":92480,"md5":"7d1e3c5a9b2f4d6e8a0c1b3d5f7e9a2b","sent_to_network":true,"created_at":"2026-09-24T20:57:20.000000+00:00"}],"attachment_number":"100001042","claim_file":{"pwk":"NEA100001042","nte":"NEA#100001042"},"request_id":"req_01JM000000E00800000000003K","created_at":"2026-09-24T20:57:00.000000+00:00","updated_at":"2026-09-24T20:58:10.000000+00:00","closed_at":"2026-09-24T20:58:10.000000+00:00"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}},"patch":{"operationId":"updateAttachment","summary":"Change an open attachment","description":"Changes an open attachment not yet being sent: its narrative, and, for one made for no claim or for a claim that was voided, its patient, subscriber and service_dates (the network's record needs them; send the fields to change). One made for a claim takes its patient from the claim (409). Needs an Idempotency-Key header and a key with the submit permission.","tags":["Attachments"],"x-permission":"submit","parameters":[{"name":"id","in":"path","required":true,"description":"An attachment ID (att_...).","schema":{"type":"string"},"example":"att_01JM000000E00800000000003G"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"narrative":{"description":"What the documents show, in words: at most 2000 characters.","type":"string"},"patient":{"description":"The patient, for an attachment made for no claim (required then; one made for a claim takes the claim's).","type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"date_of_birth":{"type":"string","format":"date"}},"required":["first_name","last_name","date_of_birth"],"additionalProperties":false},"subscriber":{"description":"The insured, for an attachment made for no claim (required then).","type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"member_id":{"type":"string"},"relationship":{"type":"string","enum":["self","spouse","child","other"],"description":"The patient's relationship to the insured."}},"required":["first_name","last_name","member_id","relationship"],"additionalProperties":false},"service_dates":{"description":"The dates of service the documents are about, for an attachment made for no claim (required then).","type":"object","properties":{"from":{"type":"string","format":"date"},"to":{"type":"string","format":"date"}},"required":["from","to"],"additionalProperties":false}},"additionalProperties":false},"examples":{"patient":{"summary":"Give an attachment made for a voided claim its patient","value":{"patient":{"first_name":"Alex","last_name":"Example","date_of_birth":"1985-04-12"}}}}}}},"responses":{"200":{"description":"The attachment.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^att_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with att_."},"object":{"type":"string","const":"attachment"},"state":{"type":"string","enum":["open","closed"],"description":"open while documents can be added; closed once sent, with its number. Nothing changes after closing."},"kind":{"type":"string","enum":["unsolicited","solicited"],"description":"unsolicited (sent with a claim); solicited (answering a payer request: never on a claim file)."},"claim_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"The claim it was made for, if any. Which claims carry it is the claim's attachments field."},"office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"payer":{"$ref":"#/components/schemas/PayerLabel"},"payer_request_id":{"anyOf":[{"type":"string","pattern":"^prq_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with prq_."},{"type":"null"}]},"payer_reference":{"description":"The payer's reference number, for a solicited attachment.","type":["string","null"]},"narrative":{"type":"string","description":"What the documents show, in words: at most 2000 characters."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^doc_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with doc_."},"object":{"type":"string","const":"attachment_document"},"document_type":{"type":"string","description":"The document type code (GET /attachments/document_types)."},"medium":{"type":"string","enum":["film","paper"],"description":"film (an X-ray or a photo: has an image date and an orientation) or paper."},"image_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"orientation":{"anyOf":[{"type":"string","enum":["left","right"]},{"type":"null"}]},"file_name":{"type":"string","description":"The name the file was sent with, for display: the last part of it, without control characters. The stored file is named by the document ID."},"converted_from":{"anyOf":[{"type":"string","enum":["png","pdf"]},{"type":"null"}],"description":"png when the upload was a PNG, converted to the JPEG that is stored and sent; pdf when it was a PDF, rendered to one JPEG for each page; null when it was a JPEG."},"pages":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"How many pages the document has: 1 for an image, the PDF's page count for a PDF. Each page is one image, previewed by page and sent with the document."},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The size in bytes of the image as stored and sent: the upload rewritten without its metadata (a PNG converted to a JPEG first). For a PDF, size is the total of its page images and md5 is that of its first page's image."},"md5":{"type":"string","description":"The MD5 of the stored image (the JPEG), lower-case hex. For a PDF, size is the total of its page images and md5 is that of its first page's image."},"sent_to_network":{"type":"boolean","description":"True once the document has been sent to the attachment network (closing sends it)."},"created_at":{"type":"string","format":"date-time"}},"required":["id","object","document_type","medium","image_date","orientation","file_name","converted_from","pages","size","md5","sent_to_network","created_at"]}},"attachment_number":{"description":"The number the attachment network gave when it closed; null while open.","type":["string","null"]},"claim_file":{"anyOf":[{"type":"object","properties":{"pwk":{"type":"string","description":"What the claim file carries in PWK06 (loop 2300)."},"nte":{"type":"string","description":"The note the claim file carries for it (NTE, loop 2300)."}},"required":["pwk","nte"]},{"type":"null"}],"description":"How a claim carrying it refers to it; null while open."},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made it; null for one made in the dashboard."},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"closed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["id","object","state","kind","claim_id","office_id","payer","payer_request_id","payer_reference","narrative","documents","attachment_number","claim_file","request_id","created_at","updated_at","closed_at"]},"examples":{"patient":{"summary":"Give an attachment made for a voided claim its patient","value":{"id":"att_01JM000000E00800000000003G","object":"attachment","state":"open","kind":"unsolicited","claim_id":"clm_01JM000000E00800000000002G","office_id":"off_01JM000000E008000000000003","payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"payer_request_id":null,"payer_reference":null,"narrative":"Fractured distal cusp on tooth 3, shown on the bitewing.","documents":[],"attachment_number":null,"claim_file":null,"request_id":"req_01JM000000E00800000000003K","created_at":"2026-09-24T20:57:00.000000+00:00","updated_at":"2026-09-24T20:57:00.000000+00:00","closed_at":null}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.\n\n`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.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"CONFLICT":{"summary":"CONFLICT","value":{"error":"CONFLICT","message":"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.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"503":{"description":"`ATTACHMENTS_UNAVAILABLE`: Attachments are not available in live mode yet. Use a test key.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"ATTACHMENTS_UNAVAILABLE":{"summary":"ATTACHMENTS_UNAVAILABLE","value":{"error":"ATTACHMENTS_UNAVAILABLE","message":"Attachments are not available in live mode yet. Use a test key.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}},"delete":{"operationId":"discardAttachment","summary":"Discard an open attachment","description":"Deletes an open attachment you no longer want (the wrong office or patient, or a payer that stopped taking attachments), with its documents and their images. A payer request it was answering can then be answered again, and the claim it was made for notes it on its timeline. A closed attachment cannot be discarded (409), nor one on a claim (take it off the claim first, 409), nor one being closed (409). Discarding one that is already gone is not found. Needs a key with submit.","tags":["Attachments"],"x-permission":"submit","parameters":[{"name":"id","in":"path","required":true,"description":"An attachment ID (att_...).","schema":{"type":"string"},"example":"att_01JM000000E00800000000003G"}],"responses":{"200":{"description":"The attachment that was discarded.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^att_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with att_."},"object":{"type":"string","const":"attachment"},"deleted":{"type":"boolean","const":true}},"required":["id","object","deleted"]},"examples":{"discard":{"summary":"Discard an open attachment","value":{"id":"att_01JM000000E00800000000003G","object":"attachment","deleted":true}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`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.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"CONFLICT":{"summary":"CONFLICT","value":{"error":"CONFLICT","message":"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.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"502":{"description":"`ATTACHMENTS_NETWORK_ERROR`: The attachment network did not finish. The attachment is still open and nothing was lost: close it again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"ATTACHMENTS_NETWORK_ERROR":{"summary":"ATTACHMENTS_NETWORK_ERROR","value":{"error":"ATTACHMENTS_NETWORK_ERROR","message":"The attachment network did not finish. The attachment is still open and nothing was lost: close it again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"503":{"description":"`ATTACHMENTS_UNAVAILABLE`: Attachments are not available in live mode yet. Use a test key.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"ATTACHMENTS_UNAVAILABLE":{"summary":"ATTACHMENTS_UNAVAILABLE","value":{"error":"ATTACHMENTS_UNAVAILABLE","message":"Attachments are not available in live mode yet. Use a test key.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/attachments/{id}/documents":{"post":{"operationId":"uploadAttachmentDocument","summary":"Upload a document","description":"Adds a document to an open attachment, as multipart/form-data: the JPEG, PNG or PDF in the field \"file\", and its document type (and, for an X-ray or a photo, its date and orientation). A PNG is converted to a JPEG at upload (transparency on white; its header is checked before it is decoded. A PNG may have sides of at most 20,000 pixels and at most 20 megapixels in all (160 MB once decoded), or 4 megapixels if it is interlaced, and may not be animated.), and the document says converted_from: \"png\". A PDF is one document of every page, rendered to an image for each (A PDF may have at most 127 pages, each sent as an image rendered at 150 dots per inch (at most 3,000 pixels a side); a PDF that needs a password to open is refused, and a PDF that mixes kinds of document (an X-ray and a narrative, say) should be split into one PDF for each.), and the document says converted_from: \"pdf\" and its pages; send it with one document type (and date and orientation) for the whole file. Every page is sent with the document and previewed by page (GET /attachments/{id}/documents/{document_id}/url?page=N); the PDF itself is never returned. Claim House converts one PNG or PDF at a time on each server: one that has to wait too long for its turn is answered 429 TOO_MANY_REQUESTS. Every other format is refused. The image is checked and rewritten before it is stored: metadata (EXIF with its GPS and device data, the EXIF orientation flag, thumbnails, XMP, color profiles, PNG text), comments and anything after the image are removed, so rotate a photo before uploading it. The size and MD5 are those of the stored JPEG. For a PDF, size is the total of its page images and md5 is that of its first page's image. An attachment holds at most 127 documents and 15 MB of images in all. A PDF counts by its pages. The same file uploaded again to an attachment, as a retry or as a new request, is answered with the document the attachment has already, so the payer is not sent it twice: a JPEG or PNG is matched by the MD5 of the image it is stored as, a PDF by the MD5 of the PDF itself. The body may be up to 15 MB and 64 KiB for the form's own parts; one declared larger is refused before it is read, one streamed without a length is read up to that and refused. At most 2 uploads of one key are taken at once, and each server instance processes at most 6 that have arrived: another is answered 429 TOO_MANY_REQUESTS (send it again when one has finished). A body that stops arriving for 15 seconds is answered 408 REQUEST_TIMEOUT. Needs an Idempotency-Key header and a key with the submit permission.","tags":["Attachments"],"x-permission":"submit","parameters":[{"name":"id","in":"path","required":true,"description":"An attachment ID (att_...).","schema":{"type":"string"},"example":"att_01JM000000E00800000000003G"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary","contentMediaType":"image/jpeg","description":"The document: a JPEG, PNG or PDF, at most what the attachment has left of its 15 MB."},"document_type":{"description":"A document type code (GET /attachments/document_types).","type":"string"},"image_date":{"description":"The date the image was taken: required for a film type (an X-ray or a photo).","type":"string","format":"date"},"orientation":{"description":"left or right: required for a film type.","type":"string","enum":["left","right"]}},"required":["file","document_type"],"additionalProperties":false},"encoding":{"file":{"contentType":"image/jpeg"}}}}},"responses":{"201":{"description":"The attachment, with the document.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^att_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with att_."},"object":{"type":"string","const":"attachment"},"state":{"type":"string","enum":["open","closed"],"description":"open while documents can be added; closed once sent, with its number. Nothing changes after closing."},"kind":{"type":"string","enum":["unsolicited","solicited"],"description":"unsolicited (sent with a claim); solicited (answering a payer request: never on a claim file)."},"claim_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"The claim it was made for, if any. Which claims carry it is the claim's attachments field."},"office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"payer":{"$ref":"#/components/schemas/PayerLabel"},"payer_request_id":{"anyOf":[{"type":"string","pattern":"^prq_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with prq_."},{"type":"null"}]},"payer_reference":{"description":"The payer's reference number, for a solicited attachment.","type":["string","null"]},"narrative":{"type":"string","description":"What the documents show, in words: at most 2000 characters."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^doc_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with doc_."},"object":{"type":"string","const":"attachment_document"},"document_type":{"type":"string","description":"The document type code (GET /attachments/document_types)."},"medium":{"type":"string","enum":["film","paper"],"description":"film (an X-ray or a photo: has an image date and an orientation) or paper."},"image_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"orientation":{"anyOf":[{"type":"string","enum":["left","right"]},{"type":"null"}]},"file_name":{"type":"string","description":"The name the file was sent with, for display: the last part of it, without control characters. The stored file is named by the document ID."},"converted_from":{"anyOf":[{"type":"string","enum":["png","pdf"]},{"type":"null"}],"description":"png when the upload was a PNG, converted to the JPEG that is stored and sent; pdf when it was a PDF, rendered to one JPEG for each page; null when it was a JPEG."},"pages":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"How many pages the document has: 1 for an image, the PDF's page count for a PDF. Each page is one image, previewed by page and sent with the document."},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The size in bytes of the image as stored and sent: the upload rewritten without its metadata (a PNG converted to a JPEG first). For a PDF, size is the total of its page images and md5 is that of its first page's image."},"md5":{"type":"string","description":"The MD5 of the stored image (the JPEG), lower-case hex. For a PDF, size is the total of its page images and md5 is that of its first page's image."},"sent_to_network":{"type":"boolean","description":"True once the document has been sent to the attachment network (closing sends it)."},"created_at":{"type":"string","format":"date-time"}},"required":["id","object","document_type","medium","image_date","orientation","file_name","converted_from","pages","size","md5","sent_to_network","created_at"]}},"attachment_number":{"description":"The number the attachment network gave when it closed; null while open.","type":["string","null"]},"claim_file":{"anyOf":[{"type":"object","properties":{"pwk":{"type":"string","description":"What the claim file carries in PWK06 (loop 2300)."},"nte":{"type":"string","description":"The note the claim file carries for it (NTE, loop 2300)."}},"required":["pwk","nte"]},{"type":"null"}],"description":"How a claim carrying it refers to it; null while open."},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made it; null for one made in the dashboard."},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"closed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["id","object","state","kind","claim_id","office_id","payer","payer_request_id","payer_reference","narrative","documents","attachment_number","claim_file","request_id","created_at","updated_at","closed_at"]},"examples":{"bitewing":{"summary":"A bitewing X-ray","value":{"id":"att_01JM000000E00800000000003G","object":"attachment","state":"open","kind":"unsolicited","claim_id":"clm_01JM000000E00800000000002G","office_id":"off_01JM000000E008000000000003","payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"payer_request_id":null,"payer_reference":null,"narrative":"Fractured distal cusp on tooth 3, shown on the bitewing.","documents":[{"id":"doc_01JM000000E00800000000003H","object":"attachment_document","document_type":"bitewing_xray","medium":"film","image_date":"2026-09-24","orientation":"right","file_name":"bitewing-right.jpg","converted_from":null,"pages":1,"size":184211,"md5":"3f2a9c1e5b7d4f60a8c2e1d3b5f7a9c0","sent_to_network":false,"created_at":"2026-09-24T20:57:20.000000+00:00"}],"attachment_number":null,"claim_file":null,"request_id":"req_01JM000000E00800000000003K","created_at":"2026-09-24T20:57:00.000000+00:00","updated_at":"2026-09-24T20:57:00.000000+00:00","closed_at":null}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"408":{"description":"`REQUEST_TIMEOUT`: The request body stopped arriving, so the request was stopped. Send it again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"REQUEST_TIMEOUT":{"summary":"REQUEST_TIMEOUT","value":{"error":"REQUEST_TIMEOUT","message":"The request body stopped arriving, so the request was stopped. Send it again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.\n\n`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.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"CONFLICT":{"summary":"CONFLICT","value":{"error":"CONFLICT","message":"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.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"503":{"description":"`ATTACHMENTS_UNAVAILABLE`: Attachments are not available in live mode yet. Use a test key.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"ATTACHMENTS_UNAVAILABLE":{"summary":"ATTACHMENTS_UNAVAILABLE","value":{"error":"ATTACHMENTS_UNAVAILABLE","message":"Attachments are not available in live mode yet. Use a test key.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/attachments/{id}/documents/{document_id}":{"delete":{"operationId":"deleteAttachmentDocument","summary":"Remove a document","description":"Removes a document and its image while the attachment is open and not yet being sent (closing sends it). Needs a key with submit.","tags":["Attachments"],"x-permission":"submit","parameters":[{"name":"id","in":"path","required":true,"description":"An attachment ID (att_...).","schema":{"type":"string"},"example":"att_01JM000000E00800000000003G"},{"name":"document_id","in":"path","required":true,"description":"A document ID (doc_...).","schema":{"type":"string"},"example":"doc_01JM000000E00800000000003H"}],"responses":{"200":{"description":"The attachment, without the document.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^att_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with att_."},"object":{"type":"string","const":"attachment"},"state":{"type":"string","enum":["open","closed"],"description":"open while documents can be added; closed once sent, with its number. Nothing changes after closing."},"kind":{"type":"string","enum":["unsolicited","solicited"],"description":"unsolicited (sent with a claim); solicited (answering a payer request: never on a claim file)."},"claim_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"The claim it was made for, if any. Which claims carry it is the claim's attachments field."},"office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"payer":{"$ref":"#/components/schemas/PayerLabel"},"payer_request_id":{"anyOf":[{"type":"string","pattern":"^prq_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with prq_."},{"type":"null"}]},"payer_reference":{"description":"The payer's reference number, for a solicited attachment.","type":["string","null"]},"narrative":{"type":"string","description":"What the documents show, in words: at most 2000 characters."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^doc_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with doc_."},"object":{"type":"string","const":"attachment_document"},"document_type":{"type":"string","description":"The document type code (GET /attachments/document_types)."},"medium":{"type":"string","enum":["film","paper"],"description":"film (an X-ray or a photo: has an image date and an orientation) or paper."},"image_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"orientation":{"anyOf":[{"type":"string","enum":["left","right"]},{"type":"null"}]},"file_name":{"type":"string","description":"The name the file was sent with, for display: the last part of it, without control characters. The stored file is named by the document ID."},"converted_from":{"anyOf":[{"type":"string","enum":["png","pdf"]},{"type":"null"}],"description":"png when the upload was a PNG, converted to the JPEG that is stored and sent; pdf when it was a PDF, rendered to one JPEG for each page; null when it was a JPEG."},"pages":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"How many pages the document has: 1 for an image, the PDF's page count for a PDF. Each page is one image, previewed by page and sent with the document."},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The size in bytes of the image as stored and sent: the upload rewritten without its metadata (a PNG converted to a JPEG first). For a PDF, size is the total of its page images and md5 is that of its first page's image."},"md5":{"type":"string","description":"The MD5 of the stored image (the JPEG), lower-case hex. For a PDF, size is the total of its page images and md5 is that of its first page's image."},"sent_to_network":{"type":"boolean","description":"True once the document has been sent to the attachment network (closing sends it)."},"created_at":{"type":"string","format":"date-time"}},"required":["id","object","document_type","medium","image_date","orientation","file_name","converted_from","pages","size","md5","sent_to_network","created_at"]}},"attachment_number":{"description":"The number the attachment network gave when it closed; null while open.","type":["string","null"]},"claim_file":{"anyOf":[{"type":"object","properties":{"pwk":{"type":"string","description":"What the claim file carries in PWK06 (loop 2300)."},"nte":{"type":"string","description":"The note the claim file carries for it (NTE, loop 2300)."}},"required":["pwk","nte"]},{"type":"null"}],"description":"How a claim carrying it refers to it; null while open."},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made it; null for one made in the dashboard."},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"closed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["id","object","state","kind","claim_id","office_id","payer","payer_request_id","payer_reference","narrative","documents","attachment_number","claim_file","request_id","created_at","updated_at","closed_at"]},"examples":{"removed":{"summary":"The attachment after its only document is removed","value":{"id":"att_01JM000000E00800000000003G","object":"attachment","state":"open","kind":"unsolicited","claim_id":"clm_01JM000000E00800000000002G","office_id":"off_01JM000000E008000000000003","payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"payer_request_id":null,"payer_reference":null,"narrative":"Fractured distal cusp on tooth 3, shown on the bitewing.","documents":[],"attachment_number":null,"claim_file":null,"request_id":"req_01JM000000E00800000000003K","created_at":"2026-09-24T20:57:00.000000+00:00","updated_at":"2026-09-24T20:57:00.000000+00:00","closed_at":null}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`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.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"CONFLICT":{"summary":"CONFLICT","value":{"error":"CONFLICT","message":"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.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"503":{"description":"`ATTACHMENTS_UNAVAILABLE`: Attachments are not available in live mode yet. Use a test key.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"ATTACHMENTS_UNAVAILABLE":{"summary":"ATTACHMENTS_UNAVAILABLE","value":{"error":"ATTACHMENTS_UNAVAILABLE","message":"Attachments are not available in live mode yet. Use a test key.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/attachments/{id}/documents/{document_id}/url":{"get":{"operationId":"getAttachmentDocumentUrl","summary":"Get a preview link","description":"A link that shows one page of the document's image for 60 seconds (page, from 1: the first by default; a page the document does not have is not found; the answer says the page and the document's pages): ask for a new one each time it is shown. Do not store, log or share it. Needs a key with read.","tags":["Attachments"],"x-permission":"read","parameters":[{"name":"id","in":"path","required":true,"description":"An attachment ID (att_...).","schema":{"type":"string"},"example":"att_01JM000000E00800000000003G"},{"name":"document_id","in":"path","required":true,"description":"A document ID (doc_...).","schema":{"type":"string"},"example":"doc_01JM000000E00800000000003H"},{"name":"page","in":"query","required":false,"description":"The page to show, from 1 (the default). A page the document does not have is not found.","schema":{"type":"string"}}],"responses":{"200":{"description":"The link.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"attachment_document_url"},"url":{"type":"string","description":"A link that shows the page's image for 60 seconds. Do not store or log it."},"expires_at":{"type":"string","format":"date-time"},"page":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The page the link shows."},"pages":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"How many pages the document has."}},"required":["object","url","expires_at","page","pages"]},"examples":{"link":{"summary":"A preview link","value":{"object":"attachment_document_url","url":"https://storage.example.com/attachments/signed/EXAMPLE?token=EXAMPLE","expires_at":"2026-09-24T21:00:59.000000+00:00","page":1,"pages":1}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/attachments/{id}/close":{"post":{"operationId":"closeAttachment","summary":"Close an attachment","description":"Sends the attachment to the attachment network and closes it: it needs a document or a narrative, its office is registered with the network first when it is not, and its payer must take attachments. The answer has its number and, in claim_file, what a claim carrying it writes in PWK and NTE: put it on the claim with the claim's attachments field. Nothing changes after closing. Closing a closed attachment returns it as it is. If the network does not finish (502), nothing is lost: close it again and it continues. A close already running answers 409. An office whose registration is pending answers 409 REGISTRATION_PENDING (Claim House registers it on its own: close again once office.attachment_registration.updated says registered); one whose registration failed answers 422 with the network's reason. Needs an Idempotency-Key header and a key with the submit permission. Send an empty JSON object as the body.","tags":["Attachments"],"x-permission":"submit","parameters":[{"name":"id","in":"path","required":true,"description":"An attachment ID (att_...).","schema":{"type":"string"},"example":"att_01JM000000E00800000000003G"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false},"examples":{"closed":{"summary":"Closed, with its number","value":{}},"registration_pending":{"summary":"The office's registration is pending","value":{}}}}}},"responses":{"200":{"description":"The attachment, closed.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^att_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with att_."},"object":{"type":"string","const":"attachment"},"state":{"type":"string","enum":["open","closed"],"description":"open while documents can be added; closed once sent, with its number. Nothing changes after closing."},"kind":{"type":"string","enum":["unsolicited","solicited"],"description":"unsolicited (sent with a claim); solicited (answering a payer request: never on a claim file)."},"claim_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"The claim it was made for, if any. Which claims carry it is the claim's attachments field."},"office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"payer":{"$ref":"#/components/schemas/PayerLabel"},"payer_request_id":{"anyOf":[{"type":"string","pattern":"^prq_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with prq_."},{"type":"null"}]},"payer_reference":{"description":"The payer's reference number, for a solicited attachment.","type":["string","null"]},"narrative":{"type":"string","description":"What the documents show, in words: at most 2000 characters."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^doc_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with doc_."},"object":{"type":"string","const":"attachment_document"},"document_type":{"type":"string","description":"The document type code (GET /attachments/document_types)."},"medium":{"type":"string","enum":["film","paper"],"description":"film (an X-ray or a photo: has an image date and an orientation) or paper."},"image_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"orientation":{"anyOf":[{"type":"string","enum":["left","right"]},{"type":"null"}]},"file_name":{"type":"string","description":"The name the file was sent with, for display: the last part of it, without control characters. The stored file is named by the document ID."},"converted_from":{"anyOf":[{"type":"string","enum":["png","pdf"]},{"type":"null"}],"description":"png when the upload was a PNG, converted to the JPEG that is stored and sent; pdf when it was a PDF, rendered to one JPEG for each page; null when it was a JPEG."},"pages":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"How many pages the document has: 1 for an image, the PDF's page count for a PDF. Each page is one image, previewed by page and sent with the document."},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The size in bytes of the image as stored and sent: the upload rewritten without its metadata (a PNG converted to a JPEG first). For a PDF, size is the total of its page images and md5 is that of its first page's image."},"md5":{"type":"string","description":"The MD5 of the stored image (the JPEG), lower-case hex. For a PDF, size is the total of its page images and md5 is that of its first page's image."},"sent_to_network":{"type":"boolean","description":"True once the document has been sent to the attachment network (closing sends it)."},"created_at":{"type":"string","format":"date-time"}},"required":["id","object","document_type","medium","image_date","orientation","file_name","converted_from","pages","size","md5","sent_to_network","created_at"]}},"attachment_number":{"description":"The number the attachment network gave when it closed; null while open.","type":["string","null"]},"claim_file":{"anyOf":[{"type":"object","properties":{"pwk":{"type":"string","description":"What the claim file carries in PWK06 (loop 2300)."},"nte":{"type":"string","description":"The note the claim file carries for it (NTE, loop 2300)."}},"required":["pwk","nte"]},{"type":"null"}],"description":"How a claim carrying it refers to it; null while open."},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made it; null for one made in the dashboard."},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"closed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["id","object","state","kind","claim_id","office_id","payer","payer_request_id","payer_reference","narrative","documents","attachment_number","claim_file","request_id","created_at","updated_at","closed_at"]},"examples":{"closed":{"summary":"Closed, with its number","value":{"id":"att_01JM000000E00800000000003G","object":"attachment","state":"closed","kind":"unsolicited","claim_id":"clm_01JM000000E00800000000002G","office_id":"off_01JM000000E008000000000003","payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"payer_request_id":null,"payer_reference":null,"narrative":"Fractured distal cusp on tooth 3, shown on the bitewing.","documents":[{"id":"doc_01JM000000E00800000000003H","object":"attachment_document","document_type":"bitewing_xray","medium":"film","image_date":"2026-09-24","orientation":"right","file_name":"bitewing-right.jpg","converted_from":null,"pages":1,"size":184211,"md5":"3f2a9c1e5b7d4f60a8c2e1d3b5f7a9c0","sent_to_network":true,"created_at":"2026-09-24T20:57:20.000000+00:00"},{"id":"doc_01JM000000E00800000000003J","object":"attachment_document","document_type":"narrative","medium":"paper","image_date":null,"orientation":null,"file_name":"narrative.png","converted_from":"png","pages":1,"size":92480,"md5":"7d1e3c5a9b2f4d6e8a0c1b3d5f7e9a2b","sent_to_network":true,"created_at":"2026-09-24T20:57:20.000000+00:00"}],"attachment_number":"100001042","claim_file":{"pwk":"NEA100001042","nte":"NEA#100001042"},"request_id":"req_01JM000000E00800000000003K","created_at":"2026-09-24T20:57:00.000000+00:00","updated_at":"2026-09-24T20:58:10.000000+00:00","closed_at":"2026-09-24T20:58:10.000000+00:00"}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.\n\n`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.\n\n`REGISTRATION_PENDING`: The office’s registration with the attachment network is pending: Claim House is waiting for the network and tries again on its own. Close the attachment again once the office is registered (the event office.attachment_registration.updated says when).","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"registration_pending":{"summary":"The office's registration is pending","value":{"error":"REGISTRATION_PENDING","message":"The office’s registration with the attachment network is pending: Claim House is waiting for the network and tries again on its own. Close the attachment again once the office is registered (the event office.attachment_registration.updated says when).","errors":[],"details":{"office_id":"off_01JM000000E008000000000003","state":"pending"},"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"CONFLICT":{"summary":"CONFLICT","value":{"error":"CONFLICT","message":"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.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"502":{"description":"`ATTACHMENTS_NETWORK_ERROR`: The attachment network did not finish. The attachment is still open and nothing was lost: close it again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"ATTACHMENTS_NETWORK_ERROR":{"summary":"ATTACHMENTS_NETWORK_ERROR","value":{"error":"ATTACHMENTS_NETWORK_ERROR","message":"The attachment network did not finish. The attachment is still open and nothing was lost: close it again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"503":{"description":"`ATTACHMENTS_UNAVAILABLE`: Attachments are not available in live mode yet. Use a test key.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"ATTACHMENTS_UNAVAILABLE":{"summary":"ATTACHMENTS_UNAVAILABLE","value":{"error":"ATTACHMENTS_UNAVAILABLE","message":"Attachments are not available in live mode yet. Use a test key.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/offices/{id}/register_attachments":{"post":{"operationId":"registerOfficeAttachments","summary":"Register an office for attachments","description":"Registers the office with the attachment network, once: it needs its contact name and email, its primary doctor's name, and its address, phone and tax ID, each within the network's limits (doctor names 25, contact name 40, contact email 80, address 48, city 32 characters, a 10-digit phone); anything missing or too long is a 422 naming each field, and nothing is sent. The answer is the office, its attachment_network.state registered, pending (the network has not answered, or could not be reached: Claim House tries again on its own for up to a day) or failed (attachment_network.failure says why). Each change sends office.attachment_registration.updated. In test mode an office whose name holds CH-REG-PENDING stays pending for 2 minutes, one holding CH-REG-FAIL fails (invalid_fields, contact_email). Closing an office's first attachment registers it too. A registered office is returned as it is. Needs an Idempotency-Key header and a key with the submit permission. Send an empty JSON object as the body.","tags":["Offices"],"x-permission":"submit","parameters":[{"name":"id","in":"path","required":true,"description":"An office ID (off_...).","schema":{"type":"string"},"example":"off_01JM000000E008000000000003"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false},"examples":{"registered":{"summary":"A registered office","value":{}},"pending":{"summary":"The network has not answered yet","value":{}},"failed":{"summary":"The network refused it","value":{}}}}}},"responses":{"200":{"description":"The office, with its registration.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Office"},"examples":{"registered":{"summary":"A registered office","value":{"id":"off_01JM000000E008000000000003","object":"office","name":"Example Family Dental","address_line1":"100 Example Street","address_line2":null,"city":"Exampleville","state":"GA","postal_code":"30000","phone":"4045550100","npi":"1999999000","tax_id_last4":"0000","specialty":"general","time_zone":"America/New_York","pay_to_address":null,"default_service_location":null,"payer_provider_ids":[],"contact_name":"Pat Example","contact_email":null,"contact_fax":null,"doctor_first_name":"Riley","doctor_last_name":"Example","attachment_network":{"state":"registered","details":"in_sync","facility_id":"FAC-0001","registered_at":"2026-09-24T20:58:00.000000+00:00","failure":null,"updated_at":"2026-09-24T20:58:00.000000+00:00"},"origin":"api","practice_group_id":null,"client_reference":null,"mode":"test","created_at":"2026-01-15T14:00:00+00:00"}},"pending":{"summary":"The network has not answered yet","value":{"id":"off_01JM000000E008000000000003","object":"office","name":"Example Family Dental","address_line1":"100 Example Street","address_line2":null,"city":"Exampleville","state":"GA","postal_code":"30000","phone":"4045550100","npi":"1999999000","tax_id_last4":"0000","specialty":"general","time_zone":"America/New_York","pay_to_address":null,"default_service_location":null,"payer_provider_ids":[],"contact_name":"Pat Example","contact_email":null,"contact_fax":null,"doctor_first_name":"Riley","doctor_last_name":"Example","attachment_network":{"state":"pending","details":null,"facility_id":null,"registered_at":null,"failure":null,"updated_at":"2026-09-24T20:58:00.000000+00:00"},"origin":"api","practice_group_id":null,"client_reference":null,"mode":"test","created_at":"2026-01-15T14:00:00+00:00"}},"failed":{"summary":"The network refused it","value":{"id":"off_01JM000000E008000000000003","object":"office","name":"Example Family Dental","address_line1":"100 Example Street","address_line2":null,"city":"Exampleville","state":"GA","postal_code":"30000","phone":"4045550100","npi":"1999999000","tax_id_last4":"0000","specialty":"general","time_zone":"America/New_York","pay_to_address":null,"default_service_location":null,"payer_provider_ids":[],"contact_name":"Pat Example","contact_email":null,"contact_fax":null,"doctor_first_name":"Riley","doctor_last_name":"Example","attachment_network":{"state":"failed","details":null,"facility_id":null,"registered_at":null,"failure":{"code":"invalid_fields","message":"The attachment network did not accept the contact email.","fields":["contact_email"]},"updated_at":"2026-09-24T20:58:00.000000+00:00"},"origin":"api","practice_group_id":null,"client_reference":null,"mode":"test","created_at":"2026-01-15T14:00:00+00:00"}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"503":{"description":"`ATTACHMENTS_UNAVAILABLE`: Attachments are not available in live mode yet. Use a test key.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"ATTACHMENTS_UNAVAILABLE":{"summary":"ATTACHMENTS_UNAVAILABLE","value":{"error":"ATTACHMENTS_UNAVAILABLE","message":"Attachments are not available in live mode yet. Use a test key.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/payer_requests":{"get":{"operationId":"listPayerRequests","summary":"List payer requests","description":"The payer requests of the key's organization in the key's mode, newest first: what payers asked for about claims they have. Filter by state or claim. In test mode, a claim with the member ID CH-SOLICITED gets one 1 minute after the payer accepts it. Needs a key with read.","tags":["Payer requests"],"x-permission":"read","parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"name":"state","in":"query","required":false,"description":"Only open or answered requests.","schema":{"type":"string","enum":["open","answered"]},"example":"open"},{"name":"claim_id","in":"query","required":false,"description":"Only the requests about this claim (clm_...).","schema":{"pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}},{"name":"idempotency_key","in":"query","required":false,"description":"Only the request recorded with this Idempotency-Key (what a request that timed out recorded).","schema":{"type":"string"}}],"responses":{"200":{"description":"A page of payer requests.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^prq_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with prq_."},"object":{"type":"string","const":"payer_request"},"state":{"type":"string","enum":["open","answered"]},"source":{"type":"string","enum":["network","staff"],"description":"network (it arrived through the network) or staff (recorded by hand, from a letter)."},"claim_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}]},"payer":{"$ref":"#/components/schemas/PayerLabel"},"reference_number":{"type":"string","description":"The payer's reference number: the answering attachment carries it."},"requested":{"type":"string","description":"What the payer asks for, in its words."},"due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"answering_attachment_id":{"anyOf":[{"type":"string","pattern":"^att_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with att_."},{"type":"null"}]},"answered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time"}},"required":["id","object","state","source","claim_id","payer","reference_number","requested","due_date","answering_attachment_id","answered_at","created_at"]}},"next_cursor":{"description":"Pass as cursor to get the next page; null when there is no next page.","type":["string","null"]}},"required":["data","next_cursor"]},"examples":{"open":{"summary":"The open requests","value":{"data":[{"id":"prq_01JM000000E008000000000040","object":"payer_request","state":"open","source":"network","claim_id":"clm_01JM000000E00800000000002G","payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"reference_number":"PRQ000001042","requested":"A narrative of the treatment and a current periapical X-ray of the tooth treated.","due_date":"2026-10-25","answering_attachment_id":null,"answered_at":null,"created_at":"2026-09-25T21:02:30.000000+00:00"}],"next_cursor":null}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}},"post":{"operationId":"createPayerRequest","summary":"Record a payer request","description":"Records a request that came by letter or phone, about a claim (its payer) or with a payer of its own. The same payer and reference number again returns the first. Needs an Idempotency-Key header and a key with the submit permission.","tags":["Payer requests"],"x-permission":"submit","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"claim_id":{"description":"The claim the request is about.","type":"string"},"payer_id":{"description":"The payer that asks (pyr_..., a payer ID or an alias). Default: the claim's payer.","type":"string"},"reference_number":{"description":"The payer's reference number, from its letter: at most 30 characters (letters, digits, spaces and ! \" & ' ( ) + , - . / ; ? =).","type":"string"},"requested":{"description":"What the payer asks for, in its words.","type":"string"},"due_date":{"type":"string","format":"date"}},"required":["reference_number","requested"],"additionalProperties":false},"examples":{"letter":{"summary":"A request from a letter","value":{"claim_id":"clm_01JM000000E00800000000002G","reference_number":"LETTER-0915","requested":"The perio chart for the scaling.","due_date":"2026-10-15"}}}}}},"responses":{"201":{"description":"The payer request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^prq_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with prq_."},"object":{"type":"string","const":"payer_request"},"state":{"type":"string","enum":["open","answered"]},"source":{"type":"string","enum":["network","staff"],"description":"network (it arrived through the network) or staff (recorded by hand, from a letter)."},"claim_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}]},"payer":{"$ref":"#/components/schemas/PayerLabel"},"reference_number":{"type":"string","description":"The payer's reference number: the answering attachment carries it."},"requested":{"type":"string","description":"What the payer asks for, in its words."},"due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"answering_attachment_id":{"anyOf":[{"type":"string","pattern":"^att_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with att_."},{"type":"null"}]},"answered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time"}},"required":["id","object","state","source","claim_id","payer","reference_number","requested","due_date","answering_attachment_id","answered_at","created_at"]},"examples":{"letter":{"summary":"A request from a letter","value":{"id":"prq_01JM000000E008000000000040","object":"payer_request","state":"open","source":"staff","claim_id":"clm_01JM000000E00800000000002G","payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"reference_number":"LETTER-0915","requested":"The perio chart for the scaling.","due_date":"2026-10-15","answering_attachment_id":null,"answered_at":null,"created_at":"2026-09-25T21:02:30.000000+00:00"}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"503":{"description":"`ATTACHMENTS_UNAVAILABLE`: Attachments are not available in live mode yet. Use a test key.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"ATTACHMENTS_UNAVAILABLE":{"summary":"ATTACHMENTS_UNAVAILABLE","value":{"error":"ATTACHMENTS_UNAVAILABLE","message":"Attachments are not available in live mode yet. Use a test key.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/payer_requests/{id}":{"get":{"operationId":"getPayerRequest","summary":"Get a payer request","description":"One payer request of the key's organization and mode.","tags":["Payer requests"],"x-permission":"read","parameters":[{"name":"id","in":"path","required":true,"description":"A payer request ID (prq_...).","schema":{"type":"string"},"example":"prq_01JM000000E008000000000040"}],"responses":{"200":{"description":"The payer request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^prq_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with prq_."},"object":{"type":"string","const":"payer_request"},"state":{"type":"string","enum":["open","answered"]},"source":{"type":"string","enum":["network","staff"],"description":"network (it arrived through the network) or staff (recorded by hand, from a letter)."},"claim_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}]},"payer":{"$ref":"#/components/schemas/PayerLabel"},"reference_number":{"type":"string","description":"The payer's reference number: the answering attachment carries it."},"requested":{"type":"string","description":"What the payer asks for, in its words."},"due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"answering_attachment_id":{"anyOf":[{"type":"string","pattern":"^att_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with att_."},{"type":"null"}]},"answered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time"}},"required":["id","object","state","source","claim_id","payer","reference_number","requested","due_date","answering_attachment_id","answered_at","created_at"]},"examples":{"by_id":{"summary":"A request from the network","value":{"id":"prq_01JM000000E008000000000040","object":"payer_request","state":"open","source":"network","claim_id":"clm_01JM000000E00800000000002G","payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"reference_number":"PRQ000001042","requested":"A narrative of the treatment and a current periapical X-ray of the tooth treated.","due_date":"2026-10-25","answering_attachment_id":null,"answered_at":null,"created_at":"2026-09-25T21:02:30.000000+00:00"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/payer_requests/{id}/answer":{"post":{"operationId":"answerPayerRequest","summary":"Answer a payer request","description":"Answers with a solicited attachment that carries the payer's reference number: the one named, else the request's open one (make it with POST /attachments, kind solicited, and upload its documents first), else a new one with the narrative given (for a request about no claim, with office_id and the patient, subscriber and service_dates, which the network's record needs). It is sent through the network (as an answer about the claim's earlier attachment when it has one) and closed, and the request is answered. Nothing is added to the claim file. An answered request returns its answer. Needs an Idempotency-Key header and a key with the submit permission.","tags":["Payer requests"],"x-permission":"submit","parameters":[{"name":"id","in":"path","required":true,"description":"A payer request ID (prq_...).","schema":{"type":"string"},"example":"prq_01JM000000E008000000000040"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"attachment_id":{"description":"The solicited attachment that answers it (made with payer_request_id, with its documents uploaded). Default: the request's open solicited attachment, or a new one.","type":"string"},"office_id":{"description":"The office of a new attachment, for a request about no claim.","type":"string"},"narrative":{"description":"The answer in words, kept on the attachment.","type":"string"},"patient":{"description":"The patient, for an attachment made for no claim (required then; one made for a claim takes the claim's).","type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"date_of_birth":{"type":"string","format":"date"}},"required":["first_name","last_name","date_of_birth"],"additionalProperties":false},"subscriber":{"description":"The insured, for an attachment made for no claim (required then).","type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"member_id":{"type":"string"},"relationship":{"type":"string","enum":["self","spouse","child","other"],"description":"The patient's relationship to the insured."}},"required":["first_name","last_name","member_id","relationship"],"additionalProperties":false},"service_dates":{"description":"The dates of service the documents are about, for an attachment made for no claim (required then).","type":"object","properties":{"from":{"type":"string","format":"date"},"to":{"type":"string","format":"date"}},"required":["from","to"],"additionalProperties":false}},"additionalProperties":false},"examples":{"narrative":{"summary":"An answer in words, about a claim with an earlier attachment","value":{"narrative":"The crack is visible on the bitewing sent with the claim."}}}}}},"responses":{"200":{"description":"The request, answered, and the attachment that answers it.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"payer_request_answer"},"payer_request":{"type":"object","properties":{"id":{"type":"string","pattern":"^prq_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with prq_."},"object":{"type":"string","const":"payer_request"},"state":{"type":"string","enum":["open","answered"]},"source":{"type":"string","enum":["network","staff"],"description":"network (it arrived through the network) or staff (recorded by hand, from a letter)."},"claim_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}]},"payer":{"$ref":"#/components/schemas/PayerLabel"},"reference_number":{"type":"string","description":"The payer's reference number: the answering attachment carries it."},"requested":{"type":"string","description":"What the payer asks for, in its words."},"due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"answering_attachment_id":{"anyOf":[{"type":"string","pattern":"^att_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with att_."},{"type":"null"}]},"answered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time"}},"required":["id","object","state","source","claim_id","payer","reference_number","requested","due_date","answering_attachment_id","answered_at","created_at"]},"attachment":{"type":"object","properties":{"id":{"type":"string","pattern":"^att_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with att_."},"object":{"type":"string","const":"attachment"},"state":{"type":"string","enum":["open","closed"],"description":"open while documents can be added; closed once sent, with its number. Nothing changes after closing."},"kind":{"type":"string","enum":["unsolicited","solicited"],"description":"unsolicited (sent with a claim); solicited (answering a payer request: never on a claim file)."},"claim_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"The claim it was made for, if any. Which claims carry it is the claim's attachments field."},"office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"payer":{"$ref":"#/components/schemas/PayerLabel"},"payer_request_id":{"anyOf":[{"type":"string","pattern":"^prq_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with prq_."},{"type":"null"}]},"payer_reference":{"description":"The payer's reference number, for a solicited attachment.","type":["string","null"]},"narrative":{"type":"string","description":"What the documents show, in words: at most 2000 characters."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^doc_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with doc_."},"object":{"type":"string","const":"attachment_document"},"document_type":{"type":"string","description":"The document type code (GET /attachments/document_types)."},"medium":{"type":"string","enum":["film","paper"],"description":"film (an X-ray or a photo: has an image date and an orientation) or paper."},"image_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"orientation":{"anyOf":[{"type":"string","enum":["left","right"]},{"type":"null"}]},"file_name":{"type":"string","description":"The name the file was sent with, for display: the last part of it, without control characters. The stored file is named by the document ID."},"converted_from":{"anyOf":[{"type":"string","enum":["png","pdf"]},{"type":"null"}],"description":"png when the upload was a PNG, converted to the JPEG that is stored and sent; pdf when it was a PDF, rendered to one JPEG for each page; null when it was a JPEG."},"pages":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"How many pages the document has: 1 for an image, the PDF's page count for a PDF. Each page is one image, previewed by page and sent with the document."},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The size in bytes of the image as stored and sent: the upload rewritten without its metadata (a PNG converted to a JPEG first). For a PDF, size is the total of its page images and md5 is that of its first page's image."},"md5":{"type":"string","description":"The MD5 of the stored image (the JPEG), lower-case hex. For a PDF, size is the total of its page images and md5 is that of its first page's image."},"sent_to_network":{"type":"boolean","description":"True once the document has been sent to the attachment network (closing sends it)."},"created_at":{"type":"string","format":"date-time"}},"required":["id","object","document_type","medium","image_date","orientation","file_name","converted_from","pages","size","md5","sent_to_network","created_at"]}},"attachment_number":{"description":"The number the attachment network gave when it closed; null while open.","type":["string","null"]},"claim_file":{"anyOf":[{"type":"object","properties":{"pwk":{"type":"string","description":"What the claim file carries in PWK06 (loop 2300)."},"nte":{"type":"string","description":"The note the claim file carries for it (NTE, loop 2300)."}},"required":["pwk","nte"]},{"type":"null"}],"description":"How a claim carrying it refers to it; null while open."},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made it; null for one made in the dashboard."},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"closed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["id","object","state","kind","claim_id","office_id","payer","payer_request_id","payer_reference","narrative","documents","attachment_number","claim_file","request_id","created_at","updated_at","closed_at"]}},"required":["object","payer_request","attachment"]},"examples":{"narrative":{"summary":"An answer in words, about a claim with an earlier attachment","value":{"object":"payer_request_answer","payer_request":{"id":"prq_01JM000000E008000000000040","object":"payer_request","state":"answered","source":"network","claim_id":"clm_01JM000000E00800000000002G","payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"reference_number":"PRQ000001042","requested":"A narrative of the treatment and a current periapical X-ray of the tooth treated.","due_date":"2026-10-25","answering_attachment_id":"att_01JM000000E008000000000041","answered_at":"2026-09-26T15:00:05.000000+00:00","created_at":"2026-09-25T21:02:30.000000+00:00"},"attachment":{"id":"att_01JM000000E008000000000041","object":"attachment","state":"closed","kind":"solicited","claim_id":"clm_01JM000000E00800000000002G","office_id":"off_01JM000000E008000000000003","payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"payer_request_id":"prq_01JM000000E008000000000040","payer_reference":"PRQ000001042","narrative":"The crack is visible on the bitewing sent with the claim.","documents":[],"attachment_number":"100001043","claim_file":{"pwk":"NEA100001043","nte":"NEA#100001043"},"request_id":"req_01JM000000E00800000000003K","created_at":"2026-09-26T15:00:00.000000+00:00","updated_at":"2026-09-26T15:00:05.000000+00:00","closed_at":"2026-09-26T15:00:05.000000+00:00"}}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.\n\n`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.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"CONFLICT":{"summary":"CONFLICT","value":{"error":"CONFLICT","message":"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.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"502":{"description":"`ATTACHMENTS_NETWORK_ERROR`: The attachment network did not finish. The attachment is still open and nothing was lost: close it again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"ATTACHMENTS_NETWORK_ERROR":{"summary":"ATTACHMENTS_NETWORK_ERROR","value":{"error":"ATTACHMENTS_NETWORK_ERROR","message":"The attachment network did not finish. The attachment is still open and nothing was lost: close it again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"503":{"description":"`ATTACHMENTS_UNAVAILABLE`: Attachments are not available in live mode yet. Use a test key.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"ATTACHMENTS_UNAVAILABLE":{"summary":"ATTACHMENTS_UNAVAILABLE","value":{"error":"ATTACHMENTS_UNAVAILABLE","message":"Attachments are not available in live mode yet. Use a test key.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/sandbox/scenarios":{"get":{"operationId":"listSandboxScenarios","summary":"List sandbox scenarios","description":"The scripted payer scenarios a test key can trigger. Send a scenario ID as the subscriber member_id of an eligibility check made with a test key to get that scenario. Any other member ID gets the default scenario.","tags":["Sandbox"],"x-permission":"read","responses":{"200":{"description":"Every scenario, and what any other member ID gets.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/SandboxScenario"}},"next_cursor":{"description":"Pass as cursor to get the next page; null when there is no next page.","type":["string","null"]},"note":{"type":"string","description":"What any other member ID gets."}},"required":["data","next_cursor","note"]},"examples":{"list":{"summary":"The scenarios","value":{"data":[{"id":"CH-ACTIVE-FULL","object":"sandbox_scenario","use_as":"member_id","description":"Active coverage, full benefits returned, with 18 procedure rows","outcome":"answered","covers":["eligibility"]},{"id":"CH-MAX-NEARLY-USED","object":"sandbox_scenario","use_as":"member_id","description":"$120 of the annual maximum remaining","outcome":"answered","covers":["eligibility"]},{"id":"CH-MISSING-TOOTH","object":"sandbox_scenario","use_as":"member_id","description":"Missing tooth clause applies to implant codes (D6xxx)","outcome":"answered","covers":["eligibility"]},{"id":"CH-INACTIVE","object":"sandbox_scenario","use_as":"member_id","description":"Coverage ended: inactive, with its dates and little else","outcome":"answered","covers":["eligibility"]},{"id":"CH-NOT-FOUND","object":"sandbox_scenario","use_as":"member_id","description":"AAA 75: subscriber not found","outcome":"rejected","covers":["eligibility"]},{"id":"CH-DEPENDENT","object":"sandbox_scenario","use_as":"member_id","description":"AAA 75: a dependent sent as the subscriber, with two fixes (the plan holder, the member ID format)","outcome":"rejected","covers":["eligibility"]},{"id":"CH-DOB-MISMATCH","object":"sandbox_scenario","use_as":"member_id","description":"AAA 71: date of birth does not match","outcome":"rejected","covers":["eligibility"]},{"id":"CH-PAYER-DOWN","object":"sandbox_scenario","use_as":"member_id","description":"AAA 42: the payer is unavailable, nothing to change","outcome":"payer_unavailable","covers":["eligibility"]},{"id":"CH-GENERAL-ONLY","object":"sandbox_scenario","use_as":"member_id","description":"Active, a general answer with most detail not returned","outcome":"answered","covers":["eligibility"]},{"id":"CH-271-DOWN","object":"sandbox_scenario","use_as":"member_id","description":"AAA 79 at the payer level: the connection to the payer refused the request, nothing to change","outcome":"payer_unavailable","covers":["eligibility"]},{"id":"CH-271-METLIFE","object":"sandbox_scenario","use_as":"member_id","description":"MetLife dental benefits, as a real payer answered in test mode (its own 2024 plan dates)","outcome":"answered","covers":["eligibility"]},{"id":"CH-271-UHC","object":"sandbox_scenario","use_as":"member_id","description":"UnitedHealthcare dental benefits, as a real payer answered in test mode (its own 2024 plan dates)","outcome":"answered","covers":["eligibility"]},{"id":"CH-271-CIGNA","object":"sandbox_scenario","use_as":"member_id","description":"Cigna dental benefits, as a real payer answered in test mode (its own 2024 plan dates)","outcome":"answered","covers":["eligibility"]},{"id":"CH-271-AMERITAS","object":"sandbox_scenario","use_as":"member_id","description":"Ameritas dental benefits, as a real payer answered in test mode (its own 2024 plan dates)","outcome":"answered","covers":["eligibility"]},{"id":"CH-271-ANTHEM","object":"sandbox_scenario","use_as":"member_id","description":"Anthem Blue Cross dental benefits, as a real payer answered in test mode (its own 2024 plan dates)","outcome":"answered","covers":["eligibility"]}],"note":"Any other member ID with a test key returns CH-ACTIVE-FULL.","next_cursor":null}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/usage":{"get":{"operationId":"getUsage","summary":"Get a month of usage","description":"The usage of the key's organization in a billing month, in the key's mode: for each product the billable transactions and those not billed (with the reason for each kind), the rate and the amount (for a product charged per location, the locations counted); for eligibility each tier's checks and price; the fees, the monthly minimum, the monthly and setup fees of your agreement, and the amount due (the greater of the fees and the minimum, plus those fees and adjustments). A month still open is computed from the usage records as of now; a month that has been closed is read from its statement, which never changes. Months are calendar months in America/Denver for every partner. The default is the current month. An organization that is not live yet owes nothing (billing is pre_production, live is false); A test key sees test activity only: it is never priced, and a test key sees no statements.","tags":["Usage and statements"],"x-permission":"read","parameters":[{"name":"month","in":"query","required":false,"description":"A billing month, YYYY-MM, not after the current one. Default: the current billing month.","schema":{"type":"string","pattern":"^[1-9][0-9]{3}-(0[1-9]|1[0-2])$"},"example":"2026-09"}],"responses":{"200":{"description":"The month's usage.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"usage"},"statement_id":{"anyOf":[{"type":"string","pattern":"^stm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with stm_."},{"type":"null"}],"description":"The statement of the month, once it is closed."},"month":{"type":"string","pattern":"^\\d{4}-\\d{2}$","description":"The billing month, YYYY-MM."},"time_zone":{"type":"string","description":"The time zone months are counted in."},"mode":{"type":"string","enum":["test","live"]},"live":{"type":"boolean","description":"true when this month is billed: live mode, in a month the organization was live. false for test activity and for a pre-production organization."},"billing":{"type":"string","enum":["billed","pre_production","test_activity"],"description":"billed; pre_production (live usage of an organization not yet live: not billed); test_activity (test mode: never billed)."},"note":{"description":"In words, why the month is not billed; null when it is billed.","type":["string","null"]},"state":{"type":"string","enum":["open","issued"],"description":"open: computed from the usage records as of now; issued: read from the stored statement, which never changes."},"products":{"type":"array","items":{"type":"object","properties":{"product":{"type":"string","enum":["eligibility","claims","attachments","eras"]},"billable":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Billable transactions of the month."},"not_billed":{"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reasons":{"type":"array","items":{"type":"object","properties":{"reason":{"type":"string"},"label":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["reason","label","count"]}}},"required":["total","reasons"],"description":"Transactions of the month that are not billed, with the reason for each kind."},"rate":{"type":"string","description":"The rate in words, from the price list in force."},"locations":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"A product charged per location a month: the locations counted, and amount is that many times the price of one. null for every other product, and in a month that is not billed."},"amount":{"type":"string","pattern":"^\\d+\\.\\d{2}$","description":"The product's fees for the month; 0.00 when the month is not billed."},"tiers":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"from":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The first item of the month this tier covers (checks, claims, attachments or ERAs: the product's own)."},"to":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"The last item of the month this tier covers; null for the last tier."},"rate":{"type":"string","pattern":"^\\d+\\.\\d{2,6}$","description":"The price of one item in this tier, in dollars."},"checks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many of the month's billable items of the product fell in this tier (named checks for every product)."},"amount":{"type":"string","pattern":"^\\d+\\.\\d{2}$"}},"required":["from","to","rate","checks","amount"]}},{"type":"null"}],"description":"A product charged at graduated volume rates, when the month is billed: the items and amount of each tier. null for every other charge."}},"required":["product","billable","not_billed","rate","locations","amount","tiers"]}},"adjustments":{"type":"array","items":{"type":"object","properties":{"usage_month":{"type":"string","pattern":"^\\d{4}-\\d{2}$"},"description":{"type":"string"},"products":{"type":"array","items":{"type":"object","properties":{"product":{"type":"string","enum":["eligibility","claims","attachments","eras"]},"billable":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"not_billed":{"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reasons":{"type":"array","items":{"type":"object","properties":{"reason":{"type":"string"},"label":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["reason","label","count"]}}},"required":["total","reasons"]}},"required":["product","billable","not_billed"]}},"amount":{"type":"string","pattern":"^\\d+\\.\\d{2}$"}},"required":["usage_month","description","products","amount"]},"description":"Usage of an earlier, closed month that arrived after its statement was issued, added to this month."},"fees":{"type":"string","pattern":"^\\d+\\.\\d{2}$","description":"The sum of the products' fees: the usage the minimum is measured against."},"adjustments_amount":{"type":"string","pattern":"^\\d+\\.\\d{2}$"},"minimum":{"anyOf":[{"type":"object","properties":{"amount":{"type":"string","pattern":"^\\d+\\.\\d{2}$"},"introductory":{"type":"boolean","description":"true for the lower minimum of an organization's first live months."}},"required":["amount","introductory"]},{"type":"null"}],"description":"The monthly minimum that applies; null when the month is not billed."},"minimum_applied":{"type":"boolean","description":"true when the minimum, not the fees, set the amount due."},"monthly_fee":{"type":"string","pattern":"^\\d+\\.\\d{2}$","description":"The monthly fee of your agreement, charged on top of the greater of the fees and the minimum; 0.00 when it has none, and when the month is not billed."},"setup_fee":{"type":"string","pattern":"^\\d+\\.\\d{2}$","description":"The setup fee of your agreement, charged once, on the first billed month of an agreement that has one; 0.00 on every other month."},"amount_due":{"type":"string","pattern":"^\\d+\\.\\d{2}$","description":"The greater of the fees and the minimum, plus the monthly and setup fees and adjustments; 0.00 when the month is not billed."},"simulated":{"anyOf":[{"type":"object","properties":{"note":{"type":"string","description":"What the figures are, in words."},"products":{"type":"array","items":{"type":"object","properties":{"product":{"type":"string","enum":["eligibility","claims","attachments","eras"]},"billable":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The test transactions that would have been billable live (a check the payer was down for, or answered from a recent answer, would not)."},"amount":{"type":"string","pattern":"^\\d+\\.\\d{2}$","description":"What they would be billed at your rates."},"tiers":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"from":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The first item of the month this tier covers (checks, claims, attachments or ERAs: the product's own)."},"to":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"The last item of the month this tier covers; null for the last tier."},"rate":{"type":"string","pattern":"^\\d+\\.\\d{2,6}$","description":"The price of one item in this tier, in dollars."},"checks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many of the month's billable items of the product fell in this tier (named checks for every product)."},"amount":{"type":"string","pattern":"^\\d+\\.\\d{2}$"}},"required":["from","to","rate","checks","amount"]}},{"type":"null"}],"description":"A product charged at graduated volume rates: the items and amount of each tier. null for every other charge."}},"required":["product","billable","amount","tiers"]}},"fees":{"type":"string","pattern":"^\\d+\\.\\d{2}$","description":"The sum of the products' simulated amounts. The monthly minimum is not included."}},"required":["note","products","fees"]},{"type":"null"}],"description":"Test mode only: what the month's test activity would be billed at your rates if it were live, never billed (the real amounts stay 0.00). null in live mode."}},"required":["object","statement_id","month","time_zone","mode","live","billing","note","state","products","adjustments","fees","adjustments_amount","minimum","minimum_applied","monthly_fee","setup_fee","amount_due","simulated"]},"examples":{"current_month":{"summary":"A live organization's month so far","value":{"object":"usage","statement_id":null,"month":"2026-09","time_zone":"America/Denver","mode":"live","live":true,"billing":"billed","note":null,"state":"open","products":[{"product":"eligibility","billable":4000,"not_billed":{"total":118,"reasons":[{"reason":"cache_hit","label":"answer reused from a recent check","count":118}]},"rate":"Volume rates: 1–250 at $0.30, 251–3,500 at $0.15, 3,501–10,000 at $0.10, then $0.08","locations":null,"amount":"612.50","tiers":[{"from":1,"to":250,"rate":"0.30","checks":250,"amount":"75.00"},{"from":251,"to":3500,"rate":"0.15","checks":3250,"amount":"487.50"},{"from":3501,"to":10000,"rate":"0.10","checks":500,"amount":"50.00"},{"from":10001,"to":null,"rate":"0.08","checks":0,"amount":"0.00"}]},{"product":"claims","billable":1240,"not_billed":{"total":0,"reasons":[]},"rate":"$0.20 per claim","locations":null,"amount":"248.00","tiers":null},{"product":"attachments","billable":410,"not_billed":{"total":0,"reasons":[]},"rate":"$0.30 per attachment","locations":null,"amount":"123.00","tiers":null},{"product":"eras","billable":900,"not_billed":{"total":3,"reasons":[{"reason":"estimate_only","label":"estimate only","count":3}]},"rate":"$0.05 per ERA","locations":null,"amount":"45.00","tiers":null}],"adjustments":[],"fees":"1028.50","adjustments_amount":"0.00","minimum":{"amount":"500.00","introductory":true},"minimum_applied":false,"monthly_fee":"0.00","setup_fee":"0.00","amount_due":"1028.50","simulated":null}},"per_location":{"summary":"Attachments priced per location, with a monthly fee","value":{"object":"usage","statement_id":null,"month":"2026-09","time_zone":"America/Denver","mode":"live","live":true,"billing":"billed","note":null,"state":"open","products":[{"product":"eligibility","billable":0,"not_billed":{"total":0,"reasons":[]},"rate":"Volume rates: 1–250 at $0.30, 251–3,500 at $0.15, 3,501–10,000 at $0.10, then $0.08","locations":null,"amount":"0.00","tiers":[{"from":1,"to":250,"rate":"0.30","checks":0,"amount":"0.00"},{"from":251,"to":3500,"rate":"0.15","checks":0,"amount":"0.00"},{"from":3501,"to":10000,"rate":"0.10","checks":0,"amount":"0.00"},{"from":10001,"to":null,"rate":"0.08","checks":0,"amount":"0.00"}]},{"product":"claims","billable":1240,"not_billed":{"total":0,"reasons":[]},"rate":"$0.20 per claim","locations":null,"amount":"248.00","tiers":null},{"product":"attachments","billable":410,"not_billed":{"total":0,"reasons":[]},"rate":"$40.00 per location a month (locations set up for it)","locations":3,"amount":"120.00","tiers":null},{"product":"eras","billable":900,"not_billed":{"total":0,"reasons":[]},"rate":"$0.05 per ERA","locations":null,"amount":"45.00","tiers":null}],"adjustments":[],"fees":"413.00","adjustments_amount":"0.00","minimum":{"amount":"0.00","introductory":false},"minimum_applied":false,"monthly_fee":"750.00","setup_fee":"0.00","amount_due":"1163.00","simulated":null}},"test_key":{"summary":"A test key: activity only, never billed","value":{"object":"usage","statement_id":null,"month":"2026-09","time_zone":"America/Denver","mode":"test","live":false,"billing":"test_activity","note":"Test mode: activity only, never billed","state":"open","products":[{"product":"eligibility","billable":0,"not_billed":{"total":212,"reasons":[{"reason":"test_mode","label":"test mode","count":212}]},"rate":"Volume rates: 1–250 at $0.30, 251–3,500 at $0.15, 3,501–10,000 at $0.10, then $0.08","locations":null,"amount":"0.00","tiers":null},{"product":"claims","billable":0,"not_billed":{"total":48,"reasons":[{"reason":"test_mode","label":"test mode","count":48}]},"rate":"$0.20 per claim","locations":null,"amount":"0.00","tiers":null},{"product":"attachments","billable":0,"not_billed":{"total":9,"reasons":[{"reason":"test_mode","label":"test mode","count":9}]},"rate":"$0.30 per attachment","locations":null,"amount":"0.00","tiers":null},{"product":"eras","billable":0,"not_billed":{"total":31,"reasons":[{"reason":"test_mode","label":"test mode","count":31}]},"rate":"$0.05 per ERA","locations":null,"amount":"0.00","tiers":null}],"adjustments":[],"fees":"0.00","adjustments_amount":"0.00","minimum":null,"minimum_applied":false,"monthly_fee":"0.00","setup_fee":"0.00","amount_due":"0.00","simulated":{"note":"Simulated: what this test activity would be billed at your rates if it were live. Not billed, and the monthly minimum is not included.","products":[{"product":"eligibility","billable":206,"amount":"61.80","tiers":[{"from":1,"to":250,"rate":"0.30","checks":206,"amount":"61.80"},{"from":251,"to":3500,"rate":"0.15","checks":0,"amount":"0.00"},{"from":3501,"to":10000,"rate":"0.10","checks":0,"amount":"0.00"},{"from":10001,"to":null,"rate":"0.08","checks":0,"amount":"0.00"}]},{"product":"claims","billable":48,"amount":"9.60","tiers":null},{"product":"attachments","billable":9,"amount":"2.70","tiers":null},{"product":"eras","billable":31,"amount":"1.55","tiers":null}],"fees":"75.65"}}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/usage/units":{"get":{"operationId":"listUsageUnits","summary":"List usage records","description":"The usage records of a billing month in the key's mode, oldest first: one for each check, claim, attachment or ERA, with whether it is billable and why, and for a billable record of a billed month its price under the month's rates (at volume rates, the rate of its place in the month). A record names its resource by ID only: nothing about a patient. Filter by product, by billable, and by office_id or practice_group_id (not both). The same records the month's figures are counted from. Months are calendar months in America/Denver for every partner. The default is the current month. A test key sees test activity only: it is never priced, and a test key sees no statements.","tags":["Usage and statements"],"x-permission":"read","parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"name":"month","in":"query","required":false,"description":"A billing month, YYYY-MM, not after the current one. Default: the current billing month.","schema":{"type":"string","pattern":"^[1-9][0-9]{3}-(0[1-9]|1[0-2])$"},"example":"2026-09"},{"name":"product","in":"query","required":false,"description":"Only records of this product.","schema":{"type":"string","enum":["eligibility","claims","attachments","eras"]}},{"name":"billable","in":"query","required":false,"description":"true: only billable records; false: only records not billed.","schema":{"type":"string","enum":["true","false"]}},{"name":"office_id","in":"query","required":false,"description":"Only the records of this office (off_...).","schema":{"pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}},{"name":"practice_group_id","in":"query","required":false,"description":"Only the records of the offices in this practice group (pgr_...). Not with office_id. Needs practice groups enabled for the organization: otherwise 403 FEATURE_NOT_ENABLED.","schema":{"pattern":"^pgr_[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}}],"responses":{"200":{"description":"A page of usage records.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"usage_unit"},"time":{"type":"string","format":"date-time"},"product":{"type":"string","enum":["eligibility","claims","attachments","eras"]},"resource_id":{"type":"string","description":"The ID of the check, claim, attachment or ERA the record is for."},"billable":{"type":"boolean"},"reason":{"type":"string","description":"Why the record is or is not billable."},"label":{"type":"string","description":"The reason in words."},"tier_price":{"anyOf":[{"type":"string","pattern":"^\\d+\\.\\d{2,6}$"},{"type":"null"}],"description":"A billable record of a billed month: its price under the month's rates (at volume rates, the rate of its place in the month), in dollars. Null where a record has no price of its own."},"office_id":{"anyOf":[{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},{"type":"null"}],"description":"The office of the check, claim or attachment, or the office an ERA pays; null for an ERA held without a payee office."}},"required":["object","time","product","resource_id","billable","reason","label","tier_price","office_id"]}},"next_cursor":{"description":"Pass as cursor to get the next page; null when there is no next page.","type":["string","null"]}},"required":["data","next_cursor"]},"examples":{"month":{"summary":"The records of a month","value":{"data":[{"object":"usage_unit","time":"2026-09-01T15:02:11.120000+00:00","product":"eligibility","resource_id":"elg_01JM000000E00800000000000G","billable":true,"reason":"answered","label":"the payer answered","tier_price":"0.30","office_id":"off_01JM000000E008000000000003"},{"object":"usage_unit","time":"2026-09-01T15:04:40.870000+00:00","product":"eligibility","resource_id":"elg_01JM000000E00800000000000H","billable":false,"reason":"cache_hit","label":"answer reused from a recent check","tier_price":null,"office_id":"off_01JM000000E008000000000003"},{"object":"usage_unit","time":"2026-09-01T16:30:02.400000+00:00","product":"claims","resource_id":"clm_01JM000000E00800000000000J","billable":true,"reason":"transmitted","label":"handed to the network","tier_price":"0.20","office_id":"off_01JM000000E008000000000003"}],"next_cursor":null}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.\n\n`FEATURE_NOT_ENABLED`: Practice groups are not enabled for this organization. Ask Claim House to turn them on.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"FEATURE_NOT_ENABLED":{"summary":"FEATURE_NOT_ENABLED","value":{"error":"FEATURE_NOT_ENABLED","message":"Practice groups are not enabled for this organization. Ask Claim House to turn them on.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/usage/offices":{"get":{"operationId":"listUsageByOffice","summary":"List a month of usage by office","description":"The usage of a billing month by office, in the key's mode. One row for each office with usage (by office name), then one with office_id null for the records with no office (an ERA held without a payee office), each with every product's billable and not billed counts. Counts only: a per-office amount would be an allocation of the month's tiered prices and minimum, so none is given. A month still open is counted from the usage records as of now, with each office's name and practice group as they are now; a month that has been closed is read from its statement, as the offices were when it closed. Filter by practice_group_id. Months are calendar months in America/Denver for every partner. The default is the current month. A test key sees test activity only: it is never priced, and a test key sees no statements.","tags":["Usage and statements"],"x-permission":"read","parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"name":"month","in":"query","required":false,"description":"A billing month, YYYY-MM, not after the current one. Default: the current billing month.","schema":{"type":"string","pattern":"^[1-9][0-9]{3}-(0[1-9]|1[0-2])$"},"example":"2026-09"},{"name":"practice_group_id","in":"query","required":false,"description":"Only the offices in this practice group (pgr_...): in an open month the group each office is in now; in a closed month the group it was in when the month closed. Not with office_id. Needs practice groups enabled for the organization: otherwise 403 FEATURE_NOT_ENABLED.","schema":{"pattern":"^pgr_[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}}],"responses":{"200":{"description":"A page of offices with their usage.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"office_id":{"anyOf":[{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},{"type":"null"}],"description":"The office; null for the row of the records with no office (an ERA held without a payee office)."},"office_name":{"description":"The office's name: now in an open month, as it was at the close in a closed one. null for the row with no office.","type":["string","null"]},"client_reference":{"description":"The office's client_reference, at the same moment as its name; null when it has none, and for the row with no office.","type":["string","null"]},"practice_group_id":{"anyOf":[{"type":"string","pattern":"^pgr_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with pgr_."},{"type":"null"}],"description":"The practice group the office is in (now in an open month, at the close in a closed one); null for a standalone office."},"practice_group_name":{"description":"The practice group's name at the same moment; null when practice_group_id is.","type":["string","null"]},"products":{"type":"array","items":{"type":"object","properties":{"product":{"type":"string","enum":["eligibility","claims","attachments","eras"]},"billable":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Billable transactions."},"not_billed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Transactions not billed."}},"required":["product","billable","not_billed"]},"description":"Every product, in the same order as GET /usage, with its counts for the office (0 when none)."}},"required":["office_id","office_name","client_reference","practice_group_id","practice_group_name","products"]}},"next_cursor":{"description":"Pass as cursor to get the next page; null when there is no next page.","type":["string","null"]}},"required":["data","next_cursor"]},"examples":{"month":{"summary":"A month by office","value":{"data":[{"office_id":"off_01JM000000E008000000000003","office_name":"Example Family Dental","client_reference":"PMS-1001","practice_group_id":"pgr_01JM000000E008000000000090","practice_group_name":"Example North Region","products":[{"product":"eligibility","billable":2600,"not_billed":80},{"product":"claims","billable":820,"not_billed":0},{"product":"attachments","billable":270,"not_billed":0},{"product":"eras","billable":610,"not_billed":2}]},{"office_id":"off_01JM000000E00800000000004G","office_name":"Example Lakeside Dental","client_reference":null,"practice_group_id":null,"practice_group_name":null,"products":[{"product":"eligibility","billable":1400,"not_billed":38},{"product":"claims","billable":420,"not_billed":0},{"product":"attachments","billable":140,"not_billed":0},{"product":"eras","billable":287,"not_billed":1}]},{"office_id":null,"office_name":null,"client_reference":null,"practice_group_id":null,"practice_group_name":null,"products":[{"product":"eligibility","billable":0,"not_billed":0},{"product":"claims","billable":0,"not_billed":0},{"product":"attachments","billable":0,"not_billed":0},{"product":"eras","billable":3,"not_billed":0}]}],"next_cursor":null}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.\n\n`FEATURE_NOT_ENABLED`: Practice groups are not enabled for this organization. Ask Claim House to turn them on.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"FEATURE_NOT_ENABLED":{"summary":"FEATURE_NOT_ENABLED","value":{"error":"FEATURE_NOT_ENABLED","message":"Practice groups are not enabled for this organization. Ask Claim House to turn them on.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/statements":{"get":{"operationId":"listStatements","summary":"List statements","description":"The monthly statements of the key's organization, newest first. A statement is a document: it is issued on the 1st for the month before, due 15 days later, and never changes; nothing is collected. A month is closed once it has ended. A test key sees test activity only: it is never priced, and a test key sees no statements.","tags":["Usage and statements"],"x-permission":"read","parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"}],"responses":{"200":{"description":"A page of statements.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^stm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with stm_."},"object":{"type":"string","const":"statement"},"number":{"type":"string"},"issue_date":{"type":"string","format":"date"},"due_date":{"type":"string","format":"date","description":"15 days after the issue date."},"payment_status":{"type":"string","enum":["unpaid","paid","overdue"],"description":"paid once nothing is owed; overdue from the day after the due date while something is; unpaid before."},"amount_paid":{"type":"string","pattern":"^\\d+\\.\\d{2}$","description":"What Claim House has received against the statement so far, in dollars."},"balance":{"type":"string","pattern":"^\\d+\\.\\d{2}$","description":"What is still owed, in dollars."},"month":{"type":"string","pattern":"^\\d{4}-\\d{2}$"},"fees":{"type":"string","pattern":"^\\d+\\.\\d{2}$"},"adjustments_amount":{"type":"string","pattern":"^\\d+\\.\\d{2}$"},"amount_due":{"type":"string","pattern":"^\\d+\\.\\d{2}$"}},"required":["id","object","number","issue_date","due_date","payment_status","amount_paid","balance","month","fees","adjustments_amount","amount_due"]}},"next_cursor":{"description":"Pass as cursor to get the next page; null when there is no next page.","type":["string","null"]}},"required":["data","next_cursor"]},"examples":{"list":{"summary":"The statements of a live organization","value":{"data":[{"id":"stm_01JM000000E008000000000030","object":"statement","number":"ST-202609-0195000000A1","issue_date":"2026-10-01","due_date":"2026-10-16","payment_status":"paid","amount_paid":"1028.50","balance":"0.00","month":"2026-09","fees":"1028.50","adjustments_amount":"0.00","amount_due":"1028.50"}],"next_cursor":null}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/statements/{id}":{"get":{"operationId":"getStatement","summary":"Get a statement","description":"One statement with its lines: the products with their counts, reasons, rates and amounts, the fees, the minimum, the monthly and setup fees and the amount due, as they were when the month was closed. A statement of another organization is not found.","tags":["Usage and statements"],"x-permission":"read","parameters":[{"name":"id","in":"path","required":true,"description":"A statement ID (stm_...).","schema":{"type":"string"},"example":"stm_01JM000000E008000000000030"}],"responses":{"200":{"description":"The statement.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^stm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with stm_."},"object":{"type":"string","const":"statement"},"number":{"type":"string"},"issue_date":{"type":"string","format":"date"},"due_date":{"type":"string","format":"date","description":"15 days after the issue date."},"payment_status":{"type":"string","enum":["unpaid","paid","overdue"],"description":"paid once nothing is owed; overdue from the day after the due date while something is; unpaid before."},"amount_paid":{"type":"string","pattern":"^\\d+\\.\\d{2}$","description":"What Claim House has received against the statement so far, in dollars."},"balance":{"type":"string","pattern":"^\\d+\\.\\d{2}$","description":"What is still owed, in dollars."},"month":{"type":"string","pattern":"^\\d{4}-\\d{2}$","description":"The billing month, YYYY-MM."},"time_zone":{"type":"string","description":"The time zone months are counted in."},"mode":{"type":"string","enum":["test","live"]},"live":{"type":"boolean","description":"true when this month is billed: live mode, in a month the organization was live. false for test activity and for a pre-production organization."},"billing":{"type":"string","enum":["billed","pre_production","test_activity"],"description":"billed; pre_production (live usage of an organization not yet live: not billed); test_activity (test mode: never billed)."},"note":{"description":"In words, why the month is not billed; null when it is billed.","type":["string","null"]},"state":{"type":"string","enum":["open","issued"],"description":"open: computed from the usage records as of now; issued: read from the stored statement, which never changes."},"products":{"type":"array","items":{"type":"object","properties":{"product":{"type":"string","enum":["eligibility","claims","attachments","eras"]},"billable":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Billable transactions of the month."},"not_billed":{"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reasons":{"type":"array","items":{"type":"object","properties":{"reason":{"type":"string"},"label":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["reason","label","count"]}}},"required":["total","reasons"],"description":"Transactions of the month that are not billed, with the reason for each kind."},"rate":{"type":"string","description":"The rate in words, from the price list in force."},"locations":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"A product charged per location a month: the locations counted, and amount is that many times the price of one. null for every other product, and in a month that is not billed."},"amount":{"type":"string","pattern":"^\\d+\\.\\d{2}$","description":"The product's fees for the month; 0.00 when the month is not billed."},"tiers":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"from":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The first item of the month this tier covers (checks, claims, attachments or ERAs: the product's own)."},"to":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"The last item of the month this tier covers; null for the last tier."},"rate":{"type":"string","pattern":"^\\d+\\.\\d{2,6}$","description":"The price of one item in this tier, in dollars."},"checks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many of the month's billable items of the product fell in this tier (named checks for every product)."},"amount":{"type":"string","pattern":"^\\d+\\.\\d{2}$"}},"required":["from","to","rate","checks","amount"]}},{"type":"null"}],"description":"A product charged at graduated volume rates, when the month is billed: the items and amount of each tier. null for every other charge."}},"required":["product","billable","not_billed","rate","locations","amount","tiers"]}},"adjustments":{"type":"array","items":{"type":"object","properties":{"usage_month":{"type":"string","pattern":"^\\d{4}-\\d{2}$"},"description":{"type":"string"},"products":{"type":"array","items":{"type":"object","properties":{"product":{"type":"string","enum":["eligibility","claims","attachments","eras"]},"billable":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"not_billed":{"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reasons":{"type":"array","items":{"type":"object","properties":{"reason":{"type":"string"},"label":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["reason","label","count"]}}},"required":["total","reasons"]}},"required":["product","billable","not_billed"]}},"amount":{"type":"string","pattern":"^\\d+\\.\\d{2}$"}},"required":["usage_month","description","products","amount"]},"description":"Usage of an earlier, closed month that arrived after its statement was issued, added to this month."},"fees":{"type":"string","pattern":"^\\d+\\.\\d{2}$","description":"The sum of the products' fees: the usage the minimum is measured against."},"adjustments_amount":{"type":"string","pattern":"^\\d+\\.\\d{2}$"},"minimum":{"anyOf":[{"type":"object","properties":{"amount":{"type":"string","pattern":"^\\d+\\.\\d{2}$"},"introductory":{"type":"boolean","description":"true for the lower minimum of an organization's first live months."}},"required":["amount","introductory"]},{"type":"null"}],"description":"The monthly minimum that applies; null when the month is not billed."},"minimum_applied":{"type":"boolean","description":"true when the minimum, not the fees, set the amount due."},"monthly_fee":{"type":"string","pattern":"^\\d+\\.\\d{2}$","description":"The monthly fee of your agreement, charged on top of the greater of the fees and the minimum; 0.00 when it has none, and when the month is not billed."},"setup_fee":{"type":"string","pattern":"^\\d+\\.\\d{2}$","description":"The setup fee of your agreement, charged once, on the first billed month of an agreement that has one; 0.00 on every other month."},"amount_due":{"type":"string","pattern":"^\\d+\\.\\d{2}$","description":"The greater of the fees and the minimum, plus the monthly and setup fees and adjustments; 0.00 when the month is not billed."}},"required":["id","object","number","issue_date","due_date","payment_status","amount_paid","balance","month","time_zone","mode","live","billing","note","state","products","adjustments","fees","adjustments_amount","minimum","minimum_applied","monthly_fee","setup_fee","amount_due"]},"examples":{"by_id":{"summary":"A statement by its ID","value":{"id":"stm_01JM000000E008000000000030","object":"statement","number":"ST-202609-0195000000A1","issue_date":"2026-10-01","due_date":"2026-10-16","payment_status":"paid","amount_paid":"1028.50","balance":"0.00","month":"2026-09","time_zone":"America/Denver","mode":"live","live":true,"billing":"billed","note":null,"state":"issued","products":[{"product":"eligibility","billable":4000,"not_billed":{"total":118,"reasons":[{"reason":"cache_hit","label":"answer reused from a recent check","count":118}]},"rate":"Volume rates: 1–250 at $0.30, 251–3,500 at $0.15, 3,501–10,000 at $0.10, then $0.08","locations":null,"amount":"612.50","tiers":[{"from":1,"to":250,"rate":"0.30","checks":250,"amount":"75.00"},{"from":251,"to":3500,"rate":"0.15","checks":3250,"amount":"487.50"},{"from":3501,"to":10000,"rate":"0.10","checks":500,"amount":"50.00"},{"from":10001,"to":null,"rate":"0.08","checks":0,"amount":"0.00"}]},{"product":"claims","billable":1240,"not_billed":{"total":0,"reasons":[]},"rate":"$0.20 per claim","locations":null,"amount":"248.00","tiers":null},{"product":"attachments","billable":410,"not_billed":{"total":0,"reasons":[]},"rate":"$0.30 per attachment","locations":null,"amount":"123.00","tiers":null},{"product":"eras","billable":900,"not_billed":{"total":3,"reasons":[{"reason":"estimate_only","label":"estimate only","count":3}]},"rate":"$0.05 per ERA","locations":null,"amount":"45.00","tiers":null}],"adjustments":[],"fees":"1028.50","adjustments_amount":"0.00","minimum":{"amount":"500.00","introductory":true},"minimum_applied":false,"monthly_fee":"0.00","setup_fee":"0.00","amount_due":"1028.50"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"not_found":{"summary":"A statement of another organization","value":{"error":"NOT_FOUND","message":"Statement not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/statements/{id}/offices":{"get":{"operationId":"listStatementOffices","summary":"List a statement by office","description":"A statement's usage by office, as stored when the month was closed (office and practice group names included), never changing after. One row for each office with usage (by office name), then one with office_id null for the records with no office (an ERA held without a payee office), each with every product's billable and not billed counts. Counts only: a per-office amount would be an allocation of the month's tiered prices and minimum, so none is given. Usage of an earlier month that arrived after its statement (an adjustment) is counted under its office on the statement that took it. A statement of another organization is not found.","tags":["Usage and statements"],"x-permission":"read","parameters":[{"name":"id","in":"path","required":true,"description":"A statement ID (stm_...).","schema":{"type":"string"},"example":"stm_01JM000000E008000000000030"},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"}],"responses":{"200":{"description":"A page of offices with their usage on the statement.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"office_id":{"anyOf":[{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},{"type":"null"}],"description":"The office; null for the row of the records with no office (an ERA held without a payee office)."},"office_name":{"description":"The office's name: now in an open month, as it was at the close in a closed one. null for the row with no office.","type":["string","null"]},"client_reference":{"description":"The office's client_reference, at the same moment as its name; null when it has none, and for the row with no office.","type":["string","null"]},"practice_group_id":{"anyOf":[{"type":"string","pattern":"^pgr_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with pgr_."},{"type":"null"}],"description":"The practice group the office is in (now in an open month, at the close in a closed one); null for a standalone office."},"practice_group_name":{"description":"The practice group's name at the same moment; null when practice_group_id is.","type":["string","null"]},"products":{"type":"array","items":{"type":"object","properties":{"product":{"type":"string","enum":["eligibility","claims","attachments","eras"]},"billable":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Billable transactions."},"not_billed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Transactions not billed."}},"required":["product","billable","not_billed"]},"description":"Every product, in the same order as GET /usage, with its counts for the office (0 when none)."}},"required":["office_id","office_name","client_reference","practice_group_id","practice_group_name","products"]}},"next_cursor":{"description":"Pass as cursor to get the next page; null when there is no next page.","type":["string","null"]}},"required":["data","next_cursor"]},"examples":{"by_id":{"summary":"A statement by office","value":{"data":[{"office_id":"off_01JM000000E008000000000003","office_name":"Example Family Dental","client_reference":"PMS-1001","practice_group_id":"pgr_01JM000000E008000000000090","practice_group_name":"Example North Region","products":[{"product":"eligibility","billable":2600,"not_billed":80},{"product":"claims","billable":820,"not_billed":0},{"product":"attachments","billable":270,"not_billed":0},{"product":"eras","billable":610,"not_billed":2}]},{"office_id":"off_01JM000000E00800000000004G","office_name":"Example Lakeside Dental","client_reference":null,"practice_group_id":null,"practice_group_name":null,"products":[{"product":"eligibility","billable":1400,"not_billed":38},{"product":"claims","billable":420,"not_billed":0},{"product":"attachments","billable":140,"not_billed":0},{"product":"eras","billable":287,"not_billed":1}]},{"office_id":null,"office_name":null,"client_reference":null,"practice_group_id":null,"practice_group_name":null,"products":[{"product":"eligibility","billable":0,"not_billed":0},{"product":"claims","billable":0,"not_billed":0},{"product":"attachments","billable":0,"not_billed":0},{"product":"eras","billable":3,"not_billed":0}]}],"next_cursor":null}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"not_found":{"summary":"A statement of another organization","value":{"error":"NOT_FOUND","message":"Statement not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/reports/summary":{"get":{"operationId":"getReportSummary","summary":"Get a report","description":"Where money and time went in a period, for the key's organization in the key's mode: billed, paid, first-pass acceptance, median days to pay and the claims unpaid over 30 days; days to payment by payer, rejections by reason, acceptance by office and adjustments by reason. The same figures as the Reports screen and its CSV, each the count or sum the claims and ERAs lists give for the same filter. Periods are calendar days in America/Denver; the answer gives the period's bounds. Every figure is computed from the transaction ledger when you ask for it, for the current mode only (test and live are never mixed). Predeterminations are never counted. No patient data.","tags":["Reports"],"x-permission":"read","parameters":[{"name":"period","in":"query","required":false,"description":"The period: last_90_days (the default, today included), this_month or this_year, in the billing time zone.","schema":{"type":"string","enum":["last_90_days","this_month","this_year"]},"example":"last_90_days"}],"responses":{"200":{"description":"The period's figures.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"report_summary"},"period":{"type":"string","enum":["last_90_days","this_month","this_year"]},"mode":{"type":"string","enum":["test","live"]},"time_zone":{"type":"string","description":"The time zone the period's days are counted in."},"from":{"type":"string","format":"date-time","description":"The period starts at this instant (included)."},"to":{"type":"string","format":"date-time","description":"The period ends at this instant (not included)."},"first_day":{"type":"string","format":"date"},"last_day":{"type":"string","format":"date"},"billed":{"type":"object","properties":{"amount":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},"claims":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["amount","claims"],"description":"Billed is the charges of the claims first sent to the payer in the period (handed to the network), and how many there are. A claim corrected and resubmitted, or sent again as a replacement, is the same claim: it is counted once, in the period it was first sent. A void transaction is never a claim."},"paid":{"type":"object","properties":{"amount":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},"percent_of_billed":{"anyOf":[{"type":"string","pattern":"^\\d+\\.\\d$"},{"type":"null"}],"description":"A percentage with one decimal place (\"96.4\"); null when there was nothing to count."}},"required":["amount","percent_of_billed"],"description":"Paid is what payers have paid so far on those claims (each claim's current payment, after any reversal or correction), and its share of billed."},"first_pass_acceptance":{"type":"object","properties":{"percent":{"anyOf":[{"type":"string","pattern":"^\\d+\\.\\d$"},{"type":"null"}],"description":"A percentage with one decimal place (\"96.4\"); null when there was nothing to count."},"accepted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"answered":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["percent","accepted","answered"],"description":"First-pass acceptance is, of those claims the payer has answered (ever rejected, or accepted, paid, posted or denied as they stand now), the share it accepted without a rejection ever being recorded on them. A rejected claim corrected and sent again still counts as answered, and not first-pass. Claims still on their way the first time and voided claims are not counted."},"median_days_to_pay":{"type":"object","properties":{"days":{"type":["number","null"]},"payments":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["days","payments"],"description":"Median days to pay is the median number of calendar days (in Mountain time) from a claim's first sending to its first payment, over those claims that have been paid. With an even number of claims it is the mean of the two middle ones."},"unpaid_over_30_days":{"type":"object","properties":{"amount":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},"claims":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["amount","claims"],"description":"Unpaid over 30 days is the claims the payer accepted more than 30 days ago that no payment has reached since, whatever the period: the Claims list's Accepted claims unpaid for 30 days, and their charges."},"days_to_pay_by_payer":{"type":"array","items":{"type":"object","properties":{"payer_id":{"type":"string","pattern":"^pyr_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with pyr_."},"name":{"type":"string"},"median_days":{"type":"number"},"payments":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["payer_id","name","median_days","payments"]},"description":"Days to payment by payer is the same median for each payer, for the 10 payers with the most paid claims, fastest first."},"rejections_by_reason":{"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Every rejection recorded on the claims first sent in the period."},"claims_sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The claims first sent in the period."},"reasons":{"type":"array","items":{"type":"object","properties":{"source":{"type":["string","null"]},"category":{"type":["string","null"]},"code":{"type":["string","null"]},"description":{"type":"string"},"rejections":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["source","category","code","description","rejections"]}}},"required":["total","claims_sent","reasons"],"description":"Rejections by reason counts every rejection recorded on those claims (a claim rejected, corrected and rejected again counts twice), by the status category and code it came with, the 10 most frequent."},"acceptance_by_office":{"type":"array","items":{"type":"object","properties":{"office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"name":{"type":"string"},"percent":{"anyOf":[{"type":"string","pattern":"^\\d+\\.\\d$"},{"type":"null"}],"description":"A percentage with one decimal place (\"96.4\"); null when there was nothing to count."},"accepted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"answered":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["office_id","name","percent","accepted","answered"]},"description":"Acceptance by office is the first-pass acceptance of each office that first sent claims in this period; a dash where none of its claims has been answered."},"adjustments_by_reason":{"type":"array","items":{"type":"object","properties":{"group":{"type":"string"},"reason":{"type":"string"},"code":{"type":"string"},"description":{"type":"string"},"amount":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},"adjustments":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["group","reason","code","description","amount","adjustments"]},"description":"Adjustments by reason adds up the claim and line adjustments of the ERAs received in the period, by group and reason code, the 10 largest. A predetermination's pricing is not an adjustment."}},"required":["object","period","mode","time_zone","from","to","first_day","last_day","billed","paid","first_pass_acceptance","median_days_to_pay","unpaid_over_30_days","days_to_pay_by_payer","rejections_by_reason","acceptance_by_office","adjustments_by_reason"]},"examples":{"last_90_days":{"summary":"The last 90 days","value":{"object":"report_summary","period":"last_90_days","mode":"live","time_zone":"America/Denver","from":"2026-07-05T06:00:00.000Z","to":"2026-10-03T06:00:00.000Z","first_day":"2026-07-05","last_day":"2026-10-02","billed":{"amount":"68400.00","claims":60},"paid":{"amount":"42858.50","percent_of_billed":"62.7"},"first_pass_acceptance":{"percent":"94.6","accepted":53,"answered":56},"median_days_to_pay":{"days":14,"payments":52},"unpaid_over_30_days":{"amount":"2280.00","claims":2},"days_to_pay_by_payer":[{"payer_id":"pyr_01JM000000E008000000000004","name":"Example Dental Plan","median_days":14,"payments":52}],"rejections_by_reason":{"total":3,"claims_sent":60,"reasons":[{"source":"payer","category":"A7","code":"33","description":"Rejected because information is not valid (A7:33)","rejections":3}]},"acceptance_by_office":[{"office_id":"off_01JM000000E008000000000003","name":"Example Dental, Main Street","percent":"95.6","accepted":43,"answered":45},{"office_id":"off_01JM000000E00800000000004G","name":"Example Dental, Riverside","percent":"90.9","accepted":10,"answered":11}],"adjustments_by_reason":[{"group":"CO","reason":"45","code":"CO-45","description":"The charge is more than the payer fee schedule allows","amount":"9120.00","adjustments":52},{"group":"PR","reason":"2","code":"PR-2","description":"The patient coinsurance share","amount":"4865.00","adjustments":37},{"group":"CO","reason":"119","code":"CO-119","description":"The benefit maximum for the period has been reached","amount":"1140.00","adjustments":1}]}},"empty":{"summary":"A test key with nothing sent this month: zeros and nulls","value":{"object":"report_summary","period":"this_month","mode":"test","time_zone":"America/Denver","from":"2026-10-01T06:00:00.000Z","to":"2026-11-01T06:00:00.000Z","first_day":"2026-10-01","last_day":"2026-10-31","billed":{"amount":"0.00","claims":0},"paid":{"amount":"0.00","percent_of_billed":null},"first_pass_acceptance":{"percent":null,"accepted":0,"answered":0},"median_days_to_pay":{"days":null,"payments":0},"unpaid_over_30_days":{"amount":"0.00","claims":0},"days_to_pay_by_payer":[],"rejections_by_reason":{"total":0,"claims_sent":0,"reasons":[]},"acceptance_by_office":[{"office_id":"off_01JM000000E008000000000003","name":"Example Dental, Main Street","percent":null,"accepted":0,"answered":0}],"adjustments_by_reason":[]}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/events":{"get":{"operationId":"listEvents","summary":"List events","description":"The events of the key's organization in the key's mode, newest first. An event says that something happened (an eligibility check finished, an API key was created or revoked) and carries facts about it, never a patient's name, date of birth or member ID: read the resource by its ID for those. Filter by type, by the resource an event is about, or by creation time.","tags":["Events"],"x-permission":"read","parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"name":"type","in":"query","required":false,"description":"Only events of this type.","schema":{"type":"string","enum":["eligibility.completed","api_key.created","api_key.revoked","claim.validated","claim.needs_attention","claim.queued","claim.submitted","claim.accepted","claim.rejected","claim.status_updated","claim.voided","batch.acknowledged","attachment.completed","payer_request.received","era.received","claim.paid","claim.denied","claim.payment_reversed","predetermination.returned","sftp.file_received","sftp.file_refused","eligibility.batch.completed","office.attachment_registration.updated","statement.paid","enrollment.updated"]},"example":"eligibility.completed"},{"name":"resource_id","in":"query","required":false,"description":"Only events about this resource: an eligibility check (elg_...) or an API key (key_...).","schema":{"type":"string"}},{"name":"created_after","in":"query","required":false,"description":"Only events created after this instant (ISO 8601 with an offset, such as 2026-10-01T00:00:00Z).","schema":{"format":"date-time","type":"string"}}],"responses":{"200":{"description":"A page of events.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"eligibility.completed"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^elg_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with elg_."},"object":{"type":"string","const":"eligibility_check"},"office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"payer":{"$ref":"#/components/schemas/PayerLabel"},"state":{"type":"string","enum":["pending","completed"]},"outcome":{"anyOf":[{"type":"string","enum":["answered","rejected","payer_unavailable","error"]},{"type":"null"}],"description":"How the check ended; null while pending."},"status":{"anyOf":[{"type":"string","enum":["active","inactive","unknown"]},{"type":"null"}],"description":"The coverage status: active, inactive or unknown; null when there is no answer."},"billing":{"anyOf":[{"$ref":"#/components/schemas/Billing"},{"type":"null"}],"description":"Null while the check is pending: it has no usage record yet."},"cache":{"type":"object","properties":{"state":{"type":"string","enum":["fresh","hit"]},"source_id":{"anyOf":[{"type":"string","pattern":"^elg_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with elg_."},{"type":"null"}]}},"required":["state","source_id"]},"parent_id":{"anyOf":[{"type":"string","pattern":"^elg_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with elg_."},{"type":"null"}],"description":"The rejected check this one corrects."},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made the check (the x-request-id of its response); null for a check made in the dashboard."},"tenant_reference":{"description":"Your own reference, sent with the check.","type":["string","null"]},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time"}},"required":["id","object","office_id","payer","state","outcome","status","billing","cache","parent_id","request_id","tenant_reference","created_at","completed_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"api_key.created"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^key_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with key_."},"object":{"type":"string","const":"api_key"},"name":{"type":"string"},"mode":{"type":"string","enum":["test","live"]},"permissions":{"type":"array","items":{"type":"string","enum":["read","submit"]}},"organization":{"type":"object","properties":{"id":{"type":"string","pattern":"^org_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with org_."},"object":{"type":"string","const":"organization"},"name":{"type":"string"}},"required":["id","object","name"]}},"required":["id","object","name","mode","permissions","organization"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"api_key.revoked"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^key_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with key_."},"object":{"type":"string","const":"api_key"},"name":{"type":"string"},"mode":{"type":"string","enum":["test","live"]},"permissions":{"type":"array","items":{"type":"string","enum":["read","submit"]}},"organization":{"type":"object","properties":{"id":{"type":"string","pattern":"^org_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with org_."},"object":{"type":"string","const":"organization"},"name":{"type":"string"}},"required":["id","object","name"]}},"required":["id","object","name","mode","permissions","organization"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"claim.validated"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},"object":{"type":"string","const":"claim"},"office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"payer":{"$ref":"#/components/schemas/PayerLabel"},"kind":{"description":"claim or predetermination.","type":"string","enum":["claim","predetermination"]},"state":{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},"previous_state":{"anyOf":[{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},{"type":"null"}],"description":"The state the claim was in before; null when the event did not change it."},"frequency":{"type":"string","enum":["original","replacement","void"]},"parent_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"The claim a void transaction voids."},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made the claim; null for a claim made in the dashboard."},"file":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"interchange_control_number":{"type":["string","null"]},"group_control_number":{"type":["string","null"]},"transaction_control_number":{"type":["string","null"]}},"required":["name","interchange_control_number","group_control_number","transaction_control_number"]},{"type":"null"}],"description":"The file that caused the event, with its control numbers."},"status":{"anyOf":[{"type":"object","properties":{"category":{"type":["string","null"]},"code":{"type":["string","null"]}},"required":["category","code"]},{"type":"null"}],"description":"The status category and code that caused the event."},"payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the remittance (ERA) and its amounts.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"status_code":{"type":"string","description":"The payer's claim status in the remittance (CLP02), such as 1 (processed as primary), 4 (denied) or 22 (a reversal)."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer paid, in dollars (negative for a reversal)."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount the payer allowed, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes, as the payer says."}},"required":["era_id","status_code","paid","allowed","patient_responsibility"]},"claim_payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the claim's own figures after this payment (null when nothing stands), as GET /claims/{id} shows them.","anyOf":[{"type":"object","properties":{"outcome":{"type":"string","enum":["paid","denied"],"description":"Whether the claim stands paid or denied after this payment."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer has paid on the claim in all."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount allowed by the claim's current payment, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes in all."}},"required":["outcome","paid","allowed","patient_responsibility"]},{"type":"null"}]},"estimate":{"description":"For predetermination.returned: the ERA that carried the estimate, and its amounts. Never a payment.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"What the payer would allow, when it said."},"pay":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer would pay once the treatment is done."},"patient":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"The patient's estimated share."}},"required":["era_id","allowed","pay","patient"]},"created_at":{"type":"string","format":"date-time"},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","office_id","payer","state","previous_state","frequency","parent_id","request_id","file","status","created_at","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"claim.needs_attention"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},"object":{"type":"string","const":"claim"},"office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"payer":{"$ref":"#/components/schemas/PayerLabel"},"kind":{"description":"claim or predetermination.","type":"string","enum":["claim","predetermination"]},"state":{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},"previous_state":{"anyOf":[{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},{"type":"null"}],"description":"The state the claim was in before; null when the event did not change it."},"frequency":{"type":"string","enum":["original","replacement","void"]},"parent_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"The claim a void transaction voids."},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made the claim; null for a claim made in the dashboard."},"file":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"interchange_control_number":{"type":["string","null"]},"group_control_number":{"type":["string","null"]},"transaction_control_number":{"type":["string","null"]}},"required":["name","interchange_control_number","group_control_number","transaction_control_number"]},{"type":"null"}],"description":"The file that caused the event, with its control numbers."},"status":{"anyOf":[{"type":"object","properties":{"category":{"type":["string","null"]},"code":{"type":["string","null"]}},"required":["category","code"]},{"type":"null"}],"description":"The status category and code that caused the event."},"payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the remittance (ERA) and its amounts.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"status_code":{"type":"string","description":"The payer's claim status in the remittance (CLP02), such as 1 (processed as primary), 4 (denied) or 22 (a reversal)."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer paid, in dollars (negative for a reversal)."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount the payer allowed, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes, as the payer says."}},"required":["era_id","status_code","paid","allowed","patient_responsibility"]},"claim_payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the claim's own figures after this payment (null when nothing stands), as GET /claims/{id} shows them.","anyOf":[{"type":"object","properties":{"outcome":{"type":"string","enum":["paid","denied"],"description":"Whether the claim stands paid or denied after this payment."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer has paid on the claim in all."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount allowed by the claim's current payment, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes in all."}},"required":["outcome","paid","allowed","patient_responsibility"]},{"type":"null"}]},"estimate":{"description":"For predetermination.returned: the ERA that carried the estimate, and its amounts. Never a payment.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"What the payer would allow, when it said."},"pay":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer would pay once the treatment is done."},"patient":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"The patient's estimated share."}},"required":["era_id","allowed","pay","patient"]},"created_at":{"type":"string","format":"date-time"},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","office_id","payer","state","previous_state","frequency","parent_id","request_id","file","status","created_at","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"claim.queued"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},"object":{"type":"string","const":"claim"},"office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"payer":{"$ref":"#/components/schemas/PayerLabel"},"kind":{"description":"claim or predetermination.","type":"string","enum":["claim","predetermination"]},"state":{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},"previous_state":{"anyOf":[{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},{"type":"null"}],"description":"The state the claim was in before; null when the event did not change it."},"frequency":{"type":"string","enum":["original","replacement","void"]},"parent_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"The claim a void transaction voids."},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made the claim; null for a claim made in the dashboard."},"file":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"interchange_control_number":{"type":["string","null"]},"group_control_number":{"type":["string","null"]},"transaction_control_number":{"type":["string","null"]}},"required":["name","interchange_control_number","group_control_number","transaction_control_number"]},{"type":"null"}],"description":"The file that caused the event, with its control numbers."},"status":{"anyOf":[{"type":"object","properties":{"category":{"type":["string","null"]},"code":{"type":["string","null"]}},"required":["category","code"]},{"type":"null"}],"description":"The status category and code that caused the event."},"payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the remittance (ERA) and its amounts.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"status_code":{"type":"string","description":"The payer's claim status in the remittance (CLP02), such as 1 (processed as primary), 4 (denied) or 22 (a reversal)."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer paid, in dollars (negative for a reversal)."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount the payer allowed, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes, as the payer says."}},"required":["era_id","status_code","paid","allowed","patient_responsibility"]},"claim_payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the claim's own figures after this payment (null when nothing stands), as GET /claims/{id} shows them.","anyOf":[{"type":"object","properties":{"outcome":{"type":"string","enum":["paid","denied"],"description":"Whether the claim stands paid or denied after this payment."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer has paid on the claim in all."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount allowed by the claim's current payment, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes in all."}},"required":["outcome","paid","allowed","patient_responsibility"]},{"type":"null"}]},"estimate":{"description":"For predetermination.returned: the ERA that carried the estimate, and its amounts. Never a payment.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"What the payer would allow, when it said."},"pay":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer would pay once the treatment is done."},"patient":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"The patient's estimated share."}},"required":["era_id","allowed","pay","patient"]},"created_at":{"type":"string","format":"date-time"},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","office_id","payer","state","previous_state","frequency","parent_id","request_id","file","status","created_at","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"claim.submitted"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},"object":{"type":"string","const":"claim"},"office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"payer":{"$ref":"#/components/schemas/PayerLabel"},"kind":{"description":"claim or predetermination.","type":"string","enum":["claim","predetermination"]},"state":{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},"previous_state":{"anyOf":[{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},{"type":"null"}],"description":"The state the claim was in before; null when the event did not change it."},"frequency":{"type":"string","enum":["original","replacement","void"]},"parent_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"The claim a void transaction voids."},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made the claim; null for a claim made in the dashboard."},"file":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"interchange_control_number":{"type":["string","null"]},"group_control_number":{"type":["string","null"]},"transaction_control_number":{"type":["string","null"]}},"required":["name","interchange_control_number","group_control_number","transaction_control_number"]},{"type":"null"}],"description":"The file that caused the event, with its control numbers."},"status":{"anyOf":[{"type":"object","properties":{"category":{"type":["string","null"]},"code":{"type":["string","null"]}},"required":["category","code"]},{"type":"null"}],"description":"The status category and code that caused the event."},"payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the remittance (ERA) and its amounts.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"status_code":{"type":"string","description":"The payer's claim status in the remittance (CLP02), such as 1 (processed as primary), 4 (denied) or 22 (a reversal)."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer paid, in dollars (negative for a reversal)."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount the payer allowed, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes, as the payer says."}},"required":["era_id","status_code","paid","allowed","patient_responsibility"]},"claim_payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the claim's own figures after this payment (null when nothing stands), as GET /claims/{id} shows them.","anyOf":[{"type":"object","properties":{"outcome":{"type":"string","enum":["paid","denied"],"description":"Whether the claim stands paid or denied after this payment."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer has paid on the claim in all."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount allowed by the claim's current payment, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes in all."}},"required":["outcome","paid","allowed","patient_responsibility"]},{"type":"null"}]},"estimate":{"description":"For predetermination.returned: the ERA that carried the estimate, and its amounts. Never a payment.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"What the payer would allow, when it said."},"pay":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer would pay once the treatment is done."},"patient":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"The patient's estimated share."}},"required":["era_id","allowed","pay","patient"]},"created_at":{"type":"string","format":"date-time"},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","office_id","payer","state","previous_state","frequency","parent_id","request_id","file","status","created_at","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"claim.accepted"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},"object":{"type":"string","const":"claim"},"office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"payer":{"$ref":"#/components/schemas/PayerLabel"},"kind":{"description":"claim or predetermination.","type":"string","enum":["claim","predetermination"]},"state":{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},"previous_state":{"anyOf":[{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},{"type":"null"}],"description":"The state the claim was in before; null when the event did not change it."},"frequency":{"type":"string","enum":["original","replacement","void"]},"parent_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"The claim a void transaction voids."},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made the claim; null for a claim made in the dashboard."},"file":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"interchange_control_number":{"type":["string","null"]},"group_control_number":{"type":["string","null"]},"transaction_control_number":{"type":["string","null"]}},"required":["name","interchange_control_number","group_control_number","transaction_control_number"]},{"type":"null"}],"description":"The file that caused the event, with its control numbers."},"status":{"anyOf":[{"type":"object","properties":{"category":{"type":["string","null"]},"code":{"type":["string","null"]}},"required":["category","code"]},{"type":"null"}],"description":"The status category and code that caused the event."},"payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the remittance (ERA) and its amounts.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"status_code":{"type":"string","description":"The payer's claim status in the remittance (CLP02), such as 1 (processed as primary), 4 (denied) or 22 (a reversal)."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer paid, in dollars (negative for a reversal)."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount the payer allowed, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes, as the payer says."}},"required":["era_id","status_code","paid","allowed","patient_responsibility"]},"claim_payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the claim's own figures after this payment (null when nothing stands), as GET /claims/{id} shows them.","anyOf":[{"type":"object","properties":{"outcome":{"type":"string","enum":["paid","denied"],"description":"Whether the claim stands paid or denied after this payment."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer has paid on the claim in all."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount allowed by the claim's current payment, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes in all."}},"required":["outcome","paid","allowed","patient_responsibility"]},{"type":"null"}]},"estimate":{"description":"For predetermination.returned: the ERA that carried the estimate, and its amounts. Never a payment.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"What the payer would allow, when it said."},"pay":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer would pay once the treatment is done."},"patient":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"The patient's estimated share."}},"required":["era_id","allowed","pay","patient"]},"created_at":{"type":"string","format":"date-time"},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","office_id","payer","state","previous_state","frequency","parent_id","request_id","file","status","created_at","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"claim.rejected"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},"object":{"type":"string","const":"claim"},"office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"payer":{"$ref":"#/components/schemas/PayerLabel"},"kind":{"description":"claim or predetermination.","type":"string","enum":["claim","predetermination"]},"state":{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},"previous_state":{"anyOf":[{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},{"type":"null"}],"description":"The state the claim was in before; null when the event did not change it."},"frequency":{"type":"string","enum":["original","replacement","void"]},"parent_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"The claim a void transaction voids."},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made the claim; null for a claim made in the dashboard."},"file":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"interchange_control_number":{"type":["string","null"]},"group_control_number":{"type":["string","null"]},"transaction_control_number":{"type":["string","null"]}},"required":["name","interchange_control_number","group_control_number","transaction_control_number"]},{"type":"null"}],"description":"The file that caused the event, with its control numbers."},"status":{"anyOf":[{"type":"object","properties":{"category":{"type":["string","null"]},"code":{"type":["string","null"]}},"required":["category","code"]},{"type":"null"}],"description":"The status category and code that caused the event."},"payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the remittance (ERA) and its amounts.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"status_code":{"type":"string","description":"The payer's claim status in the remittance (CLP02), such as 1 (processed as primary), 4 (denied) or 22 (a reversal)."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer paid, in dollars (negative for a reversal)."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount the payer allowed, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes, as the payer says."}},"required":["era_id","status_code","paid","allowed","patient_responsibility"]},"claim_payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the claim's own figures after this payment (null when nothing stands), as GET /claims/{id} shows them.","anyOf":[{"type":"object","properties":{"outcome":{"type":"string","enum":["paid","denied"],"description":"Whether the claim stands paid or denied after this payment."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer has paid on the claim in all."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount allowed by the claim's current payment, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes in all."}},"required":["outcome","paid","allowed","patient_responsibility"]},{"type":"null"}]},"estimate":{"description":"For predetermination.returned: the ERA that carried the estimate, and its amounts. Never a payment.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"What the payer would allow, when it said."},"pay":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer would pay once the treatment is done."},"patient":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"The patient's estimated share."}},"required":["era_id","allowed","pay","patient"]},"created_at":{"type":"string","format":"date-time"},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","office_id","payer","state","previous_state","frequency","parent_id","request_id","file","status","created_at","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"claim.status_updated"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},"object":{"type":"string","const":"claim"},"office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"payer":{"$ref":"#/components/schemas/PayerLabel"},"kind":{"description":"claim or predetermination.","type":"string","enum":["claim","predetermination"]},"state":{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},"previous_state":{"anyOf":[{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},{"type":"null"}],"description":"The state the claim was in before; null when the event did not change it."},"frequency":{"type":"string","enum":["original","replacement","void"]},"parent_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"The claim a void transaction voids."},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made the claim; null for a claim made in the dashboard."},"file":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"interchange_control_number":{"type":["string","null"]},"group_control_number":{"type":["string","null"]},"transaction_control_number":{"type":["string","null"]}},"required":["name","interchange_control_number","group_control_number","transaction_control_number"]},{"type":"null"}],"description":"The file that caused the event, with its control numbers."},"status":{"anyOf":[{"type":"object","properties":{"category":{"type":["string","null"]},"code":{"type":["string","null"]}},"required":["category","code"]},{"type":"null"}],"description":"The status category and code that caused the event."},"payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the remittance (ERA) and its amounts.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"status_code":{"type":"string","description":"The payer's claim status in the remittance (CLP02), such as 1 (processed as primary), 4 (denied) or 22 (a reversal)."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer paid, in dollars (negative for a reversal)."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount the payer allowed, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes, as the payer says."}},"required":["era_id","status_code","paid","allowed","patient_responsibility"]},"claim_payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the claim's own figures after this payment (null when nothing stands), as GET /claims/{id} shows them.","anyOf":[{"type":"object","properties":{"outcome":{"type":"string","enum":["paid","denied"],"description":"Whether the claim stands paid or denied after this payment."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer has paid on the claim in all."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount allowed by the claim's current payment, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes in all."}},"required":["outcome","paid","allowed","patient_responsibility"]},{"type":"null"}]},"estimate":{"description":"For predetermination.returned: the ERA that carried the estimate, and its amounts. Never a payment.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"What the payer would allow, when it said."},"pay":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer would pay once the treatment is done."},"patient":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"The patient's estimated share."}},"required":["era_id","allowed","pay","patient"]},"created_at":{"type":"string","format":"date-time"},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","office_id","payer","state","previous_state","frequency","parent_id","request_id","file","status","created_at","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"claim.voided"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},"object":{"type":"string","const":"claim"},"office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"payer":{"$ref":"#/components/schemas/PayerLabel"},"kind":{"description":"claim or predetermination.","type":"string","enum":["claim","predetermination"]},"state":{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},"previous_state":{"anyOf":[{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},{"type":"null"}],"description":"The state the claim was in before; null when the event did not change it."},"frequency":{"type":"string","enum":["original","replacement","void"]},"parent_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"The claim a void transaction voids."},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made the claim; null for a claim made in the dashboard."},"file":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"interchange_control_number":{"type":["string","null"]},"group_control_number":{"type":["string","null"]},"transaction_control_number":{"type":["string","null"]}},"required":["name","interchange_control_number","group_control_number","transaction_control_number"]},{"type":"null"}],"description":"The file that caused the event, with its control numbers."},"status":{"anyOf":[{"type":"object","properties":{"category":{"type":["string","null"]},"code":{"type":["string","null"]}},"required":["category","code"]},{"type":"null"}],"description":"The status category and code that caused the event."},"payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the remittance (ERA) and its amounts.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"status_code":{"type":"string","description":"The payer's claim status in the remittance (CLP02), such as 1 (processed as primary), 4 (denied) or 22 (a reversal)."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer paid, in dollars (negative for a reversal)."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount the payer allowed, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes, as the payer says."}},"required":["era_id","status_code","paid","allowed","patient_responsibility"]},"claim_payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the claim's own figures after this payment (null when nothing stands), as GET /claims/{id} shows them.","anyOf":[{"type":"object","properties":{"outcome":{"type":"string","enum":["paid","denied"],"description":"Whether the claim stands paid or denied after this payment."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer has paid on the claim in all."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount allowed by the claim's current payment, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes in all."}},"required":["outcome","paid","allowed","patient_responsibility"]},{"type":"null"}]},"estimate":{"description":"For predetermination.returned: the ERA that carried the estimate, and its amounts. Never a payment.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"What the payer would allow, when it said."},"pay":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer would pay once the treatment is done."},"patient":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"The patient's estimated share."}},"required":["era_id","allowed","pay","patient"]},"created_at":{"type":"string","format":"date-time"},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","office_id","payer","state","previous_state","frequency","parent_id","request_id","file","status","created_at","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"batch.acknowledged"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^fil_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with fil_."},"object":{"type":"string","const":"batch"},"name":{"type":"string","description":"The file name (YYYYMMDDHHMMSSmmm.837)."},"result":{"type":"string","enum":["accepted","rejected"],"description":"accepted: its claims are accepted by the clearinghouse. rejected: its claims are back in the queue for the next batch."},"claim_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"interchange_control_number":{"type":["string","null"]},"group_control_number":{"type":["string","null"]},"transaction_control_number":{"type":["string","null"]},"acknowledgement":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"],"description":"The 997 file that answered."},"created_at":{"type":"string","format":"date-time"},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","name","result","claim_count","interchange_control_number","group_control_number","transaction_control_number","acknowledgement","created_at","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"attachment.completed"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^att_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with att_."},"object":{"type":"string","const":"attachment"},"office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"claim_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"The claim the attachment was made for; null when it was made for none."},"payer":{"$ref":"#/components/schemas/PayerLabel"},"kind":{"type":"string","enum":["unsolicited","solicited"]},"state":{"type":"string","enum":["open","closed"]},"attachment_number":{"description":"The number the attachment network gave it.","type":["string","null"]},"payer_request_id":{"anyOf":[{"type":"string","pattern":"^prq_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with prq_."},{"type":"null"}],"description":"The payer request a solicited attachment answers."},"document_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made the attachment; null for one made in the dashboard."},"created_at":{"type":"string","format":"date-time"},"closed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","office_id","claim_id","payer","kind","state","attachment_number","payer_request_id","document_count","request_id","created_at","closed_at","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"payer_request.received"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^prq_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with prq_."},"object":{"type":"string","const":"payer_request"},"claim_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}]},"payer":{"$ref":"#/components/schemas/PayerLabel"},"reference_number":{"type":"string","description":"The payer's own reference number for the request."},"state":{"type":"string","enum":["open","answered"]},"source":{"type":"string","enum":["network","staff"]},"due_date":{"description":"The date the payer wants the answer by (YYYY-MM-DD), when it said.","type":["string","null"]},"created_at":{"type":"string","format":"date-time"},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","claim_id","payer","reference_number","state","source","due_date","created_at","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"era.received"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"object":{"type":"string","const":"era"},"state":{"type":"string","enum":["needs_review","posted"]},"payer":{"anyOf":[{"$ref":"#/components/schemas/PayerLabel"},{"type":"null"}],"description":"The payer in the directory, when the remittance names one we know; null otherwise (read the ERA for the name as sent)."},"payment":{"type":"object","properties":{"method":{"type":"string","description":"ACH (an electronic transfer), CHK (a check), NON (no payment) or another code as sent."},"trace_number":{"type":"string","description":"The EFT trace or check number: matches the deposit in your bank account."},"date":{"description":"The payment date (YYYY-MM-DD).","type":["string","null"]},"total":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"The amount paid, in dollars."}},"required":["method","trace_number","date","total"]},"balanced":{"type":"boolean","description":"Whether the remittance adds up: false flags it for review."},"claim_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"matched_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unmatched_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"received_at":{"type":"string","format":"date-time"},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","state","payer","payment","balanced","claim_count","matched_count","unmatched_count","received_at","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"claim.paid"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},"object":{"type":"string","const":"claim"},"office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"payer":{"$ref":"#/components/schemas/PayerLabel"},"kind":{"description":"claim or predetermination.","type":"string","enum":["claim","predetermination"]},"state":{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},"previous_state":{"anyOf":[{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},{"type":"null"}],"description":"The state the claim was in before; null when the event did not change it."},"frequency":{"type":"string","enum":["original","replacement","void"]},"parent_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"The claim a void transaction voids."},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made the claim; null for a claim made in the dashboard."},"file":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"interchange_control_number":{"type":["string","null"]},"group_control_number":{"type":["string","null"]},"transaction_control_number":{"type":["string","null"]}},"required":["name","interchange_control_number","group_control_number","transaction_control_number"]},{"type":"null"}],"description":"The file that caused the event, with its control numbers."},"status":{"anyOf":[{"type":"object","properties":{"category":{"type":["string","null"]},"code":{"type":["string","null"]}},"required":["category","code"]},{"type":"null"}],"description":"The status category and code that caused the event."},"payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the remittance (ERA) and its amounts.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"status_code":{"type":"string","description":"The payer's claim status in the remittance (CLP02), such as 1 (processed as primary), 4 (denied) or 22 (a reversal)."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer paid, in dollars (negative for a reversal)."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount the payer allowed, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes, as the payer says."}},"required":["era_id","status_code","paid","allowed","patient_responsibility"]},"claim_payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the claim's own figures after this payment (null when nothing stands), as GET /claims/{id} shows them.","anyOf":[{"type":"object","properties":{"outcome":{"type":"string","enum":["paid","denied"],"description":"Whether the claim stands paid or denied after this payment."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer has paid on the claim in all."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount allowed by the claim's current payment, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes in all."}},"required":["outcome","paid","allowed","patient_responsibility"]},{"type":"null"}]},"estimate":{"description":"For predetermination.returned: the ERA that carried the estimate, and its amounts. Never a payment.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"What the payer would allow, when it said."},"pay":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer would pay once the treatment is done."},"patient":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"The patient's estimated share."}},"required":["era_id","allowed","pay","patient"]},"created_at":{"type":"string","format":"date-time"},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","office_id","payer","state","previous_state","frequency","parent_id","request_id","file","status","created_at","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"claim.denied"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},"object":{"type":"string","const":"claim"},"office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"payer":{"$ref":"#/components/schemas/PayerLabel"},"kind":{"description":"claim or predetermination.","type":"string","enum":["claim","predetermination"]},"state":{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},"previous_state":{"anyOf":[{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},{"type":"null"}],"description":"The state the claim was in before; null when the event did not change it."},"frequency":{"type":"string","enum":["original","replacement","void"]},"parent_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"The claim a void transaction voids."},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made the claim; null for a claim made in the dashboard."},"file":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"interchange_control_number":{"type":["string","null"]},"group_control_number":{"type":["string","null"]},"transaction_control_number":{"type":["string","null"]}},"required":["name","interchange_control_number","group_control_number","transaction_control_number"]},{"type":"null"}],"description":"The file that caused the event, with its control numbers."},"status":{"anyOf":[{"type":"object","properties":{"category":{"type":["string","null"]},"code":{"type":["string","null"]}},"required":["category","code"]},{"type":"null"}],"description":"The status category and code that caused the event."},"payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the remittance (ERA) and its amounts.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"status_code":{"type":"string","description":"The payer's claim status in the remittance (CLP02), such as 1 (processed as primary), 4 (denied) or 22 (a reversal)."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer paid, in dollars (negative for a reversal)."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount the payer allowed, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes, as the payer says."}},"required":["era_id","status_code","paid","allowed","patient_responsibility"]},"claim_payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the claim's own figures after this payment (null when nothing stands), as GET /claims/{id} shows them.","anyOf":[{"type":"object","properties":{"outcome":{"type":"string","enum":["paid","denied"],"description":"Whether the claim stands paid or denied after this payment."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer has paid on the claim in all."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount allowed by the claim's current payment, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes in all."}},"required":["outcome","paid","allowed","patient_responsibility"]},{"type":"null"}]},"estimate":{"description":"For predetermination.returned: the ERA that carried the estimate, and its amounts. Never a payment.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"What the payer would allow, when it said."},"pay":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer would pay once the treatment is done."},"patient":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"The patient's estimated share."}},"required":["era_id","allowed","pay","patient"]},"created_at":{"type":"string","format":"date-time"},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","office_id","payer","state","previous_state","frequency","parent_id","request_id","file","status","created_at","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"claim.payment_reversed"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},"object":{"type":"string","const":"claim"},"office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"payer":{"$ref":"#/components/schemas/PayerLabel"},"kind":{"description":"claim or predetermination.","type":"string","enum":["claim","predetermination"]},"state":{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},"previous_state":{"anyOf":[{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},{"type":"null"}],"description":"The state the claim was in before; null when the event did not change it."},"frequency":{"type":"string","enum":["original","replacement","void"]},"parent_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"The claim a void transaction voids."},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made the claim; null for a claim made in the dashboard."},"file":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"interchange_control_number":{"type":["string","null"]},"group_control_number":{"type":["string","null"]},"transaction_control_number":{"type":["string","null"]}},"required":["name","interchange_control_number","group_control_number","transaction_control_number"]},{"type":"null"}],"description":"The file that caused the event, with its control numbers."},"status":{"anyOf":[{"type":"object","properties":{"category":{"type":["string","null"]},"code":{"type":["string","null"]}},"required":["category","code"]},{"type":"null"}],"description":"The status category and code that caused the event."},"payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the remittance (ERA) and its amounts.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"status_code":{"type":"string","description":"The payer's claim status in the remittance (CLP02), such as 1 (processed as primary), 4 (denied) or 22 (a reversal)."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer paid, in dollars (negative for a reversal)."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount the payer allowed, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes, as the payer says."}},"required":["era_id","status_code","paid","allowed","patient_responsibility"]},"claim_payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the claim's own figures after this payment (null when nothing stands), as GET /claims/{id} shows them.","anyOf":[{"type":"object","properties":{"outcome":{"type":"string","enum":["paid","denied"],"description":"Whether the claim stands paid or denied after this payment."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer has paid on the claim in all."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount allowed by the claim's current payment, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes in all."}},"required":["outcome","paid","allowed","patient_responsibility"]},{"type":"null"}]},"estimate":{"description":"For predetermination.returned: the ERA that carried the estimate, and its amounts. Never a payment.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"What the payer would allow, when it said."},"pay":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer would pay once the treatment is done."},"patient":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"The patient's estimated share."}},"required":["era_id","allowed","pay","patient"]},"created_at":{"type":"string","format":"date-time"},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","office_id","payer","state","previous_state","frequency","parent_id","request_id","file","status","created_at","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"predetermination.returned"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},"object":{"type":"string","const":"claim"},"office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"payer":{"$ref":"#/components/schemas/PayerLabel"},"kind":{"description":"claim or predetermination.","type":"string","enum":["claim","predetermination"]},"state":{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},"previous_state":{"anyOf":[{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},{"type":"null"}],"description":"The state the claim was in before; null when the event did not change it."},"frequency":{"type":"string","enum":["original","replacement","void"]},"parent_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"The claim a void transaction voids."},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made the claim; null for a claim made in the dashboard."},"file":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"interchange_control_number":{"type":["string","null"]},"group_control_number":{"type":["string","null"]},"transaction_control_number":{"type":["string","null"]}},"required":["name","interchange_control_number","group_control_number","transaction_control_number"]},{"type":"null"}],"description":"The file that caused the event, with its control numbers."},"status":{"anyOf":[{"type":"object","properties":{"category":{"type":["string","null"]},"code":{"type":["string","null"]}},"required":["category","code"]},{"type":"null"}],"description":"The status category and code that caused the event."},"payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the remittance (ERA) and its amounts.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"status_code":{"type":"string","description":"The payer's claim status in the remittance (CLP02), such as 1 (processed as primary), 4 (denied) or 22 (a reversal)."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer paid, in dollars (negative for a reversal)."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount the payer allowed, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes, as the payer says."}},"required":["era_id","status_code","paid","allowed","patient_responsibility"]},"claim_payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the claim's own figures after this payment (null when nothing stands), as GET /claims/{id} shows them.","anyOf":[{"type":"object","properties":{"outcome":{"type":"string","enum":["paid","denied"],"description":"Whether the claim stands paid or denied after this payment."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer has paid on the claim in all."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount allowed by the claim's current payment, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes in all."}},"required":["outcome","paid","allowed","patient_responsibility"]},{"type":"null"}]},"estimate":{"description":"For predetermination.returned: the ERA that carried the estimate, and its amounts. Never a payment.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"What the payer would allow, when it said."},"pay":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer would pay once the treatment is done."},"patient":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"The patient's estimated share."}},"required":["era_id","allowed","pay","patient"]},"created_at":{"type":"string","format":"date-time"},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","office_id","payer","state","previous_state","frequency","parent_id","request_id","file","status","created_at","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"sftp.file_received"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^sftp_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with sftp_."},"object":{"type":"string","const":"sftp_account"},"file_name":{"type":"string","description":"The name of the file as it was dropped in IN or TEST/IN."},"mode":{"type":"string","enum":["test","live"],"description":"test for TEST/IN, live for IN."},"claims_created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The claims the file made or applied (queued, needing attention, replaced or voided)."},"claims_refused":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The claims of the file that were refused, each with its reason in the 277 and the report."},"responses":{"type":"array","items":{"type":"string"},"description":"The names of the files written to OUT or TEST/OUT for it."},"reason":{"anyOf":[{"type":"string","enum":["too_large","too_many_claims","not_837d","wrong_usage"]},{"type":"null"}],"description":"Why the file was refused whole; null when it was read."},"taken_at":{"type":"string","format":"date-time"},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","file_name","mode","claims_created","claims_refused","responses","reason","taken_at","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"sftp.file_refused"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^sftp_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with sftp_."},"object":{"type":"string","const":"sftp_account"},"file_name":{"type":"string","description":"The name of the file as it was dropped in IN or TEST/IN."},"mode":{"type":"string","enum":["test","live"],"description":"test for TEST/IN, live for IN."},"claims_created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The claims the file made or applied (queued, needing attention, replaced or voided)."},"claims_refused":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The claims of the file that were refused, each with its reason in the 277 and the report."},"responses":{"type":"array","items":{"type":"string"},"description":"The names of the files written to OUT or TEST/OUT for it."},"reason":{"anyOf":[{"type":"string","enum":["too_large","too_many_claims","not_837d","wrong_usage"]},{"type":"null"}],"description":"Why the file was refused whole; null when it was read."},"taken_at":{"type":"string","format":"date-time"},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","file_name","mode","claims_created","claims_refused","responses","reason","taken_at","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"eligibility.batch.completed"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^elb_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with elb_."},"object":{"type":"string","const":"eligibility_batch"},"state":{"type":"string","enum":["completed","cancelled"],"description":"completed: every check ran. cancelled: the batch was cancelled; the checks not yet run were skipped."},"source":{"type":"string","enum":["patients","api"],"description":"patients: started from the Patients list in the dashboard. api: started with POST /eligibility/batches."},"counts":{"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"completed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Checks that were made and answered."},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Checks that were rejected, could not be made, or ended in an error."},"skipped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Checks that were not made (the batch was cancelled)."},"queued":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Checks still to run, including the one running."}},"required":["total","completed","failed","skipped","queued"]},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made the batch; null for one made in the dashboard."},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time"}},"required":["id","object","state","source","counts","request_id","created_at","completed_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"office.attachment_registration.updated"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"object":{"type":"string","const":"office"},"attachment_network":{"type":"object","properties":{"state":{"type":"string","enum":["not_registered","pending","registered","failed"],"description":"not_registered until the office is registered (POST /offices/{id}/register_attachments, or closing its first attachment). pending: the network has the request, or could not be reached and Claim House tries again on its own (for up to a day). registered: it has its facility ID. failed: see failure."},"details":{"anyOf":[{"type":"string","enum":["in_sync","updating","update_failed","needs_manual_update"]},{"type":"null"}],"description":"For a registered office, whether the network has its current details after an edit of a registered field: in_sync; updating (being told, tried again); update_failed; needs_manual_update (the network takes no update: Claim House staff tell it). Null unless registered. Attachments are never blocked by it."},"facility_id":{"description":"The facility ID the attachment network gave the office.","type":["string","null"]},"registered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","enum":["invalid_fields","duplicate_facility","refused","network_unavailable"],"description":"invalid_fields: the network named office fields to fix (fields). duplicate_facility: the network has this office already. refused: any other refusal, in the network's words. network_unavailable: the network could not be reached for a day of tries."},"message":{"type":"string","description":"Why, in words."},"fields":{"type":"array","items":{"type":"string"},"description":"The office fields to fix (their names in this API), when the network named them; else empty."}},"required":["code","message","fields"],"description":"Why the registration failed; null unless state is failed. Fix what it says, then register the office again."},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the state, the details or the failure last changed; null while never registered."}},"required":["state","details","facility_id","registered_at","failure","updated_at"],"description":"The office's registration with the attachment network, which it needs before its first attachment is sent. Each change sends office.attachment_registration.updated."},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","attachment_network","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"statement.paid"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^stm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with stm_."},"object":{"type":"string","const":"statement"},"number":{"type":"string"},"amount_due":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the statement owes, in dollars."},"amount_paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What has been paid against it, in dollars (voided payments left out)."},"balance":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What is still owed, in dollars."},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","number","amount_due","amount_paid","balance","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"enrollment.updated"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^enr_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with enr_."},"object":{"type":"string","const":"enrollment"},"provider_id":{"anyOf":[{"type":"string","pattern":"^prv_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with prv_."},{"type":"null"}],"description":"The provider it is for; null for an office enrollment."},"provider_name":{"type":["string","null"]},"office_id":{"anyOf":[{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},{"type":"null"}],"description":"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":{"type":["string","null"]},"npi":{"type":"string","description":"The NPI it is for: the office's billing NPI when it was started, or the provider's."},"tax_id":{"description":"The office's tax ID when it was started; null for a provider enrollment.","type":["string","null"]},"payer_id":{"type":"string","pattern":"^pyr_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with pyr_."},"payer_name":{"type":"string"},"type":{"type":"string","enum":["claims","era","era_eft"]},"method":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"The payer directory's enrollment code when the enrollment was started (S, O, W, F, I or U, with * or L)."},"label":{"type":"string"},"instructions":{"type":"string","description":"What has to be done, in plain words."}},"required":["code","label","instructions"]},{"type":"null"}],"description":"How the payer enrolls a provider, from the payer directory; null when the payer needs no enrollment for this (it started active)."},"status":{"type":"string","enum":["not_started","awaiting_signature","provider_action","submitted","active","denied","withdrawn"]},"next_step":{"type":"string","description":"What someone has to do now, in plain words."},"sent_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"expected_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"note":{"type":"string"},"mode":{"type":"string","enum":["test","live"]},"activated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When it last became active; null while it is not."},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","provider_id","provider_name","office_id","office_name","npi","tax_id","payer_id","payer_name","type","method","status","next_step","sent_on","expected_on","note","mode","activated_at","created_at","updated_at","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]}]}},"next_cursor":{"description":"Pass as cursor to get the next page; null when there is no next page.","type":["string","null"]}},"required":["data","next_cursor"]},"examples":{"completed_checks":{"summary":"Eligibility checks that finished","value":{"data":[{"id":"evt_01JM000000E008000000000020","object":"event","type":"eligibility.completed","sequence":1,"created_at":"2026-03-10T15:30:00.430000+00:00","data":{"id":"elg_01JM000000E00800000000000G","object":"eligibility_check","office_id":"off_01JM000000E008000000000003","payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"state":"completed","outcome":"answered","status":"active","billing":{"charged":false,"state":"not_billable","reason":"test_mode","label":"Not billed: test mode"},"cache":{"state":"fresh","source_id":null},"parent_id":null,"request_id":"req_01JM000000E008000000000010","tenant_reference":"visit-1042","created_at":"2026-03-10T15:30:00.250000+00:00","completed_at":"2026-03-10T15:30:00.430000+00:00"}}],"next_cursor":null}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/events/{id}":{"get":{"operationId":"getEvent","summary":"Get an event","description":"One event of the key's organization and mode. An event of another organization or of the other mode is not found.","tags":["Events"],"x-permission":"read","parameters":[{"name":"id","in":"path","required":true,"description":"An event ID (evt_...).","schema":{"type":"string"},"example":"evt_01JM000000E008000000000020"}],"responses":{"200":{"description":"The event.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"eligibility.completed"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^elg_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with elg_."},"object":{"type":"string","const":"eligibility_check"},"office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"payer":{"$ref":"#/components/schemas/PayerLabel"},"state":{"type":"string","enum":["pending","completed"]},"outcome":{"anyOf":[{"type":"string","enum":["answered","rejected","payer_unavailable","error"]},{"type":"null"}],"description":"How the check ended; null while pending."},"status":{"anyOf":[{"type":"string","enum":["active","inactive","unknown"]},{"type":"null"}],"description":"The coverage status: active, inactive or unknown; null when there is no answer."},"billing":{"anyOf":[{"$ref":"#/components/schemas/Billing"},{"type":"null"}],"description":"Null while the check is pending: it has no usage record yet."},"cache":{"type":"object","properties":{"state":{"type":"string","enum":["fresh","hit"]},"source_id":{"anyOf":[{"type":"string","pattern":"^elg_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with elg_."},{"type":"null"}]}},"required":["state","source_id"]},"parent_id":{"anyOf":[{"type":"string","pattern":"^elg_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with elg_."},{"type":"null"}],"description":"The rejected check this one corrects."},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made the check (the x-request-id of its response); null for a check made in the dashboard."},"tenant_reference":{"description":"Your own reference, sent with the check.","type":["string","null"]},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time"}},"required":["id","object","office_id","payer","state","outcome","status","billing","cache","parent_id","request_id","tenant_reference","created_at","completed_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"api_key.created"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^key_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with key_."},"object":{"type":"string","const":"api_key"},"name":{"type":"string"},"mode":{"type":"string","enum":["test","live"]},"permissions":{"type":"array","items":{"type":"string","enum":["read","submit"]}},"organization":{"type":"object","properties":{"id":{"type":"string","pattern":"^org_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with org_."},"object":{"type":"string","const":"organization"},"name":{"type":"string"}},"required":["id","object","name"]}},"required":["id","object","name","mode","permissions","organization"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"api_key.revoked"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^key_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with key_."},"object":{"type":"string","const":"api_key"},"name":{"type":"string"},"mode":{"type":"string","enum":["test","live"]},"permissions":{"type":"array","items":{"type":"string","enum":["read","submit"]}},"organization":{"type":"object","properties":{"id":{"type":"string","pattern":"^org_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with org_."},"object":{"type":"string","const":"organization"},"name":{"type":"string"}},"required":["id","object","name"]}},"required":["id","object","name","mode","permissions","organization"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"claim.validated"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},"object":{"type":"string","const":"claim"},"office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"payer":{"$ref":"#/components/schemas/PayerLabel"},"kind":{"description":"claim or predetermination.","type":"string","enum":["claim","predetermination"]},"state":{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},"previous_state":{"anyOf":[{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},{"type":"null"}],"description":"The state the claim was in before; null when the event did not change it."},"frequency":{"type":"string","enum":["original","replacement","void"]},"parent_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"The claim a void transaction voids."},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made the claim; null for a claim made in the dashboard."},"file":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"interchange_control_number":{"type":["string","null"]},"group_control_number":{"type":["string","null"]},"transaction_control_number":{"type":["string","null"]}},"required":["name","interchange_control_number","group_control_number","transaction_control_number"]},{"type":"null"}],"description":"The file that caused the event, with its control numbers."},"status":{"anyOf":[{"type":"object","properties":{"category":{"type":["string","null"]},"code":{"type":["string","null"]}},"required":["category","code"]},{"type":"null"}],"description":"The status category and code that caused the event."},"payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the remittance (ERA) and its amounts.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"status_code":{"type":"string","description":"The payer's claim status in the remittance (CLP02), such as 1 (processed as primary), 4 (denied) or 22 (a reversal)."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer paid, in dollars (negative for a reversal)."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount the payer allowed, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes, as the payer says."}},"required":["era_id","status_code","paid","allowed","patient_responsibility"]},"claim_payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the claim's own figures after this payment (null when nothing stands), as GET /claims/{id} shows them.","anyOf":[{"type":"object","properties":{"outcome":{"type":"string","enum":["paid","denied"],"description":"Whether the claim stands paid or denied after this payment."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer has paid on the claim in all."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount allowed by the claim's current payment, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes in all."}},"required":["outcome","paid","allowed","patient_responsibility"]},{"type":"null"}]},"estimate":{"description":"For predetermination.returned: the ERA that carried the estimate, and its amounts. Never a payment.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"What the payer would allow, when it said."},"pay":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer would pay once the treatment is done."},"patient":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"The patient's estimated share."}},"required":["era_id","allowed","pay","patient"]},"created_at":{"type":"string","format":"date-time"},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","office_id","payer","state","previous_state","frequency","parent_id","request_id","file","status","created_at","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"claim.needs_attention"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},"object":{"type":"string","const":"claim"},"office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"payer":{"$ref":"#/components/schemas/PayerLabel"},"kind":{"description":"claim or predetermination.","type":"string","enum":["claim","predetermination"]},"state":{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},"previous_state":{"anyOf":[{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},{"type":"null"}],"description":"The state the claim was in before; null when the event did not change it."},"frequency":{"type":"string","enum":["original","replacement","void"]},"parent_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"The claim a void transaction voids."},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made the claim; null for a claim made in the dashboard."},"file":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"interchange_control_number":{"type":["string","null"]},"group_control_number":{"type":["string","null"]},"transaction_control_number":{"type":["string","null"]}},"required":["name","interchange_control_number","group_control_number","transaction_control_number"]},{"type":"null"}],"description":"The file that caused the event, with its control numbers."},"status":{"anyOf":[{"type":"object","properties":{"category":{"type":["string","null"]},"code":{"type":["string","null"]}},"required":["category","code"]},{"type":"null"}],"description":"The status category and code that caused the event."},"payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the remittance (ERA) and its amounts.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"status_code":{"type":"string","description":"The payer's claim status in the remittance (CLP02), such as 1 (processed as primary), 4 (denied) or 22 (a reversal)."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer paid, in dollars (negative for a reversal)."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount the payer allowed, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes, as the payer says."}},"required":["era_id","status_code","paid","allowed","patient_responsibility"]},"claim_payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the claim's own figures after this payment (null when nothing stands), as GET /claims/{id} shows them.","anyOf":[{"type":"object","properties":{"outcome":{"type":"string","enum":["paid","denied"],"description":"Whether the claim stands paid or denied after this payment."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer has paid on the claim in all."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount allowed by the claim's current payment, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes in all."}},"required":["outcome","paid","allowed","patient_responsibility"]},{"type":"null"}]},"estimate":{"description":"For predetermination.returned: the ERA that carried the estimate, and its amounts. Never a payment.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"What the payer would allow, when it said."},"pay":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer would pay once the treatment is done."},"patient":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"The patient's estimated share."}},"required":["era_id","allowed","pay","patient"]},"created_at":{"type":"string","format":"date-time"},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","office_id","payer","state","previous_state","frequency","parent_id","request_id","file","status","created_at","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"claim.queued"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},"object":{"type":"string","const":"claim"},"office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"payer":{"$ref":"#/components/schemas/PayerLabel"},"kind":{"description":"claim or predetermination.","type":"string","enum":["claim","predetermination"]},"state":{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},"previous_state":{"anyOf":[{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},{"type":"null"}],"description":"The state the claim was in before; null when the event did not change it."},"frequency":{"type":"string","enum":["original","replacement","void"]},"parent_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"The claim a void transaction voids."},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made the claim; null for a claim made in the dashboard."},"file":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"interchange_control_number":{"type":["string","null"]},"group_control_number":{"type":["string","null"]},"transaction_control_number":{"type":["string","null"]}},"required":["name","interchange_control_number","group_control_number","transaction_control_number"]},{"type":"null"}],"description":"The file that caused the event, with its control numbers."},"status":{"anyOf":[{"type":"object","properties":{"category":{"type":["string","null"]},"code":{"type":["string","null"]}},"required":["category","code"]},{"type":"null"}],"description":"The status category and code that caused the event."},"payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the remittance (ERA) and its amounts.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"status_code":{"type":"string","description":"The payer's claim status in the remittance (CLP02), such as 1 (processed as primary), 4 (denied) or 22 (a reversal)."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer paid, in dollars (negative for a reversal)."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount the payer allowed, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes, as the payer says."}},"required":["era_id","status_code","paid","allowed","patient_responsibility"]},"claim_payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the claim's own figures after this payment (null when nothing stands), as GET /claims/{id} shows them.","anyOf":[{"type":"object","properties":{"outcome":{"type":"string","enum":["paid","denied"],"description":"Whether the claim stands paid or denied after this payment."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer has paid on the claim in all."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount allowed by the claim's current payment, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes in all."}},"required":["outcome","paid","allowed","patient_responsibility"]},{"type":"null"}]},"estimate":{"description":"For predetermination.returned: the ERA that carried the estimate, and its amounts. Never a payment.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"What the payer would allow, when it said."},"pay":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer would pay once the treatment is done."},"patient":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"The patient's estimated share."}},"required":["era_id","allowed","pay","patient"]},"created_at":{"type":"string","format":"date-time"},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","office_id","payer","state","previous_state","frequency","parent_id","request_id","file","status","created_at","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"claim.submitted"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},"object":{"type":"string","const":"claim"},"office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"payer":{"$ref":"#/components/schemas/PayerLabel"},"kind":{"description":"claim or predetermination.","type":"string","enum":["claim","predetermination"]},"state":{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},"previous_state":{"anyOf":[{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},{"type":"null"}],"description":"The state the claim was in before; null when the event did not change it."},"frequency":{"type":"string","enum":["original","replacement","void"]},"parent_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"The claim a void transaction voids."},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made the claim; null for a claim made in the dashboard."},"file":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"interchange_control_number":{"type":["string","null"]},"group_control_number":{"type":["string","null"]},"transaction_control_number":{"type":["string","null"]}},"required":["name","interchange_control_number","group_control_number","transaction_control_number"]},{"type":"null"}],"description":"The file that caused the event, with its control numbers."},"status":{"anyOf":[{"type":"object","properties":{"category":{"type":["string","null"]},"code":{"type":["string","null"]}},"required":["category","code"]},{"type":"null"}],"description":"The status category and code that caused the event."},"payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the remittance (ERA) and its amounts.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"status_code":{"type":"string","description":"The payer's claim status in the remittance (CLP02), such as 1 (processed as primary), 4 (denied) or 22 (a reversal)."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer paid, in dollars (negative for a reversal)."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount the payer allowed, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes, as the payer says."}},"required":["era_id","status_code","paid","allowed","patient_responsibility"]},"claim_payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the claim's own figures after this payment (null when nothing stands), as GET /claims/{id} shows them.","anyOf":[{"type":"object","properties":{"outcome":{"type":"string","enum":["paid","denied"],"description":"Whether the claim stands paid or denied after this payment."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer has paid on the claim in all."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount allowed by the claim's current payment, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes in all."}},"required":["outcome","paid","allowed","patient_responsibility"]},{"type":"null"}]},"estimate":{"description":"For predetermination.returned: the ERA that carried the estimate, and its amounts. Never a payment.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"What the payer would allow, when it said."},"pay":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer would pay once the treatment is done."},"patient":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"The patient's estimated share."}},"required":["era_id","allowed","pay","patient"]},"created_at":{"type":"string","format":"date-time"},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","office_id","payer","state","previous_state","frequency","parent_id","request_id","file","status","created_at","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"claim.accepted"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},"object":{"type":"string","const":"claim"},"office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"payer":{"$ref":"#/components/schemas/PayerLabel"},"kind":{"description":"claim or predetermination.","type":"string","enum":["claim","predetermination"]},"state":{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},"previous_state":{"anyOf":[{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},{"type":"null"}],"description":"The state the claim was in before; null when the event did not change it."},"frequency":{"type":"string","enum":["original","replacement","void"]},"parent_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"The claim a void transaction voids."},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made the claim; null for a claim made in the dashboard."},"file":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"interchange_control_number":{"type":["string","null"]},"group_control_number":{"type":["string","null"]},"transaction_control_number":{"type":["string","null"]}},"required":["name","interchange_control_number","group_control_number","transaction_control_number"]},{"type":"null"}],"description":"The file that caused the event, with its control numbers."},"status":{"anyOf":[{"type":"object","properties":{"category":{"type":["string","null"]},"code":{"type":["string","null"]}},"required":["category","code"]},{"type":"null"}],"description":"The status category and code that caused the event."},"payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the remittance (ERA) and its amounts.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"status_code":{"type":"string","description":"The payer's claim status in the remittance (CLP02), such as 1 (processed as primary), 4 (denied) or 22 (a reversal)."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer paid, in dollars (negative for a reversal)."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount the payer allowed, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes, as the payer says."}},"required":["era_id","status_code","paid","allowed","patient_responsibility"]},"claim_payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the claim's own figures after this payment (null when nothing stands), as GET /claims/{id} shows them.","anyOf":[{"type":"object","properties":{"outcome":{"type":"string","enum":["paid","denied"],"description":"Whether the claim stands paid or denied after this payment."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer has paid on the claim in all."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount allowed by the claim's current payment, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes in all."}},"required":["outcome","paid","allowed","patient_responsibility"]},{"type":"null"}]},"estimate":{"description":"For predetermination.returned: the ERA that carried the estimate, and its amounts. Never a payment.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"What the payer would allow, when it said."},"pay":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer would pay once the treatment is done."},"patient":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"The patient's estimated share."}},"required":["era_id","allowed","pay","patient"]},"created_at":{"type":"string","format":"date-time"},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","office_id","payer","state","previous_state","frequency","parent_id","request_id","file","status","created_at","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"claim.rejected"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},"object":{"type":"string","const":"claim"},"office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"payer":{"$ref":"#/components/schemas/PayerLabel"},"kind":{"description":"claim or predetermination.","type":"string","enum":["claim","predetermination"]},"state":{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},"previous_state":{"anyOf":[{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},{"type":"null"}],"description":"The state the claim was in before; null when the event did not change it."},"frequency":{"type":"string","enum":["original","replacement","void"]},"parent_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"The claim a void transaction voids."},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made the claim; null for a claim made in the dashboard."},"file":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"interchange_control_number":{"type":["string","null"]},"group_control_number":{"type":["string","null"]},"transaction_control_number":{"type":["string","null"]}},"required":["name","interchange_control_number","group_control_number","transaction_control_number"]},{"type":"null"}],"description":"The file that caused the event, with its control numbers."},"status":{"anyOf":[{"type":"object","properties":{"category":{"type":["string","null"]},"code":{"type":["string","null"]}},"required":["category","code"]},{"type":"null"}],"description":"The status category and code that caused the event."},"payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the remittance (ERA) and its amounts.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"status_code":{"type":"string","description":"The payer's claim status in the remittance (CLP02), such as 1 (processed as primary), 4 (denied) or 22 (a reversal)."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer paid, in dollars (negative for a reversal)."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount the payer allowed, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes, as the payer says."}},"required":["era_id","status_code","paid","allowed","patient_responsibility"]},"claim_payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the claim's own figures after this payment (null when nothing stands), as GET /claims/{id} shows them.","anyOf":[{"type":"object","properties":{"outcome":{"type":"string","enum":["paid","denied"],"description":"Whether the claim stands paid or denied after this payment."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer has paid on the claim in all."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount allowed by the claim's current payment, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes in all."}},"required":["outcome","paid","allowed","patient_responsibility"]},{"type":"null"}]},"estimate":{"description":"For predetermination.returned: the ERA that carried the estimate, and its amounts. Never a payment.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"What the payer would allow, when it said."},"pay":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer would pay once the treatment is done."},"patient":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"The patient's estimated share."}},"required":["era_id","allowed","pay","patient"]},"created_at":{"type":"string","format":"date-time"},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","office_id","payer","state","previous_state","frequency","parent_id","request_id","file","status","created_at","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"claim.status_updated"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},"object":{"type":"string","const":"claim"},"office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"payer":{"$ref":"#/components/schemas/PayerLabel"},"kind":{"description":"claim or predetermination.","type":"string","enum":["claim","predetermination"]},"state":{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},"previous_state":{"anyOf":[{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},{"type":"null"}],"description":"The state the claim was in before; null when the event did not change it."},"frequency":{"type":"string","enum":["original","replacement","void"]},"parent_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"The claim a void transaction voids."},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made the claim; null for a claim made in the dashboard."},"file":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"interchange_control_number":{"type":["string","null"]},"group_control_number":{"type":["string","null"]},"transaction_control_number":{"type":["string","null"]}},"required":["name","interchange_control_number","group_control_number","transaction_control_number"]},{"type":"null"}],"description":"The file that caused the event, with its control numbers."},"status":{"anyOf":[{"type":"object","properties":{"category":{"type":["string","null"]},"code":{"type":["string","null"]}},"required":["category","code"]},{"type":"null"}],"description":"The status category and code that caused the event."},"payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the remittance (ERA) and its amounts.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"status_code":{"type":"string","description":"The payer's claim status in the remittance (CLP02), such as 1 (processed as primary), 4 (denied) or 22 (a reversal)."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer paid, in dollars (negative for a reversal)."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount the payer allowed, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes, as the payer says."}},"required":["era_id","status_code","paid","allowed","patient_responsibility"]},"claim_payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the claim's own figures after this payment (null when nothing stands), as GET /claims/{id} shows them.","anyOf":[{"type":"object","properties":{"outcome":{"type":"string","enum":["paid","denied"],"description":"Whether the claim stands paid or denied after this payment."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer has paid on the claim in all."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount allowed by the claim's current payment, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes in all."}},"required":["outcome","paid","allowed","patient_responsibility"]},{"type":"null"}]},"estimate":{"description":"For predetermination.returned: the ERA that carried the estimate, and its amounts. Never a payment.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"What the payer would allow, when it said."},"pay":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer would pay once the treatment is done."},"patient":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"The patient's estimated share."}},"required":["era_id","allowed","pay","patient"]},"created_at":{"type":"string","format":"date-time"},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","office_id","payer","state","previous_state","frequency","parent_id","request_id","file","status","created_at","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"claim.voided"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},"object":{"type":"string","const":"claim"},"office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"payer":{"$ref":"#/components/schemas/PayerLabel"},"kind":{"description":"claim or predetermination.","type":"string","enum":["claim","predetermination"]},"state":{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},"previous_state":{"anyOf":[{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},{"type":"null"}],"description":"The state the claim was in before; null when the event did not change it."},"frequency":{"type":"string","enum":["original","replacement","void"]},"parent_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"The claim a void transaction voids."},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made the claim; null for a claim made in the dashboard."},"file":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"interchange_control_number":{"type":["string","null"]},"group_control_number":{"type":["string","null"]},"transaction_control_number":{"type":["string","null"]}},"required":["name","interchange_control_number","group_control_number","transaction_control_number"]},{"type":"null"}],"description":"The file that caused the event, with its control numbers."},"status":{"anyOf":[{"type":"object","properties":{"category":{"type":["string","null"]},"code":{"type":["string","null"]}},"required":["category","code"]},{"type":"null"}],"description":"The status category and code that caused the event."},"payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the remittance (ERA) and its amounts.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"status_code":{"type":"string","description":"The payer's claim status in the remittance (CLP02), such as 1 (processed as primary), 4 (denied) or 22 (a reversal)."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer paid, in dollars (negative for a reversal)."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount the payer allowed, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes, as the payer says."}},"required":["era_id","status_code","paid","allowed","patient_responsibility"]},"claim_payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the claim's own figures after this payment (null when nothing stands), as GET /claims/{id} shows them.","anyOf":[{"type":"object","properties":{"outcome":{"type":"string","enum":["paid","denied"],"description":"Whether the claim stands paid or denied after this payment."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer has paid on the claim in all."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount allowed by the claim's current payment, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes in all."}},"required":["outcome","paid","allowed","patient_responsibility"]},{"type":"null"}]},"estimate":{"description":"For predetermination.returned: the ERA that carried the estimate, and its amounts. Never a payment.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"What the payer would allow, when it said."},"pay":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer would pay once the treatment is done."},"patient":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"The patient's estimated share."}},"required":["era_id","allowed","pay","patient"]},"created_at":{"type":"string","format":"date-time"},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","office_id","payer","state","previous_state","frequency","parent_id","request_id","file","status","created_at","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"batch.acknowledged"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^fil_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with fil_."},"object":{"type":"string","const":"batch"},"name":{"type":"string","description":"The file name (YYYYMMDDHHMMSSmmm.837)."},"result":{"type":"string","enum":["accepted","rejected"],"description":"accepted: its claims are accepted by the clearinghouse. rejected: its claims are back in the queue for the next batch."},"claim_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"interchange_control_number":{"type":["string","null"]},"group_control_number":{"type":["string","null"]},"transaction_control_number":{"type":["string","null"]},"acknowledgement":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"],"description":"The 997 file that answered."},"created_at":{"type":"string","format":"date-time"},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","name","result","claim_count","interchange_control_number","group_control_number","transaction_control_number","acknowledgement","created_at","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"attachment.completed"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^att_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with att_."},"object":{"type":"string","const":"attachment"},"office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"claim_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"The claim the attachment was made for; null when it was made for none."},"payer":{"$ref":"#/components/schemas/PayerLabel"},"kind":{"type":"string","enum":["unsolicited","solicited"]},"state":{"type":"string","enum":["open","closed"]},"attachment_number":{"description":"The number the attachment network gave it.","type":["string","null"]},"payer_request_id":{"anyOf":[{"type":"string","pattern":"^prq_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with prq_."},{"type":"null"}],"description":"The payer request a solicited attachment answers."},"document_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made the attachment; null for one made in the dashboard."},"created_at":{"type":"string","format":"date-time"},"closed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","office_id","claim_id","payer","kind","state","attachment_number","payer_request_id","document_count","request_id","created_at","closed_at","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"payer_request.received"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^prq_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with prq_."},"object":{"type":"string","const":"payer_request"},"claim_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}]},"payer":{"$ref":"#/components/schemas/PayerLabel"},"reference_number":{"type":"string","description":"The payer's own reference number for the request."},"state":{"type":"string","enum":["open","answered"]},"source":{"type":"string","enum":["network","staff"]},"due_date":{"description":"The date the payer wants the answer by (YYYY-MM-DD), when it said.","type":["string","null"]},"created_at":{"type":"string","format":"date-time"},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","claim_id","payer","reference_number","state","source","due_date","created_at","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"era.received"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"object":{"type":"string","const":"era"},"state":{"type":"string","enum":["needs_review","posted"]},"payer":{"anyOf":[{"$ref":"#/components/schemas/PayerLabel"},{"type":"null"}],"description":"The payer in the directory, when the remittance names one we know; null otherwise (read the ERA for the name as sent)."},"payment":{"type":"object","properties":{"method":{"type":"string","description":"ACH (an electronic transfer), CHK (a check), NON (no payment) or another code as sent."},"trace_number":{"type":"string","description":"The EFT trace or check number: matches the deposit in your bank account."},"date":{"description":"The payment date (YYYY-MM-DD).","type":["string","null"]},"total":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"The amount paid, in dollars."}},"required":["method","trace_number","date","total"]},"balanced":{"type":"boolean","description":"Whether the remittance adds up: false flags it for review."},"claim_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"matched_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unmatched_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"received_at":{"type":"string","format":"date-time"},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","state","payer","payment","balanced","claim_count","matched_count","unmatched_count","received_at","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"claim.paid"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},"object":{"type":"string","const":"claim"},"office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"payer":{"$ref":"#/components/schemas/PayerLabel"},"kind":{"description":"claim or predetermination.","type":"string","enum":["claim","predetermination"]},"state":{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},"previous_state":{"anyOf":[{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},{"type":"null"}],"description":"The state the claim was in before; null when the event did not change it."},"frequency":{"type":"string","enum":["original","replacement","void"]},"parent_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"The claim a void transaction voids."},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made the claim; null for a claim made in the dashboard."},"file":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"interchange_control_number":{"type":["string","null"]},"group_control_number":{"type":["string","null"]},"transaction_control_number":{"type":["string","null"]}},"required":["name","interchange_control_number","group_control_number","transaction_control_number"]},{"type":"null"}],"description":"The file that caused the event, with its control numbers."},"status":{"anyOf":[{"type":"object","properties":{"category":{"type":["string","null"]},"code":{"type":["string","null"]}},"required":["category","code"]},{"type":"null"}],"description":"The status category and code that caused the event."},"payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the remittance (ERA) and its amounts.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"status_code":{"type":"string","description":"The payer's claim status in the remittance (CLP02), such as 1 (processed as primary), 4 (denied) or 22 (a reversal)."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer paid, in dollars (negative for a reversal)."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount the payer allowed, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes, as the payer says."}},"required":["era_id","status_code","paid","allowed","patient_responsibility"]},"claim_payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the claim's own figures after this payment (null when nothing stands), as GET /claims/{id} shows them.","anyOf":[{"type":"object","properties":{"outcome":{"type":"string","enum":["paid","denied"],"description":"Whether the claim stands paid or denied after this payment."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer has paid on the claim in all."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount allowed by the claim's current payment, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes in all."}},"required":["outcome","paid","allowed","patient_responsibility"]},{"type":"null"}]},"estimate":{"description":"For predetermination.returned: the ERA that carried the estimate, and its amounts. Never a payment.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"What the payer would allow, when it said."},"pay":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer would pay once the treatment is done."},"patient":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"The patient's estimated share."}},"required":["era_id","allowed","pay","patient"]},"created_at":{"type":"string","format":"date-time"},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","office_id","payer","state","previous_state","frequency","parent_id","request_id","file","status","created_at","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"claim.denied"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},"object":{"type":"string","const":"claim"},"office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"payer":{"$ref":"#/components/schemas/PayerLabel"},"kind":{"description":"claim or predetermination.","type":"string","enum":["claim","predetermination"]},"state":{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},"previous_state":{"anyOf":[{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},{"type":"null"}],"description":"The state the claim was in before; null when the event did not change it."},"frequency":{"type":"string","enum":["original","replacement","void"]},"parent_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"The claim a void transaction voids."},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made the claim; null for a claim made in the dashboard."},"file":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"interchange_control_number":{"type":["string","null"]},"group_control_number":{"type":["string","null"]},"transaction_control_number":{"type":["string","null"]}},"required":["name","interchange_control_number","group_control_number","transaction_control_number"]},{"type":"null"}],"description":"The file that caused the event, with its control numbers."},"status":{"anyOf":[{"type":"object","properties":{"category":{"type":["string","null"]},"code":{"type":["string","null"]}},"required":["category","code"]},{"type":"null"}],"description":"The status category and code that caused the event."},"payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the remittance (ERA) and its amounts.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"status_code":{"type":"string","description":"The payer's claim status in the remittance (CLP02), such as 1 (processed as primary), 4 (denied) or 22 (a reversal)."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer paid, in dollars (negative for a reversal)."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount the payer allowed, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes, as the payer says."}},"required":["era_id","status_code","paid","allowed","patient_responsibility"]},"claim_payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the claim's own figures after this payment (null when nothing stands), as GET /claims/{id} shows them.","anyOf":[{"type":"object","properties":{"outcome":{"type":"string","enum":["paid","denied"],"description":"Whether the claim stands paid or denied after this payment."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer has paid on the claim in all."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount allowed by the claim's current payment, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes in all."}},"required":["outcome","paid","allowed","patient_responsibility"]},{"type":"null"}]},"estimate":{"description":"For predetermination.returned: the ERA that carried the estimate, and its amounts. Never a payment.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"What the payer would allow, when it said."},"pay":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer would pay once the treatment is done."},"patient":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"The patient's estimated share."}},"required":["era_id","allowed","pay","patient"]},"created_at":{"type":"string","format":"date-time"},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","office_id","payer","state","previous_state","frequency","parent_id","request_id","file","status","created_at","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"claim.payment_reversed"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},"object":{"type":"string","const":"claim"},"office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"payer":{"$ref":"#/components/schemas/PayerLabel"},"kind":{"description":"claim or predetermination.","type":"string","enum":["claim","predetermination"]},"state":{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},"previous_state":{"anyOf":[{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},{"type":"null"}],"description":"The state the claim was in before; null when the event did not change it."},"frequency":{"type":"string","enum":["original","replacement","void"]},"parent_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"The claim a void transaction voids."},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made the claim; null for a claim made in the dashboard."},"file":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"interchange_control_number":{"type":["string","null"]},"group_control_number":{"type":["string","null"]},"transaction_control_number":{"type":["string","null"]}},"required":["name","interchange_control_number","group_control_number","transaction_control_number"]},{"type":"null"}],"description":"The file that caused the event, with its control numbers."},"status":{"anyOf":[{"type":"object","properties":{"category":{"type":["string","null"]},"code":{"type":["string","null"]}},"required":["category","code"]},{"type":"null"}],"description":"The status category and code that caused the event."},"payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the remittance (ERA) and its amounts.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"status_code":{"type":"string","description":"The payer's claim status in the remittance (CLP02), such as 1 (processed as primary), 4 (denied) or 22 (a reversal)."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer paid, in dollars (negative for a reversal)."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount the payer allowed, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes, as the payer says."}},"required":["era_id","status_code","paid","allowed","patient_responsibility"]},"claim_payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the claim's own figures after this payment (null when nothing stands), as GET /claims/{id} shows them.","anyOf":[{"type":"object","properties":{"outcome":{"type":"string","enum":["paid","denied"],"description":"Whether the claim stands paid or denied after this payment."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer has paid on the claim in all."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount allowed by the claim's current payment, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes in all."}},"required":["outcome","paid","allowed","patient_responsibility"]},{"type":"null"}]},"estimate":{"description":"For predetermination.returned: the ERA that carried the estimate, and its amounts. Never a payment.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"What the payer would allow, when it said."},"pay":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer would pay once the treatment is done."},"patient":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"The patient's estimated share."}},"required":["era_id","allowed","pay","patient"]},"created_at":{"type":"string","format":"date-time"},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","office_id","payer","state","previous_state","frequency","parent_id","request_id","file","status","created_at","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"predetermination.returned"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},"object":{"type":"string","const":"claim"},"office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"payer":{"$ref":"#/components/schemas/PayerLabel"},"kind":{"description":"claim or predetermination.","type":"string","enum":["claim","predetermination"]},"state":{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},"previous_state":{"anyOf":[{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},{"type":"null"}],"description":"The state the claim was in before; null when the event did not change it."},"frequency":{"type":"string","enum":["original","replacement","void"]},"parent_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"The claim a void transaction voids."},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made the claim; null for a claim made in the dashboard."},"file":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"interchange_control_number":{"type":["string","null"]},"group_control_number":{"type":["string","null"]},"transaction_control_number":{"type":["string","null"]}},"required":["name","interchange_control_number","group_control_number","transaction_control_number"]},{"type":"null"}],"description":"The file that caused the event, with its control numbers."},"status":{"anyOf":[{"type":"object","properties":{"category":{"type":["string","null"]},"code":{"type":["string","null"]}},"required":["category","code"]},{"type":"null"}],"description":"The status category and code that caused the event."},"payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the remittance (ERA) and its amounts.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"status_code":{"type":"string","description":"The payer's claim status in the remittance (CLP02), such as 1 (processed as primary), 4 (denied) or 22 (a reversal)."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer paid, in dollars (negative for a reversal)."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount the payer allowed, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes, as the payer says."}},"required":["era_id","status_code","paid","allowed","patient_responsibility"]},"claim_payment":{"description":"For claim.paid, claim.denied and claim.payment_reversed: the claim's own figures after this payment (null when nothing stands), as GET /claims/{id} shows them.","anyOf":[{"type":"object","properties":{"outcome":{"type":"string","enum":["paid","denied"],"description":"Whether the claim stands paid or denied after this payment."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer has paid on the claim in all."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"The amount allowed by the claim's current payment, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes in all."}},"required":["outcome","paid","allowed","patient_responsibility"]},{"type":"null"}]},"estimate":{"description":"For predetermination.returned: the ERA that carried the estimate, and its amounts. Never a payment.","type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with era_."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}],"description":"What the payer would allow, when it said."},"pay":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer would pay once the treatment is done."},"patient":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"The patient's estimated share."}},"required":["era_id","allowed","pay","patient"]},"created_at":{"type":"string","format":"date-time"},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","office_id","payer","state","previous_state","frequency","parent_id","request_id","file","status","created_at","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"sftp.file_received"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^sftp_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with sftp_."},"object":{"type":"string","const":"sftp_account"},"file_name":{"type":"string","description":"The name of the file as it was dropped in IN or TEST/IN."},"mode":{"type":"string","enum":["test","live"],"description":"test for TEST/IN, live for IN."},"claims_created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The claims the file made or applied (queued, needing attention, replaced or voided)."},"claims_refused":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The claims of the file that were refused, each with its reason in the 277 and the report."},"responses":{"type":"array","items":{"type":"string"},"description":"The names of the files written to OUT or TEST/OUT for it."},"reason":{"anyOf":[{"type":"string","enum":["too_large","too_many_claims","not_837d","wrong_usage"]},{"type":"null"}],"description":"Why the file was refused whole; null when it was read."},"taken_at":{"type":"string","format":"date-time"},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","file_name","mode","claims_created","claims_refused","responses","reason","taken_at","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"sftp.file_refused"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^sftp_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with sftp_."},"object":{"type":"string","const":"sftp_account"},"file_name":{"type":"string","description":"The name of the file as it was dropped in IN or TEST/IN."},"mode":{"type":"string","enum":["test","live"],"description":"test for TEST/IN, live for IN."},"claims_created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The claims the file made or applied (queued, needing attention, replaced or voided)."},"claims_refused":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The claims of the file that were refused, each with its reason in the 277 and the report."},"responses":{"type":"array","items":{"type":"string"},"description":"The names of the files written to OUT or TEST/OUT for it."},"reason":{"anyOf":[{"type":"string","enum":["too_large","too_many_claims","not_837d","wrong_usage"]},{"type":"null"}],"description":"Why the file was refused whole; null when it was read."},"taken_at":{"type":"string","format":"date-time"},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","file_name","mode","claims_created","claims_refused","responses","reason","taken_at","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"eligibility.batch.completed"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^elb_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with elb_."},"object":{"type":"string","const":"eligibility_batch"},"state":{"type":"string","enum":["completed","cancelled"],"description":"completed: every check ran. cancelled: the batch was cancelled; the checks not yet run were skipped."},"source":{"type":"string","enum":["patients","api"],"description":"patients: started from the Patients list in the dashboard. api: started with POST /eligibility/batches."},"counts":{"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"completed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Checks that were made and answered."},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Checks that were rejected, could not be made, or ended in an error."},"skipped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Checks that were not made (the batch was cancelled)."},"queued":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Checks still to run, including the one running."}},"required":["total","completed","failed","skipped","queued"]},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made the batch; null for one made in the dashboard."},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time"}},"required":["id","object","state","source","counts","request_id","created_at","completed_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"office.attachment_registration.updated"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"object":{"type":"string","const":"office"},"attachment_network":{"type":"object","properties":{"state":{"type":"string","enum":["not_registered","pending","registered","failed"],"description":"not_registered until the office is registered (POST /offices/{id}/register_attachments, or closing its first attachment). pending: the network has the request, or could not be reached and Claim House tries again on its own (for up to a day). registered: it has its facility ID. failed: see failure."},"details":{"anyOf":[{"type":"string","enum":["in_sync","updating","update_failed","needs_manual_update"]},{"type":"null"}],"description":"For a registered office, whether the network has its current details after an edit of a registered field: in_sync; updating (being told, tried again); update_failed; needs_manual_update (the network takes no update: Claim House staff tell it). Null unless registered. Attachments are never blocked by it."},"facility_id":{"description":"The facility ID the attachment network gave the office.","type":["string","null"]},"registered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","enum":["invalid_fields","duplicate_facility","refused","network_unavailable"],"description":"invalid_fields: the network named office fields to fix (fields). duplicate_facility: the network has this office already. refused: any other refusal, in the network's words. network_unavailable: the network could not be reached for a day of tries."},"message":{"type":"string","description":"Why, in words."},"fields":{"type":"array","items":{"type":"string"},"description":"The office fields to fix (their names in this API), when the network named them; else empty."}},"required":["code","message","fields"],"description":"Why the registration failed; null unless state is failed. Fix what it says, then register the office again."},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the state, the details or the failure last changed; null while never registered."}},"required":["state","details","facility_id","registered_at","failure","updated_at"],"description":"The office's registration with the attachment network, which it needs before its first attachment is sent. Each change sends office.attachment_registration.updated."},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","attachment_network","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"statement.paid"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^stm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with stm_."},"object":{"type":"string","const":"statement"},"number":{"type":"string"},"amount_due":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the statement owes, in dollars."},"amount_paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What has been paid against it, in dollars (voided payments left out)."},"balance":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What is still owed, in dollars."},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","number","amount_due","amount_paid","balance","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]},{"type":"object","properties":{"id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"object":{"type":"string","const":"event"},"type":{"type":"string","const":"enrollment.updated"},"sequence":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"The event's place in the history of its resource, starting at 1. Events of one resource can arrive out of order: sort by this."},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","properties":{"id":{"type":"string","pattern":"^enr_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with enr_."},"object":{"type":"string","const":"enrollment"},"provider_id":{"anyOf":[{"type":"string","pattern":"^prv_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with prv_."},{"type":"null"}],"description":"The provider it is for; null for an office enrollment."},"provider_name":{"type":["string","null"]},"office_id":{"anyOf":[{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},{"type":"null"}],"description":"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":{"type":["string","null"]},"npi":{"type":"string","description":"The NPI it is for: the office's billing NPI when it was started, or the provider's."},"tax_id":{"description":"The office's tax ID when it was started; null for a provider enrollment.","type":["string","null"]},"payer_id":{"type":"string","pattern":"^pyr_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with pyr_."},"payer_name":{"type":"string"},"type":{"type":"string","enum":["claims","era","era_eft"]},"method":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"The payer directory's enrollment code when the enrollment was started (S, O, W, F, I or U, with * or L)."},"label":{"type":"string"},"instructions":{"type":"string","description":"What has to be done, in plain words."}},"required":["code","label","instructions"]},{"type":"null"}],"description":"How the payer enrolls a provider, from the payer directory; null when the payer needs no enrollment for this (it started active)."},"status":{"type":"string","enum":["not_started","awaiting_signature","provider_action","submitted","active","denied","withdrawn"]},"next_step":{"type":"string","description":"What someone has to do now, in plain words."},"sent_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"expected_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"note":{"type":"string"},"mode":{"type":"string","enum":["test","live"]},"activated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When it last became active; null while it is not."},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"occurred_at":{"type":"string","format":"date-time"}},"required":["id","object","provider_id","provider_name","office_id","office_name","npi","tax_id","payer_id","payer_name","type","method","status","next_step","sent_on","expected_on","note","mode","activated_at","created_at","updated_at","occurred_at"]}},"required":["id","object","type","sequence","created_at","data"]}]},"examples":{"by_id":{"summary":"An event by its ID","value":{"id":"evt_01JM000000E008000000000020","object":"event","type":"eligibility.completed","sequence":1,"created_at":"2026-03-10T15:30:00.430000+00:00","data":{"id":"elg_01JM000000E00800000000000G","object":"eligibility_check","office_id":"off_01JM000000E008000000000003","payer":{"id":"pyr_01JM000000E008000000000004","payer_id":"00000","name":"Example Dental Plan"},"state":"completed","outcome":"answered","status":"active","billing":{"charged":false,"state":"not_billable","reason":"test_mode","label":"Not billed: test mode"},"cache":{"state":"fresh","source_id":null},"parent_id":null,"request_id":"req_01JM000000E008000000000010","tenant_reference":"visit-1042","created_at":"2026-03-10T15:30:00.250000+00:00","completed_at":"2026-03-10T15:30:00.430000+00:00"}}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/events/{id}/replay":{"post":{"operationId":"replayEvent","summary":"Replay an event","description":"Sends the event again: one new delivery is queued for each endpoint that is enabled and subscribed to its type now (none when there is no such endpoint). The event is the same, with the same ID and sequence. Send an empty JSON object as the body. An event of another organization or mode is not found.","tags":["Events"],"x-permission":"submit","parameters":[{"name":"id","in":"path","required":true,"description":"An event ID (evt_...).","schema":{"type":"string"},"example":"evt_01JM000000E008000000000020"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false},"examples":{"replay":{"summary":"Replay an event to one endpoint","value":{}}}}}},"responses":{"200":{"description":"The deliveries that were queued.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","const":"event_replay"},"event_id":{"type":"string","pattern":"^evt_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with evt_."},"deliveries":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^whd_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with whd_."},"object":{"type":"string","const":"webhook_delivery"},"endpoint_id":{"type":"string","pattern":"^whe_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with whe_."}},"required":["id","object","endpoint_id"]},"description":"The deliveries queued: one for each endpoint that is enabled and subscribed to the event type now. Empty when there is none."}},"required":["object","event_id","deliveries"]},"examples":{"replay":{"summary":"Replay an event to one endpoint","value":{"object":"event_replay","event_id":"evt_01JM000000E008000000000020","deliveries":[{"id":"whd_01JM000000E008000000000022","object":"webhook_delivery","endpoint_id":"whe_01JM000000E008000000000021"}]}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/webhook_endpoints":{"get":{"operationId":"listWebhookEndpoints","summary":"List webhook endpoints","description":"The webhook endpoints of the key's organization in the key's mode, newest first. All are returned (at most 10): next_cursor is always null. The signing secret is never included.","tags":["Webhook endpoints"],"x-permission":"read","parameters":[{"name":"idempotency_key","in":"query","required":false,"description":"Only the endpoint added with this Idempotency-Key (what a request that timed out added).","schema":{"type":"string"}}],"responses":{"200":{"description":"The endpoints.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^whe_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with whe_."},"object":{"type":"string","const":"webhook_endpoint"},"url":{"type":"string"},"description":{"type":"string"},"event_types":{"anyOf":[{"type":"array","items":{"type":"string","enum":["eligibility.completed","api_key.created","api_key.revoked","claim.validated","claim.needs_attention","claim.queued","claim.submitted","claim.accepted","claim.rejected","claim.status_updated","claim.voided","batch.acknowledged","attachment.completed","payer_request.received","era.received","claim.paid","claim.denied","claim.payment_reversed","predetermination.returned","sftp.file_received","sftp.file_refused","eligibility.batch.completed","office.attachment_registration.updated","statement.paid","enrollment.updated"]}},{"type":"null"}],"description":"The event types sent to this endpoint; null for every type."},"status":{"type":"string","enum":["enabled","disabled"]},"mode":{"type":"string","enum":["test","live"]},"created_at":{"type":"string","format":"date-time"}},"required":["id","object","url","description","event_types","status","mode","created_at"]}},"next_cursor":{"description":"Pass as cursor to get the next page; null when there is no next page.","type":["string","null"]}},"required":["data","next_cursor"]},"examples":{"list":{"summary":"The endpoints of a test key","value":{"data":[{"id":"whe_01JM000000E008000000000021","object":"webhook_endpoint","url":"https://hooks.example.com/claimhouse","description":"Billing system","event_types":["eligibility.completed"],"status":"enabled","mode":"test","created_at":"2026-03-10T15:00:00.000000+00:00"}],"next_cursor":null}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}},"post":{"operationId":"createWebhookEndpoint","summary":"Add a webhook endpoint","description":"Registers a URL to send events to. The URL must be https, with no user name, password or fragment, to a host name (not an IP address) that resolves to a public address, in test mode as well as live mode. Leave out event_types to receive every type. An organization can have at most 10 endpoints in a mode. The response carries the signing secret (secret). It is shown only in this response and cannot be read again: store it now. A request repeated with the same Idempotency-Key gets the stored reply without the secret (secret_available is false): rotate the secret to get a new one.","tags":["Webhook endpoints"],"x-permission":"submit","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"description":"Where events are sent: an https URL to a host name that resolves to a public address."},"description":{"description":"A note for yourself.","type":"string","maxLength":200},"event_types":{"description":"The event types to send. Leave out for every type.","minItems":1,"maxItems":25,"type":"array","items":{"type":"string","enum":["eligibility.completed","api_key.created","api_key.revoked","claim.validated","claim.needs_attention","claim.queued","claim.submitted","claim.accepted","claim.rejected","claim.status_updated","claim.voided","batch.acknowledged","attachment.completed","payer_request.received","era.received","claim.paid","claim.denied","claim.payment_reversed","predetermination.returned","sftp.file_received","sftp.file_refused","eligibility.batch.completed","office.attachment_registration.updated","statement.paid","enrollment.updated"]}}},"required":["url"],"additionalProperties":false},"examples":{"billing_system":{"summary":"An endpoint for finished eligibility checks","value":{"url":"https://hooks.example.com/claimhouse","description":"Billing system","event_types":["eligibility.completed"]}},"replayed":{"summary":"The same request repeated with the same Idempotency-Key: the stored reply, without the secret","value":{"url":"https://hooks.example.com/claimhouse","description":"Billing system","event_types":["eligibility.completed"]}}}}}},"responses":{"200":{"description":"The endpoint, with its signing secret.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^whe_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with whe_."},"object":{"type":"string","const":"webhook_endpoint"},"url":{"type":"string"},"description":{"type":"string"},"event_types":{"anyOf":[{"type":"array","items":{"type":"string","enum":["eligibility.completed","api_key.created","api_key.revoked","claim.validated","claim.needs_attention","claim.queued","claim.submitted","claim.accepted","claim.rejected","claim.status_updated","claim.voided","batch.acknowledged","attachment.completed","payer_request.received","era.received","claim.paid","claim.denied","claim.payment_reversed","predetermination.returned","sftp.file_received","sftp.file_refused","eligibility.batch.completed","office.attachment_registration.updated","statement.paid","enrollment.updated"]}},{"type":"null"}],"description":"The event types sent to this endpoint; null for every type."},"status":{"type":"string","enum":["enabled","disabled"]},"mode":{"type":"string","enum":["test","live"]},"created_at":{"type":"string","format":"date-time"},"secret":{"description":"The signing secret (whsec_...). Shown only in the response that made it: store it now. Absent when secret_available is false.","x-one-time":true,"type":"string","pattern":"^whsec_[A-Za-z0-9_-]{43}$"},"secret_available":{"type":"boolean","description":"False in the stored reply an Idempotency-Key replay returns: the secret is never stored for replay. Rotate the secret to get a new one."}},"required":["id","object","url","description","event_types","status","mode","created_at","secret_available"]},"examples":{"billing_system":{"summary":"An endpoint for finished eligibility checks","value":{"id":"whe_01JM000000E008000000000021","object":"webhook_endpoint","url":"https://hooks.example.com/claimhouse","description":"Billing system","event_types":["eligibility.completed"],"status":"enabled","mode":"test","created_at":"2026-03-10T15:00:00.000000+00:00","secret":"whsec_EXAMPLEEXAMPLEEXAMPLEEXAMPLEEXAMPLEEXAMPLEE","secret_available":true}},"replayed":{"summary":"The same request repeated with the same Idempotency-Key: the stored reply, without the secret","value":{"id":"whe_01JM000000E008000000000021","object":"webhook_endpoint","url":"https://hooks.example.com/claimhouse","description":"Billing system","event_types":["eligibility.completed"],"status":"enabled","mode":"test","created_at":"2026-03-10T15:00:00.000000+00:00","secret_available":false}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/webhook_endpoints/{id}":{"get":{"operationId":"getWebhookEndpoint","summary":"Get a webhook endpoint","description":"One webhook endpoint of the key's organization and mode, without its signing secret.","tags":["Webhook endpoints"],"x-permission":"read","parameters":[{"name":"id","in":"path","required":true,"description":"A webhook endpoint ID (whe_...).","schema":{"type":"string"},"example":"whe_01JM000000E008000000000021"}],"responses":{"200":{"description":"The endpoint.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^whe_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with whe_."},"object":{"type":"string","const":"webhook_endpoint"},"url":{"type":"string"},"description":{"type":"string"},"event_types":{"anyOf":[{"type":"array","items":{"type":"string","enum":["eligibility.completed","api_key.created","api_key.revoked","claim.validated","claim.needs_attention","claim.queued","claim.submitted","claim.accepted","claim.rejected","claim.status_updated","claim.voided","batch.acknowledged","attachment.completed","payer_request.received","era.received","claim.paid","claim.denied","claim.payment_reversed","predetermination.returned","sftp.file_received","sftp.file_refused","eligibility.batch.completed","office.attachment_registration.updated","statement.paid","enrollment.updated"]}},{"type":"null"}],"description":"The event types sent to this endpoint; null for every type."},"status":{"type":"string","enum":["enabled","disabled"]},"mode":{"type":"string","enum":["test","live"]},"created_at":{"type":"string","format":"date-time"}},"required":["id","object","url","description","event_types","status","mode","created_at"]},"examples":{"by_id":{"summary":"An endpoint by its ID","value":{"id":"whe_01JM000000E008000000000021","object":"webhook_endpoint","url":"https://hooks.example.com/claimhouse","description":"Billing system","event_types":["eligibility.completed"],"status":"enabled","mode":"test","created_at":"2026-03-10T15:00:00.000000+00:00"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}},"delete":{"operationId":"deleteWebhookEndpoint","summary":"Delete a webhook endpoint","description":"Removes the endpoint and its deliveries: nothing more is sent to it. Deleting an endpoint that is already gone is not found.","tags":["Webhook endpoints"],"x-permission":"submit","parameters":[{"name":"id","in":"path","required":true,"description":"A webhook endpoint ID (whe_...).","schema":{"type":"string"},"example":"whe_01JM000000E008000000000021"}],"responses":{"200":{"description":"The endpoint that was deleted.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^whe_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with whe_."},"object":{"type":"string","const":"webhook_endpoint"},"deleted":{"type":"boolean","const":true}},"required":["id","object","deleted"]},"examples":{"delete":{"summary":"Delete an endpoint","value":{"id":"whe_01JM000000E008000000000021","object":"webhook_endpoint","deleted":true}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/webhook_endpoints/{id}/rotate_secret":{"post":{"operationId":"rotateWebhookSecret","summary":"Rotate a signing secret","description":"Replaces the endpoint's signing secret: events are signed with the new secret from now on, and the old one stops working at once. Send an empty JSON object as the body. The response carries the signing secret (secret). It is shown only in this response and cannot be read again: store it now. A request repeated with the same Idempotency-Key gets the stored reply without the secret (secret_available is false): rotate the secret to get a new one.","tags":["Webhook endpoints"],"x-permission":"submit","parameters":[{"name":"id","in":"path","required":true,"description":"A webhook endpoint ID (whe_...).","schema":{"type":"string"},"example":"whe_01JM000000E008000000000021"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false},"examples":{"rotate":{"summary":"Rotate the secret","value":{}}}}}},"responses":{"200":{"description":"The endpoint, with its new signing secret.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^whe_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with whe_."},"object":{"type":"string","const":"webhook_endpoint"},"url":{"type":"string"},"description":{"type":"string"},"event_types":{"anyOf":[{"type":"array","items":{"type":"string","enum":["eligibility.completed","api_key.created","api_key.revoked","claim.validated","claim.needs_attention","claim.queued","claim.submitted","claim.accepted","claim.rejected","claim.status_updated","claim.voided","batch.acknowledged","attachment.completed","payer_request.received","era.received","claim.paid","claim.denied","claim.payment_reversed","predetermination.returned","sftp.file_received","sftp.file_refused","eligibility.batch.completed","office.attachment_registration.updated","statement.paid","enrollment.updated"]}},{"type":"null"}],"description":"The event types sent to this endpoint; null for every type."},"status":{"type":"string","enum":["enabled","disabled"]},"mode":{"type":"string","enum":["test","live"]},"created_at":{"type":"string","format":"date-time"},"secret":{"description":"The signing secret (whsec_...). Shown only in the response that made it: store it now. Absent when secret_available is false.","x-one-time":true,"type":"string","pattern":"^whsec_[A-Za-z0-9_-]{43}$"},"secret_available":{"type":"boolean","description":"False in the stored reply an Idempotency-Key replay returns: the secret is never stored for replay. Rotate the secret to get a new one."}},"required":["id","object","url","description","event_types","status","mode","created_at","secret_available"]},"examples":{"rotate":{"summary":"Rotate the secret","value":{"id":"whe_01JM000000E008000000000021","object":"webhook_endpoint","url":"https://hooks.example.com/claimhouse","description":"Billing system","event_types":["eligibility.completed"],"status":"enabled","mode":"test","created_at":"2026-03-10T15:00:00.000000+00:00","secret":"whsec_EXAMPLEEXAMPLEEXAMPLEEXAMPLEEXAMPLEEXAMPLEE","secret_available":true}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/webhook_endpoints/{id}/disable":{"post":{"operationId":"disableWebhookEndpoint","summary":"Disable a webhook endpoint","description":"Stops sending events to the endpoint. Deliveries already queued wait, and events recorded while it is disabled are not queued for it (replay them later). Disabling an endpoint that is already disabled changes nothing. Send an empty JSON object as the body.","tags":["Webhook endpoints"],"x-permission":"submit","parameters":[{"name":"id","in":"path","required":true,"description":"A webhook endpoint ID (whe_...).","schema":{"type":"string"},"example":"whe_01JM000000E008000000000021"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false},"examples":{"disable":{"summary":"Disable an endpoint","value":{}}}}}},"responses":{"200":{"description":"The endpoint.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^whe_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with whe_."},"object":{"type":"string","const":"webhook_endpoint"},"url":{"type":"string"},"description":{"type":"string"},"event_types":{"anyOf":[{"type":"array","items":{"type":"string","enum":["eligibility.completed","api_key.created","api_key.revoked","claim.validated","claim.needs_attention","claim.queued","claim.submitted","claim.accepted","claim.rejected","claim.status_updated","claim.voided","batch.acknowledged","attachment.completed","payer_request.received","era.received","claim.paid","claim.denied","claim.payment_reversed","predetermination.returned","sftp.file_received","sftp.file_refused","eligibility.batch.completed","office.attachment_registration.updated","statement.paid","enrollment.updated"]}},{"type":"null"}],"description":"The event types sent to this endpoint; null for every type."},"status":{"type":"string","enum":["enabled","disabled"]},"mode":{"type":"string","enum":["test","live"]},"created_at":{"type":"string","format":"date-time"}},"required":["id","object","url","description","event_types","status","mode","created_at"]},"examples":{"disable":{"summary":"Disable an endpoint","value":{"id":"whe_01JM000000E008000000000021","object":"webhook_endpoint","url":"https://hooks.example.com/claimhouse","description":"Billing system","event_types":["eligibility.completed"],"status":"disabled","mode":"test","created_at":"2026-03-10T15:00:00.000000+00:00"}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/webhook_endpoints/{id}/enable":{"post":{"operationId":"enableWebhookEndpoint","summary":"Enable a webhook endpoint","description":"Starts sending events to the endpoint again. Its URL is checked again first (the host must still resolve to a public address). Deliveries that waited are sent, except those that waited more than 24 hours (counted from the event, or from the replay for a replayed delivery), which are marked exhausted: replay those. Send an empty JSON object as the body.","tags":["Webhook endpoints"],"x-permission":"submit","parameters":[{"name":"id","in":"path","required":true,"description":"A webhook endpoint ID (whe_...).","schema":{"type":"string"},"example":"whe_01JM000000E008000000000021"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false},"examples":{"enable":{"summary":"Enable an endpoint","value":{}}}}}},"responses":{"200":{"description":"The endpoint.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^whe_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with whe_."},"object":{"type":"string","const":"webhook_endpoint"},"url":{"type":"string"},"description":{"type":"string"},"event_types":{"anyOf":[{"type":"array","items":{"type":"string","enum":["eligibility.completed","api_key.created","api_key.revoked","claim.validated","claim.needs_attention","claim.queued","claim.submitted","claim.accepted","claim.rejected","claim.status_updated","claim.voided","batch.acknowledged","attachment.completed","payer_request.received","era.received","claim.paid","claim.denied","claim.payment_reversed","predetermination.returned","sftp.file_received","sftp.file_refused","eligibility.batch.completed","office.attachment_registration.updated","statement.paid","enrollment.updated"]}},{"type":"null"}],"description":"The event types sent to this endpoint; null for every type."},"status":{"type":"string","enum":["enabled","disabled"]},"mode":{"type":"string","enum":["test","live"]},"created_at":{"type":"string","format":"date-time"}},"required":["id","object","url","description","event_types","status","mode","created_at"]},"examples":{"enable":{"summary":"Enable an endpoint","value":{"id":"whe_01JM000000E008000000000021","object":"webhook_endpoint","url":"https://hooks.example.com/claimhouse","description":"Billing system","event_types":["eligibility.completed"],"status":"enabled","mode":"test","created_at":"2026-03-10T15:00:00.000000+00:00"}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/sftp-account":{"get":{"operationId":"getSftpAccount","summary":"Get the SFTP account","description":"The organization's SFTP account: its status, the host, port and host key fingerprint to connect to, the four folders, the keys that may log in, and when it last logged in and last had a file taken. The password is never shown: it is shown once, when it is made. Not found when the organization has no SFTP account.","tags":["SFTP account"],"x-permission":"read","responses":{"200":{"description":"The account.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^sftp_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with sftp_."},"object":{"type":"string","const":"sftp_account"},"status":{"type":"string","enum":["active","disabled"],"description":"A disabled account is refused at login; its files stay where they are."},"username":{"type":"string","description":"The user name to log in with."},"host":{"description":"The host to connect to; null in an environment that has no SFTP host.","type":["string","null"]},"port":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"The port to connect to; null in an environment that has no SFTP host."},"host_key_fingerprint":{"description":"The SHA256 fingerprint of the server's host key: check it the first time you connect. Null in an environment that has no SFTP host.","type":["string","null"]},"folders":{"type":"object","properties":{"test":{"type":"object","properties":{"in":{"type":"string","const":"TEST/IN"},"out":{"type":"string","const":"TEST/OUT"}},"required":["in","out"]},"live":{"type":"object","properties":{"in":{"type":"string","const":"IN"},"out":{"type":"string","const":"OUT"}},"required":["in","out"]}},"required":["test","live"],"description":"The folders of the account. A file dropped in a folder under TEST is a test file; the folder is the mode."},"keys":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^sfk_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with sfk_."},"object":{"type":"string","const":"sftp_key"},"label":{"type":"string","maxLength":64,"description":"The name you gave the key."},"fingerprint":{"type":"string","description":"The key's SHA256 fingerprint, as ssh-keygen -l shows it."},"added_at":{"type":"string","format":"date-time"}},"required":["id","object","label","fingerprint","added_at"]},"maxItems":5,"description":"The public keys that may log in, at most 5."},"last_login_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"last_file_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the last file dropped on the account was taken."},"created_at":{"type":"string","format":"date-time"}},"required":["id","object","status","username","host","port","host_key_fingerprint","folders","keys","last_login_at","last_file_at","created_at"]},"examples":{"account":{"summary":"An account with one key","value":{"id":"sftp_01JM000000E00800000000008G","object":"sftp_account","status":"active","username":"example-dental-group","host":"sftp.example.com","port":22,"host_key_fingerprint":"SHA256:3rJq0nX1m2Yw8dVf5uQ7bT9kLz4cE6hA1sPoGvNxYdI","folders":{"test":{"in":"TEST/IN","out":"TEST/OUT"},"live":{"in":"IN","out":"OUT"}},"keys":[{"id":"sfk_01JM000000E00800000000008H","object":"sftp_key","label":"Billing server","fingerprint":"SHA256:Nn0vBzE3Lx9sT2kqYw7dPfH5cRj8uAm1GoVtXiQ4eZs","added_at":"2026-09-24T15:05:00+00:00"}],"last_login_at":"2026-09-24T21:00:00+00:00","last_file_at":"2026-09-24T21:01:00+00:00","created_at":"2026-09-24T15:00:00+00:00"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}},"post":{"operationId":"setUpSftpAccount","summary":"Set up the SFTP account","description":"Makes the organization's SFTP account: a user name chosen from the organization's name and a generated password. An organization has one account, for test and live files; setting up again is refused with CONFLICT: rotate the password instead. If a request is lost after the account was made, rotate the password to get one. Send an empty JSON object as the body. The response carries the password (password). It is shown only in this response and cannot be read again: store it now. A request repeated with the same Idempotency-Key gets the stored reply without the password (password_available is false): rotate the password to get a new one. Needs an Idempotency-Key header and a key with the submit permission.","tags":["SFTP account"],"x-permission":"submit","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false},"examples":{"set_up":{"summary":"Set up the account","value":{}},"replayed":{"summary":"The same request repeated with the same Idempotency-Key: the stored reply, without the password","value":{}}}}}},"responses":{"201":{"description":"The account, with its password.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^sftp_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with sftp_."},"object":{"type":"string","const":"sftp_account"},"status":{"type":"string","enum":["active","disabled"],"description":"A disabled account is refused at login; its files stay where they are."},"username":{"type":"string","description":"The user name to log in with."},"host":{"description":"The host to connect to; null in an environment that has no SFTP host.","type":["string","null"]},"port":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"The port to connect to; null in an environment that has no SFTP host."},"host_key_fingerprint":{"description":"The SHA256 fingerprint of the server's host key: check it the first time you connect. Null in an environment that has no SFTP host.","type":["string","null"]},"folders":{"type":"object","properties":{"test":{"type":"object","properties":{"in":{"type":"string","const":"TEST/IN"},"out":{"type":"string","const":"TEST/OUT"}},"required":["in","out"]},"live":{"type":"object","properties":{"in":{"type":"string","const":"IN"},"out":{"type":"string","const":"OUT"}},"required":["in","out"]}},"required":["test","live"],"description":"The folders of the account. A file dropped in a folder under TEST is a test file; the folder is the mode."},"keys":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^sfk_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with sfk_."},"object":{"type":"string","const":"sftp_key"},"label":{"type":"string","maxLength":64,"description":"The name you gave the key."},"fingerprint":{"type":"string","description":"The key's SHA256 fingerprint, as ssh-keygen -l shows it."},"added_at":{"type":"string","format":"date-time"}},"required":["id","object","label","fingerprint","added_at"]},"maxItems":5,"description":"The public keys that may log in, at most 5."},"last_login_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"last_file_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the last file dropped on the account was taken."},"created_at":{"type":"string","format":"date-time"},"password":{"description":"The password to log in with. Shown only in the response that made it: store it now. Absent when password_available is false.","x-one-time":true,"type":"string"},"password_available":{"type":"boolean","description":"False in the stored reply an Idempotency-Key replay returns: the password is never stored for replay. Rotate the password to get a new one."}},"required":["id","object","status","username","host","port","host_key_fingerprint","folders","keys","last_login_at","last_file_at","created_at","password_available"]},"examples":{"set_up":{"summary":"Set up the account","value":{"id":"sftp_01JM000000E00800000000008G","object":"sftp_account","status":"active","username":"example-dental-group","host":"sftp.example.com","port":22,"host_key_fingerprint":"SHA256:3rJq0nX1m2Yw8dVf5uQ7bT9kLz4cE6hA1sPoGvNxYdI","folders":{"test":{"in":"TEST/IN","out":"TEST/OUT"},"live":{"in":"IN","out":"OUT"}},"keys":[],"last_login_at":null,"last_file_at":null,"created_at":"2026-09-24T15:00:00+00:00","password":"k3Vq9xT1mZ8wRb4nJc7YdLfH2sGpA6uE","password_available":true}},"replayed":{"summary":"The same request repeated with the same Idempotency-Key: the stored reply, without the password","value":{"id":"sftp_01JM000000E00800000000008G","object":"sftp_account","status":"active","username":"example-dental-group","host":"sftp.example.com","port":22,"host_key_fingerprint":"SHA256:3rJq0nX1m2Yw8dVf5uQ7bT9kLz4cE6hA1sPoGvNxYdI","folders":{"test":{"in":"TEST/IN","out":"TEST/OUT"},"live":{"in":"IN","out":"OUT"}},"keys":[{"id":"sfk_01JM000000E00800000000008H","object":"sftp_key","label":"Billing server","fingerprint":"SHA256:Nn0vBzE3Lx9sT2kqYw7dPfH5cRj8uAm1GoVtXiQ4eZs","added_at":"2026-09-24T15:05:00+00:00"}],"last_login_at":"2026-09-24T21:00:00+00:00","last_file_at":"2026-09-24T21:01:00+00:00","created_at":"2026-09-24T15:00:00+00:00","password_available":false}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.\n\n`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.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"CONFLICT":{"summary":"CONFLICT","value":{"error":"CONFLICT","message":"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.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/sftp-account/rotate-password":{"post":{"operationId":"rotateSftpPassword","summary":"Rotate the SFTP password","description":"Replaces the account's password with a new generated one: the old one stops working for every new login at once. A session already open stays open until the client disconnects or has been idle 15 minutes. Send an empty JSON object as the body. The response carries the password (password). It is shown only in this response and cannot be read again: store it now. A request repeated with the same Idempotency-Key gets the stored reply without the password (password_available is false): rotate the password to get a new one. Needs an Idempotency-Key header and a key with the submit permission.","tags":["SFTP account"],"x-permission":"submit","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false},"examples":{"rotate":{"summary":"Rotate the password","value":{}}}}}},"responses":{"200":{"description":"The account, with its new password.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^sftp_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with sftp_."},"object":{"type":"string","const":"sftp_account"},"status":{"type":"string","enum":["active","disabled"],"description":"A disabled account is refused at login; its files stay where they are."},"username":{"type":"string","description":"The user name to log in with."},"host":{"description":"The host to connect to; null in an environment that has no SFTP host.","type":["string","null"]},"port":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"The port to connect to; null in an environment that has no SFTP host."},"host_key_fingerprint":{"description":"The SHA256 fingerprint of the server's host key: check it the first time you connect. Null in an environment that has no SFTP host.","type":["string","null"]},"folders":{"type":"object","properties":{"test":{"type":"object","properties":{"in":{"type":"string","const":"TEST/IN"},"out":{"type":"string","const":"TEST/OUT"}},"required":["in","out"]},"live":{"type":"object","properties":{"in":{"type":"string","const":"IN"},"out":{"type":"string","const":"OUT"}},"required":["in","out"]}},"required":["test","live"],"description":"The folders of the account. A file dropped in a folder under TEST is a test file; the folder is the mode."},"keys":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^sfk_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with sfk_."},"object":{"type":"string","const":"sftp_key"},"label":{"type":"string","maxLength":64,"description":"The name you gave the key."},"fingerprint":{"type":"string","description":"The key's SHA256 fingerprint, as ssh-keygen -l shows it."},"added_at":{"type":"string","format":"date-time"}},"required":["id","object","label","fingerprint","added_at"]},"maxItems":5,"description":"The public keys that may log in, at most 5."},"last_login_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"last_file_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the last file dropped on the account was taken."},"created_at":{"type":"string","format":"date-time"},"password":{"description":"The password to log in with. Shown only in the response that made it: store it now. Absent when password_available is false.","x-one-time":true,"type":"string"},"password_available":{"type":"boolean","description":"False in the stored reply an Idempotency-Key replay returns: the password is never stored for replay. Rotate the password to get a new one."}},"required":["id","object","status","username","host","port","host_key_fingerprint","folders","keys","last_login_at","last_file_at","created_at","password_available"]},"examples":{"rotate":{"summary":"Rotate the password","value":{"id":"sftp_01JM000000E00800000000008G","object":"sftp_account","status":"active","username":"example-dental-group","host":"sftp.example.com","port":22,"host_key_fingerprint":"SHA256:3rJq0nX1m2Yw8dVf5uQ7bT9kLz4cE6hA1sPoGvNxYdI","folders":{"test":{"in":"TEST/IN","out":"TEST/OUT"},"live":{"in":"IN","out":"OUT"}},"keys":[{"id":"sfk_01JM000000E00800000000008H","object":"sftp_key","label":"Billing server","fingerprint":"SHA256:Nn0vBzE3Lx9sT2kqYw7dPfH5cRj8uAm1GoVtXiQ4eZs","added_at":"2026-09-24T15:05:00+00:00"}],"last_login_at":"2026-09-24T21:00:00+00:00","last_file_at":"2026-09-24T21:01:00+00:00","created_at":"2026-09-24T15:00:00+00:00","password":"k3Vq9xT1mZ8wRb4nJc7YdLfH2sGpA6uE","password_available":true}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/sftp-account/keys":{"post":{"operationId":"addSftpKey","summary":"Add an SFTP key","description":"Adds a public key that may log in, under a label. Send the key as one OpenSSH line: ssh-ed25519, ecdsa-sha2-nistp256, -nistp384 or -nistp521, or ssh-rsa of at least 2048 bits; a comment after the key is dropped. An account takes at most 5 keys and a key once: either refusal is CONFLICT. The label is 1 to 64 characters with no control characters. Needs an Idempotency-Key header and a key with the submit permission.","tags":["SFTP account"],"x-permission":"submit","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"minLength":1,"maxLength":64,"description":"A name to tell the key by: 1 to 64 characters, no control characters.","type":"string"},"public_key":{"maxLength":8192,"description":"The public key as one OpenSSH line (ssh-ed25519, ecdsa-sha2-nistp256/384/521 or ssh-rsa of at least 2048 bits). A comment after the key is dropped.","type":"string"}},"required":["label","public_key"],"additionalProperties":false},"examples":{"add":{"summary":"Add an ed25519 key","value":{"label":"Billing server","public_key":"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl billing-server"}}}}}},"responses":{"201":{"description":"The key.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^sfk_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with sfk_."},"object":{"type":"string","const":"sftp_key"},"label":{"type":"string","maxLength":64,"description":"The name you gave the key."},"fingerprint":{"type":"string","description":"The key's SHA256 fingerprint, as ssh-keygen -l shows it."},"added_at":{"type":"string","format":"date-time"}},"required":["id","object","label","fingerprint","added_at"]},"examples":{"add":{"summary":"Add an ed25519 key","value":{"id":"sfk_01JM000000E00800000000008H","object":"sftp_key","label":"Billing server","fingerprint":"SHA256:Nn0vBzE3Lx9sT2kqYw7dPfH5cRj8uAm1GoVtXiQ4eZs","added_at":"2026-09-24T15:05:00+00:00"}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.\n\n`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.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"CONFLICT":{"summary":"CONFLICT","value":{"error":"CONFLICT","message":"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.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/sftp-account/keys/{id}":{"delete":{"operationId":"removeSftpKey","summary":"Remove an SFTP key","description":"Removes the key: it can no longer log in. A session already open stays open until the client disconnects or has been idle 15 minutes. Removing a key that is already gone is not found.","tags":["SFTP account"],"x-permission":"submit","parameters":[{"name":"id","in":"path","required":true,"description":"An SFTP key ID (sfk_...).","schema":{"type":"string"},"example":"sfk_01JM000000E00800000000008H"}],"responses":{"200":{"description":"The key that was removed.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^sfk_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with sfk_."},"object":{"type":"string","const":"sftp_key"},"deleted":{"type":"boolean","const":true}},"required":["id","object","deleted"]},"examples":{"remove":{"summary":"Remove a key","value":{"id":"sfk_01JM000000E00800000000008H","object":"sftp_key","deleted":true}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/sftp-account/disable":{"post":{"operationId":"disableSftpAccount","summary":"Disable the SFTP account","description":"Refuses every new login at once, with the password or a key. A session already open stays open until the client disconnects or has been idle 15 minutes. Files already in the folders stay where they are, and nothing dropped in IN or TEST/IN is taken until the account is enabled. Send an empty JSON object as the body. Needs an Idempotency-Key header and a key with the submit permission.","tags":["SFTP account"],"x-permission":"submit","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false},"examples":{"disable":{"summary":"Disable the account","value":{}}}}}},"responses":{"200":{"description":"The account as it is now.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^sftp_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with sftp_."},"object":{"type":"string","const":"sftp_account"},"status":{"type":"string","enum":["active","disabled"],"description":"A disabled account is refused at login; its files stay where they are."},"username":{"type":"string","description":"The user name to log in with."},"host":{"description":"The host to connect to; null in an environment that has no SFTP host.","type":["string","null"]},"port":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"The port to connect to; null in an environment that has no SFTP host."},"host_key_fingerprint":{"description":"The SHA256 fingerprint of the server's host key: check it the first time you connect. Null in an environment that has no SFTP host.","type":["string","null"]},"folders":{"type":"object","properties":{"test":{"type":"object","properties":{"in":{"type":"string","const":"TEST/IN"},"out":{"type":"string","const":"TEST/OUT"}},"required":["in","out"]},"live":{"type":"object","properties":{"in":{"type":"string","const":"IN"},"out":{"type":"string","const":"OUT"}},"required":["in","out"]}},"required":["test","live"],"description":"The folders of the account. A file dropped in a folder under TEST is a test file; the folder is the mode."},"keys":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^sfk_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with sfk_."},"object":{"type":"string","const":"sftp_key"},"label":{"type":"string","maxLength":64,"description":"The name you gave the key."},"fingerprint":{"type":"string","description":"The key's SHA256 fingerprint, as ssh-keygen -l shows it."},"added_at":{"type":"string","format":"date-time"}},"required":["id","object","label","fingerprint","added_at"]},"maxItems":5,"description":"The public keys that may log in, at most 5."},"last_login_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"last_file_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the last file dropped on the account was taken."},"created_at":{"type":"string","format":"date-time"}},"required":["id","object","status","username","host","port","host_key_fingerprint","folders","keys","last_login_at","last_file_at","created_at"]},"examples":{"disable":{"summary":"Disable the account","value":{"id":"sftp_01JM000000E00800000000008G","object":"sftp_account","status":"disabled","username":"example-dental-group","host":"sftp.example.com","port":22,"host_key_fingerprint":"SHA256:3rJq0nX1m2Yw8dVf5uQ7bT9kLz4cE6hA1sPoGvNxYdI","folders":{"test":{"in":"TEST/IN","out":"TEST/OUT"},"live":{"in":"IN","out":"OUT"}},"keys":[{"id":"sfk_01JM000000E00800000000008H","object":"sftp_key","label":"Billing server","fingerprint":"SHA256:Nn0vBzE3Lx9sT2kqYw7dPfH5cRj8uAm1GoVtXiQ4eZs","added_at":"2026-09-24T15:05:00+00:00"}],"last_login_at":"2026-09-24T21:00:00+00:00","last_file_at":"2026-09-24T21:01:00+00:00","created_at":"2026-09-24T15:00:00+00:00"}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/sftp-account/enable":{"post":{"operationId":"enableSftpAccount","summary":"Enable the SFTP account","description":"Allows logins again. Send an empty JSON object as the body. Needs an Idempotency-Key header and a key with the submit permission.","tags":["SFTP account"],"x-permission":"submit","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false},"examples":{"enable":{"summary":"Enable the account","value":{}}}}}},"responses":{"200":{"description":"The account as it is now.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^sftp_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with sftp_."},"object":{"type":"string","const":"sftp_account"},"status":{"type":"string","enum":["active","disabled"],"description":"A disabled account is refused at login; its files stay where they are."},"username":{"type":"string","description":"The user name to log in with."},"host":{"description":"The host to connect to; null in an environment that has no SFTP host.","type":["string","null"]},"port":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"The port to connect to; null in an environment that has no SFTP host."},"host_key_fingerprint":{"description":"The SHA256 fingerprint of the server's host key: check it the first time you connect. Null in an environment that has no SFTP host.","type":["string","null"]},"folders":{"type":"object","properties":{"test":{"type":"object","properties":{"in":{"type":"string","const":"TEST/IN"},"out":{"type":"string","const":"TEST/OUT"}},"required":["in","out"]},"live":{"type":"object","properties":{"in":{"type":"string","const":"IN"},"out":{"type":"string","const":"OUT"}},"required":["in","out"]}},"required":["test","live"],"description":"The folders of the account. A file dropped in a folder under TEST is a test file; the folder is the mode."},"keys":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^sfk_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with sfk_."},"object":{"type":"string","const":"sftp_key"},"label":{"type":"string","maxLength":64,"description":"The name you gave the key."},"fingerprint":{"type":"string","description":"The key's SHA256 fingerprint, as ssh-keygen -l shows it."},"added_at":{"type":"string","format":"date-time"}},"required":["id","object","label","fingerprint","added_at"]},"maxItems":5,"description":"The public keys that may log in, at most 5."},"last_login_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"last_file_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the last file dropped on the account was taken."},"created_at":{"type":"string","format":"date-time"}},"required":["id","object","status","username","host","port","host_key_fingerprint","folders","keys","last_login_at","last_file_at","created_at"]},"examples":{"enable":{"summary":"Enable the account","value":{"id":"sftp_01JM000000E00800000000008G","object":"sftp_account","status":"active","username":"example-dental-group","host":"sftp.example.com","port":22,"host_key_fingerprint":"SHA256:3rJq0nX1m2Yw8dVf5uQ7bT9kLz4cE6hA1sPoGvNxYdI","folders":{"test":{"in":"TEST/IN","out":"TEST/OUT"},"live":{"in":"IN","out":"OUT"}},"keys":[{"id":"sfk_01JM000000E00800000000008H","object":"sftp_key","label":"Billing server","fingerprint":"SHA256:Nn0vBzE3Lx9sT2kqYw7dPfH5cRj8uAm1GoVtXiQ4eZs","added_at":"2026-09-24T15:05:00+00:00"}],"last_login_at":"2026-09-24T21:00:00+00:00","last_file_at":"2026-09-24T21:01:00+00:00","created_at":"2026-09-24T15:00:00+00:00"}}}}}},"400":{"description":"`IDEMPOTENCY_KEY_REQUIRED`: This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.\n\n`IDEMPOTENCY_KEY_INVALID`: The Idempotency-Key header must be 1 to 255 printable characters.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_REQUIRED":{"summary":"IDEMPOTENCY_KEY_REQUIRED","value":{"error":"IDEMPOTENCY_KEY_REQUIRED","message":"This request needs an Idempotency-Key header: a value you make up (a UUID is good), new for each new request.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_INVALID":{"summary":"IDEMPOTENCY_KEY_INVALID","value":{"error":"IDEMPOTENCY_KEY_INVALID","message":"The Idempotency-Key header must be 1 to 255 printable characters.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"404":{"description":"`NOT_FOUND`: Not found.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"NOT_FOUND":{"summary":"NOT_FOUND","value":{"error":"NOT_FOUND","message":"Not found.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"409":{"description":"`IDEMPOTENCY_KEY_IN_USE`: A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"IDEMPOTENCY_KEY_IN_USE":{"summary":"IDEMPOTENCY_KEY_IN_USE","value":{"error":"IDEMPOTENCY_KEY_IN_USE","message":"A request with that Idempotency-Key is still running. Send it again with the same key after Retry-After seconds.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"413":{"description":"`PAYLOAD_TOO_LARGE`: The request body is larger than 1 MB.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PAYLOAD_TOO_LARGE":{"summary":"PAYLOAD_TOO_LARGE","value":{"error":"PAYLOAD_TOO_LARGE","message":"The request body is larger than 1 MB.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.\n\n`IDEMPOTENCY_KEY_REUSED`: That Idempotency-Key was already used with a different request.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}},"IDEMPOTENCY_KEY_REUSED":{"summary":"IDEMPOTENCY_KEY_REUSED","value":{"error":"IDEMPOTENCY_KEY_REUSED","message":"That Idempotency-Key was already used with a different request.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"},"idempotent-replayed":{"$ref":"#/components/headers/IdempotentReplayed"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}},"/sftp-account/files":{"get":{"operationId":"listSftpFiles","summary":"List the dropped files","description":"The files taken from the account's IN and TEST/IN folders, newest first, one page at a time, each with what became of it: how many claims it made and how many it refused, and the names of the 997, 277 and report written for it. A key sees the files of its own mode only: a test key lists TEST/IN files, and asking it for mode=live returns none. The claims themselves are in GET /claims.","tags":["SFTP account"],"x-permission":"read","parameters":[{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"},{"name":"mode","in":"query","required":false,"description":"Only files of this mode. A key sees only the files of its own mode: asking for the other mode returns none.","schema":{"type":"string","enum":["test","live"]}}],"responses":{"200":{"description":"A page of dropped files.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"sftp_file"},"name":{"type":"string","description":"The file's name as it was dropped."},"mode":{"type":"string","enum":["test","live"],"description":"test for a file dropped in TEST/IN, live for IN."},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Bytes."},"taken_at":{"type":"string","format":"date-time","description":"When Claim House took the file from the folder."},"result":{"type":"string","enum":["stored","refused"],"description":"stored: the file was read and its claims made or refused one by one. refused: the file was refused whole (too large, too many claims, or not an 837D)."},"file_id":{"anyOf":[{"type":"string","pattern":"^fil_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with fil_."},{"type":"null"}],"description":"The stored copy of the file, the same ID Batches & files shows. Null for a file refused without being stored."},"claims_created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"claims_refused":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"responses":{"type":"array","items":{"type":"string"},"description":"The names of the files written to OUT (or TEST/OUT) for it: its 997, its 277 and its report. Empty until the file has been read."}},"required":["object","name","mode","size","taken_at","result","file_id","claims_created","claims_refused","responses"]}},"next_cursor":{"description":"Pass as cursor to get the next page; null when there is no next page.","type":["string","null"]}},"required":["data","next_cursor"]},"examples":{"files":{"summary":"The files a test key can see","value":{"data":[{"object":"sftp_file","name":"claims-0924.837","mode":"test","size":4821,"taken_at":"2026-09-24T21:01:00+00:00","result":"stored","file_id":"fil_01JM000000E00800000000008J","claims_created":2,"claims_refused":1,"responses":["claims-0924.837.997","claims-0924.837.277","claims-0924.837.report.txt"]}],"next_cursor":null}}}}}},"401":{"description":"`UNAUTHORIZED`: A valid API key is required. Send it as \"Authorization: Bearer <key>\".","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"UNAUTHORIZED":{"summary":"UNAUTHORIZED","value":{"error":"UNAUTHORIZED","message":"A valid API key is required. Send it as \"Authorization: Bearer <key>\".","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"403":{"description":"`PERMISSION_DENIED`: This API key is not allowed to do that.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"PERMISSION_DENIED":{"summary":"PERMISSION_DENIED","value":{"error":"PERMISSION_DENIED","message":"This API key is not allowed to do that.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"422":{"description":"`INVALID_REQUEST`: The request is not valid.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INVALID_REQUEST":{"summary":"INVALID_REQUEST","value":{"error":"INVALID_REQUEST","message":"The request is not valid.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"429":{"description":"`TOO_MANY_REQUESTS`: Too many requests of this kind lately. Wait, then try again.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TOO_MANY_REQUESTS":{"summary":"TOO_MANY_REQUESTS","value":{"error":"TOO_MANY_REQUESTS","message":"Too many requests of this kind lately. Wait, then try again.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"500":{"description":"`INTERNAL`: Something went wrong on our side. Quote the request ID if you contact us.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"INTERNAL":{"summary":"INTERNAL","value":{"error":"INTERNAL","message":"Something went wrong on our side. Quote the request ID if you contact us.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}},"504":{"description":"`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>.","headers":{"x-request-id":{"$ref":"#/components/headers/RequestId"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReply"},"examples":{"TIMEOUT":{"summary":"TIMEOUT","value":{"error":"TIMEOUT","message":"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>.","errors":[],"request_id":"req_01JM000000E008000000000010"}}}}}}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"An API key from the API keys page under Developers, sent as \"Authorization: Bearer <key>\". A key is for one organization and one mode."}},"parameters":{"Limit":{"name":"limit","in":"query","required":false,"description":"How many items to return, from 1 to 100. Default 25.","schema":{"type":"integer","minimum":1,"maximum":100}},"Cursor":{"name":"cursor","in":"query","required":false,"description":"The next_cursor of the previous page, to get the page after it. Opaque: pass it back unchanged.","schema":{"type":"string"}},"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":true,"description":"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.","schema":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[\\x21-\\x7e]{1,255}$"}},"OptionalIdempotencyKey":{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional for this operation, recommended for retries: without it the request simply runs. 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.","schema":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[\\x21-\\x7e]{1,255}$"}},"CacheControl":{"name":"Cache-Control","in":"header","required":false,"description":"Send no-cache to skip a recent identical answer and ask the payer again. Without it, an identical request made recently is answered from the saved check (cache.state is hit).","schema":{"type":"string","enum":["no-cache"]}}},"headers":{"RequestId":{"description":"The ID of this request (req_...). The same ID is in request_id of an error. Quote it when you contact support.","schema":{"type":"string"}},"IdempotentReplayed":{"description":"Present, with the value true, when the reply is the stored answer of an earlier request with the same Idempotency-Key.","schema":{"type":"string","enum":["true"]}}},"schemas":{"ApiKey":{"type":"object","properties":{"id":{"type":"string","pattern":"^key_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with key_."},"object":{"type":"string","const":"api_key"},"name":{"type":"string"},"mode":{"type":"string","enum":["test","live"]},"permissions":{"type":"array","items":{"type":"string","enum":["read","submit"]}},"organization":{"type":"object","properties":{"id":{"type":"string","pattern":"^org_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with org_."},"object":{"type":"string","const":"organization"},"name":{"type":"string"},"practice_groups_enabled":{"type":"boolean","description":"Whether practice groups are enabled for the organization (Claim House turns them on on request). Read-only."}},"required":["id","object","name","practice_groups_enabled"]}},"required":["id","object","name","mode","permissions","organization"]},"Payer":{"type":"object","properties":{"id":{"type":"string","pattern":"^pyr_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with pyr_."},"object":{"type":"string","const":"payer"},"payer_id":{"type":"string","description":"The payer's own payer ID, used for routing."},"name":{"type":"string"},"additional_info":{"type":["string","null"]},"aliases":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["active","removed"]},"transactions":{"type":"object","properties":{"eligibility":{"type":"object","properties":{"supported":{"type":"boolean"},"enrollment_required":{"type":"boolean"},"enrollment_type":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"The enrollment code from the payer listing, such as S or WL."},"label":{"type":"string"},"explanation":{"type":"string"}},"required":["code","label","explanation"]},{"type":"null"}]},"connection_type":{"anyOf":[{"type":"string","enum":["real_time"]},{"type":"null"}]},"response_level":{"anyOf":[{"type":"string","enum":["detailed","general"]},{"type":"null"}]},"returns":{"type":"object","properties":{"coinsurance":{"type":["boolean","null"]},"deductibles":{"type":["boolean","null"]},"benefit_descriptions":{"type":["boolean","null"]},"benefit_limitations":{"type":["boolean","null"]},"frequency_limitations":{"type":["boolean","null"]}},"required":["coinsurance","deductibles","benefit_descriptions","benefit_limitations","frequency_limitations"]},"notes":{"type":["string","null"]}},"required":["supported","enrollment_required","enrollment_type","connection_type","response_level","returns","notes"]},"claims":{"type":"object","properties":{"supported":{"type":"boolean"},"enrollment_required":{"type":"boolean"},"enrollment_type":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"The enrollment code from the payer listing, such as S or WL."},"label":{"type":"string"},"explanation":{"type":"string"}},"required":["code","label","explanation"]},{"type":"null"}]},"submission_type":{"anyOf":[{"type":"string","enum":["batch","real_time","ibatch","images"]},{"type":"null"}]}},"required":["supported","enrollment_required","enrollment_type","submission_type"]},"era":{"type":"object","properties":{"supported":{"type":"boolean"},"enrollment_required":{"type":"boolean"},"enrollment_type":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"The enrollment code from the payer listing, such as S or WL."},"label":{"type":"string"},"explanation":{"type":"string"}},"required":["code","label","explanation"]},{"type":"null"}]},"paper_eob_shutoff_when_enrolled":{"type":"boolean"},"notes":{"type":["string","null"]}},"required":["supported","enrollment_required","enrollment_type","paper_eob_shutoff_when_enrolled","notes"]},"attachments":{"type":"object","properties":{"supported":{"type":"boolean"},"enrollment_required":{"type":"boolean"},"enrollment_type":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"The enrollment code from the payer listing, such as S or WL."},"label":{"type":"string"},"explanation":{"type":"string"}},"required":["code","label","explanation"]},{"type":"null"}]},"processor":{"anyOf":[{"type":"string","enum":["nea","claim_house","nea_claim_house"]},{"type":"null"}]},"nea_payer_id":{"type":["string","null"]},"nea_master_id":{"type":["string","null"]}},"required":["supported","enrollment_required","enrollment_type","processor","nea_payer_id","nea_master_id"]}},"required":["eligibility","claims","era","attachments"]},"updated_at":{"type":"string","format":"date-time"}},"required":["id","object","payer_id","name","additional_info","aliases","status","transactions","updated_at"]},"Office":{"type":"object","properties":{"id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"object":{"type":"string","const":"office"},"name":{"type":"string"},"address_line1":{"type":"string"},"address_line2":{"type":["string","null"]},"city":{"type":"string"},"state":{"type":"string"},"postal_code":{"type":"string"},"phone":{"type":"string"},"npi":{"type":"string"},"tax_id_last4":{"type":"string","description":"The last 4 digits of the tax ID. The full tax ID is never returned."},"specialty":{"type":"string"},"time_zone":{"type":"string","description":"The office's time zone (an IANA name): the main zone of its state unless one was chosen."},"pay_to_address":{"anyOf":[{"type":"object","properties":{"line1":{"type":"string"},"line2":{"type":["string","null"]},"city":{"type":"string"},"state":{"type":"string"},"postal_code":{"type":"string"}},"required":["line1","line2","city","state","postal_code"]},{"type":"null"}],"description":"Where payers send payment when that is not the billing address (a PO box may be one); null when the office has none. Claims carry it when it differs from the billing address."},"default_service_location":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"npi":{"type":["string","null"]},"address":{"type":"object","properties":{"line1":{"type":"string"},"line2":{"type":["string","null"]},"city":{"type":"string"},"state":{"type":"string"},"postal_code":{"type":"string"}},"required":["line1","line2","city","state","postal_code"]}},"required":["name","npi","address"]},{"type":"null"}],"description":"Where treatment happens for the office's claims that name no service_location; null when the office has none. Claims carry it when it differs from the billing address."},"payer_provider_ids":{"type":"array","items":{"type":"object","properties":{"payer_id":{"type":"string","pattern":"^pyr_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with pyr_."},"identifier":{"type":"string"}},"required":["payer_id","identifier"]},"description":"The office's IDs assigned by payers (a Medicaid provider ID, say), at most one per payer. A claim to that payer sends it as REF*G2 (the billing provider, 2010BB) unless the claim sends its own (payer_provider_ids). On a change, the list replaces the one on file: an empty list removes them all."},"contact_name":{"description":"Who the attachment network contacts about this office; null when not given.","type":["string","null"]},"contact_email":{"type":["string","null"]},"contact_fax":{"type":["string","null"]},"doctor_first_name":{"description":"The office's primary doctor, for registering with the attachment network.","type":["string","null"]},"doctor_last_name":{"type":["string","null"]},"attachment_network":{"type":"object","properties":{"state":{"type":"string","enum":["not_registered","pending","registered","failed"],"description":"not_registered until the office is registered (POST /offices/{id}/register_attachments, or closing its first attachment). pending: the network has the request, or could not be reached and Claim House tries again on its own (for up to a day). registered: it has its facility ID. failed: see failure."},"details":{"anyOf":[{"type":"string","enum":["in_sync","updating","update_failed","needs_manual_update"]},{"type":"null"}],"description":"For a registered office, whether the network has its current details after an edit of a registered field: in_sync; updating (being told, tried again); update_failed; needs_manual_update (the network takes no update: Claim House staff tell it). Null unless registered. Attachments are never blocked by it."},"facility_id":{"description":"The facility ID the attachment network gave the office.","type":["string","null"]},"registered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"failure":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","enum":["invalid_fields","duplicate_facility","refused","network_unavailable"],"description":"invalid_fields: the network named office fields to fix (fields). duplicate_facility: the network has this office already. refused: any other refusal, in the network's words. network_unavailable: the network could not be reached for a day of tries."},"message":{"type":"string","description":"Why, in words."},"fields":{"type":"array","items":{"type":"string"},"description":"The office fields to fix (their names in this API), when the network named them; else empty."}},"required":["code","message","fields"],"description":"Why the registration failed; null unless state is failed. Fix what it says, then register the office again."},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the state, the details or the failure last changed; null while never registered."}},"required":["state","details","facility_id","registered_at","failure","updated_at"],"description":"The office's registration with the attachment network, which it needs before its first attachment is sent. Each change sends office.attachment_registration.updated."},"origin":{"type":"string","enum":["dashboard","api","sftp"],"description":"Where the office came from: the dashboard, the API, or a file dropped over SFTP."},"practice_group_id":{"anyOf":[{"type":"string","pattern":"^pgr_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with pgr_."},{"type":"null"}],"description":"The practice group the office is in; null for a standalone office (and always null while practice groups are not enabled)."},"client_reference":{"description":"Your own ID for the office; null when none was given.","type":["string","null"]},"mode":{"type":"string","enum":["test","live"]},"created_at":{"type":"string","format":"date-time"}},"required":["id","object","name","address_line1","address_line2","city","state","postal_code","phone","npi","tax_id_last4","specialty","time_zone","pay_to_address","default_service_location","payer_provider_ids","contact_name","contact_email","contact_fax","doctor_first_name","doctor_last_name","attachment_network","origin","practice_group_id","client_reference","mode","created_at"]},"Provider":{"type":"object","properties":{"id":{"type":"string","pattern":"^prv_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with prv_."},"object":{"type":"string","const":"provider"},"first_name":{"type":"string","maxLength":35},"last_name":{"type":"string","maxLength":60},"credential":{"type":"string","maxLength":10,"description":"The credential after the name, such as DDS. Empty when there is none."},"npi":{"type":"string","description":"The provider's individual NPI."},"licenses":{"type":"array","items":{"type":"object","properties":{"state":{"type":"string","description":"The two-letter code of the state that issued the license."},"number":{"type":"string","maxLength":30}},"required":["state","number"]},"description":"The state licenses on file, one per state, in the order they were given; empty when there is none. A claim sends the license of the state where the treatment happened (its service location, else the billing office), and none when the provider has no license for that state."},"license":{"anyOf":[{"type":"object","properties":{"number":{"type":"string"},"state":{"type":"string","description":"The two-letter code of the state that issued the license."}},"required":["number","state"]},{"type":"null"}],"deprecated":true,"description":"Deprecated: the first of `licenses`, or null when there is none. Read `licenses`: this field will be removed."},"taxonomy_code":{"type":"string","description":"The NUCC taxonomy code sent on claims."},"specialty":{"type":"string","description":"The specialty the taxonomy code stands for (General dentistry, Orthodontics...), or the code itself when it is not one of the dental codes."},"status":{"type":"string","enum":["active","inactive"]},"payer_provider_ids":{"type":"array","items":{"type":"object","properties":{"payer_id":{"type":"string","pattern":"^pyr_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with pyr_."},"identifier":{"type":"string"}},"required":["payer_id","identifier"]},"description":"The provider's IDs assigned by payers (a Medicaid provider ID, say), at most one per payer. A claim to that payer sends it as REF*G2 (the rendering provider, 2310B) unless the claim sends its own (payer_provider_ids). On a change, the list replaces the one on file: an empty list removes them all."},"origin":{"type":"string","enum":["dashboard","api","sftp"],"description":"Where the provider came from: the dashboard, the API, or a file dropped over SFTP."},"mode":{"type":"string","enum":["test","live"]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["id","object","first_name","last_name","credential","npi","licenses","license","taxonomy_code","specialty","status","payer_provider_ids","origin","mode","created_at","updated_at"]},"PayerLabel":{"type":"object","properties":{"id":{"type":"string","pattern":"^pyr_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with pyr_."},"payer_id":{"type":"string","description":"The payer's own payer ID."},"name":{"type":"string"}},"required":["id","payer_id","name"]},"EligibilityCheck":{"type":"object","properties":{"id":{"type":"string","pattern":"^elg_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with elg_."},"object":{"type":"string","const":"eligibility_check"},"office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"patient_id":{"anyOf":[{"type":"string","pattern":"^pat_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with pat_."},{"type":"null"}],"description":"The patient this is about (pat_...) in the patient directory: the dependent when there is one, else the subscriber. Set by Claim House when a check completes or a claim's patient is written; null while a check is pending, and when the patient has no date of birth or a name with no letters or digits to compare."},"payer":{"$ref":"#/components/schemas/PayerLabel"},"state":{"type":"string","enum":["pending","completed"]},"outcome":{"anyOf":[{"type":"string","enum":["answered","rejected","payer_unavailable","error"]},{"type":"null"}],"description":"How the check ended; null while pending."},"status":{"anyOf":[{"type":"string","enum":["active","inactive","unknown"]},{"type":"null"}],"description":"The coverage status: active, inactive or unknown; null when there is no answer."},"billing":{"anyOf":[{"$ref":"#/components/schemas/Billing"},{"type":"null"}],"description":"Null while the check is pending: it has no usage record yet."},"cache":{"type":"object","properties":{"state":{"type":"string","enum":["fresh","hit"]},"source_id":{"anyOf":[{"type":"string","pattern":"^elg_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with elg_."},{"type":"null"}]}},"required":["state","source_id"]},"parent_id":{"anyOf":[{"type":"string","pattern":"^elg_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with elg_."},{"type":"null"}],"description":"The rejected check this one corrects."},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made the check (the x-request-id of its response); null for a check made in the dashboard."},"idempotency_key":{"description":"The Idempotency-Key the check was sent with.","type":["string","null"]},"source":{"anyOf":[{"type":"object","properties":{"network":{"type":["string","null"]},"latency_ms":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"completed_at":{"type":"string","format":"date-time"}},"required":["network","latency_ms","completed_at"]},{"type":"null"}]},"tenant_reference":{"description":"Your own reference, sent with the check.","type":["string","null"]},"created_at":{"type":"string","format":"date-time"},"request":{"type":"object","properties":{"subscriber":{"type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"date_of_birth":{"type":"string","format":"date"},"member_id":{"type":"string"},"group_number":{"type":["string","null"]}},"required":["first_name","last_name","date_of_birth","member_id","group_number"]},"patient":{"anyOf":[{"type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"date_of_birth":{"type":"string","format":"date"},"relationship":{"type":"string","enum":["spouse","child","other"]}},"required":["first_name","last_name","date_of_birth","relationship"]},{"type":"null"}]},"service_date":{"type":"string","format":"date"},"procedure_codes":{"type":"array","items":{"type":"string"}},"detail_level":{"type":"string","enum":["standard","enhanced"],"description":"The level of detail asked for."},"office_npi":{"type":"string","description":"The NPI of the office when the check was made."}},"required":["subscriber","patient","service_date","procedure_codes","detail_level","office_npi"]},"rejection":{"anyOf":[{"$ref":"#/components/schemas/Rejection"},{"type":"null"}]},"coverage_effective_date":{"anyOf":[{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},{"type":"null"}]},"coverage_termination_date":{"anyOf":[{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},{"type":"null"}]},"plan":{"anyOf":[{"type":"object","properties":{"name":{"type":["string","null"]},"type":{"type":["string","null"]},"group_number":{"type":["string","null"]},"benefit_period":{"type":["string","null"]}},"required":["name","type","group_number","benefit_period"]},{"type":"null"}]},"network_status":{"anyOf":[{"type":"string","enum":["in_network","out_of_network","unknown"]},{"type":"null"}]},"maximums":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"level":{"type":"string","enum":["individual","family"]},"period":{"type":"string","enum":["calendar_year","plan_year","lifetime"]},"amount":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}]},"used":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}]},"remaining":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}]},"applies_to":{"type":["string","null"]},"network":{"type":"string","enum":["in_network","out_of_network","any"],"description":"The network tier the limit is for: in_network, out_of_network, or any when the payer does not distinguish tiers."},"categories":{"type":"array","items":{"type":"string","enum":["preventive","diagnostic","basic","endodontics","periodontics","oral_surgery","major","prosthodontics","implants","orthodontics"]},"description":"The benefit categories the limit is for; empty when it applies to the whole plan."}},"required":["level","period","amount","used","remaining","applies_to","network","categories"]}},{"type":"null"}]},"deductibles":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"level":{"type":"string","enum":["individual","family"]},"period":{"type":"string","enum":["calendar_year","plan_year","lifetime"]},"amount":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}]},"used":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}]},"remaining":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$"},{"type":"null"}]},"applies_to":{"type":["string","null"]},"network":{"type":"string","enum":["in_network","out_of_network","any"],"description":"The network tier the limit is for: in_network, out_of_network, or any when the payer does not distinguish tiers."},"categories":{"type":"array","items":{"type":"string","enum":["preventive","diagnostic","basic","endodontics","periodontics","oral_surgery","major","prosthodontics","implants","orthodontics"]},"description":"The benefit categories the limit is for; empty when it applies to the whole plan."}},"required":["level","period","amount","used","remaining","applies_to","network","categories"]}},{"type":"null"}]},"coverage":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"category":{"type":"string","enum":["preventive","diagnostic","basic","endodontics","periodontics","oral_surgery","major","prosthodontics","implants","orthodontics"]},"percent_paid":{"anyOf":[{"type":"number","minimum":0,"maximum":100},{"type":"null"}],"description":"What the plan pays in network, or the only value when the payer does not distinguish tiers."},"out_of_network_percent_paid":{"anyOf":[{"type":"number","minimum":0,"maximum":100},{"type":"null"}],"description":"What the plan pays out of network; null when the payer returned none."},"covered":{"type":["boolean","null"]},"frequency":{"type":["string","null"]},"notes":{"type":["string","null"]},"messages":{"type":"array","items":{"type":"string"},"description":"The payer's own messages about the category, unchanged."}},"required":["category","percent_paid","out_of_network_percent_paid","covered","frequency","notes","messages"]}},{"type":"null"}]},"procedures":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","pattern":"^D\\d{4}$"},"description":{"type":["string","null"]},"percent_paid":{"anyOf":[{"type":"number","minimum":0,"maximum":100},{"type":"null"}],"description":"What the plan pays in network, or the only value when the payer does not distinguish tiers."},"out_of_network_percent_paid":{"anyOf":[{"type":"number","minimum":0,"maximum":100},{"type":"null"}],"description":"What the plan pays out of network; null when the payer returned none."},"covered":{"type":["boolean","null"]},"frequency":{"anyOf":[{"type":"object","properties":{"count":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"period":{"description":"calendar_year, plan_year, lifetime, or a number of months or days such as 36_months.","type":["string","null"]},"scope":{"description":"per_tooth or per_quadrant when the limit counts by area; null when the payer does not say.","type":["string","null"]},"used":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"Times used this period; null when the payer gave no count."},"remaining":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"Times left this period; null when the payer gave no count."}},"required":["count","period","scope","used","remaining"]},{"type":"null"}]},"max_age":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"min_age":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"The youngest the patient may be, in whole years (inclusive); null for no age floor."},"last_service_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"next_eligible_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"status":{"anyOf":[{"type":"string","enum":["covered_now","not_due_yet","downgraded","age_limit","not_covered"]},{"type":"null"}]},"note":{"type":["string","null"]},"messages":{"type":"array","items":{"type":"string"},"description":"The payer's own messages about the procedure, unchanged."}},"required":["code","description","percent_paid","out_of_network_percent_paid","covered","frequency","max_age","min_age","last_service_date","next_eligible_date","status","note","messages"]}},{"type":"null"}]},"plan_rules":{"anyOf":[{"type":"object","properties":{"missing_tooth_clause":{"type":["string","null"]},"waiting_period":{"type":["string","null"]},"pre_authorization":{"type":["string","null"]},"coordination_of_benefits":{"type":["string","null"]},"major_services_paid_on":{"anyOf":[{"type":"string","enum":["prep_date","seat_date"]},{"type":"null"}]}},"required":["missing_tooth_clause","waiting_period","pre_authorization","coordination_of_benefits","major_services_paid_on"]},{"type":"null"}]},"payer_notes":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"not_returned":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]}},"required":["id","object","office_id","patient_id","payer","state","outcome","status","billing","cache","parent_id","request_id","idempotency_key","source","tenant_reference","created_at","request","rejection","coverage_effective_date","coverage_termination_date","plan","network_status","maximums","deductibles","coverage","procedures","plan_rules","payer_notes","not_returned"]},"EligibilityCheckSummary":{"type":"object","properties":{"id":{"type":"string","pattern":"^elg_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with elg_."},"object":{"type":"string","const":"eligibility_check"},"office_id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"patient_id":{"anyOf":[{"type":"string","pattern":"^pat_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with pat_."},{"type":"null"}],"description":"The patient this is about (pat_...) in the patient directory: the dependent when there is one, else the subscriber. Set by Claim House when a check completes or a claim's patient is written; null while a check is pending, and when the patient has no date of birth or a name with no letters or digits to compare."},"payer":{"$ref":"#/components/schemas/PayerLabel"},"state":{"type":"string","enum":["pending","completed"]},"outcome":{"anyOf":[{"type":"string","enum":["answered","rejected","payer_unavailable","error"]},{"type":"null"}],"description":"How the check ended; null while pending."},"status":{"anyOf":[{"type":"string","enum":["active","inactive","unknown"]},{"type":"null"}],"description":"The coverage status: active, inactive or unknown; null when there is no answer."},"billing":{"anyOf":[{"$ref":"#/components/schemas/Billing"},{"type":"null"}],"description":"Null while the check is pending: it has no usage record yet."},"cache":{"type":"object","properties":{"state":{"type":"string","enum":["fresh","hit"]},"source_id":{"anyOf":[{"type":"string","pattern":"^elg_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with elg_."},{"type":"null"}]}},"required":["state","source_id"]},"parent_id":{"anyOf":[{"type":"string","pattern":"^elg_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with elg_."},{"type":"null"}],"description":"The rejected check this one corrects."},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made the check (the x-request-id of its response); null for a check made in the dashboard."},"idempotency_key":{"description":"The Idempotency-Key the check was sent with.","type":["string","null"]},"source":{"anyOf":[{"type":"object","properties":{"network":{"type":["string","null"]},"latency_ms":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"completed_at":{"type":"string","format":"date-time"}},"required":["network","latency_ms","completed_at"]},{"type":"null"}]},"tenant_reference":{"description":"Your own reference, sent with the check.","type":["string","null"]},"created_at":{"type":"string","format":"date-time"}},"required":["id","object","office_id","patient_id","payer","state","outcome","status","billing","cache","parent_id","request_id","idempotency_key","source","tenant_reference","created_at"]},"Billing":{"type":"object","properties":{"charged":{"type":"boolean"},"state":{"type":"string","enum":["billable","not_billable"]},"reason":{"type":"string","enum":["test_mode","answered","payer_rejected","payer_side_rejection","payer_unavailable","network_error","internal_error","cache_hit"]},"label":{"type":"string","description":"Why the check was or was not charged, in a sentence."}},"required":["charged","state","reason","label"]},"Rejection":{"type":"object","properties":{"kind":{"type":"string","enum":["fix_and_resend","payer_unavailable","rejected"]},"payer_code":{"type":"string","description":"The payer's own rejection code."},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/RejectionReason"}}},"required":["kind","payer_code","reasons"]},"RejectionReason":{"type":"object","properties":{"code":{"type":"string","enum":["MEMBER_NOT_FOUND","PATIENT_IS_DEPENDENT","DATE_OF_BIRTH_MISMATCH","MEMBER_ID_INVALID","MEMBER_ID_DUPLICATE","NAME_MISMATCH","SERVICE_DATE_INVALID","REQUEST_INVALID","REQUEST_NOT_ACCEPTED","PROVIDER_NOT_ON_FILE","PROVIDER_NOT_ELIGIBLE","PATIENT_NOT_ELIGIBLE","PATIENT_DETAILS_REQUIRED","PAYER_NOT_ANSWERING","PAYER_REJECTED_OTHER"]},"about":{"type":"string","enum":["subscriber","patient","provider","request","clearinghouse","payer"],"description":"Whose side the reason is on."},"field":{"description":"The request field to change (for example subscriber.member_id), or null.","type":["string","null"]},"message":{"type":"string"},"fix":{"type":"string"},"suggested_value":{"type":"string"}},"required":["code","about","field","message","fix"]},"Claim":{"type":"object","properties":{"id":{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},"object":{"type":"string","const":"claim"},"kind":{"type":"string","enum":["claim","predetermination"],"description":"claim, or predetermination (sent before treatment; its answer is an estimate). Set when it was made."},"state":{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},"next_step":{"type":"string","description":"One sentence saying what happens next, or what you must do."},"frequency":{"type":"string","enum":["original","replacement","void"],"description":"original; replacement for a resubmission of a claim the payer has; void for a void transaction."},"parent_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"The claim a void transaction voids."},"patient_control_number":{"type":"string","description":"Your identifier for the claim, or the one we made: unique in your organization, sent on the claim and returned on its status."},"office":{"type":"object","properties":{"id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"name":{"type":"string"}},"required":["id","name"]},"payer":{"$ref":"#/components/schemas/PayerLabel"},"rendering_provider":{"type":"object","properties":{"id":{"type":"string","pattern":"^prv_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with prv_."},"first_name":{"type":"string"},"last_name":{"type":"string"},"npi":{"type":"string"}},"required":["id","first_name","last_name","npi"]},"patient_name":{"type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"}},"required":["first_name","last_name"],"description":"The patient: the dependent when there is one, else the subscriber."},"patient_id":{"anyOf":[{"type":"string","pattern":"^pat_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with pat_."},{"type":"null"}],"description":"The patient this is about (pat_...) in the patient directory: the dependent when there is one, else the subscriber. Set by Claim House when a check completes or a claim's patient is written; null while a check is pending, and when the patient has no date of birth or a name with no letters or digits to compare."},"service_dates":{"type":"object","properties":{"first":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"last":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]}},"required":["first","last"]},"totals":{"type":"object","properties":{"charge":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"The sum of the line fees, in dollars, as a decimal string."},"lines":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["charge","lines"]},"payment":{"anyOf":[{"type":"object","properties":{"outcome":{"type":"string","enum":["paid","denied"],"description":"paid or denied: the outcome of the claim's current payment (the latest one no reversal cancelled). A reconciled claim keeps it."},"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"The ERA of the claim's current payment (era_...): the latest one, when that is not certain."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer paid in all: the sum of every payment applied, reversals subtracted."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},{"type":"null"}],"description":"The amount the current payment allowed, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes, as the payer says (deductible, coinsurance and the like)."},"payment_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"The payment date of the ERA."},"reconciled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When you confirmed you posted the payment (state reconciled); null until then."}},"required":["outcome","era_id","paid","allowed","patient_responsibility","payment_date","reconciled_at"]},{"type":"null"}],"description":"What the payer paid (states paid, denied and reconciled), from its remittances; null before one arrives, when every payment was reversed, and always on a predetermination."},"estimate":{"anyOf":[{"type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"The ERA that carried the estimate (era_...)."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},{"type":"null"}],"description":"What the payer would allow, when it said."},"pay":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer would pay once the treatment is done."},"patient":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"The patient's estimated share."},"returned_at":{"type":"string","format":"date-time","description":"When the estimate arrived."},"lines":{"type":"array","items":{"type":"object","properties":{"line_number":{"type":"integer","minimum":1,"maximum":9007199254740991},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},{"type":"null"}]},"pay":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},"patient":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."}},"required":["line_number","allowed","pay","patient"]},"description":"The estimate per line, where the payer said (line_number is the predetermination's)."}},"required":["era_id","allowed","pay","patient","returned_at","lines"]},{"type":"null"}],"description":"A predetermination's estimate (state returned); null before it arrives, and always on a claim."},"converted_from":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"On a claim made from a predetermination: the predetermination."},"converted_to":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"On a converted predetermination: the claim made from it."},"source_claim_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"On a claim made for the next payer (POST /claims/{id}/next_claim): the claim it was made from, whose payer paid or denied it. Null otherwise."},"insurance_type":{"type":"string","enum":["commercial","medicaid","medicare_b","champus","dental_maintenance","ppo","pos","epo","indemnity","hmo","self_pay","other"],"description":"The claim filing indicator (SBR09). commercial unless the claim says otherwise."},"sequence":{"type":"string","enum":["primary","secondary","tertiary"],"description":"primary, secondary or tertiary: this claim's place among the payers (coordination.sequence)."},"encounter":{"type":"boolean","description":"True for a capitation encounter: reported to the payer, not billed for payment (sent as reporting only, BHT06 RP). Always false on a predetermination."},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made the claim (the x-request-id of its response); null for a claim made in the dashboard."},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"subscriber":{"type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"date_of_birth":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"gender":{"anyOf":[{"type":"string","enum":["F","M","U"]},{"type":"null"}]},"member_id":{"type":"string"},"group_number":{"type":["string","null"]},"address":{"anyOf":[{"type":"object","properties":{"line1":{"type":"string"},"line2":{"type":["string","null"]},"city":{"type":"string"},"state":{"type":"string"},"postal_code":{"type":"string"}},"required":["line1","line2","city","state","postal_code"]},{"type":"null"}]}},"required":["first_name","last_name","date_of_birth","gender","member_id","group_number","address"]},"patient":{"anyOf":[{"type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"date_of_birth":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"gender":{"anyOf":[{"type":"string","enum":["F","M","U"]},{"type":"null"}]},"relationship":{"type":"string","enum":["spouse","child","other"]},"address":{"anyOf":[{"type":"object","properties":{"line1":{"type":"string"},"line2":{"type":["string","null"]},"city":{"type":"string"},"state":{"type":"string"},"postal_code":{"type":"string"}},"required":["line1","line2","city","state","postal_code"]},{"type":"null"}]}},"required":["first_name","last_name","date_of_birth","gender","relationship","address"]},{"type":"null"}],"description":"The patient, when not the subscriber."},"place_of_service":{"type":"string"},"lines":{"type":"array","items":{"type":"object","properties":{"line_number":{"type":"integer","minimum":1,"maximum":9007199254740991},"cdt":{"type":"string"},"description":{"description":"The description you sent, or our short description of the code when you sent none and it is a common one.","type":["string","null"]},"service_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"The date of service. Null on a predetermination (it has none), and on a claim made from one until you add it."},"fee":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"The charge for the whole line, in dollars, as a decimal string (never multiplied by the quantity)."},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many units the line is for: a count sent with the line (SV306)."},"tooth":{"type":["string","null"]},"surfaces":{"type":["string","null"]},"area":{"description":"The oral cavity code: a quadrant (10, 20, 30, 40), an arch (01, 02) or 00.","type":["string","null"]},"teeth":{"type":"array","items":{"type":"object","properties":{"tooth":{"type":"string"},"surfaces":{"type":["string","null"]}},"required":["tooth","surfaces"]},"description":"The teeth of a line sent with several (each its own TOO segment); empty when the line gives tooth and surfaces instead."},"areas":{"type":"array","items":{"type":"string"},"description":"The oral cavity codes of a line sent with several; empty when the line gives area instead."},"prosthesis":{"anyOf":[{"type":"string","enum":["initial","replacement"]},{"type":"null"}],"description":"initial or replacement, for a crown, bridge or denture."},"prior_placement_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"When the prosthesis being replaced was first placed."},"diagnosis_pointers":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"description":"Positions (from 1) in the claim's diagnosis_codes that this line points at."}},"required":["line_number","cdt","description","service_date","fee","quantity","tooth","surfaces","area","teeth","areas","prosthesis","prior_placement_date","diagnosis_pointers"]}},"remarks":{"type":["string","null"]},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"coordination":{"type":"object","properties":{"sequence":{"type":"string","enum":["primary","secondary","tertiary"],"description":"primary, secondary or tertiary: this claim's place among the payers."},"other_payers":{"type":"array","items":{"type":"object","properties":{"payer_id":{"anyOf":[{"type":"string","pattern":"^pyr_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with pyr_."},{"type":"null"}],"description":"The directory payer (pyr_...), when the other payer is one; null for a payer named by payer_name and payer_identifier."},"payer_name":{"description":"The payer's name: the directory's for a directory payer.","type":["string","null"]},"payer_identifier":{"description":"The payer ID the claim file carries for it (NM109): the directory's for a directory payer.","type":["string","null"]},"responsibility":{"type":"string","enum":["primary","secondary"]},"insurance_type":{"type":"string","enum":["commercial","medicaid","medicare_b","champus","dental_maintenance","ppo","pos","epo","indemnity","hmo","self_pay","other"]},"relationship":{"type":"string","enum":["self","spouse","child","other"],"description":"The patient's relationship to this payer's subscriber."},"subscriber":{"type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"member_id":{"type":"string"},"group_number":{"type":["string","null"]}},"required":["first_name","last_name","member_id","group_number"]},"paid":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},{"type":"null"}],"description":"What this payer paid; null when it did not adjudicate the claim."},"paid_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"patient_responsibility":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},{"type":"null"}]},"adjustments":{"type":"array","items":{"type":"object","properties":{"group":{"type":"string","enum":["CO","OA","PI","PR"]},"reason":{"type":"string"},"amount":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."}},"required":["group","reason","amount"]},"description":"Its adjustments: claim level only when it has lines."},"lines":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"line":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The claim line, from 1."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},"adjustments":{"type":"array","items":{"type":"object","properties":{"group":{"type":"string","enum":["CO","OA","PI","PR"]},"reason":{"type":"string"},"amount":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."}},"required":["group","reason","amount"]}}},"required":["line","paid","adjustments"]}},{"type":"null"}],"description":"What it paid and adjusted line by line (loop 2430); null when it gave claim-level figures only."}},"required":["payer_id","payer_name","payer_identifier","responsibility","insurance_type","relationship","subscriber","paid","paid_date","patient_responsibility","adjustments","lines"]}}},"required":["sequence","other_payers"],"description":"Coordination of benefits: this claim's sequence and the other payers responsible before or alongside it. A primary claim with no other payer has an empty list."},"accident":{"anyOf":[{"type":"object","properties":{"cause":{"type":"string","enum":["auto","employment","other"]},"date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"state":{"type":["string","null"]}},"required":["cause","date","state"]},{"type":"null"}]},"referral_number":{"type":["string","null"]},"prior_authorization":{"type":["string","null"]},"diagnosis_codes":{"type":"array","items":{"type":"string"},"description":"The ICD-10-CM codes of the claim, the first the principal diagnosis, as sent."},"orthodontics":{"anyOf":[{"type":"object","properties":{"appliance_placed_date":{"type":"string","format":"date"},"total_months":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"months_remaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["appliance_placed_date","total_months","months_remaining"]},{"type":"null"}]},"missing_teeth":{"type":"array","items":{"type":"object","properties":{"tooth":{"type":"string"},"status":{"type":"string","enum":["missing","to_be_extracted"]}},"required":["tooth","status"]}},"service_location":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"npi":{"type":["string","null"]},"address":{"type":"object","properties":{"line1":{"type":"string"},"line2":{"type":["string","null"]},"city":{"type":"string"},"state":{"type":"string"},"postal_code":{"type":"string"}},"required":["line1","line2","city","state","postal_code"]}},"required":["name","npi","address"]},{"type":"null"}],"description":"Where the treatment happened, when that is not the billing office's address."},"payer_provider_ids":{"type":"object","properties":{"billing":{"type":["string","null"]},"rendering":{"type":["string","null"]}},"required":["billing","rendering"],"description":"The payer's own IDs for the billing office and the rendering provider the claim sends itself (REF*G2); null where it leaves them to the office's and the provider's (see snapshot)."},"attachments":{"type":"array","items":{"type":"string","pattern":"^att_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with att_."},"description":"The attachments the claim carries, in the order the claim file writes them (a PWK and a note for each)."},"foreign_attachments":{"type":"array","items":{"type":"object","properties":{"pwk":{"type":"array","items":{"type":"string"},"description":"The elements of the PWK segment after its id."},"nte":{"description":"The text of the NTE that followed it, or null.","type":["string","null"]}},"required":["pwk","nte"]},"description":"The references of attachments a partner already holds a number for, carried by the claim file unchanged after the claim's own attachments."},"validation":{"anyOf":[{"type":"object","properties":{"validated_at":{"type":"string","format":"date-time"},"errors":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"warnings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"findings":{"type":"array","items":{"type":"object","properties":{"field":{"description":"The request field the finding is about, as a dotted path (lines[0].tooth), or null for the claim as a whole.","type":["string","null"]},"code":{"type":"string","description":"A stable code for the finding."},"message":{"type":"string"},"severity":{"type":"string","enum":["error","warning"],"description":"An error keeps the claim from being sent; a warning does not."}},"required":["field","code","message","severity"]}}},"required":["validated_at","errors","warnings","findings"]},{"type":"null"}],"description":"The result of the last validation; null while the claim has not been validated."},"network":{"type":"object","properties":{"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"clearinghouse_claim_id":{"type":["string","null"]},"payer_claim_number":{"description":"The payer's own number for the claim, once it has accepted it.","type":["string","null"]},"rejection":{"anyOf":[{"type":"object","properties":{"source":{"type":"string","enum":["clearinghouse","payer"]},"category":{"description":"The status category code from the 277 (such as A7).","type":["string","null"]},"code":{"description":"The status code from the 277 (such as 33).","type":["string","null"]},"message":{"type":"string","description":"Why, in plain words."},"fix":{"description":"What to change, when it is known.","type":["string","null"]}},"required":["source","category","code","message","fix"]},{"type":"null"}]}},"required":["submitted_at","clearinghouse_claim_id","payer_claim_number","rejection"]},"idempotency_key":{"description":"The Idempotency-Key the claim was sent with.","type":["string","null"]},"allow_duplicate":{"type":"boolean","description":"True when the claim was marked as a separate service identical to another claim: a duplicate is then a warning, not a DUPLICATE_CLAIM error."},"delivery_uncertain":{"anyOf":[{"type":"object","properties":{"file_id":{"type":"string","pattern":"^fil_[0-9A-HJKMNP-TV-Z]{26}$","description":"The file the claim was last sent in, which may already be with the payer."}},"required":["file_id"]},{"type":"null"}],"description":"Set when the claim came back with DELIVERY_UNCERTAIN: its file was handed to the network and no acknowledgement came, so the claim may already be with the payer. Check its status; sending it again needs confirm_resend true. Null otherwise, and once it is queued again."},"no_payer_answer":{"anyOf":[{"type":"object","properties":{"file_id":{"type":"string","pattern":"^fil_[0-9A-HJKMNP-TV-Z]{26}$","description":"The file the claim was last sent in, which the payer never answered."},"since":{"type":"string","format":"date-time","description":"When that file was handed to the network."}},"required":["file_id","since"]},{"type":"null"}],"description":"Set when the claim came back with NO_PAYER_ANSWER: the payer has not answered it since it was sent. Check its status with the payer, then send it again (confirm_resend true) or void it. A late answer from the payer still applies and clears it. Null otherwise."},"snapshot":{"anyOf":[{"type":"object","properties":{"billing_office":{"type":"object","properties":{"name":{"type":"string"},"npi":{"type":"string"},"tax_id":{"type":"string"},"address":{"type":"object","properties":{"line1":{"type":"string"},"line2":{"type":["string","null"]},"city":{"type":"string"},"state":{"type":"string"},"postal_code":{"type":"string"}},"required":["line1","line2","city","state","postal_code"]},"phone":{"type":"string"},"pay_to_address":{"anyOf":[{"type":"object","properties":{"line1":{"type":"string"},"line2":{"type":["string","null"]},"city":{"type":"string"},"state":{"type":"string"},"postal_code":{"type":"string"}},"required":["line1","line2","city","state","postal_code"]},{"type":"null"}],"description":"The pay-to address the file names (2010AB); null when it names none (the office has none, or it is the billing address)."}},"required":["name","npi","tax_id","address","phone","pay_to_address"],"description":"The billing provider (2010AA): the claim's office as it was when the claim was queued."},"service_location":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"npi":{"type":["string","null"]},"address":{"type":"object","properties":{"line1":{"type":"string"},"line2":{"type":["string","null"]},"city":{"type":"string"},"state":{"type":"string"},"postal_code":{"type":"string"}},"required":["line1","line2","city","state","postal_code"]}},"required":["name","npi","address"]},{"type":"null"}],"description":"The service facility the file names (2310C): the claim's own service_location, else its office's default one; null when the treatment happened at the billing address."},"payer_provider_ids":{"type":"object","properties":{"billing":{"type":["string","null"]},"rendering":{"type":["string","null"]}},"required":["billing","rendering"],"description":"The payer's own IDs the file sends (REF*G2 in 2010BB and 2310B): the claim's own payer_provider_ids, else the office's and the rendering provider's for the claim's payer; null where none."},"rendering_provider":{"type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"npi":{"type":"string"},"taxonomy_code":{"type":"string"},"license":{"anyOf":[{"type":"object","properties":{"state":{"type":"string"},"number":{"type":"string"}},"required":["state","number"]},{"type":"null"}],"description":"The one license the file sends (2310B REF*0B): the provider's license for the state of the service location, else of the billing office; null when the provider has none for that state."}},"required":["first_name","last_name","npi","taxonomy_code","license"],"description":"The rendering provider (2310B) as it was when the claim was queued."}},"required":["billing_office","service_location","payer_provider_ids","rendering_provider"]},{"type":"null"}],"description":"What the claim's file says of its billing office, service location and rendering provider, fixed when the claim was queued: an office or provider edited afterwards changes no queued or sent claim. Null while the claim follows the current records (draft, validated, needs_attention; a correction takes a new one when it is queued again), and on a claim queued before snapshots were kept. A claim flagged NO_PAYER_ANSWER keeps the one it was sent with."}},"required":["id","object","kind","state","next_step","frequency","parent_id","patient_control_number","office","payer","rendering_provider","patient_name","patient_id","service_dates","totals","payment","estimate","converted_from","converted_to","source_claim_id","insurance_type","sequence","encounter","request_id","created_at","updated_at","subscriber","patient","place_of_service","lines","remarks","metadata","coordination","accident","referral_number","prior_authorization","diagnosis_codes","orthodontics","missing_teeth","service_location","payer_provider_ids","attachments","foreign_attachments","validation","network","idempotency_key","allow_duplicate","delivery_uncertain","no_payer_answer","snapshot"]},"ClaimSummary":{"type":"object","properties":{"id":{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},"object":{"type":"string","const":"claim"},"kind":{"type":"string","enum":["claim","predetermination"],"description":"claim, or predetermination (sent before treatment; its answer is an estimate). Set when it was made."},"state":{"type":"string","enum":["draft","validated","needs_attention","queued","submitted","accepted_clearinghouse","accepted_payer","rejected","voided","paid","denied","reconciled","returned"]},"next_step":{"type":"string","description":"One sentence saying what happens next, or what you must do."},"frequency":{"type":"string","enum":["original","replacement","void"],"description":"original; replacement for a resubmission of a claim the payer has; void for a void transaction."},"parent_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"The claim a void transaction voids."},"patient_control_number":{"type":"string","description":"Your identifier for the claim, or the one we made: unique in your organization, sent on the claim and returned on its status."},"office":{"type":"object","properties":{"id":{"type":"string","pattern":"^off_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with off_."},"name":{"type":"string"}},"required":["id","name"]},"payer":{"$ref":"#/components/schemas/PayerLabel"},"rendering_provider":{"type":"object","properties":{"id":{"type":"string","pattern":"^prv_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with prv_."},"first_name":{"type":"string"},"last_name":{"type":"string"},"npi":{"type":"string"}},"required":["id","first_name","last_name","npi"]},"patient_name":{"type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"}},"required":["first_name","last_name"],"description":"The patient: the dependent when there is one, else the subscriber."},"patient_id":{"anyOf":[{"type":"string","pattern":"^pat_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with pat_."},{"type":"null"}],"description":"The patient this is about (pat_...) in the patient directory: the dependent when there is one, else the subscriber. Set by Claim House when a check completes or a claim's patient is written; null while a check is pending, and when the patient has no date of birth or a name with no letters or digits to compare."},"service_dates":{"type":"object","properties":{"first":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"last":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]}},"required":["first","last"]},"totals":{"type":"object","properties":{"charge":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"The sum of the line fees, in dollars, as a decimal string."},"lines":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["charge","lines"]},"payment":{"anyOf":[{"type":"object","properties":{"outcome":{"type":"string","enum":["paid","denied"],"description":"paid or denied: the outcome of the claim's current payment (the latest one no reversal cancelled). A reconciled claim keeps it."},"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"The ERA of the claim's current payment (era_...): the latest one, when that is not certain."},"paid":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer paid in all: the sum of every payment applied, reversals subtracted."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},{"type":"null"}],"description":"The amount the current payment allowed, when it said."},"patient_responsibility":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the patient owes, as the payer says (deductible, coinsurance and the like)."},"payment_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"The payment date of the ERA."},"reconciled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When you confirmed you posted the payment (state reconciled); null until then."}},"required":["outcome","era_id","paid","allowed","patient_responsibility","payment_date","reconciled_at"]},{"type":"null"}],"description":"What the payer paid (states paid, denied and reconciled), from its remittances; null before one arrives, when every payment was reversed, and always on a predetermination."},"estimate":{"anyOf":[{"type":"object","properties":{"era_id":{"type":"string","pattern":"^era_[0-9A-HJKMNP-TV-Z]{26}$","description":"The ERA that carried the estimate (era_...)."},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},{"type":"null"}],"description":"What the payer would allow, when it said."},"pay":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"What the payer would pay once the treatment is done."},"patient":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"The patient's estimated share."},"returned_at":{"type":"string","format":"date-time","description":"When the estimate arrived."},"lines":{"type":"array","items":{"type":"object","properties":{"line_number":{"type":"integer","minimum":1,"maximum":9007199254740991},"allowed":{"anyOf":[{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},{"type":"null"}]},"pay":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."},"patient":{"type":"string","pattern":"^-?\\d+\\.\\d{2}$","description":"An amount in dollars, as a decimal string with two places (such as \"113.60\")."}},"required":["line_number","allowed","pay","patient"]},"description":"The estimate per line, where the payer said (line_number is the predetermination's)."}},"required":["era_id","allowed","pay","patient","returned_at","lines"]},{"type":"null"}],"description":"A predetermination's estimate (state returned); null before it arrives, and always on a claim."},"converted_from":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"On a claim made from a predetermination: the predetermination."},"converted_to":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"On a converted predetermination: the claim made from it."},"source_claim_id":{"anyOf":[{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},{"type":"null"}],"description":"On a claim made for the next payer (POST /claims/{id}/next_claim): the claim it was made from, whose payer paid or denied it. Null otherwise."},"insurance_type":{"type":"string","enum":["commercial","medicaid","medicare_b","champus","dental_maintenance","ppo","pos","epo","indemnity","hmo","self_pay","other"],"description":"The claim filing indicator (SBR09). commercial unless the claim says otherwise."},"sequence":{"type":"string","enum":["primary","secondary","tertiary"],"description":"primary, secondary or tertiary: this claim's place among the payers (coordination.sequence)."},"encounter":{"type":"boolean","description":"True for a capitation encounter: reported to the payer, not billed for payment (sent as reporting only, BHT06 RP). Always false on a predetermination."},"request_id":{"anyOf":[{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with req_."},{"type":"null"}],"description":"The API request that made the claim (the x-request-id of its response); null for a claim made in the dashboard."},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["id","object","kind","state","next_step","frequency","parent_id","patient_control_number","office","payer","rendering_provider","patient_name","patient_id","service_dates","totals","payment","estimate","converted_from","converted_to","source_claim_id","insurance_type","sequence","encounter","request_id","created_at","updated_at"]},"ClaimTimeline":{"type":"object","properties":{"object":{"type":"string","const":"claim_timeline"},"claim_id":{"type":"string","pattern":"^clm_[0-9A-HJKMNP-TV-Z]{26}$","description":"An ID that starts with clm_."},"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["created","edited","validated","needs_attention","queued","requeued","submitted","accepted_clearinghouse","accepted_payer","rejected","status_recorded","void_requested","voided","attachment_linked","attachment_unlinked","attachment_discarded","payer_request_received","payer_request_answered","paid","denied","reconciled","payment_corrected","payment_reversed","payment_matched","returned","converted","correction_cancelled","moved","next_claim_created"]},"occurred_at":{"type":"string","format":"date-time"},"summary":{"type":"string","description":"What happened, in plain words."},"detail":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Structured detail: the file, control numbers, status category and code."},"actor":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["user","api_key","sftp"]},"id":{"type":["string","null"]},"label":{"description":"For an SFTP account: how the entry names it (\"SFTP · dentafive\").","type":"string"}},"required":["kind","id"]},{"type":"null"}],"description":"Who caused it, when someone did: a person of your organization, an API key (its key_ id), or your SFTP account (its sftp_ id)."}},"required":["type","occurred_at","summary","detail","actor"]}}},"required":["object","claim_id","data"]},"SandboxScenario":{"type":"object","properties":{"id":{"type":"string","description":"Send this as the subscriber member_id of a test-mode check to get the scenario."},"object":{"type":"string","const":"sandbox_scenario"},"use_as":{"type":"string","const":"member_id"},"description":{"type":"string"},"outcome":{"type":"string","enum":["answered","rejected","payer_unavailable"],"description":"What the payer does: answers, rejects or is unavailable."},"covers":{"type":"array","items":{"type":"string","enum":["eligibility"]},"description":"The products the scenario applies to."}},"required":["id","object","use_as","description","outcome","covers"]},"ErrorReply":{"type":"object","properties":{"error":{"type":"string","enum":["UNAUTHORIZED","PERMISSION_DENIED","FEATURE_NOT_ENABLED","NOT_FOUND","METHOD_NOT_ALLOWED","INVALID_REQUEST","IDEMPOTENCY_KEY_REQUIRED","IDEMPOTENCY_KEY_INVALID","IDEMPOTENCY_KEY_REUSED","IDEMPOTENCY_KEY_IN_USE","TOO_MANY_REQUESTS","REQUEST_TIMEOUT","PAYLOAD_TOO_LARGE","TIMEOUT","PAYER_REJECTED","PAYER_UNAVAILABLE","NETWORK_ERROR","ELIGIBILITY_UNAVAILABLE","CLAIMS_UNAVAILABLE","ATTACHMENTS_UNAVAILABLE","ATTACHMENTS_NETWORK_ERROR","NPI_REGISTRY_UNAVAILABLE","CONFLICT","NO_APPLIED_PAYMENT","NO_NEXT_PAYER","PAYMENT_NOT_BALANCED","DELIVERY_UNCERTAIN","NO_PAYER_ANSWER","REGISTRATION_PENDING","NPI_CONFLICT","STATUS_MANAGED","INTERNAL"],"description":"A stable code for the error."},"message":{"type":"string"},"errors":{"type":"array","items":{"$ref":"#/components/schemas/ErrorDetail"},"description":"The problems found, for a request that was not valid; empty for any other error."},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number","boolean","null"]},"description":"Facts about the error for a program to act on, when it has any (absent otherwise): flat, of plain values. Each error code says what it carries, such as the ID of the provider that already has an NPI (provider_id), the enrollment already there (enrollment_id), the figures of a payment that does not add up (charge, paid, adjustments, difference: decimal strings), or the rate limit a request was refused for (bucket, and the organization's effective per_second and burst)."},"request_id":{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"Quote this if you contact support. The same ID is in the x-request-id response header."}},"required":["error","message","errors","request_id"]},"ErrorDetail":{"type":"object","properties":{"field":{"description":"The request field the problem is about, as a dotted path (subscriber.member_id), or null for the request as a whole.","type":["string","null"]},"code":{"type":"string","enum":["required","invalid_type","too_short","too_long","too_small","too_big","invalid_format","invalid_value","unknown_field","invalid_body","invalid","OFFICE_NOT_FOUND","MODE_MISMATCH","PAYER_NOT_FOUND","PAYER_NOT_SUPPORTED_FOR_ELIGIBILITY","SUBSCRIBER_NAME_REQUIRED","SUBSCRIBER_MEMBER_ID_REQUIRED","DATE_OF_BIRTH_INVALID","DATE_OF_BIRTH_IN_FUTURE","PATIENT_NAME_REQUIRED","PATIENT_RELATIONSHIP_REQUIRED","PATIENT_RELATIONSHIP_INVALID","PATIENT_IS_SUBSCRIBER","SERVICE_DATE_INVALID","TOO_MANY_PROCEDURE_CODES","PROCEDURE_CODE_INVALID","PARENT_NOT_FOUND","PARENT_NOT_RESENDABLE","REQUIRED","TOO_SHORT","TOO_LONG","FORMAT_INVALID","IDENTIFIER_DELIMITER","IDENTIFIER_CHARACTER","IDENTIFIER_CONTROL_CHARACTER","IDENTIFIER_SPACING","TEXT_CHARACTER_REPLACED","TEXT_CHARACTER_UNSENDABLE","TEXT_SHORTENED","TEXT_EMPTY_AFTER_CLEANING","DATE_INVALID","DATE_IN_FUTURE","DATE_OF_BIRTH_AFTER_SERVICE","SERVICE_DATE_IN_FUTURE","SERVICE_DATE_NOT_ALLOWED","SERVICE_DATE_OLD","CONTROL_NUMBER_INVALID","PLACE_OF_SERVICE_INVALID","NO_LINES","TOO_MANY_LINES","CDT_FORMAT","CDT_RANGE","FEE_INVALID","FEE_NOT_POSITIVE","QUANTITY_INVALID","TOOTH_INVALID","TOOTH_REQUIRED","SURFACES_NEED_TOOTH","SURFACES_REQUIRED","SURFACE_INVALID","SURFACE_REPEATED","TOO_MANY_SURFACES","AREA_INVALID","AREA_REQUIRED","AREA_NOT_QUADRANT","AREA_NOT_ARCH","TOTAL_MISMATCH","ORIGINAL_REFERENCE_MISSING","OFFICE_NPI_INVALID","OFFICE_TAX_ID_INVALID","OFFICE_ADDRESS_INCOMPLETE","OFFICE_ZIP_PLUS4_REQUIRED","OFFICE_PHONE_INVALID","PROVIDER_NOT_FOUND","PROVIDER_INACTIVE","PROVIDER_NPI_INVALID","PROVIDER_LICENSE_MISSING","NO_LICENSE_FOR_STATE","PAYER_INACTIVE","PAYER_NOT_SUPPORTED_FOR_CLAIMS","PAYER_NOT_ON_CLEARINGHOUSE","CLEARINGHOUSE_ENROLLMENT_REQUIRED","ENROLLMENT_NOT_ACTIVE","DUPLICATE_CLAIM","X12_CANNOT_BUILD","OFFICE_ADDRESS_PO_BOX","FILE_NOT_SENT","DELIVERY_UNCERTAIN","NO_PAYER_ANSWER","FILE_REJECTED","ATTACHMENT_REQUIRED","ATTACHMENT_OPEN","ATTACHMENT_RECOMMENDED","ATTACHMENT_NOT_FOUND","ATTACHMENT_NOT_USABLE","REMARKS_NAME_ATTACHMENT","ATTACHMENT_PATIENT_DIFFERS","ATTACHMENT_NOT_REVIEWED","COB_PAYERS_MISMATCH","OTHER_PAYER_PAID_NOT_ALLOWED","OTHER_PAYER_NOT_BALANCED","OTHER_PAYER_LINE_INVALID","OTHER_PAYER_LINE_MISSING","OTHER_PAYER_LINE_NOT_BALANCED","TOO_MANY_ADJUSTMENTS","DIAGNOSIS_CODE_INVALID","DIAGNOSIS_CODE_REPEATED","DIAGNOSIS_POINTER_INVALID","ORTHODONTICS_MONTHS_INVALID","PRIOR_PLACEMENT_REQUIRED","TOOTH_REPEATED","NPI_INVALID"],"description":"A stable code for the problem."},"message":{"type":"string"}},"required":["field","code","message"]},"CheckErrorReply":{"type":"object","properties":{"error":{"type":"string","enum":["PAYER_REJECTED","PAYER_UNAVAILABLE","NETWORK_ERROR","INTERNAL"]},"message":{"type":"string"},"errors":{"type":"array","items":{"$ref":"#/components/schemas/ErrorDetail"},"description":"The problems found, for a request that was not valid; empty for any other error."},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number","boolean","null"]},"description":"Facts about the error for a program to act on, when it has any (absent otherwise): flat, of plain values. Each error code says what it carries, such as the ID of the provider that already has an NPI (provider_id), the enrollment already there (enrollment_id), the figures of a payment that does not add up (charge, paid, adjustments, difference: decimal strings), or the rate limit a request was refused for (bucket, and the organization's effective per_second and burst)."},"request_id":{"type":"string","pattern":"^req_[0-9A-HJKMNP-TV-Z]{26}$","description":"Quote this if you contact support. The same ID is in the x-request-id response header."},"check":{"$ref":"#/components/schemas/EligibilityCheck"}},"required":["error","message","errors","request_id","check"]}}}}