Create a claim
This guide covers the complete workflow for creating a claim in CollaborateMD: verifying or creating the patient, creating the claim using your preferred format, submitting the claim to the clearinghouse, and performing any other actions.
Overview
Creating and submitting a claim is a three-step process:
- Verify or create the patient — Ensure the patient record exists in CollaborateMD
- Create the claim — Send the claim data to CollaborateMD.
- Submit the claim — Send the claim data to be processed and forwarded to the clearinghouse
Steps 1 & 2 can happen at the same time — if you send complete patient data in the Claim Create endpoint, the patient will be created or updated as well.
Steps 2 & 3 can happen at the same time with the v2 endpoint with the submitClaim parameter.
Steps 1 & 2 require the Patient/Claim/Appointment permissions.
Step 3 requires the Submit Claims permission.
Step 1: Create or Verify the Patient
You can create the patient at the same time that you create the claim. Depending on your workflow, you may want to ensure that the patient exists beforehand. You have two options:
Option A: Verify the Patient Exists
Check if a patient already exists by searching for them:
- v1 XML endpoint: GET /v1/customer/{custno}/patient/find/{patient}/xml
- v1 HL7 endpoint: GET /v1/customer/{custno}/patient/find/{patient}/hl7
- v2 endpoint: GET /v2/customer/{custno}/patient/find/{patient}/xml
See Create or Update a Patient for the search parameter format.
Option B: Create or Update a Patient
If the patient does not exist, create a record. You have two options:
- Create via XML: POST /v1/customer/{custno}/patient/xml
- Create via HL7: POST /v1/customer/{custno}/patient/hl7
See Create or Update a Patient for payload details and examples.
Step 2: Create the Claim
Once the patient record is confirmed or created, create the claim. Choose the format that works best for your integration. If your system already produces HL7 or 837, those options provide a convenient way to quickly integrate with CollaborateMD. If your system doesn’t already use those formats, we recommend XML as that format supports the most fields.
If you use the v2 endpoint, you can optionally review or submit the claim to insurance.
Option A: Create with XML
XML integrations are often preferred by vendors who do not already produce HL7 or 837. Submit a structured XML claim:
- v1 professional endpoint: POST /v1/customer/{custno}/claim/xml
- v2 professional endpoint: POST /v2/customer/{custno}/claim/xml
For institutional (UB-04) claims, use the institutional claim variant:
- v1 institutional endpoint: POST /v1/customer/{custno}/iclaim/xml
- v2 institutional endpoint: POST /v2/customer/{custno}/iclaim/xml
New integrations should prefer v2. See v1 vs v2 for details on which version to choose.
Option B: Create with HL7
If your EHR or other system already produces HL7, submit that format directly:
- v1 endpoint: POST /v1/customer/{custno}/claim/hl7
- v2 endpoint: POST /v2/customer/{custno}/claim/hl7
Please follow our HL7 guide for details on the segments we support. HL7 supports creating multiple claims in one message. If you create more than one claim in one message, the system returns a response before the claims have been created and the response does not contain the Claim ID.
Option C: Create with ANSI 837 (X12)
If your EHR or other system already produces X12 837 (version 005010x221A1 or 005010x223A2) format, submit directly:
- v1 endpoint: POST /v1/customer/{custno}/claim/837
- v2 endpoint: POST /v2/customer/{custno}/claim/837
837 supports creating multiple claims in one message. If you create more than one claim in one message, the system returns a response before the claims have been created and the response does not contain the Claim ID.
Step 3: Submit the Claim
After the claim has been created, you can submit the claim to insurance. If the claim has review errors, we recommend correcting errors within the application before submitting the claim.
- v2 endpoint only: POST/v2/customer/{custno}/claim/{claim}/submit
The {claim} parameter is the claim identifier returned by the creation endpoint
Other Claim Operations
When a claim has been created, other operations can allow you to make certain changes.
Get the Claim Status
- Get status: GET /v1/customer/{custno}/claim/{claim}/status
The {claim} parameter is the claim identifier returned by the creation endpoint.
Check the response for the actual claim ID. This returns both the status code
and the status display name.
Set the Claim Status
- Update status: POST /v1/customer/{custno}/claim/{claim}/status
Send the one-character code from the table below in the Status body, or, for a custom
(practice-defined) status, either its ID or the display text shown for that status in the
CollaborateMD app (matching is case-insensitive). You will also need to include the 8-digit Payer ID
if you are setting an Insurance status (any status that has “Insurance” in the description). Payer
IDs can be retrieved from the CollaborateMD app (try the Payer Listing report).
Not every status in the application can be set over the API: some are set by the system
as claims move through billing, some have their own dedicated endpoint, and the rest are reserved.
An unsupported code returns INVALID CRITERIA.
Charges on the claim with a balance of $0.00 are not updated.
Statuses you can set
| Status | Description |
|---|---|
| 0 | On Hold |
| 2 | Claim At Insurance |
| 3 | Balance Due Patient |
| 6 | Incomplete |
| C | Pending Insurance |
| D | Collection |
| E | Pending Patient |
| F | Appeal At Insurance |
| G | Waiting For Review |
| H | Denied At Insurance |
| J | Pending Physician |
| L | Rejected At Clearinghouse |
| R | Rejected At Insurance |
| 10001000 | Custom Status ID (available IDs are in your data snapshot, or the Status ID column in CMD, or the status’s display text) |
Custom (practice-defined) statuses use an ID or display text rather than a one-character code, and
they are validated against the practice’s configured statuses and payer. Any custom status
configured on the customer can be set through this endpoint. If the value you send matches more
than one status for the customer, the request returns INVALID CRITERIA; use the status ID to
disambiguate.
⚠️ The display text is the name shown for the status on the CollaborateMD app’s Custom Claim Statuses admin screen. The ID is available in the optional “Status ID” column on that same screen (turn it on via Select Columns) and in your Data Snapshot.
Statuses you cannot set
Unsupported status codes returns INVALID CRITERIA as the status message.
| Status | Description | Why |
|---|---|---|
| 1 | Send To Insurance Via Clearinghouse | Use the submit claim endpoint instead to ensure that your claim is reviewed prior to submission |
| 5 | Paid | Set by the system when payment is posted or the charge is written off; post payments through the payment endpoints |
| 7 | User Print & Mail To Insurance | Claims cannot be printed over the API |
| A | Deleted | Claims must be deleted in the application |
All other one-character status codes — including 4, 8, 9, B, I, etc. — are reserved for future use.
They cannot be used at this time.
Add a Note or Follow-Up Note
You can add a note to the claim after creation. Notes track work done or other information about the claim or patient.
- Patient Note: POST /v1/customer/{custno}/patient/{patient}/note
You can add a follow-up note to a claim after creation. Follow-up notes track your AR follow-up efforts.
- Follow-up note: POST /v1/customer/{custno}/claim/{claim}/follow-up-note
Permissions
Claim creation requires the Patient/Claim/Appointment permission. Claim submission requires the Submit Claims permission.
If your credential does not have the required permission, contact your Interface Support.
Response Format
Responses are XML by default, JSON when you send Accept: application/json. The JSON keys are the XML
element names, so Status, not status.
v1
A v1 claim creation returns a GenericResponseXML with exactly three fields:
When creating multiple claims in one message:
{ "Status": "SUCCESS", "StatusMessage": "Claim accepted for processing.", "Identifier": 4021}When creating one claim:
{ "Status": "SUCCESS", "StatusMessage": "Claim ID: 12345678:Patient ID: 09876543.", "Identifier": 4021}Identifier is the API request ID — an integer identifying the unique API request.
The StatusMessage will contain the Claim ID and the Patient ID
if you are creating one claim, but not if you are creating multiple claims in one message.
v2
A v2 claim creation returns a ClaimResponse, which carries the same three fields plus what happened
during processing:
{ "Status": "SUCCESS", "StatusMessage": "Claim ID: 12345678:Patient ID: 09876543.", "Identifier": 4021, "ClaimReviewed": true, "ClaimErrorsFound": false, "ClaimSubmitted": true, "DidAnalysis": true, "DidClaimScrubbing": true, "DidRTCSValidation": false, "ReviewSeqno": 88213, "ReviewMessage": "..."}While Status: SUCCESS only tells you if the claim was created,
whereas ClaimSubmitted and ClaimErrorsFound tell you the result of claim scrubbing and whether the claim was submitted.
AnalysisDetails, ClaimScrubbingDetails, RealTimeClaimSubmissionDetails, and
BillingAlertDetails carry the specifics, and EligibilityReports, AddressVerifications, and
Estimates may also be present, depending on which Interface Automations have been configured within CollaborateMD.
See v1 vs v2.
Note that the extended v2 response is not available on the HL7 or 837 endpoint when multiple claims are created in one message. We recommend submitting HL7/837 representing a single claim to take advantage of these features.
Failure
{ "Status": "ERROR", "StatusMessage": "No patient matching the given criteria was found."}Always check the Status field, not just the HTTP status code. See
Reading Responses for the convention and
Error reference for individual messages.
Example Workflow
Here’s a complete example using curl:
# For security, never embed credentials within a script. Use the environment or a secret manager.: "${CMD_API_USER:?set CMD_API_USER}": "${CMD_API_SECRET:?set CMD_API_SECRET}"CUSTNO="10001001"
# Step 1: Find the patient by demographics. Use this rather than a direct lookup# unless you already hold the CollaborateMD account number -- the {patient} path# segment is the CMD account number, not your MRN.curl --fail-with-body --silent --show-error \ --get "https://webapi.example.com/v1/customer/$CUSTNO/patient/find" \ --data-urlencode "lastName=Doe" \ --data-urlencode "firstName=John" \ --data-urlencode "birthDate=01/15/1975" \ --user "${CMD_API_USER}:${CMD_API_SECRET}"
# If the patient is not found, create one (see Create or Update a Patient).# The patient can also be created as part of the claim creation.
# Step 2: Create a claim in XML format.curl --fail-with-body --silent --show-error \ -X POST "https://webapi.example.com/v1/customer/$CUSTNO/claim/xml" \ --user "${CMD_API_USER}:${CMD_API_SECRET}" \ -H "Content-Type: application/xml" \ -H "Accept: application/json" \ -d @claim.xml
# Response: {"Status": "SUCCESS", "StatusMessage": "...", "Identifier": 4021}## Identifier is the API request ID, not a claim ID. The claim ID is in the StatusMessage.
# Step 3: Check the status of a claim, using a real claim ID.CLAIM_ID="10067890"curl --fail-with-body --silent --show-error \ "https://webapi.example.com/v1/customer/$CUSTNO/claim/$CLAIM_ID/status" \ --user "${CMD_API_USER}:${CMD_API_SECRET}"Next Steps
- Create or Update a Patient — Learn how to format patient XML and HL7
- Check Eligibility — Verify insurance before submitting claims
- Reading Responses — Understand response status codes and error handling
- Download 835 (ERA) and 837 (Claim) Files — Retrieve remittance files and archived claims

