The structured JSON and document paths belong to the shared platform. FHIR and X12 submissions use the healthcare module and its validation. See claim types and supported scope.
Choose an intake path
| Input | Endpoint | Result |
|---|---|---|
| FHIR R4 submission | POST /fhir/Claim/$submit |
FHIR response from normalized claim admission |
| X12 837P file | POST /claims/edi |
Asynchronous batch acceptance |
| Uploaded documents and a statement | POST /claims/from-documents |
Document interpretation and claim admission |
| Non-health structured claim | POST /claims |
JSON claim admission |
Health claims must use the health or document intake path. The health adapter rejects attempts to bypass normalization by posting a health claim to the generic JSON endpoint.
Before submitting, create a tenant submitter key, publish payer configuration, and load the coverage/reference data needed by the selected workflow. See API conventions for authentication and retries.
Submit a FHIR claim
Prepare a valid supported FHIR submission in claim-bundle.json. Use the identifiers and terminology for your payer integration; attach previously uploaded documents through document references rather than embedding storage credentials.
curl --fail-with-body --cacert "$CA_CERT" -H @pledge-auth.header \
-H 'Content-Type: application/fhir+json' \
-H 'Accept: application/fhir+json' \
--data-binary @claim-bundle.json "$API"'/fhir/Claim/$submit'
In Bash, escape the dollar sign in the endpoint or single-quote that path component. The examples downloaded with a release should use the matching health tables and fixture profiles. A successful admission returns 201 for a new claim and 200 for an identical existing submission. Read the current response at GET /fhir/ClaimResponse/{id}.
Submit an X12 file
Use a supported 837P interchange (005010X222A1). The current intake does not accept 837I or 837D as interchangeable formats.
curl --fail-with-body --cacert "$CA_CERT" -H @pledge-auth.header \
-H 'Content-Type: text/plain' \
--data-binary @claims.837 -D batch.headers \
"$API/claims/edi" --output batch.json
Both single-claim and multi-claim files use asynchronous batch admission. Expect 202 and a Location header for /intake/batches/{id}. The source is retained and validated before execution; transport acceptance is not a guarantee that each claim has completed.
Read batch progress, then page /intake/batches/{id}/entries?limit=100. Preserve each entry’s actual local claim ID and outcome. Retry follow-up reads within a deadline; investigate refused entries instead of assuming the entire file succeeded.
Document-based intake
Upload and confirm documents before referencing them. POST /claims/from-documents accepts document_ids and a statement containing the claimant’s information. The configured document interpretation produces claim facts; ambiguous or missing evidence can require another action.
Do not use client-supplied hashes as proof of an upload. Confirmation computes the hash and pins the stored object version on the server.
Storage connectors
The worker’s connector uses CONNECTOR_PRINCIPAL to identify a tenant principal and CONNECTOR_PREFIX to select an inbound storage prefix. The prefix must end in / and must be outside the service’s own output/document trees. The configured principal must remain enabled and authorized for the operation.
Use an input object’s version as immutable evidence. Diagnose a failed import through its receipt and retained refusal; do not overwrite generated result objects or move source bytes into internal topic streams.