#
Ca277 list
GET
/api/v1/billing/277ca
Last 100 original acknowledgment document summaries for this tenant.
Access
OAuth 2.0 access tokenbilling.read
Responses
-
200
Success
application/json
-
Fields CA277List · 2
| Field |
Type |
Details |
items
required
|
array of object |
|
limit
required
|
constant |
always 100
|
Example response placeholder values
{
"items": [
{}
],
"limit": 100
}
-
400
Invalid or unsupported EDI profile/field/acknowledgment
-
401
Authentication required
-
403
Role or billing scope denied
-
404
Tenant scoped record not found
-
409
Duplicate evidence, stale version, changed claim or incompatible state
-
428
Quoted If-Match required
-
500
Database/audit failure; transaction rolled back
Example call
curl "$EHR_URL/api/v1/billing/277ca" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Ca277 import
POST
/api/v1/billing/277ca
Stage bounded 005010X214 multi-claim/service evidence only. Declared issuer scope required. Source link must match original text and any declared origin exactly. No claim changes on import. Optional remote_report_id requires exact retrieved original, unlinked report and declared origin. Initial Stedi acknowledgments remain clearinghouse-origin.
Access
OAuth 2.0 access tokenbilling.write
Request body
application/json · required
Fields Import277CA · 6
| Field |
Type |
Details |
origin
required
|
any |
one of clearinghouse, payer
|
original_text
required
|
string |
length 1–48000
|
reason
required
|
string |
length 1–1000
|
request_id
required
|
string (uuid) |
|
remote_report_id
|
string or null |
|
source_history_id
|
string or null |
|
Example request body placeholder values
{
"origin": "clearinghouse",
"original_text": "string",
"reason": "string",
"request_id": "00000000-0000-4000-8000-000000000000",
"remote_report_id": "00000000-0000-4000-8000-000000000000",
"source_history_id": "00000000-0000-4000-8000-000000000000"
}
Responses
-
200
Success
application/json
-
Fields CA277ImportResult · 41
| Field |
Type |
Details |
id
required
|
string (uuid) |
|
origin
required
|
string |
|
parsed
required
|
CA277Parsed |
|
claims
required
|
array of CA277Row |
|
ancestor_statuses
required
|
array of CA277Status |
|
action
required
|
string |
|
amount_cents
required
|
integer or null |
|
category
required
|
string |
|
code
required
|
string |
|
date
required
|
string or null |
|
entity
required
|
string |
|
message
required
|
string |
|
control
required
|
string |
|
dates
required
|
array of object |
|
intermediary_control
required
|
string |
|
issues
required
|
array of string |
|
member_id
required
|
string |
|
outcome
required
|
string |
|
patient_name
required
|
string |
|
payer_control
required
|
string |
|
payer_id
required
|
string |
|
provider_npi
required
|
string |
|
receiver_id
required
|
string |
|
references
required
|
array of object |
|
services
required
|
array of CA277Service |
|
amount_cents
required
|
integer or null |
|
code
required
|
string |
|
dates
required
|
array of object |
|
line_control
required
|
string |
|
statuses
required
|
array of CA277Status |
|
statuses
required
|
array of CA277Status |
|
action
required
|
string |
|
amount_cents
required
|
integer or null |
|
category
required
|
string |
|
code
required
|
string |
|
date
required
|
string or null |
|
entity
required
|
string |
|
message
required
|
string |
|
transaction
required
|
string |
|
issues
required
|
array of string |
|
transactions
required
|
integer |
|
Example response placeholder values
{
"id": "00000000-0000-4000-8000-000000000000",
"origin": "string",
"parsed": {
"claims": [
{
"ancestor_statuses": [],
"control": "string",
"dates": [],
"intermediary_control": "string",
"issues": [],
"member_id": "string",
"outcome": "string",
"patient_name": "string",
"payer_control": "string",
"payer_id": "string",
"provider_npi": "string",
"receiver_id": "string",
"references": [],
"services": [],
"statuses": [],
"transaction": "string"
}
],
"issues": [
"string"
],
"transactions": 1
}
}
-
400
Invalid or unsupported EDI profile/field/acknowledgment
-
401
Authentication required
-
403
Role or billing scope denied
-
404
Tenant scoped record not found
-
409
Duplicate evidence, stale version, changed claim or incompatible state
-
428
Quoted If-Match required
-
500
Database/audit failure; transaction rolled back
Example call
curl -X POST "$EHR_URL/api/v1/billing/277ca" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Ca277 detail
GET
/api/v1/billing/277ca/{id}
Original hashed text, parsed hierarchy/claim/service evidence and immutable per-row review decisions.
Access
OAuth 2.0 access tokenbilling.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/json
-
Fields CA277Detail · 27
| Field |
Type |
Details |
document
required
|
CA277Document |
|
id
required
|
string (uuid) |
|
origin
required
|
string |
|
original_hash
required
|
string |
|
original_text
required
|
string |
|
parsed
required
|
CA277Parsed |
|
claims
required
|
array of CA277Row |
|
ancestor_statuses
required
|
array of CA277Status |
|
control
required
|
string |
|
dates
required
|
array of object |
|
intermediary_control
required
|
string |
|
issues
required
|
array of string |
|
member_id
required
|
string |
|
outcome
required
|
string |
|
patient_name
required
|
string |
|
payer_control
required
|
string |
|
payer_id
required
|
string |
|
provider_npi
required
|
string |
|
receiver_id
required
|
string |
|
references
required
|
array of object |
|
services
required
|
array of CA277Service |
|
statuses
required
|
array of CA277Status |
|
transaction
required
|
string |
|
issues
required
|
array of string |
|
transactions
required
|
integer |
|
source_history_id
|
string or null |
|
reviews
required
|
array of object |
|
Example response placeholder values
{
"document": {
"id": "00000000-0000-4000-8000-000000000000",
"origin": "string",
"original_hash": "string",
"original_text": "string",
"parsed": {
"claims": [
{
"ancestor_statuses": null,
"control": null,
"dates": null,
"intermediary_control": null,
"issues": null,
"member_id": null,
"outcome": null,
"patient_name": null,
"payer_control": null,
"payer_id": null,
"provider_npi": null,
"receiver_id": null,
"references": null,
"services": null,
"statuses": null,
"transaction": null
}
],
"issues": [
"string"
],
"transactions": 1
},
"source_history_id": "00000000-0000-4000-8000-000000000000"
},
"reviews": [
{}
]
}
-
400
Invalid or unsupported EDI profile/field/acknowledgment
-
401
Authentication required
-
403
Role or billing scope denied
-
404
Tenant scoped record not found
-
409
Duplicate evidence, stale version, changed claim or incompatible state
-
428
Quoted If-Match required
-
500
Database/audit failure; transaction rolled back
Example call
curl "$EHR_URL/api/v1/billing/277ca/{id}" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Ca277 apply
POST
/api/v1/billing/277ca/{id}/rows/{row}/apply
Apply one reviewed row to exact current delivered submission/submitted claim. Verifies source, NPI, member, payer, receiver, control, supplied amount/date and service identities. Clearinghouse acceptance never infers payer acceptance. Unsupported/conflicting evidence, stale versions and repeated application conflict. Claim/submission/review/audit commit atomically.
Access
OAuth 2.0 access tokenbilling.write
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
row
required
|
path |
integer |
|
If-Match
required
|
header |
string |
Quoted current submission/job version; initial immutable 277CA row review uses "1" plus captured submission/claim versions. |
Request body
application/json · required
Fields Review277CA · 4
| Field |
Type |
Details |
claim_version
required
|
integer |
value ≥ 1
|
reason
required
|
string |
length 1–1000
|
submission_id
required
|
string (uuid) |
|
submission_version
required
|
integer |
value ≥ 1
|
Example request body placeholder values
{
"claim_version": 1,
"reason": "string",
"submission_id": "00000000-0000-4000-8000-000000000000",
"submission_version": 1
}
Responses
-
200
Success
application/json
-
Fields CA277Applied · 5
| Field |
Type |
Details |
claim_changed
required
|
boolean |
|
document_id
required
|
string (uuid) |
|
origin
required
|
string |
|
outcome
required
|
string |
|
row
required
|
integer |
|
Example response placeholder values
{
"claim_changed": true,
"document_id": "00000000-0000-4000-8000-000000000000",
"origin": "string",
"outcome": "string",
"row": 1
}
-
400
Invalid or unsupported EDI profile/field/acknowledgment
-
401
Authentication required
-
403
Role or billing scope denied
-
404
Tenant scoped record not found
-
409
Duplicate evidence, stale version, changed claim or incompatible state
-
428
Quoted If-Match required
-
500
Database/audit failure; transaction rolled back
Example call
curl -X POST "$EHR_URL/api/v1/billing/277ca/{id}/rows/{row}/apply" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Claims worklist
GET
/api/v1/billing/claims
List native claims, cursor paginated. Optional patient_id and account_id filters combine with AND inside the authenticated tenant scope; neither changes access authority.
Access
OAuth 2.0 access tokenbilling.read
Parameters
| Name |
In |
Type |
Details |
after
|
query |
string (uuid) |
Opaque UUID cursor from preceding page |
patient_id
|
query |
string (uuid) |
Restrict results to this native patient. |
account_id
|
query |
string (uuid) |
Restrict results to this native account. |
Responses
-
200
Success
application/json
-
Fields ClaimWorklist · 2
| Field |
Type |
Details |
items
|
array of object |
items ≤ 100
|
next_cursor
|
string or null |
|
Example response placeholder values
{
"items": [
{}
],
"next_cursor": "00000000-0000-4000-8000-000000000000"
}
-
400
Invalid values or unsupported shape
-
401
Sign in required
-
403
Role or billing scope denied
-
404
Tenant/patient scoped record not found
-
409
Stale review, duplicate evidence, incompatible lifecycle or unsafe balance
-
428
Current quoted If-Match required
-
500
Database/audit failure; transaction rolled back
Example call
curl "$EHR_URL/api/v1/billing/claims" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Read claim
GET
/api/v1/billing/claims/{id}
Read tenant scoped record, validation issues and review evidence.
Access
OAuth 2.0 access tokenbilling.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/json
-
Fields ClaimDetail · 65
| Field |
Type |
Details |
claim
required
|
Claim |
|
account_id
required
|
string (uuid) |
|
content
required
|
ClaimContent |
|
billing_address
required
|
string |
length ≤ 1000
|
billing_npi
required
|
string |
length ≤ 10
|
billing_provider_name
required
|
string |
length ≤ 200
|
diagnosis_codes
required
|
array of string |
items ≤ 12
|
external_control_number
required
|
string |
length ≤ 100
|
line_diagnosis_pointers
required
|
array of array of integer |
items ≤ 100
|
notes
required
|
string |
length ≤ 2000
|
patient_address
required
|
string |
length ≤ 1000
|
place_of_service
required
|
string |
length ≤ 2
|
rendering_npi
required
|
string |
length ≤ 10
|
subscriber_address
required
|
string |
length ≤ 1000
|
subscriber_birth_date
required
|
string or null |
|
tax_id
required
|
string |
length ≤ 9
|
control_number
required
|
string |
length ≤ 100
|
frequency
required
|
any |
one of original, replacement, void_request
|
id
required
|
string (uuid) |
|
parent_id
required
|
string or null |
|
patient_id
required
|
string (uuid) |
|
payer_control_number
required
|
string |
length ≤ 150
|
payer_id
required
|
string (uuid) |
|
snapshot
required
|
object |
|
account
required
|
BillingAccount |
|
content
required
|
BillingAccountContent |
|
coverage_snapshot
required
|
object or null |
Frozen payer and policy versions captured at local posting; no eligibility assertion
|
id
required
|
string (uuid) |
|
patient_id
required
|
string (uuid) |
|
source_history_id
required
|
string or null |
|
status
required
|
string |
one of draft, posted, void
|
total_cents
required
|
integer |
value 1–1000000000
|
version
required
|
integer |
value ≥ 1
|
diagnosis_snapshot
|
AccountDiagnosisSnapshot or null |
|
patient
required
|
object |
Frozen patient demographic evidence
|
coordination_of_benefits
|
object |
Frozen primary coverage/details/adjudication/source, reviewed paid units and previously posted primary credits. Optional crossover object binds received secondary remittance id/version/row/hash, payee NPI, trace/date and row evidence. Presence of crossover makes the claim tracking-only with no packet, CMS1500, 837 or delivery.
|
financial_summary
|
object |
Ledger totals frozen at claim creation, including combined account balance; not an automatic patient responsibility determination.
|
source_history_id
required
|
string or null |
|
status
required
|
any |
For received crossover tracking, submitted means received secondary response linked for review; no outbound delivery is implied. Adjudicated follows reviewed ERA posting; void may follow reviewed withdrawal.
one of draft, ready, submitted, accepted, rejected, adjudicated, void
|
version
required
|
integer |
value ≥ 1
|
preflight_issues
required
|
array of string |
items ≤ 100
|
transport
required
|
object |
Configured clearinghouse routes, artifact availability and retrieval health; unrelated to Connect WSS.
|
submission_defaults
|
object |
Structured review defaults from claim and chart; does not submit a claim.
|
tracking
|
ClaimTracking |
Read-only evidence scoped to the exact tenant and claim. Eligibility matches frozen coverage, member, payer and service date. Remittance posting does not imply zero balance. No GET triggers provider calls or accounting changes.
|
connections
required
|
array of object |
|
last_poll_at
required
|
string or null |
|
last_result
required
|
string or null |
|
last_success_at
required
|
string or null |
|
next_poll_at
required
|
string or null |
|
paused
required
|
boolean |
|
route_key
required
|
string |
|
eligibility
required
|
null or object |
|
external_submission_recorded
required
|
boolean |
|
remittance_posted
required
|
boolean |
|
reports
required
|
array of object |
|
evidence
required
|
object |
Canonical allowlisted Claim.MD response fields, including senderid, sender_name, response_time, status and message. Acknowledgment is not payer acceptance or payment.
|
id
required
|
string (uuid) |
|
received_at
required
|
string or null |
|
submission_id
required
|
string (uuid) |
|
submissions
required
|
array of object |
|
created_at
required
|
string or null |
|
id
required
|
string (uuid) |
|
payer_outcome
required
|
string |
|
status
required
|
string |
|
technical_status
required
|
string |
|
Example response placeholder values
{
"claim": {
"account_id": "00000000-0000-4000-8000-000000000000",
"content": {
"billing_address": "string",
"billing_npi": "string",
"billing_provider_name": "string",
"diagnosis_codes": [
"string"
],
"external_control_number": "string",
"line_diagnosis_pointers": [
[]
],
"notes": "string",
"patient_address": "string",
"place_of_service": "string",
"rendering_npi": "string",
"subscriber_address": "string",
"subscriber_birth_date": "2026-01-15",
"tax_id": "string"
},
"control_number": "string",
"frequency": "original",
"id": "00000000-0000-4000-8000-000000000000",
"parent_id": "00000000-0000-4000-8000-000000000000",
"patient_id": "00000000-0000-4000-8000-000000000000",
"payer_control_number": "string",
"payer_id": "00000000-0000-4000-8000-000000000000",
"snapshot": {
"account": {
"content": {
"coverage_id": null,
"currency": "USD",
"lines": null,
"notes": null,
"service_date": null,
"visit_id": null,
"fee_context": null
},
"coverage_snapshot": {},
"id": "00000000-0000-4000-8000-000000000000",
"patient_id": "00000000-0000-4000-8000-000000000000",
"source_history_id": "00000000-0000-4000-8000-000000000000",
"status": "draft",
"total_cents": 1,
"version": 1
},
"patient": {},
"coordination_of_benefits": {},
"financial_summary": {}
},
"source_history_id": "00000000-0000-4000-8000-000000000000",
"status": "draft",
"version": 1
},
"preflight_issues": [
"string"
],
"transport": {},
"submission_defaults": {},
"tracking": {
"connections": [
{
"last_poll_at": "2026-01-15T15:30:00Z",
"last_result": "string",
"last_success_at": "2026-01-15T15:30:00Z",
"next_poll_at": "2026-01-15T15:30:00Z",
"paused": true,
"route_key": "string"
}
],
"eligibility": {
"completed_at": "2026-01-15T15:30:00Z",
"created_at": "2026-01-15T15:30:00Z",
"service_date": "2026-01-15",
"status": "string"
},
"external_submission_recorded": true,
"remittance_posted": true,
"reports": [
{
"evidence": {},
"id": "00000000-0000-4000-8000-000000000000",
"received_at": "2026-01-15T15:30:00Z",
"submission_id": "00000000-0000-4000-8000-000000000000"
}
],
"submissions": [
{
"created_at": "2026-01-15T15:30:00Z",
"id": "00000000-0000-4000-8000-000000000000",
"payer_outcome": "string",
"status": "string",
"technical_status": "string"
}
]
}
}
-
400
Invalid values or unsupported shape
-
401
Sign in required
-
403
Role or billing scope denied
-
404
Tenant/patient scoped record not found
-
409
Stale review, duplicate evidence, incompatible lifecycle or unsafe balance
-
428
Current quoted If-Match required
-
500
Database/audit failure; transaction rolled back
Example call
curl "$EHR_URL/api/v1/billing/claims/{id}" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Edit claim
PUT
/api/v1/billing/claims/{id}
Edit current draft; released packet remains immutable.
Access
OAuth 2.0 access tokenbilling.write
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
If-Match
required
|
header |
string |
Quoted current account version for claim creation; current claim or remittance version for subsequent mutations |
Request body
application/json · required
Fields EditClaim · 15
| Field |
Type |
Details |
content
required
|
ClaimContent |
|
billing_address
required
|
string |
length ≤ 1000
|
billing_npi
required
|
string |
length ≤ 10
|
billing_provider_name
required
|
string |
length ≤ 200
|
diagnosis_codes
required
|
array of string |
items ≤ 12
|
external_control_number
required
|
string |
length ≤ 100
|
line_diagnosis_pointers
required
|
array of array of integer |
items ≤ 100
|
notes
required
|
string |
length ≤ 2000
|
patient_address
required
|
string |
length ≤ 1000
|
place_of_service
required
|
string |
length ≤ 2
|
rendering_npi
required
|
string |
length ≤ 10
|
subscriber_address
required
|
string |
length ≤ 1000
|
subscriber_birth_date
required
|
string or null |
|
tax_id
required
|
string |
length ≤ 9
|
reason
required
|
string |
length 1–1000
|
Example request body placeholder values
{
"content": {
"billing_address": "string",
"billing_npi": "string",
"billing_provider_name": "string",
"diagnosis_codes": [
"string"
],
"external_control_number": "string",
"line_diagnosis_pointers": [
[
1
]
],
"notes": "string",
"patient_address": "string",
"place_of_service": "string",
"rendering_npi": "string",
"subscriber_address": "string",
"subscriber_birth_date": "2026-01-15",
"tax_id": "string"
},
"reason": "string"
}
Responses
-
200
Success
application/json
-
Fields Claim · 46
| Field |
Type |
Details |
account_id
required
|
string (uuid) |
|
content
required
|
ClaimContent |
|
billing_address
required
|
string |
length ≤ 1000
|
billing_npi
required
|
string |
length ≤ 10
|
billing_provider_name
required
|
string |
length ≤ 200
|
diagnosis_codes
required
|
array of string |
items ≤ 12
|
external_control_number
required
|
string |
length ≤ 100
|
line_diagnosis_pointers
required
|
array of array of integer |
items ≤ 100
|
notes
required
|
string |
length ≤ 2000
|
patient_address
required
|
string |
length ≤ 1000
|
place_of_service
required
|
string |
length ≤ 2
|
rendering_npi
required
|
string |
length ≤ 10
|
subscriber_address
required
|
string |
length ≤ 1000
|
subscriber_birth_date
required
|
string or null |
|
tax_id
required
|
string |
length ≤ 9
|
control_number
required
|
string |
length ≤ 100
|
frequency
required
|
any |
one of original, replacement, void_request
|
id
required
|
string (uuid) |
|
parent_id
required
|
string or null |
|
patient_id
required
|
string (uuid) |
|
payer_control_number
required
|
string |
length ≤ 150
|
payer_id
required
|
string (uuid) |
|
snapshot
required
|
object |
|
account
required
|
BillingAccount |
|
content
required
|
BillingAccountContent |
|
coverage_id
required
|
string or null |
|
currency
required
|
string |
one of USD
|
lines
required
|
array of ChargeLine |
items 1–100
|
notes
required
|
string |
length 0–2000
|
service_date
required
|
string (date) |
|
visit_id
required
|
string or null |
|
fee_context
|
PracticeFeeContext or null |
Optional once-per-account fee context; provider is derived from the linked visit. Required for newly selected approved fee lines.
|
coverage_snapshot
required
|
object or null |
Frozen payer and policy versions captured at local posting; no eligibility assertion
|
id
required
|
string (uuid) |
|
patient_id
required
|
string (uuid) |
|
source_history_id
required
|
string or null |
|
status
required
|
string |
one of draft, posted, void
|
total_cents
required
|
integer |
value 1–1000000000
|
version
required
|
integer |
value ≥ 1
|
diagnosis_snapshot
|
AccountDiagnosisSnapshot or null |
|
patient
required
|
object |
Frozen patient demographic evidence
|
coordination_of_benefits
|
object |
Frozen primary coverage/details/adjudication/source, reviewed paid units and previously posted primary credits. Optional crossover object binds received secondary remittance id/version/row/hash, payee NPI, trace/date and row evidence. Presence of crossover makes the claim tracking-only with no packet, CMS1500, 837 or delivery.
|
financial_summary
|
object |
Ledger totals frozen at claim creation, including combined account balance; not an automatic patient responsibility determination.
|
source_history_id
required
|
string or null |
|
status
required
|
any |
For received crossover tracking, submitted means received secondary response linked for review; no outbound delivery is implied. Adjudicated follows reviewed ERA posting; void may follow reviewed withdrawal.
one of draft, ready, submitted, accepted, rejected, adjudicated, void
|
version
required
|
integer |
value ≥ 1
|
Example response placeholder values
{
"account_id": "00000000-0000-4000-8000-000000000000",
"content": {
"billing_address": "string",
"billing_npi": "string",
"billing_provider_name": "string",
"diagnosis_codes": [
"string"
],
"external_control_number": "string",
"line_diagnosis_pointers": [
[
1
]
],
"notes": "string",
"patient_address": "string",
"place_of_service": "string",
"rendering_npi": "string",
"subscriber_address": "string",
"subscriber_birth_date": "2026-01-15",
"tax_id": "string"
},
"control_number": "string",
"frequency": "original",
"id": "00000000-0000-4000-8000-000000000000",
"parent_id": "00000000-0000-4000-8000-000000000000",
"patient_id": "00000000-0000-4000-8000-000000000000",
"payer_control_number": "string",
"payer_id": "00000000-0000-4000-8000-000000000000",
"snapshot": {
"account": {
"content": {
"coverage_id": "00000000-0000-4000-8000-000000000000",
"currency": "USD",
"lines": [],
"notes": "string",
"service_date": "2026-01-15",
"visit_id": "00000000-0000-4000-8000-000000000000",
"fee_context": {
"facility_id": null,
"setting": "facility"
}
},
"coverage_snapshot": {},
"id": "00000000-0000-4000-8000-000000000000",
"patient_id": "00000000-0000-4000-8000-000000000000",
"source_history_id": "00000000-0000-4000-8000-000000000000",
"status": "draft",
"total_cents": 1,
"version": 1
},
"patient": {},
"coordination_of_benefits": {},
"financial_summary": {}
},
"source_history_id": "00000000-0000-4000-8000-000000000000",
"status": "draft",
"version": 1
}
-
400
Invalid values or unsupported shape
-
401
Sign in required
-
403
Role or billing scope denied
-
404
Tenant/patient scoped record not found
-
409
Stale review, duplicate evidence, incompatible lifecycle or unsafe balance
-
428
Current quoted If-Match required
-
500
Database/audit failure; transaction rolled back
Example call
curl -X PUT "$EHR_URL/api/v1/billing/claims/{id}" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Generate837 p
POST
/api/v1/billing/claims/{id}/837p
Generate one immutable 005010X222A1 837P from the current ready claim and active partner version. Primary USD, routine POS 11, self/spouse/child, CPT/HCPCS profile. Exact integer cents, unique per-tenant ISA control, matched envelope counts and retained claim/profile/details snapshots. No transmission or claim submission occurs. Independent TR3, companion-guide and partner acceptance testing remain required. Bounded secondary commercial claims include frozen primary 2320/2330 and 2430 adjudication evidence. Original charges remain unchanged; no tertiary or Medicare-as-secondary/MSP profile.
Access
OAuth 2.0 access tokenbilling.write
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
If-Match
required
|
header |
string |
Quoted current claim version for generation, partner version for profile edit, submission version for submission writes |
Request body
application/json · required
Fields Generate837P · 41
| Field |
Type |
Details |
details
required
|
EdiClaimDetails |
|
benefits_assigned
required
|
boolean |
|
billing_address
required
|
EdiAddress |
|
city
required
|
string |
length ≤ 30
|
line1
required
|
string |
length ≤ 55
|
line2
required
|
string |
length ≤ 55
|
postal_code
required
|
string |
length ≤ 9
|
state
required
|
string |
length ≤ 2
|
billing_taxonomy
required
|
string |
length ≤ 10
|
filing_indicator
required
|
any |
one of CI, MB, MC, MA, CH, VA, TV, WC, ZZ
|
patient_address
required
|
EdiAddress |
|
city
required
|
string |
length ≤ 30
|
line1
required
|
string |
length ≤ 55
|
line2
required
|
string |
length ≤ 55
|
postal_code
required
|
string |
length ≤ 9
|
state
required
|
string |
length ≤ 2
|
patient_sex
required
|
any |
one of U, F, M
|
payer_address
required
|
EdiAddress |
|
city
required
|
string |
length ≤ 30
|
line1
required
|
string |
length ≤ 55
|
line2
required
|
string |
length ≤ 55
|
postal_code
required
|
string |
length ≤ 9
|
state
required
|
string |
length ≤ 2
|
release_authorized
required
|
boolean |
|
rendering_family_name
required
|
string |
length ≤ 35
|
rendering_given_name
required
|
string |
length ≤ 35
|
routine_professional_reviewed
required
|
boolean |
|
signature_on_file
required
|
boolean |
|
subscriber_address
required
|
EdiAddress |
|
city
required
|
string |
length ≤ 30
|
line1
required
|
string |
length ≤ 55
|
line2
required
|
string |
length ≤ 55
|
postal_code
required
|
string |
length ≤ 9
|
state
required
|
string |
length ≤ 2
|
subscriber_family_name
required
|
string |
length ≤ 35
|
subscriber_given_name
required
|
string |
length ≤ 35
|
subscriber_sex
required
|
any |
one of U, F, M
|
partner_id
required
|
string (uuid) |
|
partner_version
required
|
integer |
value ≥ 1
|
reason
required
|
string |
length 1–1000
|
request_id
required
|
string (uuid) |
|
Example request body placeholder values
{
"details": {
"benefits_assigned": true,
"billing_address": {
"city": "string",
"line1": "string",
"line2": "string",
"postal_code": "string",
"state": "string"
},
"billing_taxonomy": "string",
"filing_indicator": "CI",
"patient_address": {
"city": "string",
"line1": "string",
"line2": "string",
"postal_code": "string",
"state": "string"
},
"patient_sex": "U",
"payer_address": {
"city": "string",
"line1": "string",
"line2": "string",
"postal_code": "string",
"state": "string"
},
"release_authorized": true,
"rendering_family_name": "string",
"rendering_given_name": "string",
"routine_professional_reviewed": true,
"signature_on_file": true,
"subscriber_address": {
"city": "string",
"line1": "string",
"line2": "string",
"postal_code": "string",
"state": "string"
},
"subscriber_family_name": "string",
"subscriber_given_name": "string",
"subscriber_sex": "U"
},
"partner_id": "00000000-0000-4000-8000-000000000000",
"partner_version": 1,
"reason": "string",
"request_id": "00000000-0000-4000-8000-000000000000"
}
Responses
-
200
Success
application/json
-
Fields EdiSubmission · 113
| Field |
Type |
Details |
claim_id
required
|
string (uuid) |
|
claim_snapshot
required
|
Claim |
|
account_id
required
|
string (uuid) |
|
content
required
|
ClaimContent |
|
billing_address
required
|
string |
length ≤ 1000
|
billing_npi
required
|
string |
length ≤ 10
|
billing_provider_name
required
|
string |
length ≤ 200
|
diagnosis_codes
required
|
array of string |
items ≤ 12
|
external_control_number
required
|
string |
length ≤ 100
|
line_diagnosis_pointers
required
|
array of array of integer |
items ≤ 100
|
notes
required
|
string |
length ≤ 2000
|
patient_address
required
|
string |
length ≤ 1000
|
place_of_service
required
|
string |
length ≤ 2
|
rendering_npi
required
|
string |
length ≤ 10
|
subscriber_address
required
|
string |
length ≤ 1000
|
subscriber_birth_date
required
|
string or null |
|
tax_id
required
|
string |
length ≤ 9
|
control_number
required
|
string |
length ≤ 100
|
frequency
required
|
any |
one of original, replacement, void_request
|
id
required
|
string (uuid) |
|
parent_id
required
|
string or null |
|
patient_id
required
|
string (uuid) |
|
payer_control_number
required
|
string |
length ≤ 150
|
payer_id
required
|
string (uuid) |
|
snapshot
required
|
object |
|
account
required
|
BillingAccount |
|
content
required
|
BillingAccountContent |
|
coverage_snapshot
required
|
object or null |
Frozen payer and policy versions captured at local posting; no eligibility assertion
|
id
required
|
string (uuid) |
|
patient_id
required
|
string (uuid) |
|
source_history_id
required
|
string or null |
|
status
required
|
string |
one of draft, posted, void
|
total_cents
required
|
integer |
value 1–1000000000
|
version
required
|
integer |
value ≥ 1
|
diagnosis_snapshot
|
AccountDiagnosisSnapshot or null |
|
patient
required
|
object |
Frozen patient demographic evidence
|
coordination_of_benefits
|
object |
Frozen primary coverage/details/adjudication/source, reviewed paid units and previously posted primary credits. Optional crossover object binds received secondary remittance id/version/row/hash, payee NPI, trace/date and row evidence. Presence of crossover makes the claim tracking-only with no packet, CMS1500, 837 or delivery.
|
financial_summary
|
object |
Ledger totals frozen at claim creation, including combined account balance; not an automatic patient responsibility determination.
|
source_history_id
required
|
string or null |
|
status
required
|
any |
For received crossover tracking, submitted means received secondary response linked for review; no outbound delivery is implied. Adjudicated follows reviewed ERA posting; void may follow reviewed withdrawal.
one of draft, ready, submitted, accepted, rejected, adjudicated, void
|
version
required
|
integer |
value ≥ 1
|
claim_version
required
|
integer |
value ≥ 1
|
delivered_claim_version
required
|
integer or null |
value ≥ 1
|
details
required
|
EdiClaimDetails |
|
benefits_assigned
required
|
boolean |
|
billing_address
required
|
EdiAddress |
|
city
required
|
string |
length ≤ 30
|
line1
required
|
string |
length ≤ 55
|
line2
required
|
string |
length ≤ 55
|
postal_code
required
|
string |
length ≤ 9
|
state
required
|
string |
length ≤ 2
|
billing_taxonomy
required
|
string |
length ≤ 10
|
filing_indicator
required
|
any |
one of CI, MB, MC, MA, CH, VA, TV, WC, ZZ
|
patient_address
required
|
EdiAddress |
|
city
required
|
string |
length ≤ 30
|
line1
required
|
string |
length ≤ 55
|
line2
required
|
string |
length ≤ 55
|
postal_code
required
|
string |
length ≤ 9
|
state
required
|
string |
length ≤ 2
|
patient_sex
required
|
any |
one of U, F, M
|
payer_address
required
|
EdiAddress |
|
city
required
|
string |
length ≤ 30
|
line1
required
|
string |
length ≤ 55
|
line2
required
|
string |
length ≤ 55
|
postal_code
required
|
string |
length ≤ 9
|
state
required
|
string |
length ≤ 2
|
release_authorized
required
|
boolean |
|
rendering_family_name
required
|
string |
length ≤ 35
|
rendering_given_name
required
|
string |
length ≤ 35
|
routine_professional_reviewed
required
|
boolean |
|
signature_on_file
required
|
boolean |
|
subscriber_address
required
|
EdiAddress |
|
city
required
|
string |
length ≤ 30
|
line1
required
|
string |
length ≤ 55
|
line2
required
|
string |
length ≤ 55
|
postal_code
required
|
string |
length ≤ 9
|
state
required
|
string |
length ≤ 2
|
subscriber_family_name
required
|
string |
length ≤ 35
|
subscriber_given_name
required
|
string |
length ≤ 35
|
subscriber_sex
required
|
any |
one of U, F, M
|
group_control
required
|
string |
length ≤ 9
|
id
required
|
string (uuid) |
|
interchange_control
required
|
string |
length ≤ 9
|
partner_id
required
|
string (uuid) |
|
partner_snapshot
required
|
EdiPartner |
|
content
required
|
EdiPartnerContent |
|
active
required
|
boolean |
|
application_receiver
required
|
string |
length ≤ 15
|
application_sender
required
|
string |
length ≤ 15
|
contact_name
required
|
string |
length ≤ 60
|
contact_phone
required
|
string |
length ≤ 10
|
guide_reference
required
|
string |
length ≤ 200
|
name
required
|
string |
length ≤ 100
|
receiver_id
required
|
string |
length ≤ 15
|
receiver_identifier
required
|
string |
length ≤ 80
|
receiver_name
required
|
string |
length ≤ 60
|
receiver_qualifier
required
|
any |
one of ZZ, 01, 14, 30
|
sender_id
required
|
string |
length ≤ 15
|
sender_qualifier
required
|
any |
one of ZZ, 01, 14, 30
|
submitter_id
required
|
string |
length ≤ 80
|
submitter_name
required
|
string |
length ≤ 60
|
usage
required
|
any |
one of T, P
|
id
required
|
string (uuid) |
|
source_history_id
required
|
string or null |
|
version
required
|
integer |
value ≥ 1
|
partner_version
required
|
integer |
value ≥ 1
|
payer_outcome
required
|
any |
one of pending, accepted, rejected
|
payload
required
|
string |
length ≤ 48000
|
payload_hash
required
|
string |
length ≤ 64
|
status
required
|
any |
one of prepared, delivered, cancelled
|
technical_status
required
|
any |
one of pending, accepted, rejected, needs_review
|
transaction_control
required
|
string |
length ≤ 9
|
version
required
|
integer |
value ≥ 1
|
Example response placeholder values
{
"claim_id": "00000000-0000-4000-8000-000000000000",
"claim_snapshot": {
"account_id": "00000000-0000-4000-8000-000000000000",
"content": {
"billing_address": "string",
"billing_npi": "string",
"billing_provider_name": "string",
"diagnosis_codes": [
"string"
],
"external_control_number": "string",
"line_diagnosis_pointers": [
[]
],
"notes": "string",
"patient_address": "string",
"place_of_service": "string",
"rendering_npi": "string",
"subscriber_address": "string",
"subscriber_birth_date": "2026-01-15",
"tax_id": "string"
},
"control_number": "string",
"frequency": "original",
"id": "00000000-0000-4000-8000-000000000000",
"parent_id": "00000000-0000-4000-8000-000000000000",
"patient_id": "00000000-0000-4000-8000-000000000000",
"payer_control_number": "string",
"payer_id": "00000000-0000-4000-8000-000000000000",
"snapshot": {
"account": {
"content": {
"coverage_id": null,
"currency": "USD",
"lines": null,
"notes": null,
"service_date": null,
"visit_id": null,
"fee_context": null
},
"coverage_snapshot": {},
"id": "00000000-0000-4000-8000-000000000000",
"patient_id": "00000000-0000-4000-8000-000000000000",
"source_history_id": "00000000-0000-4000-8000-000000000000",
"status": "draft",
"total_cents": 1,
"version": 1
},
"patient": {},
"coordination_of_benefits": {},
"financial_summary": {}
},
"source_history_id": "00000000-0000-4000-8000-000000000000",
"status": "draft",
"version": 1
},
"claim_version": 1,
"delivered_claim_version": 1,
"details": {
"benefits_assigned": true,
"billing_address": {
"city": "string",
"line1": "string",
"line2": "string",
"postal_code": "string",
"state": "string"
},
"billing_taxonomy": "string",
"filing_indicator": "CI",
"patient_address": {
"city": "string",
"line1": "string",
"line2": "string",
"postal_code": "string",
"state": "string"
},
"patient_sex": "U",
"payer_address": {
"city": "string",
"line1": "string",
"line2": "string",
"postal_code": "string",
"state": "string"
},
"release_authorized": true,
"rendering_family_name": "string",
"rendering_given_name": "string",
"routine_professional_reviewed": true,
"signature_on_file": true,
"subscriber_address": {
"city": "string",
"line1": "string",
"line2": "string",
"postal_code": "string",
"state": "string"
},
"subscriber_family_name": "string",
"subscriber_given_name": "string",
"subscriber_sex": "U"
},
"group_control": "string",
"id": "00000000-0000-4000-8000-000000000000",
"interchange_control": "string",
"partner_id": "00000000-0000-4000-8000-000000000000",
"partner_snapshot": {
"content": {
"active": true,
"application_receiver": "string",
"application_sender": "string",
"contact_name": "string",
"contact_phone": "string",
"guide_reference": "string",
"name": "string",
"receiver_id": "string",
"receiver_identifier": "string",
"receiver_name": "string",
"receiver_qualifier": "ZZ",
"sender_id": "string",
"sender_qualifier": "ZZ",
"submitter_id": "string",
"submitter_name": "string",
"usage": "T"
},
"id": "00000000-0000-4000-8000-000000000000",
"source_history_id": "00000000-0000-4000-8000-000000000000",
"version": 1
},
"partner_version": 1,
"payer_outcome": "pending",
"payload": "string",
"payload_hash": "string",
"status": "prepared",
"technical_status": "pending",
"transaction_control": "string",
"version": 1
}
-
400
Invalid or unsupported EDI profile/field/acknowledgment
-
401
Authentication required
-
403
Role or billing scope denied
-
404
Tenant scoped record not found
-
409
Duplicate evidence, stale version, changed claim or incompatible state
-
428
Quoted If-Match required
-
500
Database/audit failure; transaction rolled back
Example call
curl -X POST "$EHR_URL/api/v1/billing/claims/{id}/837p" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Action claim
POST
/api/v1/billing/claims/{id}/actions
Versioned local lifecycle event. Claim external events require reference and nonfuture date. ERA post atomically writes ledger, claim and audit history; reverse appends offsetting evidence. No payment or clearinghouse transport.
Access
OAuth 2.0 access tokenbilling.write
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
If-Match
required
|
header |
string |
Quoted current account version for claim creation; current claim or remittance version for subsequent mutations |
Request body
application/json · required
Fields ClaimRemittanceAction · 5
| Field |
Type |
Details |
action
required
|
any |
withdraw_crossover only withdraws submitted/accepted/rejected crossover tracking without an active ERA head or non-void descendant; history remains. Normal outbound/manual submission events are refused for tracking records.
one of ready, void_draft, record_submission, record_acceptance, record_rejection, post, reject, reverse, withdraw_crossover
|
reason
required
|
string |
length 1–1000
|
event_date
|
string or null |
|
payer_control_number
|
string |
length ≤ 150
|
reference
|
string |
length ≤ 200
|
Example request body placeholder values
{
"action": "ready",
"reason": "string",
"event_date": "2026-01-15",
"payer_control_number": "string",
"reference": "string"
}
Responses
-
200
Success
application/json
-
Fields Claim · 46
| Field |
Type |
Details |
account_id
required
|
string (uuid) |
|
content
required
|
ClaimContent |
|
billing_address
required
|
string |
length ≤ 1000
|
billing_npi
required
|
string |
length ≤ 10
|
billing_provider_name
required
|
string |
length ≤ 200
|
diagnosis_codes
required
|
array of string |
items ≤ 12
|
external_control_number
required
|
string |
length ≤ 100
|
line_diagnosis_pointers
required
|
array of array of integer |
items ≤ 100
|
notes
required
|
string |
length ≤ 2000
|
patient_address
required
|
string |
length ≤ 1000
|
place_of_service
required
|
string |
length ≤ 2
|
rendering_npi
required
|
string |
length ≤ 10
|
subscriber_address
required
|
string |
length ≤ 1000
|
subscriber_birth_date
required
|
string or null |
|
tax_id
required
|
string |
length ≤ 9
|
control_number
required
|
string |
length ≤ 100
|
frequency
required
|
any |
one of original, replacement, void_request
|
id
required
|
string (uuid) |
|
parent_id
required
|
string or null |
|
patient_id
required
|
string (uuid) |
|
payer_control_number
required
|
string |
length ≤ 150
|
payer_id
required
|
string (uuid) |
|
snapshot
required
|
object |
|
account
required
|
BillingAccount |
|
content
required
|
BillingAccountContent |
|
coverage_id
required
|
string or null |
|
currency
required
|
string |
one of USD
|
lines
required
|
array of ChargeLine |
items 1–100
|
notes
required
|
string |
length 0–2000
|
service_date
required
|
string (date) |
|
visit_id
required
|
string or null |
|
fee_context
|
PracticeFeeContext or null |
Optional once-per-account fee context; provider is derived from the linked visit. Required for newly selected approved fee lines.
|
coverage_snapshot
required
|
object or null |
Frozen payer and policy versions captured at local posting; no eligibility assertion
|
id
required
|
string (uuid) |
|
patient_id
required
|
string (uuid) |
|
source_history_id
required
|
string or null |
|
status
required
|
string |
one of draft, posted, void
|
total_cents
required
|
integer |
value 1–1000000000
|
version
required
|
integer |
value ≥ 1
|
diagnosis_snapshot
|
AccountDiagnosisSnapshot or null |
|
patient
required
|
object |
Frozen patient demographic evidence
|
coordination_of_benefits
|
object |
Frozen primary coverage/details/adjudication/source, reviewed paid units and previously posted primary credits. Optional crossover object binds received secondary remittance id/version/row/hash, payee NPI, trace/date and row evidence. Presence of crossover makes the claim tracking-only with no packet, CMS1500, 837 or delivery.
|
financial_summary
|
object |
Ledger totals frozen at claim creation, including combined account balance; not an automatic patient responsibility determination.
|
source_history_id
required
|
string or null |
|
status
required
|
any |
For received crossover tracking, submitted means received secondary response linked for review; no outbound delivery is implied. Adjudicated follows reviewed ERA posting; void may follow reviewed withdrawal.
one of draft, ready, submitted, accepted, rejected, adjudicated, void
|
version
required
|
integer |
value ≥ 1
|
Example response placeholder values
{
"account_id": "00000000-0000-4000-8000-000000000000",
"content": {
"billing_address": "string",
"billing_npi": "string",
"billing_provider_name": "string",
"diagnosis_codes": [
"string"
],
"external_control_number": "string",
"line_diagnosis_pointers": [
[
1
]
],
"notes": "string",
"patient_address": "string",
"place_of_service": "string",
"rendering_npi": "string",
"subscriber_address": "string",
"subscriber_birth_date": "2026-01-15",
"tax_id": "string"
},
"control_number": "string",
"frequency": "original",
"id": "00000000-0000-4000-8000-000000000000",
"parent_id": "00000000-0000-4000-8000-000000000000",
"patient_id": "00000000-0000-4000-8000-000000000000",
"payer_control_number": "string",
"payer_id": "00000000-0000-4000-8000-000000000000",
"snapshot": {
"account": {
"content": {
"coverage_id": "00000000-0000-4000-8000-000000000000",
"currency": "USD",
"lines": [],
"notes": "string",
"service_date": "2026-01-15",
"visit_id": "00000000-0000-4000-8000-000000000000",
"fee_context": {
"facility_id": null,
"setting": "facility"
}
},
"coverage_snapshot": {},
"id": "00000000-0000-4000-8000-000000000000",
"patient_id": "00000000-0000-4000-8000-000000000000",
"source_history_id": "00000000-0000-4000-8000-000000000000",
"status": "draft",
"total_cents": 1,
"version": 1
},
"patient": {},
"coordination_of_benefits": {},
"financial_summary": {}
},
"source_history_id": "00000000-0000-4000-8000-000000000000",
"status": "draft",
"version": 1
}
-
400
Invalid values or unsupported shape
-
401
Sign in required
-
403
Role or billing scope denied
-
404
Tenant/patient scoped record not found
-
409
Stale review, duplicate evidence, incompatible lifecycle or unsafe balance
-
428
Current quoted If-Match required
-
500
Database/audit failure; transaction rolled back
Example call
curl -X POST "$EHR_URL/api/v1/billing/claims/{id}/actions" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Claim era history
GET
/api/v1/billing/claims/{id}/era-history
Tenant-scoped active posting head plus up to 100 immutable posting rows for exact reversal/correction source selection.
Access
OAuth 2.0 access tokenbilling.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/json
-
Body: object
-
400
Invalid or unsupported EDI profile/field/acknowledgment
-
401
Authentication required
-
403
Role or billing scope denied
-
404
Tenant scoped record not found
-
409
Duplicate evidence, stale version, changed claim or incompatible state
-
428
Quoted If-Match required
-
500
Database/audit failure; transaction rolled back
Example call
curl "$EHR_URL/api/v1/billing/claims/{id}/era-history" -H "Authorization: Bearer $ACCESS_TOKEN"
#
History claim
GET
/api/v1/billing/claims/{id}/history
Read append-only attributed revision history.
Access
OAuth 2.0 access tokenbilling.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/json
-
Fields BillingHistory · 6
| Field |
Type |
Details |
items
required
|
array of object |
|
actor_id
required
|
string (uuid) |
|
created_at
required
|
string (date-time) |
|
reason
required
|
string |
length 1–1000
|
snapshot
required
|
object |
|
version
required
|
integer |
|
Example response placeholder values
{
"items": [
{
"actor_id": "00000000-0000-4000-8000-000000000000",
"created_at": "2026-01-15T15:30:00Z",
"reason": "string",
"snapshot": {},
"version": 1
}
]
}
-
400
Invalid values or unsupported shape
-
401
Sign in required
-
403
Role or billing scope denied
-
404
Tenant/patient scoped record not found
-
409
Stale review, duplicate evidence, incompatible lifecycle or unsafe balance
-
428
Current quoted If-Match required
-
500
Database/audit failure; transaction rolled back
Example call
curl "$EHR_URL/api/v1/billing/claims/{id}/history" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Export claim packet
GET
/api/v1/billing/claims/{id}/packet
Download JSON evidence packet; no X12 837 or submission state change.
Access
OAuth 2.0 access tokenbilling.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/json
-
Body: ClaimPacket
-
400
Invalid values or unsupported shape
-
401
Sign in required
-
403
Role or billing scope denied
-
404
Tenant/patient scoped record not found
-
409
Stale review, duplicate evidence, incompatible lifecycle or unsafe balance
-
428
Current quoted If-Match required
-
500
Database/audit failure; transaction rolled back
Example call
curl "$EHR_URL/api/v1/billing/claims/{id}/packet" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Review secondary claim
GET
/api/v1/billing/claims/{id}/secondary-review
Read current primary adjudication, effective secondary policies, existing secondary claims and blockers before explicit same-account preparation. Authorized billing staff only; tenant-scoped audited read. No claim creation, provider call or ledger change. Posted primaryCLP19 returns bounded verified received-secondary835 candidates when available; never infers destination from forwarding status alone.
Access
OAuth 2.0 access tokenbilling.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Current evidence and blockers
application/json
-
Fields object · 46
| Field |
Type |
Details |
account
required
|
object |
|
blockers
required
|
array of string |
|
coverages
required
|
array of object |
|
existing_secondary_claims
required
|
array of object |
|
primary_claim
required
|
Claim |
|
account_id
required
|
string (uuid) |
|
content
required
|
ClaimContent |
|
billing_address
required
|
string |
length ≤ 1000
|
billing_npi
required
|
string |
length ≤ 10
|
billing_provider_name
required
|
string |
length ≤ 200
|
diagnosis_codes
required
|
array of string |
items ≤ 12
|
external_control_number
required
|
string |
length ≤ 100
|
line_diagnosis_pointers
required
|
array of array of integer |
items ≤ 100
|
notes
required
|
string |
length ≤ 2000
|
patient_address
required
|
string |
length ≤ 1000
|
place_of_service
required
|
string |
length ≤ 2
|
rendering_npi
required
|
string |
length ≤ 10
|
subscriber_address
required
|
string |
length ≤ 1000
|
subscriber_birth_date
required
|
string or null |
|
tax_id
required
|
string |
length ≤ 9
|
control_number
required
|
string |
length ≤ 100
|
frequency
required
|
any |
one of original, replacement, void_request
|
id
required
|
string (uuid) |
|
parent_id
required
|
string or null |
|
patient_id
required
|
string (uuid) |
|
payer_control_number
required
|
string |
length ≤ 150
|
payer_id
required
|
string (uuid) |
|
snapshot
required
|
object |
|
account
required
|
BillingAccount |
|
content
required
|
BillingAccountContent |
|
coverage_snapshot
required
|
object or null |
Frozen payer and policy versions captured at local posting; no eligibility assertion
|
id
required
|
string (uuid) |
|
patient_id
required
|
string (uuid) |
|
source_history_id
required
|
string or null |
|
status
required
|
string |
one of draft, posted, void
|
total_cents
required
|
integer |
value 1–1000000000
|
version
required
|
integer |
value ≥ 1
|
diagnosis_snapshot
|
AccountDiagnosisSnapshot or null |
|
patient
required
|
object |
Frozen patient demographic evidence
|
coordination_of_benefits
|
object |
Frozen primary coverage/details/adjudication/source, reviewed paid units and previously posted primary credits. Optional crossover object binds received secondary remittance id/version/row/hash, payee NPI, trace/date and row evidence. Presence of crossover makes the claim tracking-only with no packet, CMS1500, 837 or delivery.
|
financial_summary
|
object |
Ledger totals frozen at claim creation, including combined account balance; not an automatic patient responsibility determination.
|
source_history_id
required
|
string or null |
|
status
required
|
any |
For received crossover tracking, submitted means received secondary response linked for review; no outbound delivery is implied. Adjudicated follows reviewed ERA posting; void may follow reviewed withdrawal.
one of draft, ready, submitted, accepted, rejected, adjudicated, void
|
version
required
|
integer |
value ≥ 1
|
crossover_candidates
|
array of object |
Present for primaryCLP19; unused received835 rows with exact trusted payer/provider/control/date/service evidence. Each includes coverage id/version, remittance id/version/row, payer name, trace/date/payee NPI and normalized claim row. Empty means no verified unused source is available. No source mutation.
|
primary_adjudication
|
object |
Exact remittance id/version/row, payment date, trace, normalized claim row and already-posted primary CO credits; absent when unavailable.
|
Example response placeholder values
{
"account": {},
"blockers": [
"string"
],
"coverages": [
{}
],
"existing_secondary_claims": [
{}
],
"primary_claim": {
"account_id": "00000000-0000-4000-8000-000000000000",
"content": {
"billing_address": "string",
"billing_npi": "string",
"billing_provider_name": "string",
"diagnosis_codes": [
"string"
],
"external_control_number": "string",
"line_diagnosis_pointers": [
[]
],
"notes": "string",
"patient_address": "string",
"place_of_service": "string",
"rendering_npi": "string",
"subscriber_address": "string",
"subscriber_birth_date": "2026-01-15",
"tax_id": "string"
},
"control_number": "string",
"frequency": "original",
"id": "00000000-0000-4000-8000-000000000000",
"parent_id": "00000000-0000-4000-8000-000000000000",
"patient_id": "00000000-0000-4000-8000-000000000000",
"payer_control_number": "string",
"payer_id": "00000000-0000-4000-8000-000000000000",
"snapshot": {
"account": {
"content": {
"coverage_id": null,
"currency": "USD",
"lines": null,
"notes": null,
"service_date": null,
"visit_id": null,
"fee_context": null
},
"coverage_snapshot": {},
"id": "00000000-0000-4000-8000-000000000000",
"patient_id": "00000000-0000-4000-8000-000000000000",
"source_history_id": "00000000-0000-4000-8000-000000000000",
"status": "draft",
"total_cents": 1,
"version": 1
},
"patient": {},
"coordination_of_benefits": {},
"financial_summary": {}
},
"source_history_id": "00000000-0000-4000-8000-000000000000",
"status": "draft",
"version": 1
},
"crossover_candidates": [
{}
],
"primary_adjudication": {}
}
-
400
Invalid values or unsupported shape
-
401
Sign in required
-
403
Role or billing scope denied
-
404
Tenant/patient scoped record not found
-
409
Stale review, duplicate evidence, incompatible lifecycle or unsafe balance
-
428
Current quoted If-Match required
-
500
Database/audit failure; transaction rolled back
Example call
curl "$EHR_URL/api/v1/billing/claims/{id}/secondary-review" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Edi source mappings
GET
/api/v1/billing/clearinghouse-sources
List up to 100 imported nonsecret partner/acknowledgment records and explicit native links. Staff review; owner needed to activate a partner.
Access
OAuth 2.0 access tokenbilling.read
Responses
-
200
Success
application/json
-
Fields EdiSources · 1
| Field |
Type |
Details |
items
required
|
array of object |
items ≤ 100
|
Example response placeholder values
{
"items": [
{}
]
}
-
400
Invalid or unsupported EDI profile/field/acknowledgment
-
401
Authentication required
-
403
Role or billing scope denied
-
404
Tenant scoped record not found
-
409
Duplicate evidence, stale version, changed claim or incompatible state
-
428
Quoted If-Match required
-
500
Database/audit failure; transaction rolled back
Example call
curl "$EHR_URL/api/v1/billing/clearinghouse-sources" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Edi partner directory
GET
/api/v1/billing/clearinghouses
List up to 100 nonsecret partner profiles. No transport credentials or endpoint fields.
Access
OAuth 2.0 access tokenbilling.read
Responses
-
200
Success
application/json
-
Fields EdiPartners · 23
| Field |
Type |
Details |
items
required
|
array of EdiPartner |
items ≤ 100
|
content
required
|
EdiPartnerContent |
|
active
required
|
boolean |
|
application_receiver
required
|
string |
length ≤ 15
|
application_sender
required
|
string |
length ≤ 15
|
contact_name
required
|
string |
length ≤ 60
|
contact_phone
required
|
string |
length ≤ 10
|
guide_reference
required
|
string |
length ≤ 200
|
name
required
|
string |
length ≤ 100
|
receiver_id
required
|
string |
length ≤ 15
|
receiver_identifier
required
|
string |
length ≤ 80
|
receiver_name
required
|
string |
length ≤ 60
|
receiver_qualifier
required
|
any |
one of ZZ, 01, 14, 30
|
sender_id
required
|
string |
length ≤ 15
|
sender_qualifier
required
|
any |
one of ZZ, 01, 14, 30
|
submitter_id
required
|
string |
length ≤ 80
|
submitter_name
required
|
string |
length ≤ 60
|
usage
required
|
any |
one of T, P
|
id
required
|
string (uuid) |
|
source_history_id
required
|
string or null |
|
version
required
|
integer |
value ≥ 1
|
network_sender_configured
required
|
boolean |
|
transport
required
|
any |
one of manual_file, https_gateway_and_manual_file, provider_adapters_and_manual_file
|
Example response placeholder values
{
"items": [
{
"content": {
"active": true,
"application_receiver": "string",
"application_sender": "string",
"contact_name": "string",
"contact_phone": "string",
"guide_reference": "string",
"name": "string",
"receiver_id": "string",
"receiver_identifier": "string",
"receiver_name": "string",
"receiver_qualifier": "ZZ",
"sender_id": "string",
"sender_qualifier": "ZZ",
"submitter_id": "string",
"submitter_name": "string",
"usage": "T"
},
"id": "00000000-0000-4000-8000-000000000000",
"source_history_id": "00000000-0000-4000-8000-000000000000",
"version": 1
}
],
"network_sender_configured": true,
"transport": "manual_file"
}
-
400
Invalid or unsupported EDI profile/field/acknowledgment
-
401
Authentication required
-
403
Role or billing scope denied
-
404
Tenant scoped record not found
-
409
Duplicate evidence, stale version, changed claim or incompatible state
-
428
Quoted If-Match required
-
500
Database/audit failure; transaction rolled back
Example call
curl "$EHR_URL/api/v1/billing/clearinghouses" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Create edi partner
POST
/api/v1/billing/clearinghouses
Create idempotent reviewed ISA/GS/submitter/receiver profile, optionally reconciled to source partner history. Usage never inferred from source. Owner role required.
Access
OAuth 2.0 access tokenbilling.write
Request body
application/json · required
Fields NewEdiPartner · 20
| Field |
Type |
Details |
content
required
|
EdiPartnerContent |
|
active
required
|
boolean |
|
application_receiver
required
|
string |
length ≤ 15
|
application_sender
required
|
string |
length ≤ 15
|
contact_name
required
|
string |
length ≤ 60
|
contact_phone
required
|
string |
length ≤ 10
|
guide_reference
required
|
string |
length ≤ 200
|
name
required
|
string |
length ≤ 100
|
receiver_id
required
|
string |
length ≤ 15
|
receiver_identifier
required
|
string |
length ≤ 80
|
receiver_name
required
|
string |
length ≤ 60
|
receiver_qualifier
required
|
any |
one of ZZ, 01, 14, 30
|
sender_id
required
|
string |
length ≤ 15
|
sender_qualifier
required
|
any |
one of ZZ, 01, 14, 30
|
submitter_id
required
|
string |
length ≤ 80
|
submitter_name
required
|
string |
length ≤ 60
|
usage
required
|
any |
one of T, P
|
reason
required
|
string |
length 1–1000
|
request_id
required
|
string (uuid) |
|
source_history_id
|
string or null |
|
Example request body placeholder values
{
"content": {
"active": true,
"application_receiver": "string",
"application_sender": "string",
"contact_name": "string",
"contact_phone": "string",
"guide_reference": "string",
"name": "string",
"receiver_id": "string",
"receiver_identifier": "string",
"receiver_name": "string",
"receiver_qualifier": "ZZ",
"sender_id": "string",
"sender_qualifier": "ZZ",
"submitter_id": "string",
"submitter_name": "string",
"usage": "T"
},
"reason": "string",
"request_id": "00000000-0000-4000-8000-000000000000",
"source_history_id": "00000000-0000-4000-8000-000000000000"
}
Responses
-
200
Success
application/json
-
Fields EdiPartner · 20
| Field |
Type |
Details |
content
required
|
EdiPartnerContent |
|
active
required
|
boolean |
|
application_receiver
required
|
string |
length ≤ 15
|
application_sender
required
|
string |
length ≤ 15
|
contact_name
required
|
string |
length ≤ 60
|
contact_phone
required
|
string |
length ≤ 10
|
guide_reference
required
|
string |
length ≤ 200
|
name
required
|
string |
length ≤ 100
|
receiver_id
required
|
string |
length ≤ 15
|
receiver_identifier
required
|
string |
length ≤ 80
|
receiver_name
required
|
string |
length ≤ 60
|
receiver_qualifier
required
|
any |
one of ZZ, 01, 14, 30
|
sender_id
required
|
string |
length ≤ 15
|
sender_qualifier
required
|
any |
one of ZZ, 01, 14, 30
|
submitter_id
required
|
string |
length ≤ 80
|
submitter_name
required
|
string |
length ≤ 60
|
usage
required
|
any |
one of T, P
|
id
required
|
string (uuid) |
|
source_history_id
required
|
string or null |
|
version
required
|
integer |
value ≥ 1
|
Example response placeholder values
{
"content": {
"active": true,
"application_receiver": "string",
"application_sender": "string",
"contact_name": "string",
"contact_phone": "string",
"guide_reference": "string",
"name": "string",
"receiver_id": "string",
"receiver_identifier": "string",
"receiver_name": "string",
"receiver_qualifier": "ZZ",
"sender_id": "string",
"sender_qualifier": "ZZ",
"submitter_id": "string",
"submitter_name": "string",
"usage": "T"
},
"id": "00000000-0000-4000-8000-000000000000",
"source_history_id": "00000000-0000-4000-8000-000000000000",
"version": 1
}
-
400
Invalid or unsupported EDI profile/field/acknowledgment
-
401
Authentication required
-
403
Role or billing scope denied
-
404
Tenant scoped record not found
-
409
Duplicate evidence, stale version, changed claim or incompatible state
-
428
Quoted If-Match required
-
500
Database/audit failure; transaction rolled back
Example call
curl -X POST "$EHR_URL/api/v1/billing/clearinghouses" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Read edi partner
GET
/api/v1/billing/clearinghouses/{id}
Read profile and immutable configuration revisions.
Access
OAuth 2.0 access tokenbilling.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/json
-
Fields EdiPartnerDetail · 22
| Field |
Type |
Details |
history
required
|
array of object |
items ≤ 100
|
partner
required
|
EdiPartner |
|
content
required
|
EdiPartnerContent |
|
active
required
|
boolean |
|
application_receiver
required
|
string |
length ≤ 15
|
application_sender
required
|
string |
length ≤ 15
|
contact_name
required
|
string |
length ≤ 60
|
contact_phone
required
|
string |
length ≤ 10
|
guide_reference
required
|
string |
length ≤ 200
|
name
required
|
string |
length ≤ 100
|
receiver_id
required
|
string |
length ≤ 15
|
receiver_identifier
required
|
string |
length ≤ 80
|
receiver_name
required
|
string |
length ≤ 60
|
receiver_qualifier
required
|
any |
one of ZZ, 01, 14, 30
|
sender_id
required
|
string |
length ≤ 15
|
sender_qualifier
required
|
any |
one of ZZ, 01, 14, 30
|
submitter_id
required
|
string |
length ≤ 80
|
submitter_name
required
|
string |
length ≤ 60
|
usage
required
|
any |
one of T, P
|
id
required
|
string (uuid) |
|
source_history_id
required
|
string or null |
|
version
required
|
integer |
value ≥ 1
|
Example response placeholder values
{
"history": [
{}
],
"partner": {
"content": {
"active": true,
"application_receiver": "string",
"application_sender": "string",
"contact_name": "string",
"contact_phone": "string",
"guide_reference": "string",
"name": "string",
"receiver_id": "string",
"receiver_identifier": "string",
"receiver_name": "string",
"receiver_qualifier": "ZZ",
"sender_id": "string",
"sender_qualifier": "ZZ",
"submitter_id": "string",
"submitter_name": "string",
"usage": "T"
},
"id": "00000000-0000-4000-8000-000000000000",
"source_history_id": "00000000-0000-4000-8000-000000000000",
"version": 1
}
}
-
400
Invalid or unsupported EDI profile/field/acknowledgment
-
401
Authentication required
-
403
Role or billing scope denied
-
404
Tenant scoped record not found
-
409
Duplicate evidence, stale version, changed claim or incompatible state
-
428
Quoted If-Match required
-
500
Database/audit failure; transaction rolled back
Example call
curl "$EHR_URL/api/v1/billing/clearinghouses/{id}" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Edit edi partner
PUT
/api/v1/billing/clearinghouses/{id}
Versioned profile edit affects future artifacts; existing files keep frozen settings. Owner role required.
Access
OAuth 2.0 access tokenbilling.write
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
If-Match
required
|
header |
string |
Quoted current claim version for generation, partner version for profile edit, submission version for submission writes |
Request body
application/json · required
Fields EditEdiPartner · 18
| Field |
Type |
Details |
content
required
|
EdiPartnerContent |
|
active
required
|
boolean |
|
application_receiver
required
|
string |
length ≤ 15
|
application_sender
required
|
string |
length ≤ 15
|
contact_name
required
|
string |
length ≤ 60
|
contact_phone
required
|
string |
length ≤ 10
|
guide_reference
required
|
string |
length ≤ 200
|
name
required
|
string |
length ≤ 100
|
receiver_id
required
|
string |
length ≤ 15
|
receiver_identifier
required
|
string |
length ≤ 80
|
receiver_name
required
|
string |
length ≤ 60
|
receiver_qualifier
required
|
any |
one of ZZ, 01, 14, 30
|
sender_id
required
|
string |
length ≤ 15
|
sender_qualifier
required
|
any |
one of ZZ, 01, 14, 30
|
submitter_id
required
|
string |
length ≤ 80
|
submitter_name
required
|
string |
length ≤ 60
|
usage
required
|
any |
one of T, P
|
reason
required
|
string |
length 1–1000
|
Example request body placeholder values
{
"content": {
"active": true,
"application_receiver": "string",
"application_sender": "string",
"contact_name": "string",
"contact_phone": "string",
"guide_reference": "string",
"name": "string",
"receiver_id": "string",
"receiver_identifier": "string",
"receiver_name": "string",
"receiver_qualifier": "ZZ",
"sender_id": "string",
"sender_qualifier": "ZZ",
"submitter_id": "string",
"submitter_name": "string",
"usage": "T"
},
"reason": "string"
}
Responses
-
200
Success
application/json
-
Fields EdiPartner · 20
| Field |
Type |
Details |
content
required
|
EdiPartnerContent |
|
active
required
|
boolean |
|
application_receiver
required
|
string |
length ≤ 15
|
application_sender
required
|
string |
length ≤ 15
|
contact_name
required
|
string |
length ≤ 60
|
contact_phone
required
|
string |
length ≤ 10
|
guide_reference
required
|
string |
length ≤ 200
|
name
required
|
string |
length ≤ 100
|
receiver_id
required
|
string |
length ≤ 15
|
receiver_identifier
required
|
string |
length ≤ 80
|
receiver_name
required
|
string |
length ≤ 60
|
receiver_qualifier
required
|
any |
one of ZZ, 01, 14, 30
|
sender_id
required
|
string |
length ≤ 15
|
sender_qualifier
required
|
any |
one of ZZ, 01, 14, 30
|
submitter_id
required
|
string |
length ≤ 80
|
submitter_name
required
|
string |
length ≤ 60
|
usage
required
|
any |
one of T, P
|
id
required
|
string (uuid) |
|
source_history_id
required
|
string or null |
|
version
required
|
integer |
value ≥ 1
|
Example response placeholder values
{
"content": {
"active": true,
"application_receiver": "string",
"application_sender": "string",
"contact_name": "string",
"contact_phone": "string",
"guide_reference": "string",
"name": "string",
"receiver_id": "string",
"receiver_identifier": "string",
"receiver_name": "string",
"receiver_qualifier": "ZZ",
"sender_id": "string",
"sender_qualifier": "ZZ",
"submitter_id": "string",
"submitter_name": "string",
"usage": "T"
},
"id": "00000000-0000-4000-8000-000000000000",
"source_history_id": "00000000-0000-4000-8000-000000000000",
"version": 1
}
-
400
Invalid or unsupported EDI profile/field/acknowledgment
-
401
Authentication required
-
403
Role or billing scope denied
-
404
Tenant scoped record not found
-
409
Duplicate evidence, stale version, changed claim or incompatible state
-
428
Quoted If-Match required
-
500
Database/audit failure; transaction rolled back
Example call
curl -X PUT "$EHR_URL/api/v1/billing/clearinghouses/{id}" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Provider connections
GET
/api/v1/billing/connections
Safe durable provider connection summaries. No credentials or cursor values returned.
Access
OAuth 2.0 access tokenbilling.read
Responses
-
200
Success
application/json
-
Fields ProviderConnectionList · 13
| Field |
Type |
Details |
items
required
|
array of ProviderConnection |
|
adapter
|
string |
|
cursor_saved
|
boolean |
|
last_poll_at
|
string or null |
|
last_result
|
string or null |
|
last_success_at
|
string or null |
|
next_poll_at
|
string (date-time) |
|
pages
|
integer |
|
partner_id
|
string (uuid) |
|
paused
|
boolean |
|
route_key
|
string |
|
usage
|
any |
one of T, P
|
version
|
integer |
|
Example response placeholder values
{
"items": [
{
"adapter": "string",
"cursor_saved": true,
"last_poll_at": "2026-01-15T15:30:00Z",
"last_result": "string",
"last_success_at": "2026-01-15T15:30:00Z",
"next_poll_at": "2026-01-15T15:30:00Z",
"pages": 1,
"partner_id": "00000000-0000-4000-8000-000000000000"
}
]
}
-
400
Invalid or unsupported EDI profile/field/acknowledgment
-
401
Authentication required
-
403
Role or billing scope denied
-
404
Tenant scoped record not found
-
409
Duplicate evidence, stale version, changed claim or incompatible state
-
428
Quoted If-Match required
-
500
Database/audit failure; transaction rolled back
Example call
curl "$EHR_URL/api/v1/billing/connections" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Provider connection detail
GET
/api/v1/billing/connections/{key}
Tenant-scoped durable state and immutable connection history.
Access
OAuth 2.0 access tokenbilling.read
Parameters
| Name |
In |
Type |
Details |
key
required
|
path |
string |
|
Responses
-
200
Success
application/json
-
Fields ProviderConnectionDetail · 14
| Field |
Type |
Details |
connection
required
|
ProviderConnection |
Safe tenant-scoped durable state; endpoints, secrets, binding hash and opaque page token are excluded.
|
adapter
|
string |
|
cursor_saved
|
boolean |
|
last_poll_at
|
string or null |
|
last_result
|
string or null |
|
last_success_at
|
string or null |
|
next_poll_at
|
string (date-time) |
|
pages
|
integer |
|
partner_id
|
string (uuid) |
|
paused
|
boolean |
|
route_key
|
string |
|
usage
|
any |
one of T, P
|
version
|
integer |
|
events
required
|
array of object |
|
Example response placeholder values
{
"connection": {
"adapter": "string",
"cursor_saved": true,
"last_poll_at": "2026-01-15T15:30:00Z",
"last_result": "string",
"last_success_at": "2026-01-15T15:30:00Z",
"next_poll_at": "2026-01-15T15:30:00Z",
"pages": 1,
"partner_id": "00000000-0000-4000-8000-000000000000"
},
"events": [
{}
]
}
-
400
Invalid or unsupported EDI profile/field/acknowledgment
-
401
Authentication required
-
403
Role or billing scope denied
-
404
Tenant scoped record not found
-
409
Duplicate evidence, stale version, changed claim or incompatible state
-
428
Quoted If-Match required
-
500
Database/audit failure; transaction rolled back
Example call
curl "$EHR_URL/api/v1/billing/connections/{key}" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Provider connection action
POST
/api/v1/billing/connections/{key}/actions
Owner-only attributed pause/resume/poll request. Does not change cursor. In-flight work may finish. Historical connections cannot activate transport.
Access
OAuth 2.0 access tokenbilling.write
Parameters
| Name |
In |
Type |
Details |
key
required
|
path |
string |
|
If-Match
required
|
header |
string |
Quoted current connection or report version. |
Request body
application/json · required
Fields ProviderConnectionAction · 2
| Field |
Type |
Details |
action
required
|
any |
one of pause, resume, poll_now
|
reason
required
|
string |
length 1–1000
|
Example request body placeholder values
{
"action": "pause",
"reason": "string"
}
Responses
-
200
Success
application/json
-
Body: object
-
400
Invalid or unsupported EDI profile/field/acknowledgment
-
401
Authentication required
-
403
Role or billing scope denied
-
404
Tenant scoped record not found
-
409
Duplicate evidence, stale version, changed claim or incompatible state
-
428
Quoted If-Match required
-
500
Database/audit failure; transaction rolled back
Example call
curl -X POST "$EHR_URL/api/v1/billing/connections/{key}/actions" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Edi delivery jobs
GET
/api/v1/billing/delivery/jobs
Last 100 tenant-scoped delivery jobs.
Access
OAuth 2.0 access tokenbilling.read
Responses
-
200
Success
application/json
-
Fields EdiDeliveryJobs · 14
| Field |
Type |
Details |
items
required
|
array of EdiDeliveryJob |
|
attempts
required
|
integer |
|
id
required
|
string (uuid) |
|
last_result
required
|
string or null |
|
lease_id
required
|
string or null |
|
receipt
required
|
object |
|
receipt_reference
required
|
string or null |
|
requested_by
required
|
string (uuid) |
|
route_key
required
|
string |
|
status
required
|
any |
one of queued, leased, retry, unknown, blocked, delivered, cancelled
|
submission_id
required
|
string (uuid) |
|
version
required
|
integer |
|
tenant_id
|
string (uuid) |
|
limit
required
|
constant |
always 100
|
Example response placeholder values
{
"items": [
{
"attempts": 1,
"id": "00000000-0000-4000-8000-000000000000",
"last_result": "string",
"lease_id": "00000000-0000-4000-8000-000000000000",
"receipt": {},
"receipt_reference": "string",
"requested_by": "00000000-0000-4000-8000-000000000000",
"route_key": "string",
"status": "queued",
"submission_id": "00000000-0000-4000-8000-000000000000",
"version": 1
}
],
"limit": 100
}
-
400
Invalid or unsupported EDI profile/field/acknowledgment
-
401
Authentication required
-
403
Role or billing scope denied
-
404
Tenant scoped record not found
-
409
Duplicate evidence, stale version, changed claim or incompatible state
-
428
Quoted If-Match required
-
500
Database/audit failure; transaction rolled back
Example call
curl "$EHR_URL/api/v1/billing/delivery/jobs" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Edi delivery detail
GET
/api/v1/billing/delivery/jobs/{id}
Delivery state, attempt evidence and immutable history.
Access
OAuth 2.0 access tokenbilling.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/json
-
Fields EdiDeliveryDetail · 14
| Field |
Type |
Details |
events
required
|
array of object |
|
job
required
|
EdiDeliveryJob |
|
attempts
required
|
integer |
|
id
required
|
string (uuid) |
|
last_result
required
|
string or null |
|
lease_id
required
|
string or null |
|
receipt
required
|
object |
|
receipt_reference
required
|
string or null |
|
requested_by
required
|
string (uuid) |
|
route_key
required
|
string |
|
status
required
|
any |
one of queued, leased, retry, unknown, blocked, delivered, cancelled
|
submission_id
required
|
string (uuid) |
|
version
required
|
integer |
|
tenant_id
|
string (uuid) |
|
Example response placeholder values
{
"events": [
{}
],
"job": {
"attempts": 1,
"id": "00000000-0000-4000-8000-000000000000",
"last_result": "string",
"lease_id": "00000000-0000-4000-8000-000000000000",
"receipt": {},
"receipt_reference": "string",
"requested_by": "00000000-0000-4000-8000-000000000000",
"route_key": "string",
"status": "queued",
"submission_id": "00000000-0000-4000-8000-000000000000",
"version": 1
}
}
-
400
Invalid or unsupported EDI profile/field/acknowledgment
-
401
Authentication required
-
403
Role or billing scope denied
-
404
Tenant scoped record not found
-
409
Duplicate evidence, stale version, changed claim or incompatible state
-
428
Quoted If-Match required
-
500
Database/audit failure; transaction rolled back
Example call
curl "$EHR_URL/api/v1/billing/delivery/jobs/{id}" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Edi delivery decision
POST
/api/v1/billing/delivery/jobs/{id}/actions
Cancel unsent/blocked jobs or explicitly reconcile uncertain receipt with reference/reason. Leased jobs cannot be cancelled. No automatic resend after ambiguous I/O.
Access
OAuth 2.0 access tokenbilling.write
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
If-Match
required
|
header |
string |
Quoted current submission/job version; initial immutable 277CA row review uses "1" plus captured submission/claim versions. |
Request body
application/json · required
Fields EdiDeliveryDecision · 3
| Field |
Type |
Details |
action
required
|
any |
one of cancel, confirmed_received, confirmed_not_received
|
reason
required
|
string |
length 1–1000
|
reference
|
string |
length ≤ 200
|
Example request body placeholder values
{
"action": "cancel",
"reason": "string",
"reference": "string"
}
Responses
-
200
Success
application/json
-
Fields EdiDeliveryJob · 12
| Field |
Type |
Details |
attempts
required
|
integer |
|
id
required
|
string (uuid) |
|
last_result
required
|
string or null |
|
lease_id
required
|
string or null |
|
receipt
required
|
object |
|
receipt_reference
required
|
string or null |
|
requested_by
required
|
string (uuid) |
|
route_key
required
|
string |
|
status
required
|
any |
one of queued, leased, retry, unknown, blocked, delivered, cancelled
|
submission_id
required
|
string (uuid) |
|
version
required
|
integer |
|
tenant_id
|
string (uuid) |
|
Example response placeholder values
{
"attempts": 1,
"id": "00000000-0000-4000-8000-000000000000",
"last_result": "string",
"lease_id": "00000000-0000-4000-8000-000000000000",
"receipt": {},
"receipt_reference": "string",
"requested_by": "00000000-0000-4000-8000-000000000000",
"route_key": "string",
"status": "queued",
"submission_id": "00000000-0000-4000-8000-000000000000",
"version": 1
}
-
400
Invalid or unsupported EDI profile/field/acknowledgment
-
401
Authentication required
-
403
Role or billing scope denied
-
404
Tenant scoped record not found
-
409
Duplicate evidence, stale version, changed claim or incompatible state
-
428
Quoted If-Match required
-
500
Database/audit failure; transaction rolled back
Example call
curl -X POST "$EHR_URL/api/v1/billing/delivery/jobs/{id}/actions" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Edi delivery routes
GET
/api/v1/billing/delivery/routes
Safe configured route metadata for authenticated tenant; excludes endpoints and credential names/values. Configuration is provisioned by operator on server.
Access
OAuth 2.0 access tokenbilling.read
Responses
-
200
Success
application/json
-
Fields EdiDeliveryRoutes · 9
| Field |
Type |
Details |
items
required
|
array of EdiDeliveryRoute |
|
credential_configured
required
|
boolean |
|
key
required
|
string |
|
loopback_test
required
|
boolean |
|
partner_id
required
|
string (uuid) |
|
usage
required
|
any |
one of T, P
|
adapter
|
any |
one of gateway, stedi, claim_md, office_ally_sftp, availity_sftp
|
retrieval_enabled
|
boolean |
|
worker
required
|
string |
|
Example response placeholder values
{
"items": [
{
"credential_configured": true,
"key": "string",
"loopback_test": true,
"partner_id": "00000000-0000-4000-8000-000000000000",
"usage": "T",
"adapter": "gateway",
"retrieval_enabled": true
}
],
"worker": "string"
}
-
400
Invalid or unsupported EDI profile/field/acknowledgment
-
401
Authentication required
-
403
Role or billing scope denied
-
404
Tenant scoped record not found
-
409
Duplicate evidence, stale version, changed claim or incompatible state
-
428
Quoted If-Match required
-
500
Database/audit failure; transaction rolled back
Example call
curl "$EHR_URL/api/v1/billing/delivery/routes" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Source payers
GET
/api/v1/billing/payer-sources
Owner review of imported payer directory; linked native_id prevents duplicate activation.
Access
OAuth 2.0 access tokenbilling.read
Responses
-
200
Success
application/json
-
Fields object · 6
| Field |
Type |
Details |
items
required
|
array of object |
|
native_id
required
|
string or null |
|
source_data
required
|
object |
|
source_history_id
required
|
string (uuid) |
|
source_id
required
|
string |
length 0–200
|
source_instance
required
|
string |
length 0–200
|
Example response placeholder values
{
"items": [
{
"native_id": "00000000-0000-4000-8000-000000000000",
"source_data": {},
"source_history_id": "00000000-0000-4000-8000-000000000000",
"source_id": "string",
"source_instance": "string"
}
]
}
-
400
Invalid mapping or values
-
401
Sign in required
-
403
Role or billing scope denied
-
404
Tenant/patient scoped record not found
-
409
Stale version, duplicate source, conflicting coverage or balance
-
428
Current quoted If-Match required
-
500
Database/audit failure; no partial mutation committed
Example call
curl "$EHR_URL/api/v1/billing/payer-sources" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Billing payers
GET
/api/v1/billing/payers
Staff payer directory; maximum 1000 records.
Access
OAuth 2.0 access tokenbilling.read
Responses
-
200
Success
application/json
-
Fields object · 10
| Field |
Type |
Details |
items
required
|
array of Payer |
|
content
required
|
PayerContent |
|
active
required
|
boolean |
|
address
required
|
string |
length 0–1000
|
name
required
|
string |
length 1–200
|
payer_code
required
|
string |
length 0–100
|
phone
required
|
string |
length 0–50
|
id
required
|
string (uuid) |
|
source_history_id
required
|
string or null |
|
version
required
|
integer |
value ≥ 1
|
Example response placeholder values
{
"items": [
{
"content": {
"active": true,
"address": "string",
"name": "string",
"payer_code": "string",
"phone": "string"
},
"id": "00000000-0000-4000-8000-000000000000",
"source_history_id": "00000000-0000-4000-8000-000000000000",
"version": 1
}
]
}
-
400
Invalid mapping or values
-
401
Sign in required
-
403
Role or billing scope denied
-
404
Tenant/patient scoped record not found
-
409
Stale version, duplicate source, conflicting coverage or balance
-
428
Current quoted If-Match required
-
500
Database/audit failure; no partial mutation committed
Example call
curl "$EHR_URL/api/v1/billing/payers" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Create payer
POST
/api/v1/billing/payers
Owner-managed payer identity. Stable request_id and optional reviewed insurance_company source; no credentials imported.
Access
OAuth 2.0 access tokenbilling.write
Request body
application/json · required
Fields NewPayer · 9
| Field |
Type |
Details |
content
required
|
PayerContent |
|
active
required
|
boolean |
|
address
required
|
string |
length 0–1000
|
name
required
|
string |
length 1–200
|
payer_code
required
|
string |
length 0–100
|
phone
required
|
string |
length 0–50
|
reason
required
|
string |
length 1–1000
|
request_id
required
|
string (uuid) |
|
source_history_id
|
string or null |
|
Example request body placeholder values
{
"content": {
"active": true,
"address": "string",
"name": "string",
"payer_code": "string",
"phone": "string"
},
"reason": "string",
"request_id": "00000000-0000-4000-8000-000000000000",
"source_history_id": "00000000-0000-4000-8000-000000000000"
}
Responses
-
200
Success
application/json
-
Fields Payer · 9
| Field |
Type |
Details |
content
required
|
PayerContent |
|
active
required
|
boolean |
|
address
required
|
string |
length 0–1000
|
name
required
|
string |
length 1–200
|
payer_code
required
|
string |
length 0–100
|
phone
required
|
string |
length 0–50
|
id
required
|
string (uuid) |
|
source_history_id
required
|
string or null |
|
version
required
|
integer |
value ≥ 1
|
Example response placeholder values
{
"content": {
"active": true,
"address": "string",
"name": "string",
"payer_code": "string",
"phone": "string"
},
"id": "00000000-0000-4000-8000-000000000000",
"source_history_id": "00000000-0000-4000-8000-000000000000",
"version": 1
}
-
400
Invalid mapping or values
-
401
Sign in required
-
403
Role or billing scope denied
-
404
Tenant/patient scoped record not found
-
409
Stale version, duplicate source, conflicting coverage or balance
-
428
Current quoted If-Match required
-
500
Database/audit failure; no partial mutation committed
Example call
curl -X POST "$EHR_URL/api/v1/billing/payers" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Edit payer
PUT
/api/v1/billing/payers/{id}
Owner only; deactivation preserves prior coverage/account snapshots.
Access
OAuth 2.0 access tokenbilling.write
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
If-Match
required
|
header |
string |
Quoted current resource version |
Request body
application/json · required
Fields EditPayer · 7
| Field |
Type |
Details |
content
required
|
PayerContent |
|
active
required
|
boolean |
|
address
required
|
string |
length 0–1000
|
name
required
|
string |
length 1–200
|
payer_code
required
|
string |
length 0–100
|
phone
required
|
string |
length 0–50
|
reason
required
|
string |
length 1–1000
|
Example request body placeholder values
{
"content": {
"active": true,
"address": "string",
"name": "string",
"payer_code": "string",
"phone": "string"
},
"reason": "string"
}
Responses
-
200
Success
application/json
-
Fields Payer · 9
| Field |
Type |
Details |
content
required
|
PayerContent |
|
active
required
|
boolean |
|
address
required
|
string |
length 0–1000
|
name
required
|
string |
length 1–200
|
payer_code
required
|
string |
length 0–100
|
phone
required
|
string |
length 0–50
|
id
required
|
string (uuid) |
|
source_history_id
required
|
string or null |
|
version
required
|
integer |
value ≥ 1
|
Example response placeholder values
{
"content": {
"active": true,
"address": "string",
"name": "string",
"payer_code": "string",
"phone": "string"
},
"id": "00000000-0000-4000-8000-000000000000",
"source_history_id": "00000000-0000-4000-8000-000000000000",
"version": 1
}
-
400
Invalid mapping or values
-
401
Sign in required
-
403
Role or billing scope denied
-
404
Tenant/patient scoped record not found
-
409
Stale version, duplicate source, conflicting coverage or balance
-
428
Current quoted If-Match required
-
500
Database/audit failure; no partial mutation committed
Example call
curl -X PUT "$EHR_URL/api/v1/billing/payers/{id}" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Payer history
GET
/api/v1/billing/payers/{id}/history
Attributed append-only payer versions.
Access
OAuth 2.0 access tokenbilling.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/json
-
Fields BillingHistory · 6
| Field |
Type |
Details |
items
required
|
array of object |
|
actor_id
required
|
string (uuid) |
|
created_at
required
|
string (date-time) |
|
reason
required
|
string |
length 1–1000
|
snapshot
required
|
object |
|
version
required
|
integer |
|
Example response placeholder values
{
"items": [
{
"actor_id": "00000000-0000-4000-8000-000000000000",
"created_at": "2026-01-15T15:30:00Z",
"reason": "string",
"snapshot": {},
"version": 1
}
]
}
-
400
Invalid mapping or values
-
401
Sign in required
-
403
Role or billing scope denied
-
404
Tenant/patient scoped record not found
-
409
Stale version, duplicate source, conflicting coverage or balance
-
428
Current quoted If-Match required
-
500
Database/audit failure; no partial mutation committed
Example call
curl "$EHR_URL/api/v1/billing/payers/{id}/history" -H "Authorization: Bearer $ACCESS_TOKEN"
#
List provider settings
GET
/api/v1/billing/provider-settings
Owner role required. List redacted settings and credential-storage health for the authenticated tenant.
Access
OAuth 2.0 access tokenbilling.write
Responses
-
200
Success; no credential values returned
application/json
-
Fields ProviderSettings · 20
| Field |
Type |
Details |
credential_storage_ready
|
boolean |
|
items
|
array of ProviderSetting |
|
credential_configured
required
|
constant |
always true
|
enabled
required
|
boolean |
|
id
required
|
string (uuid) |
|
interval_seconds
required
|
integer |
value 30–86400
|
label
required
|
string |
length 1–120
|
last_test_at
required
|
string or null |
|
last_test_result
required
|
string or null |
|
partner_id
required
|
string (uuid) |
|
provider
required
|
constant |
always claim_md
|
response_id
required
|
string |
pattern ^[0-9]{1,20}$
|
route_key
required
|
string |
|
start_at
required
|
string (date-time) |
|
usage
required
|
string |
one of T, P
|
verified
required
|
boolean |
|
version
required
|
integer |
value ≥ 1
|
key_configured
|
boolean |
|
key_storage
|
constant |
always server_private_file
|
provider
|
constant |
always claim_md
|
Example response placeholder values
{
"credential_storage_ready": true,
"items": [
{
"credential_configured": true,
"enabled": true,
"id": "00000000-0000-4000-8000-000000000000",
"interval_seconds": 30,
"label": "string",
"last_test_at": "2026-01-15T15:30:00Z",
"last_test_result": "string",
"partner_id": "00000000-0000-4000-8000-000000000000",
"provider": "claim_md",
"response_id": "string",
"route_key": "string",
"start_at": "2026-01-15T15:30:00Z",
"usage": "T",
"verified": true,
"version": 1
}
],
"key_configured": true,
"key_storage": "server_private_file",
"provider": "claim_md"
}
-
400
Invalid configuration, decryption unavailable, or activation requires authentication verification
-
401
Authentication required
-
403
Owner role or billing scope required
-
404
Tenant-scoped setting or partner not found
-
409
Stale version, duplicate account credential, or incompatible connection
-
428
Current quoted If-Match required
-
500
Database or audit failure; transaction rolled back
Example call
curl "$EHR_URL/api/v1/billing/provider-settings" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Create provider setting
POST
/api/v1/billing/provider-settings
Owner role required. Save a Claim.MD AccountKey encrypted at rest; creates a disabled, unverified connection. AccountKey is required. No network request is made.
Access
OAuth 2.0 access tokenbilling.write
Request body
application/json · required
Fields SaveProviderSetting · 7
| Field |
Type |
Details |
label
required
|
string |
length 1–120
|
partner_id
required
|
string (uuid) |
|
start_at
required
|
string (date-time) |
|
usage
required
|
string |
one of T, P
|
account_key
|
string |
Required on creation; omit on update to keep saved key. No whitespace. A replacement key invalidates verification and creates a fresh route revision.
length 8–512
|
interval_seconds
|
integer |
value 30–86400
|
response_id
|
string |
pattern ^[0-9]{1,20}$
|
Example request body placeholder values
{
"label": "string",
"partner_id": "00000000-0000-4000-8000-000000000000",
"start_at": "2026-01-15T15:30:00Z",
"usage": "T",
"account_key": "string",
"interval_seconds": 30,
"response_id": "string"
}
Responses
-
200
Success; no credential values returned
application/json
-
Fields ProviderSetting · 15
| Field |
Type |
Details |
credential_configured
required
|
constant |
always true
|
enabled
required
|
boolean |
|
id
required
|
string (uuid) |
|
interval_seconds
required
|
integer |
value 30–86400
|
label
required
|
string |
length 1–120
|
last_test_at
required
|
string or null |
|
last_test_result
required
|
string or null |
|
partner_id
required
|
string (uuid) |
|
provider
required
|
constant |
always claim_md
|
response_id
required
|
string |
pattern ^[0-9]{1,20}$
|
route_key
required
|
string |
|
start_at
required
|
string (date-time) |
|
usage
required
|
string |
one of T, P
|
verified
required
|
boolean |
|
version
required
|
integer |
value ≥ 1
|
Example response placeholder values
{
"credential_configured": true,
"enabled": true,
"id": "00000000-0000-4000-8000-000000000000",
"interval_seconds": 30,
"label": "string",
"last_test_at": "2026-01-15T15:30:00Z",
"last_test_result": "string",
"partner_id": "00000000-0000-4000-8000-000000000000",
"provider": "claim_md",
"response_id": "string",
"route_key": "string",
"start_at": "2026-01-15T15:30:00Z",
"usage": "T",
"verified": true,
"version": 1
}
-
400
Invalid configuration, decryption unavailable, or activation requires authentication verification
-
401
Authentication required
-
403
Owner role or billing scope required
-
404
Tenant-scoped setting or partner not found
-
409
Stale version, duplicate account credential, or incompatible connection
-
428
Current quoted If-Match required
-
500
Database or audit failure; transaction rolled back
Example call
curl -X POST "$EHR_URL/api/v1/billing/provider-settings" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Read provider setting
GET
/api/v1/billing/provider-settings/{id}
Owner role required. Read redacted current metadata and immutable attributed action history.
Access
OAuth 2.0 access tokenbilling.write
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success; no credential values returned
application/json
-
Fields object · 17
| Field |
Type |
Details |
events
|
array of object |
|
setting
|
ProviderSetting |
Owner-only redacted Claim.MD configuration. Credentials, ciphertext, fingerprints and private key paths are never returned.
|
credential_configured
required
|
constant |
always true
|
enabled
required
|
boolean |
|
id
required
|
string (uuid) |
|
interval_seconds
required
|
integer |
value 30–86400
|
label
required
|
string |
length 1–120
|
last_test_at
required
|
string or null |
|
last_test_result
required
|
string or null |
|
partner_id
required
|
string (uuid) |
|
provider
required
|
constant |
always claim_md
|
response_id
required
|
string |
pattern ^[0-9]{1,20}$
|
route_key
required
|
string |
|
start_at
required
|
string (date-time) |
|
usage
required
|
string |
one of T, P
|
verified
required
|
boolean |
|
version
required
|
integer |
value ≥ 1
|
Example response placeholder values
{
"events": [
{}
],
"setting": {
"credential_configured": true,
"enabled": true,
"id": "00000000-0000-4000-8000-000000000000",
"interval_seconds": 30,
"label": "string",
"last_test_at": "2026-01-15T15:30:00Z",
"last_test_result": "string",
"partner_id": "00000000-0000-4000-8000-000000000000",
"provider": "claim_md",
"response_id": "string",
"route_key": "string",
"start_at": "2026-01-15T15:30:00Z",
"usage": "T",
"verified": true,
"version": 1
}
}
-
400
Invalid configuration, decryption unavailable, or activation requires authentication verification
-
401
Authentication required
-
403
Owner role or billing scope required
-
404
Tenant-scoped setting or partner not found
-
409
Stale version, duplicate account credential, or incompatible connection
-
428
Current quoted If-Match required
-
500
Database or audit failure; transaction rolled back
Example call
curl "$EHR_URL/api/v1/billing/provider-settings/{id}" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Update provider setting
PUT
/api/v1/billing/provider-settings/{id}
Owner role required. Save configuration changes and disable automation. Changing key or initial discovery position creates a new route and pauses the previous connection; partner/mode remain fixed.
Access
OAuth 2.0 access tokenbilling.write
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
If-Match
required
|
header |
string |
Quoted current setting version. |
Request body
application/json · required
Fields SaveProviderSetting · 7
| Field |
Type |
Details |
label
required
|
string |
length 1–120
|
partner_id
required
|
string (uuid) |
|
start_at
required
|
string (date-time) |
|
usage
required
|
string |
one of T, P
|
account_key
|
string |
Required on creation; omit on update to keep saved key. No whitespace. A replacement key invalidates verification and creates a fresh route revision.
length 8–512
|
interval_seconds
|
integer |
value 30–86400
|
response_id
|
string |
pattern ^[0-9]{1,20}$
|
Example request body placeholder values
{
"label": "string",
"partner_id": "00000000-0000-4000-8000-000000000000",
"start_at": "2026-01-15T15:30:00Z",
"usage": "T",
"account_key": "string",
"interval_seconds": 30,
"response_id": "string"
}
Responses
-
200
Success; no credential values returned
application/json
-
Fields ProviderSetting · 15
| Field |
Type |
Details |
credential_configured
required
|
constant |
always true
|
enabled
required
|
boolean |
|
id
required
|
string (uuid) |
|
interval_seconds
required
|
integer |
value 30–86400
|
label
required
|
string |
length 1–120
|
last_test_at
required
|
string or null |
|
last_test_result
required
|
string or null |
|
partner_id
required
|
string (uuid) |
|
provider
required
|
constant |
always claim_md
|
response_id
required
|
string |
pattern ^[0-9]{1,20}$
|
route_key
required
|
string |
|
start_at
required
|
string (date-time) |
|
usage
required
|
string |
one of T, P
|
verified
required
|
boolean |
|
version
required
|
integer |
value ≥ 1
|
Example response placeholder values
{
"credential_configured": true,
"enabled": true,
"id": "00000000-0000-4000-8000-000000000000",
"interval_seconds": 30,
"label": "string",
"last_test_at": "2026-01-15T15:30:00Z",
"last_test_result": "string",
"partner_id": "00000000-0000-4000-8000-000000000000",
"provider": "claim_md",
"response_id": "string",
"route_key": "string",
"start_at": "2026-01-15T15:30:00Z",
"usage": "T",
"verified": true,
"version": 1
}
-
400
Invalid configuration, decryption unavailable, or activation requires authentication verification
-
401
Authentication required
-
403
Owner role or billing scope required
-
404
Tenant-scoped setting or partner not found
-
409
Stale version, duplicate account credential, or incompatible connection
-
428
Current quoted If-Match required
-
500
Database or audit failure; transaction rolled back
Example call
curl -X PUT "$EHR_URL/api/v1/billing/provider-settings/{id}" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Activate provider setting
POST
/api/v1/billing/provider-settings/{id}/activation
Owner role required. Explicitly enable a successfully tested saved connection, or disable/pause it. Merged configuration validation prevents duplicate account bindings and route-limit overflow. Workers reload without restart. Does not queue claims or enable remittance auto-posting.
Access
OAuth 2.0 access tokenbilling.write
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
If-Match
required
|
header |
string |
Quoted current setting version. |
Request body
application/json · required
Fields object · 1
| Field |
Type |
Details |
enabled
required
|
boolean |
|
Example request body placeholder values
{
"enabled": true
}
Responses
-
200
Success; no credential values returned
application/json
-
Fields ProviderSetting · 15
| Field |
Type |
Details |
credential_configured
required
|
constant |
always true
|
enabled
required
|
boolean |
|
id
required
|
string (uuid) |
|
interval_seconds
required
|
integer |
value 30–86400
|
label
required
|
string |
length 1–120
|
last_test_at
required
|
string or null |
|
last_test_result
required
|
string or null |
|
partner_id
required
|
string (uuid) |
|
provider
required
|
constant |
always claim_md
|
response_id
required
|
string |
pattern ^[0-9]{1,20}$
|
route_key
required
|
string |
|
start_at
required
|
string (date-time) |
|
usage
required
|
string |
one of T, P
|
verified
required
|
boolean |
|
version
required
|
integer |
value ≥ 1
|
Example response placeholder values
{
"credential_configured": true,
"enabled": true,
"id": "00000000-0000-4000-8000-000000000000",
"interval_seconds": 30,
"label": "string",
"last_test_at": "2026-01-15T15:30:00Z",
"last_test_result": "string",
"partner_id": "00000000-0000-4000-8000-000000000000",
"provider": "claim_md",
"response_id": "string",
"route_key": "string",
"start_at": "2026-01-15T15:30:00Z",
"usage": "T",
"verified": true,
"version": 1
}
-
400
Invalid configuration, decryption unavailable, or activation requires authentication verification
-
401
Authentication required
-
403
Owner role or billing scope required
-
404
Tenant-scoped setting or partner not found
-
409
Stale version, duplicate account credential, or incompatible connection
-
428
Current quoted If-Match required
-
500
Database or audit failure; transaction rolled back
Example call
curl -X POST "$EHR_URL/api/v1/billing/provider-settings/{id}/activation" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Test provider setting
POST
/api/v1/billing/provider-settings/{id}/test
Owner role required. Query the documented Claim.MD payer-directory endpoint with the saved AccountKey. Never submits a claim or advances discovery cursors. Generic authentication result, serialized and limited to one per 30 seconds. Payer enrollment and account mode are not verified.
Access
OAuth 2.0 access tokenbilling.write
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
If-Match
required
|
header |
string |
Quoted current setting version. |
Responses
-
200
Success; no credential values returned
application/json
-
Fields object · 19
| Field |
Type |
Details |
authenticated
|
boolean |
|
claim_submitted
|
constant |
always false
|
discovery_cursor_changed
|
constant |
always false
|
setting
|
ProviderSetting |
Owner-only redacted Claim.MD configuration. Credentials, ciphertext, fingerprints and private key paths are never returned.
|
credential_configured
required
|
constant |
always true
|
enabled
required
|
boolean |
|
id
required
|
string (uuid) |
|
interval_seconds
required
|
integer |
value 30–86400
|
label
required
|
string |
length 1–120
|
last_test_at
required
|
string or null |
|
last_test_result
required
|
string or null |
|
partner_id
required
|
string (uuid) |
|
provider
required
|
constant |
always claim_md
|
response_id
required
|
string |
pattern ^[0-9]{1,20}$
|
route_key
required
|
string |
|
start_at
required
|
string (date-time) |
|
usage
required
|
string |
one of T, P
|
verified
required
|
boolean |
|
version
required
|
integer |
value ≥ 1
|
Example response placeholder values
{
"authenticated": true,
"claim_submitted": false,
"discovery_cursor_changed": false,
"setting": {
"credential_configured": true,
"enabled": true,
"id": "00000000-0000-4000-8000-000000000000",
"interval_seconds": 30,
"label": "string",
"last_test_at": "2026-01-15T15:30:00Z",
"last_test_result": "string",
"partner_id": "00000000-0000-4000-8000-000000000000",
"provider": "claim_md",
"response_id": "string",
"route_key": "string",
"start_at": "2026-01-15T15:30:00Z",
"usage": "T",
"verified": true,
"version": 1
}
}
-
400
Invalid configuration, decryption unavailable, or activation requires authentication verification
-
401
Authentication required
-
403
Owner role or billing scope required
-
404
Tenant-scoped setting or partner not found
-
409
Stale version, duplicate account credential, or incompatible connection
-
428
Current quoted If-Match required
-
500
Database or audit failure; transaction rolled back
Example call
curl -X POST "$EHR_URL/api/v1/billing/provider-settings/{id}/test" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Retrieved reports
GET
/api/v1/billing/retrieved-reports
Recent provider inbox summaries. Retrieval never changes claim acceptance or ledger balances.
Access
OAuth 2.0 access tokenbilling.read
Responses
-
200
Success
application/json
-
Fields RetrievedReportList · 15
| Field |
Type |
Details |
items
required
|
array of RetrievedReport |
|
attempts
|
integer |
|
format
|
string |
|
id
|
string (uuid) |
|
metadata
|
object |
|
native_id
|
string or null |
|
native_kind
|
string or null |
|
original_hash
|
string or null |
|
original_text
|
string or null |
|
parse_summary
|
object |
|
remote_id
|
string |
|
route_key
|
string |
|
status
|
any |
one of pending, leased, retrieved, quarantined, ignored
|
version
|
integer |
|
limit
required
|
constant |
always 100
|
Example response placeholder values
{
"items": [
{
"attempts": 1,
"format": "string",
"id": "00000000-0000-4000-8000-000000000000",
"metadata": {},
"native_id": "00000000-0000-4000-8000-000000000000",
"native_kind": "string",
"original_hash": "string",
"original_text": "string"
}
],
"limit": 100
}
-
400
Invalid or unsupported EDI profile/field/acknowledgment
-
401
Authentication required
-
403
Role or billing scope denied
-
404
Tenant scoped record not found
-
409
Duplicate evidence, stale version, changed claim or incompatible state
-
428
Quoted If-Match required
-
500
Database/audit failure; transaction rolled back
Example call
curl "$EHR_URL/api/v1/billing/retrieved-reports" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Provider source mapping
POST
/api/v1/billing/retrieved-reports/from-source
Owner-only idempotent original source system/provider evidence mapping to independently reviewed native partner. Creates an inactive historical inbox connection; never activates transport or creates claims/delivery jobs.
Access
OAuth 2.0 access tokenbilling.write
Request body
application/json · required
Fields ProviderSourceMapping · 4
| Field |
Type |
Details |
partner_id
required
|
string (uuid) |
|
reason
required
|
string |
length 1–1000
|
request_id
required
|
string (uuid) |
|
source_history_id
required
|
string (uuid) |
|
Example request body placeholder values
{
"partner_id": "00000000-0000-4000-8000-000000000000",
"reason": "string",
"request_id": "00000000-0000-4000-8000-000000000000",
"source_history_id": "00000000-0000-4000-8000-000000000000"
}
Responses
-
200
Success
application/json
-
Body: object
-
400
Invalid or unsupported EDI profile/field/acknowledgment
-
401
Authentication required
-
403
Role or billing scope denied
-
404
Tenant scoped record not found
-
409
Duplicate evidence, stale version, changed claim or incompatible state
-
428
Quoted If-Match required
-
500
Database/audit failure; transaction rolled back
Example call
curl -X POST "$EHR_URL/api/v1/billing/retrieved-reports/from-source" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Retrieved report detail
GET
/api/v1/billing/retrieved-reports/{id}
Retained original evidence, safe provider metadata, parser issues, native link and audit history.
Access
OAuth 2.0 access tokenbilling.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/json
-
Fields RetrievedReportDetail · 15
| Field |
Type |
Details |
events
required
|
array of object |
|
report
required
|
RetrievedReport |
Original text and metadata appear in detail only. Immutable provider/account/report identity, content/hash and native links; bounded append-only events.
|
attempts
|
integer |
|
format
|
string |
|
id
|
string (uuid) |
|
metadata
|
object |
|
native_id
|
string or null |
|
native_kind
|
string or null |
|
original_hash
|
string or null |
|
original_text
|
string or null |
|
parse_summary
|
object |
|
remote_id
|
string |
|
route_key
|
string |
|
status
|
any |
one of pending, leased, retrieved, quarantined, ignored
|
version
|
integer |
|
Example response placeholder values
{
"events": [
{}
],
"report": {
"attempts": 1,
"format": "string",
"id": "00000000-0000-4000-8000-000000000000",
"metadata": {},
"native_id": "00000000-0000-4000-8000-000000000000",
"native_kind": "string",
"original_hash": "string",
"original_text": "string"
}
}
-
400
Invalid or unsupported EDI profile/field/acknowledgment
-
401
Authentication required
-
403
Role or billing scope denied
-
404
Tenant scoped record not found
-
409
Duplicate evidence, stale version, changed claim or incompatible state
-
428
Quoted If-Match required
-
500
Database/audit failure; transaction rolled back
Example call
curl "$EHR_URL/api/v1/billing/retrieved-reports/{id}" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Retrieved report action
POST
/api/v1/billing/retrieved-reports/{id}/actions
Retry only a quarantined download without original text; or explicitly link Claim.MD structured status to current delivered submission/claim versions after exact provider/payer/member/control/amount/date matching. Evidence linking never changes claim status.
Access
OAuth 2.0 access tokenbilling.write
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
If-Match
required
|
header |
string |
Quoted current connection or report version. |
Request body
application/json · required
Fields RetrievedReportAction · 5
| Field |
Type |
Details |
action
required
|
any |
one of retry_download, link_status_evidence
|
reason
required
|
string |
length 1–1000
|
claim_version
|
integer or null |
value ≥ 1
|
submission_id
|
string or null |
|
submission_version
|
integer or null |
value ≥ 1
|
Example request body placeholder values
{
"action": "retry_download",
"reason": "string",
"claim_version": 1,
"submission_id": "00000000-0000-4000-8000-000000000000",
"submission_version": 1
}
Responses
-
200
Success
application/json
-
Body: object
-
400
Invalid or unsupported EDI profile/field/acknowledgment
-
401
Authentication required
-
403
Role or billing scope denied
-
404
Tenant scoped record not found
-
409
Duplicate evidence, stale version, changed claim or incompatible state
-
428
Quoted If-Match required
-
500
Database/audit failure; transaction rolled back
Example call
curl -X POST "$EHR_URL/api/v1/billing/retrieved-reports/{id}/actions" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Edi submission queue
GET
/api/v1/billing/submissions
Cursor paginated summaries with separate delivery, technical and payer outcomes.
Access
OAuth 2.0 access tokenbilling.read
Parameters
| Name |
In |
Type |
Details |
after
|
query |
string (uuid) |
|
Responses
-
200
Success
application/json
-
Fields EdiSubmissionWorklist · 3
| Field |
Type |
Details |
items
required
|
array of object |
items ≤ 100
|
next_cursor
required
|
string or null |
|
transport
required
|
any |
one of manual_file, https_gateway_and_manual_file, provider_adapters_and_manual_file
|
Example response placeholder values
{
"items": [
{}
],
"next_cursor": "00000000-0000-4000-8000-000000000000",
"transport": "manual_file"
}
-
400
Invalid or unsupported EDI profile/field/acknowledgment
-
401
Authentication required
-
403
Role or billing scope denied
-
404
Tenant scoped record not found
-
409
Duplicate evidence, stale version, changed claim or incompatible state
-
428
Quoted If-Match required
-
500
Database/audit failure; transaction rolled back
Example call
curl "$EHR_URL/api/v1/billing/submissions" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Edi submission detail
GET
/api/v1/billing/submissions/{id}
Read immutable artifact, current claim, original acknowledgment files and attributed event history.
Access
OAuth 2.0 access tokenbilling.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Success
application/json
-
Fields EdiSubmissionDetail · 149
| Field |
Type |
Details |
acknowledgments
required
|
array of object |
items ≤ 100
|
claim
required
|
Claim |
|
account_id
required
|
string (uuid) |
|
content
required
|
ClaimContent |
|
billing_address
required
|
string |
length ≤ 1000
|
billing_npi
required
|
string |
length ≤ 10
|
billing_provider_name
required
|
string |
length ≤ 200
|
diagnosis_codes
required
|
array of string |
items ≤ 12
|
external_control_number
required
|
string |
length ≤ 100
|
line_diagnosis_pointers
required
|
array of array of integer |
items ≤ 100
|
notes
required
|
string |
length ≤ 2000
|
patient_address
required
|
string |
length ≤ 1000
|
place_of_service
required
|
string |
length ≤ 2
|
rendering_npi
required
|
string |
length ≤ 10
|
subscriber_address
required
|
string |
length ≤ 1000
|
subscriber_birth_date
required
|
string or null |
|
tax_id
required
|
string |
length ≤ 9
|
control_number
required
|
string |
length ≤ 100
|
frequency
required
|
any |
one of original, replacement, void_request
|
id
required
|
string (uuid) |
|
parent_id
required
|
string or null |
|
patient_id
required
|
string (uuid) |
|
payer_control_number
required
|
string |
length ≤ 150
|
payer_id
required
|
string (uuid) |
|
snapshot
required
|
object |
|
account
required
|
BillingAccount |
|
content
required
|
BillingAccountContent |
|
coverage_snapshot
required
|
object or null |
Frozen payer and policy versions captured at local posting; no eligibility assertion
|
id
required
|
string (uuid) |
|
patient_id
required
|
string (uuid) |
|
source_history_id
required
|
string or null |
|
status
required
|
string |
one of draft, posted, void
|
total_cents
required
|
integer |
value 1–1000000000
|
version
required
|
integer |
value ≥ 1
|
diagnosis_snapshot
|
AccountDiagnosisSnapshot or null |
|
patient
required
|
object |
Frozen patient demographic evidence
|
coordination_of_benefits
|
object |
Frozen primary coverage/details/adjudication/source, reviewed paid units and previously posted primary credits. Optional crossover object binds received secondary remittance id/version/row/hash, payee NPI, trace/date and row evidence. Presence of crossover makes the claim tracking-only with no packet, CMS1500, 837 or delivery.
|
financial_summary
|
object |
Ledger totals frozen at claim creation, including combined account balance; not an automatic patient responsibility determination.
|
source_history_id
required
|
string or null |
|
status
required
|
any |
For received crossover tracking, submitted means received secondary response linked for review; no outbound delivery is implied. Adjudicated follows reviewed ERA posting; void may follow reviewed withdrawal.
one of draft, ready, submitted, accepted, rejected, adjudicated, void
|
version
required
|
integer |
value ≥ 1
|
events
required
|
array of object |
items ≤ 100
|
network_sender_configured
required
|
boolean |
|
submission
required
|
EdiSubmission |
|
claim_id
required
|
string (uuid) |
|
claim_snapshot
required
|
Claim |
|
account_id
required
|
string (uuid) |
|
content
required
|
ClaimContent |
|
billing_address
required
|
string |
length ≤ 1000
|
billing_npi
required
|
string |
length ≤ 10
|
billing_provider_name
required
|
string |
length ≤ 200
|
diagnosis_codes
required
|
array of string |
items ≤ 12
|
external_control_number
required
|
string |
length ≤ 100
|
line_diagnosis_pointers
required
|
array of array of integer |
items ≤ 100
|
notes
required
|
string |
length ≤ 2000
|
patient_address
required
|
string |
length ≤ 1000
|
place_of_service
required
|
string |
length ≤ 2
|
rendering_npi
required
|
string |
length ≤ 10
|
subscriber_address
required
|
string |
length ≤ 1000
|
subscriber_birth_date
required
|
string or null |
|
tax_id
required
|
string |
length ≤ 9
|
control_number
required
|
string |
length ≤ 100
|
frequency
required
|
any |
one of original, replacement, void_request
|
id
required
|
string (uuid) |
|
parent_id
required
|
string or null |
|
patient_id
required
|
string (uuid) |
|
payer_control_number
required
|
string |
length ≤ 150
|
payer_id
required
|
string (uuid) |
|
snapshot
required
|
object |
|
account
required
|
BillingAccount |
|
patient
required
|
object |
Frozen patient demographic evidence
|
coordination_of_benefits
|
object |
Frozen primary coverage/details/adjudication/source, reviewed paid units and previously posted primary credits. Optional crossover object binds received secondary remittance id/version/row/hash, payee NPI, trace/date and row evidence. Presence of crossover makes the claim tracking-only with no packet, CMS1500, 837 or delivery.
|
financial_summary
|
object |
Ledger totals frozen at claim creation, including combined account balance; not an automatic patient responsibility determination.
|
source_history_id
required
|
string or null |
|
status
required
|
any |
For received crossover tracking, submitted means received secondary response linked for review; no outbound delivery is implied. Adjudicated follows reviewed ERA posting; void may follow reviewed withdrawal.
one of draft, ready, submitted, accepted, rejected, adjudicated, void
|
version
required
|
integer |
value ≥ 1
|
claim_version
required
|
integer |
value ≥ 1
|
delivered_claim_version
required
|
integer or null |
value ≥ 1
|
details
required
|
EdiClaimDetails |
|
benefits_assigned
required
|
boolean |
|
billing_address
required
|
EdiAddress |
|
city
required
|
string |
length ≤ 30
|
line1
required
|
string |
length ≤ 55
|
line2
required
|
string |
length ≤ 55
|
postal_code
required
|
string |
length ≤ 9
|
state
required
|
string |
length ≤ 2
|
billing_taxonomy
required
|
string |
length ≤ 10
|
filing_indicator
required
|
any |
one of CI, MB, MC, MA, CH, VA, TV, WC, ZZ
|
patient_address
required
|
EdiAddress |
|
city
required
|
string |
length ≤ 30
|
line1
required
|
string |
length ≤ 55
|
line2
required
|
string |
length ≤ 55
|
postal_code
required
|
string |
length ≤ 9
|
state
required
|
string |
length ≤ 2
|
patient_sex
required
|
any |
one of U, F, M
|
payer_address
required
|
EdiAddress |
|
city
required
|
string |
length ≤ 30
|
line1
required
|
string |
length ≤ 55
|
line2
required
|
string |
length ≤ 55
|
postal_code
required
|
string |
length ≤ 9
|
state
required
|
string |
length ≤ 2
|
release_authorized
required
|
boolean |
|
rendering_family_name
required
|
string |
length ≤ 35
|
rendering_given_name
required
|
string |
length ≤ 35
|
routine_professional_reviewed
required
|
boolean |
|
signature_on_file
required
|
boolean |
|
subscriber_address
required
|
EdiAddress |
|
city
required
|
string |
length ≤ 30
|
line1
required
|
string |
length ≤ 55
|
line2
required
|
string |
length ≤ 55
|
postal_code
required
|
string |
length ≤ 9
|
state
required
|
string |
length ≤ 2
|
subscriber_family_name
required
|
string |
length ≤ 35
|
subscriber_given_name
required
|
string |
length ≤ 35
|
subscriber_sex
required
|
any |
one of U, F, M
|
group_control
required
|
string |
length ≤ 9
|
id
required
|
string (uuid) |
|
interchange_control
required
|
string |
length ≤ 9
|
partner_id
required
|
string (uuid) |
|
partner_snapshot
required
|
EdiPartner |
|
content
required
|
EdiPartnerContent |
|
active
required
|
boolean |
|
application_receiver
required
|
string |
length ≤ 15
|
application_sender
required
|
string |
length ≤ 15
|
contact_name
required
|
string |
length ≤ 60
|
contact_phone
required
|
string |
length ≤ 10
|
guide_reference
required
|
string |
length ≤ 200
|
name
required
|
string |
length ≤ 100
|
receiver_id
required
|
string |
length ≤ 15
|
receiver_identifier
required
|
string |
length ≤ 80
|
receiver_name
required
|
string |
length ≤ 60
|
receiver_qualifier
required
|
any |
one of ZZ, 01, 14, 30
|
sender_id
required
|
string |
length ≤ 15
|
sender_qualifier
required
|
any |
one of ZZ, 01, 14, 30
|
submitter_id
required
|
string |
length ≤ 80
|
submitter_name
required
|
string |
length ≤ 60
|
usage
required
|
any |
one of T, P
|
id
required
|
string (uuid) |
|
source_history_id
required
|
string or null |
|
version
required
|
integer |
value ≥ 1
|
partner_version
required
|
integer |
value ≥ 1
|
payer_outcome
required
|
any |
one of pending, accepted, rejected
|
payload
required
|
string |
length ≤ 48000
|
payload_hash
required
|
string |
length ≤ 64
|
status
required
|
any |
one of prepared, delivered, cancelled
|
technical_status
required
|
any |
one of pending, accepted, rejected, needs_review
|
transaction_control
required
|
string |
length ≤ 9
|
version
required
|
integer |
value ≥ 1
|
transport
required
|
any |
one of manual_file, https_gateway_and_manual_file, provider_adapters_and_manual_file
|
Example response placeholder values
{
"acknowledgments": [
{}
],
"claim": {
"account_id": "00000000-0000-4000-8000-000000000000",
"content": {
"billing_address": "string",
"billing_npi": "string",
"billing_provider_name": "string",
"diagnosis_codes": [
"string"
],
"external_control_number": "string",
"line_diagnosis_pointers": [
[]
],
"notes": "string",
"patient_address": "string",
"place_of_service": "string",
"rendering_npi": "string",
"subscriber_address": "string",
"subscriber_birth_date": "2026-01-15",
"tax_id": "string"
},
"control_number": "string",
"frequency": "original",
"id": "00000000-0000-4000-8000-000000000000",
"parent_id": "00000000-0000-4000-8000-000000000000",
"patient_id": "00000000-0000-4000-8000-000000000000",
"payer_control_number": "string",
"payer_id": "00000000-0000-4000-8000-000000000000",
"snapshot": {
"account": {
"content": {
"coverage_id": null,
"currency": "USD",
"lines": null,
"notes": null,
"service_date": null,
"visit_id": null,
"fee_context": null
},
"coverage_snapshot": {},
"id": "00000000-0000-4000-8000-000000000000",
"patient_id": "00000000-0000-4000-8000-000000000000",
"source_history_id": "00000000-0000-4000-8000-000000000000",
"status": "draft",
"total_cents": 1,
"version": 1
},
"patient": {},
"coordination_of_benefits": {},
"financial_summary": {}
},
"source_history_id": "00000000-0000-4000-8000-000000000000",
"status": "draft",
"version": 1
},
"events": [
{}
],
"network_sender_configured": true,
"submission": {
"claim_id": "00000000-0000-4000-8000-000000000000",
"claim_snapshot": {
"account_id": "00000000-0000-4000-8000-000000000000",
"content": {
"billing_address": "string",
"billing_npi": "string",
"billing_provider_name": "string",
"diagnosis_codes": [],
"external_control_number": "string",
"line_diagnosis_pointers": [],
"notes": "string",
"patient_address": "string",
"place_of_service": "string",
"rendering_npi": "string",
"subscriber_address": "string",
"subscriber_birth_date": "2026-01-15",
"tax_id": "string"
},
"control_number": "string",
"frequency": "original",
"id": "00000000-0000-4000-8000-000000000000",
"parent_id": "00000000-0000-4000-8000-000000000000",
"patient_id": "00000000-0000-4000-8000-000000000000",
"payer_control_number": "string",
"payer_id": "00000000-0000-4000-8000-000000000000",
"snapshot": {
"account": {
"content": null,
"coverage_snapshot": null,
"id": null,
"patient_id": null,
"source_history_id": null,
"status": "draft",
"total_cents": null,
"version": null
},
"patient": {},
"coordination_of_benefits": {},
"financial_summary": {}
},
"source_history_id": "00000000-0000-4000-8000-000000000000",
"status": "draft",
"version": 1
},
"claim_version": 1,
"delivered_claim_version": 1,
"details": {
"benefits_assigned": true,
"billing_address": {
"city": "string",
"line1": "string",
"line2": "string",
"postal_code": "string",
"state": "string"
},
"billing_taxonomy": "string",
"filing_indicator": "CI",
"patient_address": {
"city": "string",
"line1": "string",
"line2": "string",
"postal_code": "string",
"state": "string"
},
"patient_sex": "U",
"payer_address": {
"city": "string",
"line1": "string",
"line2": "string",
"postal_code": "string",
"state": "string"
},
"release_authorized": true,
"rendering_family_name": "string",
"rendering_given_name": "string",
"routine_professional_reviewed": true,
"signature_on_file": true,
"subscriber_address": {
"city": "string",
"line1": "string",
"line2": "string",
"postal_code": "string",
"state": "string"
},
"subscriber_family_name": "string",
"subscriber_given_name": "string",
"subscriber_sex": "U"
},
"group_control": "string",
"id": "00000000-0000-4000-8000-000000000000",
"interchange_control": "string",
"partner_id": "00000000-0000-4000-8000-000000000000",
"partner_snapshot": {
"content": {
"active": true,
"application_receiver": "string",
"application_sender": "string",
"contact_name": "string",
"contact_phone": "string",
"guide_reference": "string",
"name": "string",
"receiver_id": "string",
"receiver_identifier": "string",
"receiver_name": "string",
"receiver_qualifier": "ZZ",
"sender_id": "string",
"sender_qualifier": "ZZ",
"submitter_id": "string",
"submitter_name": "string",
"usage": "T"
},
"id": "00000000-0000-4000-8000-000000000000",
"source_history_id": "00000000-0000-4000-8000-000000000000",
"version": 1
},
"partner_version": 1,
"payer_outcome": "pending",
"payload": "string",
"payload_hash": "string",
"status": "prepared",
"technical_status": "pending",
"transaction_control": "string",
"version": 1
},
"transport": "manual_file"
}
-
400
Invalid or unsupported EDI profile/field/acknowledgment
-
401
Authentication required
-
403
Role or billing scope denied
-
404
Tenant scoped record not found
-
409
Duplicate evidence, stale version, changed claim or incompatible state
-
428
Quoted If-Match required
-
500
Database/audit failure; transaction rolled back
Example call
curl "$EHR_URL/api/v1/billing/submissions/{id}" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Import edi acknowledgment
POST
/api/v1/billing/submissions/{id}/acknowledgments
Import bounded ASCII 999, TA1 or 277CA against an externally delivered artifact. Supported 999 group/transaction controls and counts must match. Technical rejection can reject the unchanged submitted claim; acceptance does not imply payer acceptance. Unsupported, partial or contradictory results remain reviewable; TA1/277CA are retained for manual review. Originals immutable and duplicate source/hash blocked. Optional remote_report_id enforces exact retrieved text, format and partner binding, then links original evidence atomically.
Access
OAuth 2.0 access tokenbilling.write
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
If-Match
required
|
header |
string |
Quoted current claim version for generation, partner version for profile edit, submission version for submission writes |
Request body
application/json · required
Fields ImportEdiAcknowledgment · 5
| Field |
Type |
Details |
format
required
|
any |
one of x12_999, x12_ta1, x12_277ca
|
original_text
required
|
string |
length ≤ 48000
|
reason
required
|
string |
length 1–1000
|
remote_report_id
|
string or null |
|
source_history_id
|
string or null |
|
Example request body placeholder values
{
"format": "x12_999",
"original_text": "string",
"reason": "string",
"remote_report_id": "00000000-0000-4000-8000-000000000000",
"source_history_id": "00000000-0000-4000-8000-000000000000"
}
Responses
-
200
Success
application/json
-
Fields EdiAcknowledgmentResult · 111
| Field |
Type |
Details |
acknowledgment_id
required
|
string (uuid) |
|
parsed
required
|
object |
|
claim_acceptance
|
constant |
always false
|
format
|
string |
length ≤ 20
|
issues
|
array of string |
items ≤ 100
|
outcome
|
any |
one of accepted, rejected, needs_review
|
submission
required
|
EdiSubmission |
|
claim_id
required
|
string (uuid) |
|
claim_snapshot
required
|
Claim |
|
account_id
required
|
string (uuid) |
|
content
required
|
ClaimContent |
|
billing_address
required
|
string |
length ≤ 1000
|
billing_npi
required
|
string |
length ≤ 10
|
billing_provider_name
required
|
string |
length ≤ 200
|
diagnosis_codes
required
|
array of string |
items ≤ 12
|
external_control_number
required
|
string |
length ≤ 100
|
line_diagnosis_pointers
required
|
array of array of integer |
items ≤ 100
|
notes
required
|
string |
length ≤ 2000
|
patient_address
required
|
string |
length ≤ 1000
|
place_of_service
required
|
string |
length ≤ 2
|
rendering_npi
required
|
string |
length ≤ 10
|
subscriber_address
required
|
string |
length ≤ 1000
|
subscriber_birth_date
required
|
string or null |
|
tax_id
required
|
string |
length ≤ 9
|
control_number
required
|
string |
length ≤ 100
|
frequency
required
|
any |
one of original, replacement, void_request
|
id
required
|
string (uuid) |
|
parent_id
required
|
string or null |
|
patient_id
required
|
string (uuid) |
|
payer_control_number
required
|
string |
length ≤ 150
|
payer_id
required
|
string (uuid) |
|
snapshot
required
|
object |
|
account
required
|
BillingAccount |
|
patient
required
|
object |
Frozen patient demographic evidence
|
coordination_of_benefits
|
object |
Frozen primary coverage/details/adjudication/source, reviewed paid units and previously posted primary credits. Optional crossover object binds received secondary remittance id/version/row/hash, payee NPI, trace/date and row evidence. Presence of crossover makes the claim tracking-only with no packet, CMS1500, 837 or delivery.
|
financial_summary
|
object |
Ledger totals frozen at claim creation, including combined account balance; not an automatic patient responsibility determination.
|
source_history_id
required
|
string or null |
|
status
required
|
any |
For received crossover tracking, submitted means received secondary response linked for review; no outbound delivery is implied. Adjudicated follows reviewed ERA posting; void may follow reviewed withdrawal.
one of draft, ready, submitted, accepted, rejected, adjudicated, void
|
version
required
|
integer |
value ≥ 1
|
claim_version
required
|
integer |
value ≥ 1
|
delivered_claim_version
required
|
integer or null |
value ≥ 1
|
details
required
|
EdiClaimDetails |
|
benefits_assigned
required
|
boolean |
|
billing_address
required
|
EdiAddress |
|
city
required
|
string |
length ≤ 30
|
line1
required
|
string |
length ≤ 55
|
line2
required
|
string |
length ≤ 55
|
postal_code
required
|
string |
length ≤ 9
|
state
required
|
string |
length ≤ 2
|
billing_taxonomy
required
|
string |
length ≤ 10
|
filing_indicator
required
|
any |
one of CI, MB, MC, MA, CH, VA, TV, WC, ZZ
|
patient_address
required
|
EdiAddress |
|
city
required
|
string |
length ≤ 30
|
line1
required
|
string |
length ≤ 55
|
line2
required
|
string |
length ≤ 55
|
postal_code
required
|
string |
length ≤ 9
|
state
required
|
string |
length ≤ 2
|
patient_sex
required
|
any |
one of U, F, M
|
payer_address
required
|
EdiAddress |
|
city
required
|
string |
length ≤ 30
|
line1
required
|
string |
length ≤ 55
|
line2
required
|
string |
length ≤ 55
|
postal_code
required
|
string |
length ≤ 9
|
state
required
|
string |
length ≤ 2
|
release_authorized
required
|
boolean |
|
rendering_family_name
required
|
string |
length ≤ 35
|
rendering_given_name
required
|
string |
length ≤ 35
|
routine_professional_reviewed
required
|
boolean |
|
signature_on_file
required
|
boolean |
|
subscriber_address
required
|
EdiAddress |
|
city
required
|
string |
length ≤ 30
|
line1
required
|
string |
length ≤ 55
|
line2
required
|
string |
length ≤ 55
|
postal_code
required
|
string |
length ≤ 9
|
state
required
|
string |
length ≤ 2
|
subscriber_family_name
required
|
string |
length ≤ 35
|
subscriber_given_name
required
|
string |
length ≤ 35
|
subscriber_sex
required
|
any |
one of U, F, M
|
group_control
required
|
string |
length ≤ 9
|
id
required
|
string (uuid) |
|
interchange_control
required
|
string |
length ≤ 9
|
partner_id
required
|
string (uuid) |
|
partner_snapshot
required
|
EdiPartner |
|
content
required
|
EdiPartnerContent |
|
active
required
|
boolean |
|
application_receiver
required
|
string |
length ≤ 15
|
application_sender
required
|
string |
length ≤ 15
|
contact_name
required
|
string |
length ≤ 60
|
contact_phone
required
|
string |
length ≤ 10
|
guide_reference
required
|
string |
length ≤ 200
|
name
required
|
string |
length ≤ 100
|
receiver_id
required
|
string |
length ≤ 15
|
receiver_identifier
required
|
string |
length ≤ 80
|
receiver_name
required
|
string |
length ≤ 60
|
receiver_qualifier
required
|
any |
one of ZZ, 01, 14, 30
|
sender_id
required
|
string |
length ≤ 15
|
sender_qualifier
required
|
any |
one of ZZ, 01, 14, 30
|
submitter_id
required
|
string |
length ≤ 80
|
submitter_name
required
|
string |
length ≤ 60
|
usage
required
|
any |
one of T, P
|
id
required
|
string (uuid) |
|
source_history_id
required
|
string or null |
|
version
required
|
integer |
value ≥ 1
|
partner_version
required
|
integer |
value ≥ 1
|
payer_outcome
required
|
any |
one of pending, accepted, rejected
|
payload
required
|
string |
length ≤ 48000
|
payload_hash
required
|
string |
length ≤ 64
|
status
required
|
any |
one of prepared, delivered, cancelled
|
technical_status
required
|
any |
one of pending, accepted, rejected, needs_review
|
transaction_control
required
|
string |
length ≤ 9
|
version
required
|
integer |
value ≥ 1
|
Example response placeholder values
{
"acknowledgment_id": "00000000-0000-4000-8000-000000000000",
"parsed": {
"claim_acceptance": false,
"format": "string",
"issues": [
"string"
],
"outcome": "accepted"
},
"submission": {
"claim_id": "00000000-0000-4000-8000-000000000000",
"claim_snapshot": {
"account_id": "00000000-0000-4000-8000-000000000000",
"content": {
"billing_address": "string",
"billing_npi": "string",
"billing_provider_name": "string",
"diagnosis_codes": [],
"external_control_number": "string",
"line_diagnosis_pointers": [],
"notes": "string",
"patient_address": "string",
"place_of_service": "string",
"rendering_npi": "string",
"subscriber_address": "string",
"subscriber_birth_date": "2026-01-15",
"tax_id": "string"
},
"control_number": "string",
"frequency": "original",
"id": "00000000-0000-4000-8000-000000000000",
"parent_id": "00000000-0000-4000-8000-000000000000",
"patient_id": "00000000-0000-4000-8000-000000000000",
"payer_control_number": "string",
"payer_id": "00000000-0000-4000-8000-000000000000",
"snapshot": {
"account": {
"content": null,
"coverage_snapshot": null,
"id": null,
"patient_id": null,
"source_history_id": null,
"status": "draft",
"total_cents": null,
"version": null
},
"patient": {},
"coordination_of_benefits": {},
"financial_summary": {}
},
"source_history_id": "00000000-0000-4000-8000-000000000000",
"status": "draft",
"version": 1
},
"claim_version": 1,
"delivered_claim_version": 1,
"details": {
"benefits_assigned": true,
"billing_address": {
"city": "string",
"line1": "string",
"line2": "string",
"postal_code": "string",
"state": "string"
},
"billing_taxonomy": "string",
"filing_indicator": "CI",
"patient_address": {
"city": "string",
"line1": "string",
"line2": "string",
"postal_code": "string",
"state": "string"
},
"patient_sex": "U",
"payer_address": {
"city": "string",
"line1": "string",
"line2": "string",
"postal_code": "string",
"state": "string"
},
"release_authorized": true,
"rendering_family_name": "string",
"rendering_given_name": "string",
"routine_professional_reviewed": true,
"signature_on_file": true,
"subscriber_address": {
"city": "string",
"line1": "string",
"line2": "string",
"postal_code": "string",
"state": "string"
},
"subscriber_family_name": "string",
"subscriber_given_name": "string",
"subscriber_sex": "U"
},
"group_control": "string",
"id": "00000000-0000-4000-8000-000000000000",
"interchange_control": "string",
"partner_id": "00000000-0000-4000-8000-000000000000",
"partner_snapshot": {
"content": {
"active": true,
"application_receiver": "string",
"application_sender": "string",
"contact_name": "string",
"contact_phone": "string",
"guide_reference": "string",
"name": "string",
"receiver_id": "string",
"receiver_identifier": "string",
"receiver_name": "string",
"receiver_qualifier": "ZZ",
"sender_id": "string",
"sender_qualifier": "ZZ",
"submitter_id": "string",
"submitter_name": "string",
"usage": "T"
},
"id": "00000000-0000-4000-8000-000000000000",
"source_history_id": "00000000-0000-4000-8000-000000000000",
"version": 1
},
"partner_version": 1,
"payer_outcome": "pending",
"payload": "string",
"payload_hash": "string",
"status": "prepared",
"technical_status": "pending",
"transaction_control": "string",
"version": 1
}
}
-
400
Invalid or unsupported EDI profile/field/acknowledgment
-
401
Authentication required
-
403
Role or billing scope denied
-
404
Tenant scoped record not found
-
409
Duplicate evidence, stale version, changed claim or incompatible state
-
428
Quoted If-Match required
-
500
Database/audit failure; transaction rolled back
Example call
curl -X POST "$EHR_URL/api/v1/billing/submissions/{id}/acknowledgments" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Edi submission action
POST
/api/v1/billing/submissions/{id}/actions
Cancel a prepared file, record completed external handoff against unchanged ready claim, or record separately reviewed payer evidence against the submitted claim. Delivery/reference/date and expected claim version required; payer acceptance requires control number. No outbound transport. Claim and outbox event commit atomically.
Access
OAuth 2.0 access tokenbilling.write
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
If-Match
required
|
header |
string |
Quoted current claim version for generation, partner version for profile edit, submission version for submission writes |
Request body
application/json · required
Fields EdiSubmissionAction · 6
| Field |
Type |
Details |
action
required
|
any |
one of cancel, record_delivery, record_payer_acceptance, record_payer_rejection
|
reason
required
|
string |
length 1–1000
|
claim_version
|
integer or null |
value ≥ 1
|
event_date
|
string or null |
|
payer_control_number
|
string |
length ≤ 150
|
reference
|
string |
length ≤ 200
|
Example request body placeholder values
{
"action": "cancel",
"reason": "string",
"claim_version": 1,
"event_date": "2026-01-15",
"payer_control_number": "string",
"reference": "string"
}
Responses
-
200
Success
application/json
-
Fields EdiSubmission · 113
| Field |
Type |
Details |
claim_id
required
|
string (uuid) |
|
claim_snapshot
required
|
Claim |
|
account_id
required
|
string (uuid) |
|
content
required
|
ClaimContent |
|
billing_address
required
|
string |
length ≤ 1000
|
billing_npi
required
|
string |
length ≤ 10
|
billing_provider_name
required
|
string |
length ≤ 200
|
diagnosis_codes
required
|
array of string |
items ≤ 12
|
external_control_number
required
|
string |
length ≤ 100
|
line_diagnosis_pointers
required
|
array of array of integer |
items ≤ 100
|
notes
required
|
string |
length ≤ 2000
|
patient_address
required
|
string |
length ≤ 1000
|
place_of_service
required
|
string |
length ≤ 2
|
rendering_npi
required
|
string |
length ≤ 10
|
subscriber_address
required
|
string |
length ≤ 1000
|
subscriber_birth_date
required
|
string or null |
|
tax_id
required
|
string |
length ≤ 9
|
control_number
required
|
string |
length ≤ 100
|
frequency
required
|
any |
one of original, replacement, void_request
|
id
required
|
string (uuid) |
|
parent_id
required
|
string or null |
|
patient_id
required
|
string (uuid) |
|
payer_control_number
required
|
string |
length ≤ 150
|
payer_id
required
|
string (uuid) |
|
snapshot
required
|
object |
|
account
required
|
BillingAccount |
|
content
required
|
BillingAccountContent |
|
coverage_snapshot
required
|
object or null |
Frozen payer and policy versions captured at local posting; no eligibility assertion
|
id
required
|
string (uuid) |
|
patient_id
required
|
string (uuid) |
|
source_history_id
required
|
string or null |
|
status
required
|
string |
one of draft, posted, void
|
total_cents
required
|
integer |
value 1–1000000000
|
version
required
|
integer |
value ≥ 1
|
diagnosis_snapshot
|
AccountDiagnosisSnapshot or null |
|
patient
required
|
object |
Frozen patient demographic evidence
|
coordination_of_benefits
|
object |
Frozen primary coverage/details/adjudication/source, reviewed paid units and previously posted primary credits. Optional crossover object binds received secondary remittance id/version/row/hash, payee NPI, trace/date and row evidence. Presence of crossover makes the claim tracking-only with no packet, CMS1500, 837 or delivery.
|
financial_summary
|
object |
Ledger totals frozen at claim creation, including combined account balance; not an automatic patient responsibility determination.
|
source_history_id
required
|
string or null |
|
status
required
|
any |
For received crossover tracking, submitted means received secondary response linked for review; no outbound delivery is implied. Adjudicated follows reviewed ERA posting; void may follow reviewed withdrawal.
one of draft, ready, submitted, accepted, rejected, adjudicated, void
|
version
required
|
integer |
value ≥ 1
|
claim_version
required
|
integer |
value ≥ 1
|
delivered_claim_version
required
|
integer or null |
value ≥ 1
|
details
required
|
EdiClaimDetails |
|
benefits_assigned
required
|
boolean |
|
billing_address
required
|
EdiAddress |
|
city
required
|
string |
length ≤ 30
|
line1
required
|
string |
length ≤ 55
|
line2
required
|
string |
length ≤ 55
|
postal_code
required
|
string |
length ≤ 9
|
state
required
|
string |
length ≤ 2
|
billing_taxonomy
required
|
string |
length ≤ 10
|
filing_indicator
required
|
any |
one of CI, MB, MC, MA, CH, VA, TV, WC, ZZ
|
patient_address
required
|
EdiAddress |
|
city
required
|
string |
length ≤ 30
|
line1
required
|
string |
length ≤ 55
|
line2
required
|
string |
length ≤ 55
|
postal_code
required
|
string |
length ≤ 9
|
state
required
|
string |
length ≤ 2
|
patient_sex
required
|
any |
one of U, F, M
|
payer_address
required
|
EdiAddress |
|
city
required
|
string |
length ≤ 30
|
line1
required
|
string |
length ≤ 55
|
line2
required
|
string |
length ≤ 55
|
postal_code
required
|
string |
length ≤ 9
|
state
required
|
string |
length ≤ 2
|
release_authorized
required
|
boolean |
|
rendering_family_name
required
|
string |
length ≤ 35
|
rendering_given_name
required
|
string |
length ≤ 35
|
routine_professional_reviewed
required
|
boolean |
|
signature_on_file
required
|
boolean |
|
subscriber_address
required
|
EdiAddress |
|
city
required
|
string |
length ≤ 30
|
line1
required
|
string |
length ≤ 55
|
line2
required
|
string |
length ≤ 55
|
postal_code
required
|
string |
length ≤ 9
|
state
required
|
string |
length ≤ 2
|
subscriber_family_name
required
|
string |
length ≤ 35
|
subscriber_given_name
required
|
string |
length ≤ 35
|
subscriber_sex
required
|
any |
one of U, F, M
|
group_control
required
|
string |
length ≤ 9
|
id
required
|
string (uuid) |
|
interchange_control
required
|
string |
length ≤ 9
|
partner_id
required
|
string (uuid) |
|
partner_snapshot
required
|
EdiPartner |
|
content
required
|
EdiPartnerContent |
|
active
required
|
boolean |
|
application_receiver
required
|
string |
length ≤ 15
|
application_sender
required
|
string |
length ≤ 15
|
contact_name
required
|
string |
length ≤ 60
|
contact_phone
required
|
string |
length ≤ 10
|
guide_reference
required
|
string |
length ≤ 200
|
name
required
|
string |
length ≤ 100
|
receiver_id
required
|
string |
length ≤ 15
|
receiver_identifier
required
|
string |
length ≤ 80
|
receiver_name
required
|
string |
length ≤ 60
|
receiver_qualifier
required
|
any |
one of ZZ, 01, 14, 30
|
sender_id
required
|
string |
length ≤ 15
|
sender_qualifier
required
|
any |
one of ZZ, 01, 14, 30
|
submitter_id
required
|
string |
length ≤ 80
|
submitter_name
required
|
string |
length ≤ 60
|
usage
required
|
any |
one of T, P
|
id
required
|
string (uuid) |
|
source_history_id
required
|
string or null |
|
version
required
|
integer |
value ≥ 1
|
partner_version
required
|
integer |
value ≥ 1
|
payer_outcome
required
|
any |
one of pending, accepted, rejected
|
payload
required
|
string |
length ≤ 48000
|
payload_hash
required
|
string |
length ≤ 64
|
status
required
|
any |
one of prepared, delivered, cancelled
|
technical_status
required
|
any |
one of pending, accepted, rejected, needs_review
|
transaction_control
required
|
string |
length ≤ 9
|
version
required
|
integer |
value ≥ 1
|
Example response placeholder values
{
"claim_id": "00000000-0000-4000-8000-000000000000",
"claim_snapshot": {
"account_id": "00000000-0000-4000-8000-000000000000",
"content": {
"billing_address": "string",
"billing_npi": "string",
"billing_provider_name": "string",
"diagnosis_codes": [
"string"
],
"external_control_number": "string",
"line_diagnosis_pointers": [
[]
],
"notes": "string",
"patient_address": "string",
"place_of_service": "string",
"rendering_npi": "string",
"subscriber_address": "string",
"subscriber_birth_date": "2026-01-15",
"tax_id": "string"
},
"control_number": "string",
"frequency": "original",
"id": "00000000-0000-4000-8000-000000000000",
"parent_id": "00000000-0000-4000-8000-000000000000",
"patient_id": "00000000-0000-4000-8000-000000000000",
"payer_control_number": "string",
"payer_id": "00000000-0000-4000-8000-000000000000",
"snapshot": {
"account": {
"content": {
"coverage_id": null,
"currency": "USD",
"lines": null,
"notes": null,
"service_date": null,
"visit_id": null,
"fee_context": null
},
"coverage_snapshot": {},
"id": "00000000-0000-4000-8000-000000000000",
"patient_id": "00000000-0000-4000-8000-000000000000",
"source_history_id": "00000000-0000-4000-8000-000000000000",
"status": "draft",
"total_cents": 1,
"version": 1
},
"patient": {},
"coordination_of_benefits": {},
"financial_summary": {}
},
"source_history_id": "00000000-0000-4000-8000-000000000000",
"status": "draft",
"version": 1
},
"claim_version": 1,
"delivered_claim_version": 1,
"details": {
"benefits_assigned": true,
"billing_address": {
"city": "string",
"line1": "string",
"line2": "string",
"postal_code": "string",
"state": "string"
},
"billing_taxonomy": "string",
"filing_indicator": "CI",
"patient_address": {
"city": "string",
"line1": "string",
"line2": "string",
"postal_code": "string",
"state": "string"
},
"patient_sex": "U",
"payer_address": {
"city": "string",
"line1": "string",
"line2": "string",
"postal_code": "string",
"state": "string"
},
"release_authorized": true,
"rendering_family_name": "string",
"rendering_given_name": "string",
"routine_professional_reviewed": true,
"signature_on_file": true,
"subscriber_address": {
"city": "string",
"line1": "string",
"line2": "string",
"postal_code": "string",
"state": "string"
},
"subscriber_family_name": "string",
"subscriber_given_name": "string",
"subscriber_sex": "U"
},
"group_control": "string",
"id": "00000000-0000-4000-8000-000000000000",
"interchange_control": "string",
"partner_id": "00000000-0000-4000-8000-000000000000",
"partner_snapshot": {
"content": {
"active": true,
"application_receiver": "string",
"application_sender": "string",
"contact_name": "string",
"contact_phone": "string",
"guide_reference": "string",
"name": "string",
"receiver_id": "string",
"receiver_identifier": "string",
"receiver_name": "string",
"receiver_qualifier": "ZZ",
"sender_id": "string",
"sender_qualifier": "ZZ",
"submitter_id": "string",
"submitter_name": "string",
"usage": "T"
},
"id": "00000000-0000-4000-8000-000000000000",
"source_history_id": "00000000-0000-4000-8000-000000000000",
"version": 1
},
"partner_version": 1,
"payer_outcome": "pending",
"payload": "string",
"payload_hash": "string",
"status": "prepared",
"technical_status": "pending",
"transaction_control": "string",
"version": 1
}
-
400
Invalid or unsupported EDI profile/field/acknowledgment
-
401
Authentication required
-
403
Role or billing scope denied
-
404
Tenant scoped record not found
-
409
Duplicate evidence, stale version, changed claim or incompatible state
-
428
Quoted If-Match required
-
500
Database/audit failure; transaction rolled back
Example call
curl -X POST "$EHR_URL/api/v1/billing/submissions/{id}/actions" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Queue edi delivery
POST
/api/v1/billing/submissions/{id}/delivery
Queue unchanged prepared artifact/ready claim against a route key. Idempotent request ID; one noncancelled job per artifact. No user-supplied destination or credential.
Access
OAuth 2.0 access tokenbilling.write
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
If-Match
required
|
header |
string |
Quoted current submission/job version; initial immutable 277CA row review uses "1" plus captured submission/claim versions. |
Request body
application/json · required
Fields QueueEdiDelivery · 3
| Field |
Type |
Details |
reason
required
|
string |
length 1–1000
|
request_id
required
|
string (uuid) |
|
route_key
required
|
string |
length 1–80
|
Example request body placeholder values
{
"reason": "string",
"request_id": "00000000-0000-4000-8000-000000000000",
"route_key": "string"
}
Responses
-
200
Success
application/json
-
Fields EdiDeliveryJob · 12
| Field |
Type |
Details |
attempts
required
|
integer |
|
id
required
|
string (uuid) |
|
last_result
required
|
string or null |
|
lease_id
required
|
string or null |
|
receipt
required
|
object |
|
receipt_reference
required
|
string or null |
|
requested_by
required
|
string (uuid) |
|
route_key
required
|
string |
|
status
required
|
any |
one of queued, leased, retry, unknown, blocked, delivered, cancelled
|
submission_id
required
|
string (uuid) |
|
version
required
|
integer |
|
tenant_id
|
string (uuid) |
|
Example response placeholder values
{
"attempts": 1,
"id": "00000000-0000-4000-8000-000000000000",
"last_result": "string",
"lease_id": "00000000-0000-4000-8000-000000000000",
"receipt": {},
"receipt_reference": "string",
"requested_by": "00000000-0000-4000-8000-000000000000",
"route_key": "string",
"status": "queued",
"submission_id": "00000000-0000-4000-8000-000000000000",
"version": 1
}
-
400
Invalid or unsupported EDI profile/field/acknowledgment
-
401
Authentication required
-
403
Role or billing scope denied
-
404
Tenant scoped record not found
-
409
Duplicate evidence, stale version, changed claim or incompatible state
-
428
Quoted If-Match required
-
500
Database/audit failure; transaction rolled back
Example call
curl -X POST "$EHR_URL/api/v1/billing/submissions/{id}/delivery" -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -d @body.json
#
Download837 p
GET
/api/v1/billing/submissions/{id}/file
Audit and download exact generated bytes. Export does not change delivery or claim status. Cancelled artifacts and prepared files with a changed claim are blocked.
Access
OAuth 2.0 access tokenbilling.read
Parameters
| Name |
In |
Type |
Details |
id
required
|
path |
string (uuid) |
|
Responses
-
200
Exact immutable 837P bytes; attachment filename contains only generated interchange control
application/EDI-X12
-
Body: string
Example response placeholder values
"string"
-
400
Invalid or unsupported EDI profile/field/acknowledgment
-
401
Authentication required
-
403
Role or billing scope denied
-
404
Tenant scoped record not found
-
409
Duplicate evidence, stale version, changed claim or incompatible state
-
428
Quoted If-Match required
-
500
Database/audit failure; transaction rolled back
Example call
curl "$EHR_URL/api/v1/billing/submissions/{id}/file" -H "Authorization: Bearer $ACCESS_TOKEN"
#
Billing worklist
GET
/api/v1/billing/worklist
Staff queue. 100 accounts per page ordered by UUID; balances include posted accounts only. No payer/patient responsibility split.
Access
OAuth 2.0 access tokenbilling.read
Parameters
| Name |
In |
Type |
Details |
status
|
query |
string |
|
after
|
query |
string (uuid) |
|
Responses
-
200
Success
application/json
-
Fields BillingWorklist · 15
| Field |
Type |
Details |
claims_policy
required
|
string |
length 0–500
|
currency
required
|
string |
one of USD
|
items
required
|
array of BillingWorkItem |
|
balance_cents
required
|
integer or null |
|
id
required
|
string (uuid) |
|
mrn
required
|
string |
length 0–64
|
patient_id
required
|
string (uuid) |
|
patient_name
required
|
string |
length 0–201
|
payer_name
required
|
string or null |
|
service_date
required
|
string (date) |
|
source_history_id
required
|
string or null |
|
status
required
|
string |
one of draft, posted, void
|
total_cents
required
|
integer |
value 1–1000000000
|
version
required
|
integer |
|
next_cursor
required
|
string or null |
|
Example response placeholder values
{
"claims_policy": "string",
"currency": "USD",
"items": [
{
"balance_cents": 1,
"id": "00000000-0000-4000-8000-000000000000",
"mrn": "string",
"patient_id": "00000000-0000-4000-8000-000000000000",
"patient_name": "string",
"payer_name": "string",
"service_date": "2026-01-15",
"source_history_id": "00000000-0000-4000-8000-000000000000",
"status": "draft",
"total_cents": 1,
"version": 1
}
],
"next_cursor": "00000000-0000-4000-8000-000000000000"
}
-
400
Invalid mapping or values
-
401
Sign in required
-
403
Role or billing scope denied
-
404
Tenant/patient scoped record not found
-
409
Stale version, duplicate source, conflicting coverage or balance
-
428
Current quoted If-Match required
-
500
Database/audit failure; no partial mutation committed
Example call
curl "$EHR_URL/api/v1/billing/worklist" -H "Authorization: Bearer $ACCESS_TOKEN"
No endpoint matches that filter.