{
  "openapi" : "3.1.0",
  "info" : {
    "title" : "CollaborateMD WebAPI",
    "description" : "Welcome to the Reference Documentation & Implementation Guide for the CollaborateMD WebAPI. This site allows you to learn about the APIs available to you as an API Partner.\n\nNot a partner yet? Visit our [Partner Portal](https://www.collaboratemd.com/partners) to become a partner today!\n\nFor step-by-step guides to build against our API, see our [Guides](/docs/guides/index.html).\n\n**Using AI?** Point your favorite coding harness at [llms.txt](/docs/llms.txt).\n\n> ⚠️ Note: Most v1 and v2 APIs return HTTP 200 OK even when there are problems with the request. The try-it console shows a ✅ 200 OK even when the response body reports `Status: ERROR`. The body is the source of truth; check the Status field, not the badge.",
    "contact" : {
      "email" : "interface-support@collaboratemd.com"
    },
    "license" : {
      "name" : "© CollaborateMD. All Rights Reserved."
    },
    "version" : "v1 + v2"
  },
  "servers" : [ {
    "url" : "/",
    "description" : "Production"
  }, {
    "url" : "/sandbox",
    "description" : "Sandbox — interface test account only"
  } ],
  "security" : [ {
    "basicAuth" : [ ]
  } ],
  "paths" : {
    "/v1/customer/{custno}/appointment/updates/find/hl7" : {
      "get" : {
        "summary" : "Retrieve appointment updates (HL7)",
        "description" : "Retrieves new or updated appointments in [HL7](/docs/guides/hl7-reference.html) format.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, `INVALID CRITERIA`, or `TOO MANY ITEMS REQUESTED`.\n\nRequires the Patient/Claim/Appointment [permission](/docs/guides/permissions.html).",
        "operationId" : "findAppointmentUpdatesV1HL7",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        }, {
          "name" : "response_count",
          "in" : "query",
          "description" : "The maximum number of queued appointment updates to retrieve (if there are at least that many). The maximum allowed value is 1,000",
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 20
        } ],
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if HL7 appointment updates were retrieved successfully\n* `ERROR` for processing failures\n* `NOT FOUND` if the customer number is invalid\n* `INVALID CRITERIA` if the account is closed, on hold, suspended, or the interface is not enabled\n* `TOO MANY ITEMS REQUESTED` if response_count exceeds the maximum of 1,000."
          }
        }
      }
    },
    "/v1/customer/{custno}/appointment/updates/find/xml" : {
      "get" : {
        "summary" : "Retrieve appointment updates (XML)",
        "description" : "Retrieves new or updated appointments in XML format.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `INVALID CUSTOMER NUMBER SUPPLIED`, `INVALID CRITERIA`, or `TOO MANY ITEMS REQUESTED`.\n\nRequires the Patient/Claim/Appointment [permission](/docs/guides/permissions.html).",
        "operationId" : "findAppointmentUpdatesV1XML",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        }, {
          "name" : "response_count",
          "in" : "query",
          "description" : "The maximum number of queued appointment updates to retrieve (if there are at least that many). The maximum allowed value is 1,000",
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 50
        } ],
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if appointment updates were retrieved successfully\n* `ERROR` for processing failures\n* `INVALID CUSTOMER NUMBER SUPPLIED` if the customer number is invalid\n* `INVALID CRITERIA` if the account is closed, on hold, suspended, or the interface is not enabled\n* `TOO MANY ITEMS REQUESTED` if response_count exceeds the maximum of 1,000."
          }
        }
      }
    },
    "/v1/customer/{custno}/appointment/hl7" : {
      "post" : {
        "summary" : "Create or update an appointment (HL7)",
        "description" : "Creates or updates an appointment using [HL7](/docs/guides/hl7-reference.html)-formatted data. The request body contains the HL7 message.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, or `INVALID CRITERIA`.\n\nRequires the Patient/Claim/Appointment [permission](/docs/guides/permissions.html).",
        "operationId" : "postHL7AppointmentV1",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        } ],
        "requestBody" : {
          "content" : {
            "*/*" : {
              "schema" : {
                "type" : "string"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the appointment was created successfully\n* `ERROR` for processing failures\n* `NOT FOUND` if the customer number is invalid\n* `INVALID CRITERIA` for malformed HL7 content."
          }
        }
      }
    },
    "/v1/customer/{custno}/appointment/xml" : {
      "post" : {
        "summary" : "Create or update an appointment (XML)",
        "description" : "Creates or updates an appointment using XML-formatted data. The request body contains the XML Appointment object.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, or `INVALID CRITERIA`.\n\nRequires the Patient/Claim/Appointment [permission](/docs/guides/permissions.html).",
        "operationId" : "postXMLAppointmentV1",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        } ],
        "requestBody" : {
          "content" : {
            "application/xml" : {
              "schema" : {
                "$ref" : "#/components/schemas/Appointment"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the appointment was created successfully\n* `ERROR` for processing failures\n* `NOT FOUND` if the customer number is invalid\n* `INVALID CRITERIA` for malformed XML content."
          }
        }
      }
    },
    "/v2/customer/{custno}/appointment/hl7" : {
      "post" : {
        "summary" : "Create or update an appointment (HL7)",
        "description" : "Creates or updates an appointment using [HL7](/docs/guides/hl7-reference.html)-formatted data. The request body contains the HL7 message. Compared to [v1](/docs/guides/v1-vs-v2.html), the response also carries eligibility and patient-matching review data.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, or `INVALID CRITERIA`.\n\nRequires the Patient/Claim/Appointment [permission](/docs/guides/permissions.html).",
        "operationId" : "postHL7AppointmentV2",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        } ],
        "requestBody" : {
          "content" : {
            "*/*" : {
              "schema" : {
                "type" : "string"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the appointment was created successfully\n* `ERROR` for processing failures\n* `NOT FOUND` if the customer number is invalid\n* `INVALID CRITERIA` for malformed HL7 content."
          }
        }
      }
    },
    "/v2/customer/{custno}/appointment/xml" : {
      "post" : {
        "summary" : "Create or update an appointment (XML)",
        "description" : "Creates or updates an appointment using XML-formatted data. The request body contains the XML Appointment object. Compared to [v1](/docs/guides/v1-vs-v2.html), the response also carries eligibility and patient-matching review data.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, or `INVALID CRITERIA`.\n\nRequires the Patient/Claim/Appointment [permission](/docs/guides/permissions.html).",
        "operationId" : "postXMLAppointmentV2",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        } ],
        "requestBody" : {
          "content" : {
            "application/xml" : {
              "schema" : {
                "$ref" : "#/components/schemas/Appointment"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the appointment was created successfully\n* `ERROR` for processing failures\n* `NOT FOUND` if the customer number is invalid\n* `INVALID CRITERIA` for malformed XML content."
          }
        }
      }
    },
    "/v1/customer/{custno}/claim/download-837" : {
      "get" : {
        "summary" : "Download ANSI 837 claim files for a date",
        "description" : "Downloads a ZIP archive containing all [ANSI 837](/docs/guides/download-835-837.html) claim files submitted on a specified date. If no files exist for that date, returns HTTP 200 with a plain-text message instead of a ZIP.\n\nRequires the Patient/Claim/Appointment [permission](/docs/guides/permissions.html).",
        "operationId" : "download837",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        }, {
          "name" : "date",
          "in" : "query",
          "description" : "The submission date to download files for. Must be in the ISO 8601 date format: YYYY-MM-DD",
          "required" : true,
          "schema" : {
            "type" : "string"
          },
          "example" : "2026-08-01"
        } ],
        "responses" : {
          "200" : {
            "description" : "Success:\n\n* a ZIP file containing the ANSI 837 claim files for the requested date, with the `Content-Disposition` header set for file download\n* a plain-text message if no claim files exist for the requested date."
          },
          "400" : {
            "description" : "Bad request - the date query parameter is missing or not in `yyyy-MM-dd` format."
          },
          "401" : {
            "description" : "Unauthorized - the interface is not active for the customer."
          },
          "404" : {
            "description" : "Not found - the customer number is invalid."
          },
          "500" : {
            "description" : "Internal server error - an unexpected error occurred retrieving or processing the claim files."
          }
        }
      }
    },
    "/v1/customer/{custno}/claim/{claim}/estimate" : {
      "get" : {
        "summary" : "Calculate patient cost estimate for a claim",
        "description" : "> ⚠️ The information provided by this tool is not a guarantee of coverage,\n> a guarantee of payment, or an authorization for a particular service.\n> Estimates are based on current plan information provided by the payer’s\n> real-time eligibility response, which may not reflect all of the terms,\n> conditions, limitations, and exclusions that may apply to the patient’s\n> coverage and does not include pending claims that have not been entered\n> into the payer’s adjudication system. The estimates provided by this tool\n> are not an exact calculation of actual costs. Actual costs will vary\n> depending on the specifics of the patient’s benefit plan and the particular services received.\n\nCalculates a patient cost estimate for a specific claim based on [eligibility](/docs/guides/check-eligibility.html) and configured plan parameters. Queries the clearinghouse for patient responsibility information and constructs a detailed estimate, or returns the claim's existing estimate if one was already generated.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, or `INVALID CRITERIA`.\n\nRequires the Eligibility [permission](/docs/guides/permissions.html).",
        "operationId" : "getPatientCostEstimation",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        }, {
          "name" : "claim",
          "in" : "path",
          "description" : "The CollaborateMD claim unique ID",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 160577576
        } ],
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if an estimate was calculated, an existing estimate was returned, or no estimate was available for the service\n* `ERROR` if eligibility or patient estimates are not enabled for the customer, the clearinghouse could not provide an estimate, or another unexpected processing failure occurred\n* `INVALID CRITERIA` if the customer number or claim ID is invalid, or the account is closed, on hold, suspended, or the interface is not enabled."
          }
        }
      }
    },
    "/v1/customer/{custno}/claim/{claim}/status" : {
      "get" : {
        "summary" : "Retrieve claim status",
        "description" : "Retrieves the current status of a specific claim.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, or `INVALID CRITERIA`.\n\nRequires the Patient/Claim/Appointment [permission](/docs/guides/permissions.html).",
        "operationId" : "getXMLClaimStatus",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        }, {
          "name" : "claim",
          "in" : "path",
          "description" : "The CollaborateMD claim unique ID",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 160577576
        } ],
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the claim status was retrieved successfully\n* `ERROR` for database errors or other unexpected processing failures\n* `NOT FOUND` if the claim is not found on the customer\n* `INVALID CRITERIA` if the claim ID is missing or malformed."
          }
        }
      },
      "post" : {
        "summary" : "Update a claim status",
        "description" : "Updates the status of a specific claim. The request body contains the XML Status object with the new status.\n\nThe Status body supports your custom claim statuses, as well as the standard claim statuses listed in [Setting the claim status](/docs/guides/create-a-claim.html#set-the-claim-status). Some standard statuses cannot be set through the API; that guide section lists them and why.\n\n> ⚠️ Standard statuses must be sent using their single-character BILLTO value. Custom statuses may be sent using either their ID or, case-insensitively, the display text shown for that status in the CMD application. The ID is also available in the optional Status ID column on the Custom Claim Statuses screen and in your Data Snapshot. If a custom status value matches more than one status, the request returns `INVALID CRITERIA` and the status ID should be used instead.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, or `INVALID CRITERIA`.\n\nRequires the Patient/Claim/Appointment [permission](/docs/guides/permissions.html).",
        "operationId" : "postXMLClaimStatus",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        }, {
          "name" : "claim",
          "in" : "path",
          "description" : "The CollaborateMD claim unique ID",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 160577576
        } ],
        "requestBody" : {
          "content" : {
            "application/xml" : {
              "schema" : {
                "$ref" : "#/components/schemas/ClaimStatusUpdate"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the claim status was updated successfully\n* `ERROR` for database errors or other unexpected processing failures\n* `NOT FOUND` if the claim, custom status, or payer is not found on the customer\n* `INVALID CRITERIA` if the claim ID, status value, or payer is missing or malformed, or the status value matches more than one custom status."
          }
        }
      }
    },
    "/v1/customer/{custno}/claim/837" : {
      "post" : {
        "summary" : "Create a professional claim (ANSI 837)",
        "description" : "Creates a professional [claim](/docs/guides/create-a-claim.html) using ANSI 837 EDI-formatted data. The request body contains the ANSI 837 message.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, or `INVALID CRITERIA`.\n\nRequires the Patient/Claim/Appointment [permission](/docs/guides/permissions.html).",
        "operationId" : "postAnsi837V1",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        } ],
        "requestBody" : {
          "content" : {
            "*/*" : {
              "schema" : {
                "type" : "string"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the claim was created successfully\n* `ERROR` for malformed ANSI 837 content or other processing failures\n* `NOT FOUND` if the customer number is invalid\n* `INVALID CRITERIA` if the account is closed, on hold, suspended, or the interface is not enabled."
          }
        }
      }
    },
    "/v1/customer/{custno}/claim/hl7" : {
      "post" : {
        "summary" : "Create a professional claim (HL7)",
        "description" : "Creates a professional [claim](/docs/guides/create-a-claim.html) using [HL7](/docs/guides/hl7-reference.html)-formatted data. The request body contains the HL7 message.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, or `INVALID CRITERIA`.\n\nRequires the Patient/Claim/Appointment [permission](/docs/guides/permissions.html).",
        "operationId" : "postHL7ClaimV1",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        } ],
        "requestBody" : {
          "content" : {
            "*/*" : {
              "schema" : {
                "type" : "string"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the claim was created successfully\n* `ERROR` for malformed HL7 content or other processing failures\n* `NOT FOUND` if the customer number is invalid\n* `INVALID CRITERIA` if the HL7 payload is empty, or the account is closed, on hold, suspended, or the interface is not enabled."
          }
        }
      }
    },
    "/v1/customer/{custno}/patient/hl7" : {
      "post" : {
        "summary" : "Create or update a patient (HL7)",
        "description" : "Creates or updates a [patient](/docs/guides/patient-create-update.html) using [HL7](/docs/guides/hl7-reference.html)-formatted data. Supports multipart messages; single messages are processed immediately, while multiple messages are queued for asynchronous processing. The request body contains the HL7 message.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, or `INVALID CRITERIA`.\n\nRequires the Patient/Claim/Appointment [permission](/docs/guides/permissions.html).",
        "operationId" : "postHL7PatientV1",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        } ],
        "requestBody" : {
          "content" : {
            "*/*" : {
              "schema" : {
                "type" : "string"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the patient was created or updated successfully\n* `ERROR` for malformed HL7 content or other processing failures\n* `NOT FOUND` if the customer number is invalid\n* `INVALID CRITERIA` if the account is closed, on hold, suspended, or the interface is not enabled."
          }
        }
      }
    },
    "/v1/customer/{custno}/claim/{claim}/follow-up-note" : {
      "post" : {
        "summary" : "Add a follow-up note to a claim",
        "description" : "Adds a follow-up note to a specific claim. The request body contains the XML FollowUpNote object.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, or `INVALID CRITERIA`.\n\nRequires the Patient/Claim/Appointment [permission](/docs/guides/permissions.html).",
        "operationId" : "postXMLClaimFollowUpNote",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        }, {
          "name" : "claim",
          "in" : "path",
          "description" : "The CollaborateMD claim unique ID",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 160577576
        } ],
        "requestBody" : {
          "content" : {
            "application/xml" : {
              "schema" : {
                "$ref" : "#/components/schemas/FollowUpNote"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the follow-up note was added successfully\n* `ERROR` for database errors or other unexpected processing failures\n* `NOT FOUND` if the claim is not found on the customer, or the note's username is not found or lacks claim access\n* `INVALID CRITERIA` if the customer number or claim ID is invalid, the note is blank or over 1,000 characters, the follow-up date is malformed, or the note's username lacks permission to create follow-up notes."
          }
        }
      }
    },
    "/v1/customer/{custno}/claim/xml" : {
      "post" : {
        "summary" : "Create a professional claim (XML)",
        "description" : "Creates a professional [claim](/docs/guides/create-a-claim.html) using XML-formatted data. The request body contains the XML Claim object.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, or `INVALID CRITERIA`.\n\nRequires the Patient/Claim/Appointment [permission](/docs/guides/permissions.html).",
        "operationId" : "postXMLClaimV1",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        } ],
        "requestBody" : {
          "content" : {
            "application/xml" : {
              "schema" : {
                "$ref" : "#/components/schemas/Claim"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the claim was created successfully\n* `ERROR` for malformed XML or invalid claim data, or other processing failures\n* `NOT FOUND` if the customer number is invalid\n* `INVALID CRITERIA` if the account is closed, on hold, suspended, or the interface is not enabled."
          }
        }
      }
    },
    "/v1/customer/{custno}/iclaim/xml" : {
      "post" : {
        "summary" : "Create an institutional claim (XML)",
        "description" : "Creates an institutional [claim](/docs/guides/create-a-claim.html) using XML-formatted data. The request body contains the XML IClaim object.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, or `INVALID CRITERIA`.\n\nRequires the Patient/Claim/Appointment [permission](/docs/guides/permissions.html).",
        "operationId" : "postXMLIClaimV1",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        } ],
        "requestBody" : {
          "content" : {
            "application/xml" : {
              "schema" : {
                "$ref" : "#/components/schemas/IClaim"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the institutional claim was created successfully\n* `ERROR` for malformed XML or invalid claim data, or other processing failures\n* `NOT FOUND` if the customer number is invalid\n* `INVALID CRITERIA` if the account is closed, on hold, suspended, or the interface is not enabled."
          }
        }
      }
    },
    "/v1/customer/{custno}/patient/xml" : {
      "post" : {
        "summary" : "Create or update a patient (XML)",
        "description" : "Creates or updates a [patient](/docs/guides/patient-create-update.html) using XML-formatted data. The request body contains the XML PatientUpdate object.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, or `INVALID CRITERIA`.\n\nRequires the Patient/Claim/Appointment [permission](/docs/guides/permissions.html).",
        "operationId" : "postXMLPatientV1",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        } ],
        "requestBody" : {
          "content" : {
            "application/xml" : {
              "schema" : {
                "$ref" : "#/components/schemas/PatientUpdate"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the patient was created or updated successfully\n* `ERROR` for malformed XML or invalid patient data, or other processing failures\n* `NOT FOUND` if the customer number is invalid\n* `INVALID CRITERIA` if the account is closed, on hold, suspended, or the interface is not enabled."
          }
        }
      }
    },
    "/v2/customer/{custno}/claim/837" : {
      "post" : {
        "summary" : "Create a professional claim (ANSI 837, V2)",
        "description" : "Creates a professional [claim](/docs/guides/create-a-claim.html) using ANSI 837 EDI-formatted data, with optional claim review. Compared to [v1](/docs/guides/v1-vs-v2.html), the response also carries review and submission details. The request body contains the ANSI 837 message. The optional `reviewClaim` query parameter controls whether the claim is validated (and optionally submitted) before the response is returned; if omitted, the customer's configured claim review setting applies.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, or `INVALID CRITERIA`.\n\nRequires the Patient/Claim/Appointment [permission](/docs/guides/permissions.html).",
        "operationId" : "postAnsi837V2",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        }, {
          "name" : "reviewClaim",
          "in" : "query",
          "description" : "Whether to validate the claim, and optionally submit it, before the response is returned. Accepted values are `validateAndSubmit`, `validateOnly`, or `false`. If omitted, the customer's configured claim review setting applies.",
          "schema" : {
            "type" : "string"
          },
          "example" : "validateAndSubmit"
        } ],
        "requestBody" : {
          "content" : {
            "*/*" : {
              "schema" : {
                "type" : "string"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the claim was created successfully\n* `ERROR` for malformed ANSI 837 content or other processing failures\n* `NOT FOUND` if the customer number is invalid\n* `INVALID CRITERIA` if reviewClaim is not one of the accepted values, or the account is closed, on hold, suspended, or the interface is not enabled."
          }
        }
      }
    },
    "/v2/customer/{custno}/claim/hl7" : {
      "post" : {
        "summary" : "Create a professional claim (HL7, V2)",
        "description" : "Creates a professional [claim](/docs/guides/create-a-claim.html) using [HL7](/docs/guides/hl7-reference.html)-formatted data, with optional claim review. Compared to [v1](/docs/guides/v1-vs-v2.html), the response also carries review and submission details. The request body is plain text containing the HL7 message; this endpoint declares no request [Content-Type](/docs/guides/content-type-requirements.html), so send the HL7 payload as the raw body without a `Content-Type` of `application/xml`. The optional `reviewClaim` query parameter controls whether the claim is validated (and optionally submitted) before the response is returned; if omitted, the customer's configured claim review setting applies.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, or `INVALID CRITERIA`.\n\nRequires the Patient/Claim/Appointment [permission](/docs/guides/permissions.html).",
        "operationId" : "postHL7ClaimV2",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        }, {
          "name" : "reviewClaim",
          "in" : "query",
          "description" : "Whether to validate the claim, and optionally submit it, before the response is returned. Accepted values are `validateAndSubmit`, `validateOnly`, or `false`. If omitted, the customer's configured claim review setting applies.",
          "schema" : {
            "type" : "string"
          },
          "example" : "validateAndSubmit"
        } ],
        "requestBody" : {
          "content" : {
            "*/*" : {
              "schema" : {
                "type" : "string"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the claim was created successfully\n* `ERROR` for malformed HL7 content or other processing failures\n* `NOT FOUND` if the customer number is invalid\n* `INVALID CRITERIA` if reviewClaim is not one of the accepted values, or the account is closed, on hold, suspended, or the interface is not enabled."
          }
        }
      }
    },
    "/v2/customer/{custno}/patient/hl7" : {
      "post" : {
        "summary" : "Create or update a patient (HL7, V2)",
        "description" : "Creates a [patient](/docs/guides/patient-create-update.html) update using [HL7](/docs/guides/hl7-reference.html)-formatted data. Supports multipart messages; single messages are processed immediately, while multiple messages are queued for asynchronous processing. Compared to [v1](/docs/guides/v1-vs-v2.html), the response also carries eligibility and patient-matching review data. The request body is plain text containing the HL7 message; this endpoint declares no request [Content-Type](/docs/guides/content-type-requirements.html), so send the HL7 payload as the raw body without a `Content-Type` of `application/xml`.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, or `INVALID CRITERIA`.\n\nRequires the Patient/Claim/Appointment [permission](/docs/guides/permissions.html).",
        "operationId" : "postHL7PatientV2",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        } ],
        "requestBody" : {
          "content" : {
            "*/*" : {
              "schema" : {
                "type" : "string"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the patient was created or updated successfully (a single message is processed immediately; multiple messages are queued and this status is returned right away)\n* `ERROR` for malformed HL7 content or other processing failures\n* `NOT FOUND` if the customer number is invalid\n* `INVALID CRITERIA` if the account is closed, on hold, suspended, or the interface is not enabled."
          }
        }
      }
    },
    "/v2/customer/{custno}/claim/xml" : {
      "post" : {
        "summary" : "Create a professional claim (XML, V2)",
        "description" : "Creates a professional [claim](/docs/guides/create-a-claim.html) using XML-formatted data, with optional claim review. Compared to [v1](/docs/guides/v1-vs-v2.html), the response also carries review and submission details. The request body contains the XML Claim object. The optional `reviewClaim` query parameter controls whether the claim is validated (and optionally submitted) before the response is returned; if omitted, the customer's configured claim review setting applies.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, or `INVALID CRITERIA`.\n\nRequires the Patient/Claim/Appointment [permission](/docs/guides/permissions.html).",
        "operationId" : "postXMLClaimV2",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        }, {
          "name" : "reviewClaim",
          "in" : "query",
          "description" : "Whether to validate the claim, and optionally submit it, before the response is returned. Accepted values are `validateAndSubmit`, `validateOnly`, or `false`. If omitted, the customer's configured claim review setting applies.",
          "schema" : {
            "type" : "string"
          },
          "example" : "validateAndSubmit"
        } ],
        "requestBody" : {
          "content" : {
            "application/xml" : {
              "schema" : {
                "$ref" : "#/components/schemas/Claim"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the claim was created successfully\n* `ERROR` for malformed XML or invalid claim data, or other processing failures\n* `NOT FOUND` if the customer number is invalid\n* `INVALID CRITERIA` if reviewClaim is not one of the accepted values, or the account is closed, on hold, suspended, or the interface is not enabled."
          }
        }
      }
    },
    "/v2/customer/{custno}/iclaim/xml" : {
      "post" : {
        "summary" : "Create an institutional claim (XML, V2)",
        "description" : "Creates an institutional [claim](/docs/guides/create-a-claim.html) using XML-formatted data, with optional claim review. Compared to [v1](/docs/guides/v1-vs-v2.html), the response also carries review and submission details. The request body contains the XML IClaim object. The optional `reviewClaim` query parameter controls whether the claim is validated (and optionally submitted) before the response is returned; if omitted, the customer's configured claim review setting applies.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, or `INVALID CRITERIA`.\n\nRequires the Patient/Claim/Appointment [permission](/docs/guides/permissions.html).",
        "operationId" : "postXMLIClaimV2",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        }, {
          "name" : "reviewClaim",
          "in" : "query",
          "description" : "Whether to validate the claim, and optionally submit it, before the response is returned. Accepted values are `validateAndSubmit`, `validateOnly`, or `false`. If omitted, the customer's configured claim review setting applies.",
          "schema" : {
            "type" : "string"
          },
          "example" : "validateAndSubmit"
        } ],
        "requestBody" : {
          "content" : {
            "application/xml" : {
              "schema" : {
                "$ref" : "#/components/schemas/IClaim"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the institutional claim was created successfully\n* `ERROR` for malformed XML or invalid claim data, or other processing failures\n* `NOT FOUND` if the customer number is invalid\n* `INVALID CRITERIA` if reviewClaim is not one of the accepted values, or the account is closed, on hold, suspended, or the interface is not enabled."
          }
        }
      }
    },
    "/v2/customer/{custno}/patient/xml" : {
      "post" : {
        "summary" : "Create or update a patient (XML, V2)",
        "description" : "Creates a [patient](/docs/guides/patient-create-update.html) update using XML-formatted data. Compared to [v1](/docs/guides/v1-vs-v2.html), the response also carries eligibility and patient-matching review data. The request body contains the XML PatientUpdate object.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, or `INVALID CRITERIA`.\n\nRequires the Patient/Claim/Appointment [permission](/docs/guides/permissions.html).",
        "operationId" : "postXMLPatientV2",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        } ],
        "requestBody" : {
          "content" : {
            "application/xml" : {
              "schema" : {
                "$ref" : "#/components/schemas/PatientUpdate"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the patient was created or updated successfully\n* `ERROR` for malformed XML or invalid patient data, or other processing failures\n* `NOT FOUND` if the customer number is invalid\n* `INVALID CRITERIA` if the account is closed, on hold, suspended, or the interface is not enabled."
          }
        }
      }
    },
    "/v2/customer/{custno}/claim/{claimId}/submit" : {
      "post" : {
        "summary" : "Submit a claim by ID",
        "description" : "Submits an existing [claim](/docs/guides/create-a-claim.html) to the clearinghouse by its claim ID. This endpoint accepts no request body.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, or `INVALID CRITERIA`.\n\nRequires the Claim Submission [permission](/docs/guides/permissions.html).",
        "operationId" : "submitClaimV2",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        }, {
          "name" : "claimId",
          "in" : "path",
          "description" : "The CollaborateMD claim unique ID",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 160577576
        } ],
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the claim was submitted to the clearinghouse successfully\n* `ERROR` if the claim was not submitted or was rejected, or another unexpected processing failure occurred\n* `NOT FOUND` if the claim could not be loaded for the customer\n* `INVALID CRITERIA` if the customer number or claim ID is invalid, the calling user could not be determined, the user lacks access to the customer, or the account is closed, on hold, suspended, or the interface is not enabled."
          }
        }
      }
    },
    "/v1/customer/{custno}/codes/fee-schedule/{seqno}" : {
      "get" : {
        "summary" : "Retrieve a fee schedule",
        "description" : "Retrieves the codes and associations for a specific fee schedule.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `FEE SCHEDULE NOT FOUND`, `INVALID CUSTOMER NUMBER SUPPLIED`, or `INVALID CRITERIA`. No specific permission required beyond a valid partner credential.",
        "operationId" : "findFeeSchedule",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        }, {
          "name" : "seqno",
          "in" : "path",
          "description" : "The unique ID (sequence number) of the Fee Schedule",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int64"
          },
          "example" : 10001002
        } ],
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the fee schedule was retrieved successfully\n* `ERROR` for unexpected processing failures\n* `FEE SCHEDULE NOT FOUND` if the fee schedule sequence number does not exist\n* `INVALID CUSTOMER NUMBER SUPPLIED` if the customer number is invalid, or the fee schedule belongs to a different customer\n* `INVALID CRITERIA` if the account is closed, on hold, suspended, or the interface is not enabled."
          }
        }
      }
    },
    "/v2/account/{account}/snapshot" : {
      "get" : {
        "summary" : "Download the most recent combined account data snapshot as a binary ZIP file",
        "description" : "Retrieves the most recent data snapshot for an account (across multiple customers) as a binary ZIP file (`application/octet-stream`). Compared to [v1](/docs/guides/v1-vs-v2.html), this returns the snapshot file directly with no Status wrapper; the result is carried entirely by the HTTP status code. Unlike the customer-scoped download, this endpoint does not verify that the interface is active for the included customers.\n\nRequires the Data Snapshots [permission](/docs/guides/permissions.html).",
        "operationId" : "directDownloadRecentCombinedSnapshot",
        "parameters" : [ {
          "name" : "account",
          "in" : "path",
          "description" : "The CollaborateMD account number",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 466235
        } ],
        "responses" : {
          "200" : {
            "description" : "Success:\n\n* the ZIP file content, with the `Content-Disposition` header set for file download."
          },
          "404" : {
            "description" : "Not found - the account number is invalid, or no combined snapshot file is available."
          },
          "500" : {
            "description" : "Internal server error - an unexpected error occurred processing the request."
          }
        }
      }
    },
    "/v2/customer/{custno}/snapshot" : {
      "get" : {
        "summary" : "Download the most recent customer data snapshot as a binary ZIP file",
        "description" : "Retrieves the most recent data snapshot for a specific customer as a binary ZIP file (`application/octet-stream`). Compared to [v1](/docs/guides/v1-vs-v2.html), this returns the snapshot file directly with no Status wrapper; the result is carried entirely by the HTTP status code.\n\nRequires the Data Snapshots [permission](/docs/guides/permissions.html).",
        "operationId" : "directDownloadRecentCustomerSnapshot",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        } ],
        "responses" : {
          "200" : {
            "description" : "Success:\n\n* the ZIP file content, with the `Content-Disposition` header set for file download."
          },
          "401" : {
            "description" : "Unauthorized - the interface is not active for the customer."
          },
          "404" : {
            "description" : "Not found - the customer number is invalid, or no snapshot file is available."
          },
          "500" : {
            "description" : "Internal server error - an unexpected error occurred processing the request."
          }
        }
      }
    },
    "/v1/account/{account}/snapshot" : {
      "get" : {
        "summary" : "Download the most recent combined account data snapshot (XML or JSON)",
        "description" : "Retrieves the most recent data snapshot that contains data for multiple customers within an account, verifying that the caller has access to every included customer. On success, the response includes a runDate field with the snapshot creation timestamp and the snapshot data.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, or `INVALID CRITERIA`.\n\nRequires the Data Snapshots [permission](/docs/guides/permissions.html).",
        "operationId" : "downloadRecentCombinedSnapshot",
        "parameters" : [ {
          "name" : "account",
          "in" : "path",
          "description" : "The CollaborateMD account number",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 466235
        } ],
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the most recent combined account snapshot was retrieved successfully\n* `ERROR` for unexpected processing failures\n* `NOT FOUND` if the account number is invalid, or no combined snapshot is available for the account\n* `INVALID CRITERIA` if any included customer's account is closed, on hold, suspended, or the interface is not enabled."
          }
        }
      }
    },
    "/v1/customer/{custno}/snapshot" : {
      "get" : {
        "summary" : "Download the most recent customer data snapshot (XML or JSON)",
        "description" : "Retrieves the most recent data snapshot that contains data for only the specified customer. On success, the response includes a runDate field with the snapshot creation timestamp and the snapshot data.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, or `INVALID CRITERIA`.\n\nRequires the Data Snapshots [permission](/docs/guides/permissions.html).",
        "operationId" : "downloadRecentCustomerSnapshot",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        } ],
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the most recent customer snapshot was retrieved successfully\n* `ERROR` for unexpected processing failures\n* `NOT FOUND` if the customer number is invalid, or no snapshot is available for the customer\n* `INVALID CRITERIA` if the account is closed, on hold, suspended, or the interface is not enabled."
          }
        }
      }
    },
    "/v1/customer/{custno}/patient/{patient}/allEligibility" : {
      "get" : {
        "summary" : "Check all insurance eligibility",
        "description" : "Verifies [eligibility](/docs/guides/check-eligibility.html) across all of a specific patient's active insurance policies. The response carries an eligibility report per policy even when a payer could not be reached; check each report's contents to distinguish a verified benefit from a failed lookup.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, or `INVALID CRITERIA`.\n\nRequires the Eligibility [permission](/docs/guides/permissions.html).",
        "operationId" : "getAllEligibilityV1",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        }, {
          "name" : "patient",
          "in" : "path",
          "description" : "The CollaborateMD patient account number",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 14268678
        } ],
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if at least one eligibility report was generated (a report itself may indicate its lookup failed)\n* `ERROR` for unexpected processing failures\n* `NOT FOUND` if the customer number is invalid\n* `INVALID CRITERIA` if the patient account number is invalid, the patient is not found, the patient has no active insurance policies, none of the patient's payers support eligibility checks, or the account is closed, on hold, suspended, or the interface is not enabled."
          }
        }
      }
    },
    "/v1/customer/{custno}/patient/{patient}/primaryEligibility" : {
      "get" : {
        "summary" : "Check primary insurance eligibility",
        "description" : "Verifies [eligibility](/docs/guides/check-eligibility.html) for a specific patient's primary insurance policy. The response carries an eligibility report even when the payer could not be reached; check the report contents to distinguish a verified benefit from a failed lookup.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, or `INVALID CRITERIA`.\n\nRequires the Eligibility [permission](/docs/guides/permissions.html).",
        "operationId" : "getPrimaryEligibilityV1",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        }, {
          "name" : "patient",
          "in" : "path",
          "description" : "The CollaborateMD patient account number",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 14268678
        } ],
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if an eligibility report was generated (the report itself may indicate the lookup failed)\n* `ERROR` for unexpected processing failures\n* `NOT FOUND` if the customer number is invalid\n* `INVALID CRITERIA` if the patient account number is invalid, the patient is not found, the patient has no active primary insurance policy, the policy's payer does not support eligibility checks, or the account is closed, on hold, suspended, or the interface is not enabled."
          }
        }
      }
    },
    "/v1/customer/{custno}/patient/{patient}/eligibility" : {
      "get" : {
        "summary" : "Check eligibility for a specific insurance policy",
        "description" : "Verifies [eligibility](/docs/guides/check-eligibility.html) for the one active insurance policy on the patient whose member ID matches the memberID query parameter. The response carries an eligibility report even when the payer could not be reached; check the report contents to distinguish a verified benefit from a failed lookup.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, or `INVALID CRITERIA`.\n\nRequires the Eligibility [permission](/docs/guides/permissions.html).",
        "operationId" : "getSpecificEligibilityV1",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        }, {
          "name" : "patient",
          "in" : "path",
          "description" : "The CollaborateMD patient account number",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 14268678
        }, {
          "name" : "memberID",
          "in" : "query",
          "description" : "The member ID on the patient's insurance policy to check eligibility for. Must match an active policy on the patient.",
          "required" : true,
          "schema" : {
            "type" : "string"
          },
          "example" : "ABC123456789"
        }, {
          "name" : "payerName",
          "in" : "query",
          "description" : "Currently accepted but not used to select the policy; only memberID is matched.",
          "schema" : {
            "type" : "string"
          },
          "example" : "Aetna"
        } ],
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if an eligibility report was generated (the report itself may indicate the lookup failed)\n* `ERROR` for unexpected processing failures\n* `NOT FOUND` if the customer number is invalid\n* `INVALID CRITERIA` if the patient account number is invalid, the patient is not found, memberID is missing, no active policy on the patient has that member ID, that policy's payer does not support eligibility checks, or the account is closed, on hold, suspended, or the interface is not enabled."
          }
        }
      }
    },
    "/v1/customer/{custno}/patient/{patient}/balanceDetails" : {
      "get" : {
        "summary" : "Retrieve patient balance with a detailed breakdown",
        "description" : "Retrieves a specific patient's balance along with a per-charge breakdown of insurance payments, insurance adjustments, patient payments, and other adjustments.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, or `INVALID CRITERIA`.\n\nRequires the Patient/Claim/Appointment [permission](/docs/guides/permissions.html).",
        "operationId" : "getBalanceDetailsV1",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        }, {
          "name" : "patient",
          "in" : "path",
          "description" : "The CollaborateMD patient account number",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 14268678
        } ],
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the detailed balance was retrieved successfully\n* `ERROR` for unexpected processing failures\n* `NOT FOUND` if the customer number or patient account number is invalid\n* `INVALID CRITERIA` if the account is closed, on hold, suspended, or the interface is not enabled."
          }
        }
      }
    },
    "/v1/customer/{custno}/patient/{patient}/balance" : {
      "get" : {
        "summary" : "Retrieve patient account balance",
        "description" : "Retrieves the current balance owed by a specific patient.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, or `INVALID CRITERIA`.\n\nRequires the Patient/Claim/Appointment [permission](/docs/guides/permissions.html).",
        "operationId" : "getBalanceV1",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        }, {
          "name" : "patient",
          "in" : "path",
          "description" : "The CollaborateMD patient account number",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 14268678
        } ],
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the patient balance was retrieved successfully\n* `ERROR` for unexpected processing failures\n* `NOT FOUND` if the customer number is invalid\n* `INVALID CRITERIA` if the patient account number is invalid, or the account is closed, on hold, suspended, or the interface is not enabled."
          }
        }
      }
    },
    "/v1/customer/{custno}/patient/{patient}/chargeHistory" : {
      "get" : {
        "summary" : "Retrieve patient charge history",
        "description" : "Retrieves the full charge history for a specific patient, including the current status and payment breakdown for each charge.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, or `INVALID CRITERIA`.\n\nRequires the Patient/Claim/Appointment [permission](/docs/guides/permissions.html).",
        "operationId" : "getChargeHistoryV1",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        }, {
          "name" : "patient",
          "in" : "path",
          "description" : "The CollaborateMD patient account number",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 14268678
        } ],
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the charge history was retrieved successfully\n* `ERROR` for unexpected processing failures\n* `NOT FOUND` if the customer number is invalid\n* `INVALID CRITERIA` if the patient account number is invalid, or the account is closed, on hold, suspended, or the interface is not enabled."
          }
        }
      }
    },
    "/v1/customer/{custno}/patient/find" : {
      "get" : {
        "summary" : "Find a patient's account number by demographics",
        "description" : "Finds the account number of the single patient matching the supplied demographic criteria, requiring an exact match on every criterion supplied. At least one of these combinations is required: first name + last name + birth date, last name + SSN, or birth date + SSN.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, or `INVALID CRITERIA`.\n\nRequires the Patient/Claim/Appointment [permission](/docs/guides/permissions.html).",
        "operationId" : "findPatientV1",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        }, {
          "name" : "firstName",
          "in" : "query",
          "description" : "The patient's first name. Required with lastName and birthDate if SSN is not supplied with lastName or birthDate.",
          "schema" : {
            "type" : "string"
          },
          "example" : "Jane"
        }, {
          "name" : "lastName",
          "in" : "query",
          "description" : "The patient's last name. Required with either firstName and birthDate, or SSN.",
          "schema" : {
            "type" : "string"
          },
          "example" : "Doe"
        }, {
          "name" : "birthDate",
          "in" : "query",
          "description" : "The patient's date of birth, in MM/DD/YYYY format. Required with either firstName and lastName, or SSN.",
          "schema" : {
            "type" : "string"
          },
          "example" : "01/15/1980"
        }, {
          "name" : "SSN",
          "in" : "query",
          "description" : "The patient's Social Security Number. Dashes are stripped before matching. Required with either lastName or birthDate.",
          "schema" : {
            "type" : "string"
          },
          "example" : "123-45-6789"
        } ],
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if exactly one matching patient was found\n* `ERROR` for unexpected processing failures\n* `NOT FOUND` if the customer number is invalid, or no patient matched the given criteria\n* `INVALID CRITERIA` if birthDate is not in `MM/DD/YYYY` format, firstName exceeds 35 characters, lastName exceeds 60 characters, none of the required criteria combinations is met, or the account is closed, on hold, suspended, or the interface is not enabled."
          }
        }
      }
    },
    "/v1/customer/{custno}/patient/{patient}/alerts" : {
      "get" : {
        "summary" : "Retrieve patient alerts",
        "description" : "Retrieves active alerts for a specific patient.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `PATIENT NOT FOUND`, `NO ALERTS FOUND`, `INVALID CUSTOMER NUMBER SUPPLIED`, or `INVALID CRITERIA`.\n\nRequires the Patient/Claim/Appointment [permission](/docs/guides/permissions.html).",
        "operationId" : "findPatientAlerts",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        }, {
          "name" : "patient",
          "in" : "path",
          "description" : "The CollaborateMD patient account number",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 14268678
        } ],
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if patient alerts were retrieved successfully\n* `ERROR` for processing failures\n* `PATIENT NOT FOUND` if the patient is not found for the customer\n* `NO ALERTS FOUND` if the patient has no active alerts\n* `INVALID CUSTOMER NUMBER SUPPLIED` if the customer number is invalid\n* `INVALID CRITERIA` if the patient account number is invalid, or the account is closed, on hold, suspended, or the interface is not enabled."
          }
        }
      }
    },
    "/v1/customer/{custno}/patient/updates/find/hl7" : {
      "get" : {
        "summary" : "Retrieve updated patient records (HL7)",
        "description" : "Retrieves a list of recently [updated patient](/docs/guides/patient-create-update.html) records for the customer in [HL7](/docs/guides/hl7-reference.html) format.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, `INVALID CRITERIA`, or `TOO MANY ITEMS REQUESTED`.\n\nRequires the Patient/Claim/Appointment [permission](/docs/guides/permissions.html).",
        "operationId" : "findPatientUpdatesV1HL7",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        }, {
          "name" : "response_count",
          "in" : "query",
          "description" : "The maximum number of queued patient updates to retrieve (if there are at least that many). The maximum allowed value is 1,000",
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 50
        } ],
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the HL7 patient updates were retrieved successfully\n* `ERROR` for processing failures\n* `NOT FOUND` if the customer number is invalid\n* `INVALID CRITERIA` if the account is closed, on hold, suspended, or the interface is not enabled\n* `TOO MANY ITEMS REQUESTED` if response_count exceeds the maximum of 1,000."
          }
        }
      }
    },
    "/v1/customer/{custno}/patient/updates/find/xml" : {
      "get" : {
        "summary" : "Retrieve updated patient records (XML)",
        "description" : "Retrieves a list of recently [updated patient](/docs/guides/patient-create-update.html) records for the customer.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, `INVALID CRITERIA`, or `TOO MANY ITEMS REQUESTED`.\n\nRequires the Patient/Claim/Appointment [permission](/docs/guides/permissions.html).",
        "operationId" : "findPatientUpdatesV1XML",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        }, {
          "name" : "response_count",
          "in" : "query",
          "description" : "The maximum number of queued patient updates to retrieve (if there are at least that many). The maximum allowed value is 1,000",
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 50
        } ],
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the patient updates were retrieved successfully\n* `ERROR` for processing failures\n* `NOT FOUND` if the customer number is invalid\n* `INVALID CRITERIA` if the account is closed, on hold, suspended, or the interface is not enabled\n* `TOO MANY ITEMS REQUESTED` if response_count exceeds the maximum of 1,000."
          }
        }
      }
    },
    "/v2/customer/{custno}/patient/updates/find/xml" : {
      "get" : {
        "summary" : "Retrieve updated patient records (XML, V2)",
        "description" : "Retrieves a list of recently [updated patient](/docs/guides/patient-create-update.html) records for the customer, using the v2 response schema. See [v1 and v2](/docs/guides/v1-vs-v2.html) for the schema differences.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, `INVALID CRITERIA`, or `TOO MANY ITEMS REQUESTED`.\n\nRequires the Patient/Claim/Appointment [permission](/docs/guides/permissions.html).",
        "operationId" : "findPatientUpdatesXMLV2",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        }, {
          "name" : "response_count",
          "in" : "query",
          "description" : "The maximum number of queued patient updates to retrieve (if there are at least that many). The maximum allowed value is 1,000",
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 50
        } ],
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the patient updates were retrieved successfully\n* `ERROR` for processing failures\n* `NOT FOUND` if the customer number is invalid\n* `INVALID CRITERIA` if the account is closed, on hold, suspended, or the interface is not enabled\n* `TOO MANY ITEMS REQUESTED` if response_count exceeds the maximum of 1,000."
          }
        }
      }
    },
    "/v1/customer/{custno}/patient/{patient}/activity" : {
      "get" : {
        "summary" : "Retrieve patient activity summary",
        "description" : "Retrieves a summary of recent activity for a specific patient, including charges and credits.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, or `INVALID CRITERIA`.\n\nRequires the Patient/Claim/Appointment [permission](/docs/guides/permissions.html).",
        "operationId" : "getPatientActivity",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        }, {
          "name" : "patient",
          "in" : "path",
          "description" : "The CollaborateMD patient account number",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 14268678
        } ],
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the patient activity summary was retrieved successfully\n* `ERROR` for processing failures\n* `NOT FOUND` if the customer number is invalid\n* `INVALID CRITERIA` if the patient account number is invalid, or the account is closed, on hold, suspended, or the interface is not enabled."
          }
        }
      }
    },
    "/v1/customer/{custno}/patient/find/{patient}/hl7" : {
      "get" : {
        "summary" : "Retrieve a patient record by ID (HL7)",
        "description" : "Retrieves a specific [patient](/docs/guides/patient-create-update.html) record by account number in [HL7](/docs/guides/hl7-reference.html) format. If no patient is found, the response still carries `SUCCESS` with a message indicating none were found.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `INVALID CUSTOMER NUMBER SUPPLIED`, or `INVALID CRITERIA`.\n\nRequires the Patient/Claim/Appointment [permission](/docs/guides/permissions.html).",
        "operationId" : "getPatientHL7",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        }, {
          "name" : "patient",
          "in" : "path",
          "description" : "The CollaborateMD patient account number",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 14268678
        } ],
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the patient HL7 record was retrieved, or no matching patient was found\n* `ERROR` for processing failures\n* `INVALID CUSTOMER NUMBER SUPPLIED` if the customer number is invalid\n* `INVALID CRITERIA` if the patient account number is invalid, or the account is closed, on hold, suspended, or the interface is not enabled."
          }
        }
      }
    },
    "/v1/customer/{custno}/patient/find/{patient}/xml" : {
      "get" : {
        "summary" : "Retrieve a patient record by ID (XML)",
        "description" : "Retrieves a specific [patient](/docs/guides/patient-create-update.html) record by account number in XML format. If no patient is found, the response still carries `SUCCESS` with a message indicating none were found.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, or `INVALID CRITERIA`.\n\nRequires the Patient/Claim/Appointment [permission](/docs/guides/permissions.html).",
        "operationId" : "getPatientXML",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        }, {
          "name" : "patient",
          "in" : "path",
          "description" : "The CollaborateMD patient account number",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 14268678
        } ],
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the patient XML record was retrieved, or no matching patient was found\n* `ERROR` for processing failures\n* `NOT FOUND` if the customer number is invalid\n* `INVALID CRITERIA` if the patient account number is invalid, or the account is closed, on hold, suspended, or the interface is not enabled."
          }
        }
      }
    },
    "/v2/customer/{custno}/patient/find/{patient}/xml" : {
      "get" : {
        "summary" : "Retrieve a patient record by ID (XML, V2)",
        "description" : "Retrieves a specific [patient](/docs/guides/patient-create-update.html) record by account number in XML format, using the v2 response schema. See [v1 and v2](/docs/guides/v1-vs-v2.html) for the schema differences. If no patient is found, the response still carries `SUCCESS` with a message indicating none were found.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, or `INVALID CRITERIA`.\n\nRequires the Patient/Claim/Appointment [permission](/docs/guides/permissions.html).",
        "operationId" : "getPatientXMLV2",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        }, {
          "name" : "patient",
          "in" : "path",
          "description" : "The CollaborateMD patient account number",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 14268678
        } ],
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the patient XML record was retrieved, or no matching patient was found\n* `ERROR` for processing failures\n* `NOT FOUND` if the customer number is invalid\n* `INVALID CRITERIA` if the patient account number is invalid, or the account is closed, on hold, suspended, or the interface is not enabled."
          }
        }
      }
    },
    "/v1/customer/{custno}/patient/{patient}/note" : {
      "post" : {
        "summary" : "Add a note to a patient record",
        "description" : "Adds a new note (optionally associated with a claim) to a patient's record. The request body contains the XML PatientNote object.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, `INVALID CUSTOMER NUMBER SUPPLIED`, or `INVALID CRITERIA`.\n\nRequires the Patient/Claim/Appointment [permission](/docs/guides/permissions.html).",
        "operationId" : "postXMLPatientNote",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        }, {
          "name" : "patient",
          "in" : "path",
          "description" : "The CollaborateMD patient account number",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 14268678
        } ],
        "requestBody" : {
          "content" : {
            "application/xml" : {
              "schema" : {
                "$ref" : "#/components/schemas/PatientNote"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the note was added to the patient record successfully\n* `ERROR` for database errors or other unexpected processing failures\n* `NOT FOUND` if the referenced claim is not found, or the note's username is not found or lacks customer access\n* `INVALID CUSTOMER NUMBER SUPPLIED` if the customer number is invalid\n* `INVALID CRITERIA` if the patient account number is invalid or not found on the customer, the note is blank or over 4,000 characters, the claim ID is malformed, the note's username exceeds 40 characters or lacks permission to create the note, or the account is closed, on hold, suspended, or the interface is not enabled."
          }
        }
      }
    },
    "/v1/customer/{custno}/payer/{payer}" : {
      "get" : {
        "summary" : "Retrieve payer information",
        "description" : "Retrieves information about a specific payer. The payer ID is the `seqno` from CollaborateMD or your Data Snapshot.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, `INVALID CUSTOMER NUMBER SUPPLIED`, or `INVALID CRITERIA`. No specific permission required beyond a valid partner credential.",
        "operationId" : "getPayer",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        }, {
          "name" : "payer",
          "in" : "path",
          "description" : "The unique ID (sequence number) of the Payer",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001002
        } ],
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the payer information was retrieved successfully\n* `ERROR` for unexpected processing failures\n* `NOT FOUND` if no payer with that ID exists for the customer\n* `INVALID CUSTOMER NUMBER SUPPLIED` if the customer number is invalid\n* `INVALID CRITERIA` if the payer ID is invalid, or the account is closed, on hold, suspended, or the interface is not enabled."
          }
        }
      }
    },
    "/v1/customer/{custno}/payment/download-835" : {
      "get" : {
        "summary" : "Download 835 ERA files for a date",
        "description" : "Downloads a ZIP archive containing all [835 ERA](/docs/guides/download-835-837.html) files received on a specified date. If no files exist for that date, returns HTTP 200 with a plain-text message instead of a ZIP.\n\nRequires the Payment [permission](/docs/guides/permissions.html).",
        "operationId" : "download835",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        }, {
          "name" : "date",
          "in" : "query",
          "description" : "The submission date to download files for. Must be in the ISO 8601 date format: YYYY-MM-DD",
          "required" : true,
          "schema" : {
            "type" : "string"
          },
          "example" : "2026-08-01"
        } ],
        "responses" : {
          "200" : {
            "description" : "Success:\n\n* a ZIP file containing the 835 ERA files for the requested date, with the `Content-Disposition` header set for file download\n* a plain-text message if no ERA files exist for the requested date."
          },
          "400" : {
            "description" : "Bad request - the date query parameter is missing or not in `yyyy-MM-dd` format."
          },
          "401" : {
            "description" : "Unauthorized - the interface is not active for the customer."
          },
          "404" : {
            "description" : "Not found - the customer number is invalid."
          },
          "500" : {
            "description" : "Internal server error - an unexpected error occurred retrieving or processing the ERA files."
          }
        }
      }
    },
    "/v1/customer/{custno}/patient/{patient}/payment" : {
      "post" : {
        "summary" : "Post a patient payment",
        "description" : "Posts a payment for a patient. The request body contains the XML PaymentRequest object with the payment amount, type (payment or copay), payment source (cash, credit card, etc.), and optional charge/claim application details.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, `INVALID CRITERIA`, `NO PATIENTS FOUND`, `NO PROVIDER FOUND`, `NO OFFICE FOUND`, `NO OFFICE FOUND IN PRACTICE FOR PROVIDER`, or `NO CLAIM FOUND`.\n\nRequires the Payment [permission](/docs/guides/permissions.html).",
        "operationId" : "postPatientPaymentV1",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        }, {
          "name" : "patient",
          "in" : "path",
          "description" : "The CollaborateMD patient account number",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 14268678
        } ],
        "requestBody" : {
          "content" : {
            "application/xml" : {
              "schema" : {
                "$ref" : "#/components/schemas/PaymentRequest"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the payment was applied successfully\n* `ERROR` for unexpected processing failures\n* `NOT FOUND` if the customer or patient number is invalid\n* `INVALID CRITERIA` if the payment amount, received date, type, payment source, applied amount, or claim ID is invalid, the memo exceeds 235 characters, or the account is closed, on hold, suspended, or the interface is not enabled\n* `NO PATIENTS FOUND` if the patient is not found on the customer\n* `NO PROVIDER FOUND` if the provider supplied is not found\n* `NO OFFICE FOUND` if the office supplied is not found or is inactive\n* `NO OFFICE FOUND IN PRACTICE FOR PROVIDER` if no office is supplied and the provider's practice has no active default office\n* `NO CLAIM FOUND` if the claim to apply the payment to is not found for the patient."
          }
        }
      }
    },
    "/v1/customer/{custno}/patient/{patient}/refund" : {
      "post" : {
        "summary" : "Post a patient refund",
        "description" : "Posts a refund for a patient against a previously applied credit. The request body contains the XML RefundRequest object with the refund amount (a negative value), the transaction ID being refunded, and an optional refund date.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, `INVALID CRITERIA`, or `NO PATIENTS FOUND`.\n\nRequires the Payment [permission](/docs/guides/permissions.html).",
        "operationId" : "postPatientRefundV1",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        }, {
          "name" : "patient",
          "in" : "path",
          "description" : "The CollaborateMD patient account number",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 14268678
        } ],
        "requestBody" : {
          "content" : {
            "application/xml" : {
              "schema" : {
                "$ref" : "#/components/schemas/RefundRequest"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the refund was applied successfully\n* `ERROR` for unexpected processing failures\n* `NOT FOUND` if the customer or patient number is invalid\n* `INVALID CRITERIA` if the refund amount, refund date, or transaction ID is invalid, the transaction is not found for the patient, the refund could not be applied, or the account is closed, on hold, suspended, or the interface is not enabled\n* `NO PATIENTS FOUND` if the patient is not found on the customer."
          }
        }
      }
    },
    "/v1/customer/{custno}/referring/find" : {
      "get" : {
        "summary" : "Find a referring provider by criteria",
        "description" : "Looks up a single best-matching referring provider by referenceID (exact match), NPI (exact 10-digit match), or last and first name (exact match, case-insensitive), tried in that order. Returns the first provider found by whichever criteria matched.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, or `INVALID CRITERIA`. No specific permission required beyond a valid partner credential.",
        "operationId" : "findReferringV1",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        }, {
          "name" : "firstName",
          "in" : "query",
          "description" : "The referring provider's first name. Used with lastName for an exact, case-insensitive name match if referenceID and NPI do not match.",
          "schema" : {
            "type" : "string"
          },
          "example" : "John"
        }, {
          "name" : "lastName",
          "in" : "query",
          "description" : "The referring provider's last name. Used with firstName for an exact, case-insensitive name match if referenceID and NPI do not match.",
          "schema" : {
            "type" : "string"
          },
          "example" : "Smith"
        }, {
          "name" : "NPI",
          "in" : "query",
          "description" : "The referring provider's 10-digit National Provider Identifier. Tried before a name match if referenceID does not match.",
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "referenceID",
          "in" : "query",
          "description" : "The CollaborateMD reference ID of the referring provider. Tried first, before NPI and name.",
          "schema" : {
            "type" : "string"
          },
          "example" : "REF12345"
        } ],
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if a matching referring provider was found\n* `ERROR` for unexpected processing failures\n* `NOT FOUND` if the customer number is invalid, or no referring provider matched the given criteria\n* `INVALID CRITERIA` if the account is closed, on hold, suspended, or the interface is not enabled."
          }
        }
      }
    },
    "/v1/customer/{custno}/referring" : {
      "post" : {
        "summary" : "Create a referring provider",
        "description" : "Creates a new referring provider. The request body contains the XML Referring object with the provider's name and state, at minimum. Refuses to create a duplicate if a referring provider already exists matching the same referenceID, NPI, or name lookup used by \"Find a referring provider by criteria\".\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, or `INVALID CRITERIA`. No specific permission required beyond a valid partner credential.",
        "operationId" : "postReferringProviderV1",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        } ],
        "requestBody" : {
          "content" : {
            "application/xml" : {
              "schema" : {
                "$ref" : "#/components/schemas/Referring"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the referring provider was created successfully\n* `ERROR` for unexpected processing failures\n* `NOT FOUND` if the customer number is invalid\n* `INVALID CRITERIA` if the last name or a two-character state is missing, the first or last name exceeds its length limit, a matching referring provider already exists, or the account is closed, on hold, suspended, or the interface is not enabled."
          }
        }
      }
    },
    "/v1/reports/results/{requestSeq}" : {
      "post" : {
        "summary" : "Retrieve results for multi-customer reports",
        "description" : "Retrieves the status and results of a batch report run previously started by [Start running a report across multiple customers](#POST/v1/reports/{reportSeq}/filter/{filterSeq}/run). Returns a CSV file as base64-encoded data when the report has finished.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, `INVALID CRITERIA`, `REPORT RUNNING`, or `REPORT TIMED OUT`.\n\nRequires the Batch Reporting [permission](/docs/guides/permissions.html).\n\nFor more information, see our [Running Reports Guide](/docs/guides/running-reports.html)",
        "operationId" : "getBatchReportResultsV1",
        "parameters" : [ {
          "name" : "requestSeq",
          "in" : "path",
          "description" : "The unique identifier for the previously initiated run of a report. Provided in the identifier field of a successful report run request.",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10009999
        } ],
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the report results were retrieved, or the report finished with no matching records. The `data` parameter is a base64-encoded ZIP file containing the CSV results.\n* `ERROR` for unexpected processing failures\n* `NOT FOUND` if the request sequence does not resolve to a customer\n* `INVALID CRITERIA` if the request sequence is invalid, or the account is closed, on hold, suspended, or the interface is not enabled\n* `REPORT RUNNING` if the report is still executing\n* `REPORT TIMED OUT` if the report execution exceeded the timeout."
          }
        }
      }
    },
    "/v1/customer/{custno}/reports/results/{requestSeq}" : {
      "post" : {
        "summary" : "Retrieve report results",
        "description" : "Retrieves the status and results of a report run previously started by [Start a report](#POST/v1/customer/{custno}/reports/{reportSeq}/filter/{filterSeq}/run). Returns a CSV file as base64-encoded data when the report has finished.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, `INVALID CRITERIA`, `REPORT RUNNING`, or `REPORT TIMED OUT`.\n\nRequires the Reporting [permission](/docs/guides/permissions.html).\n\nFor more information, see our [Running Reports Guide](/docs/guides/running-reports.html)",
        "operationId" : "getReportResultsV1",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        }, {
          "name" : "requestSeq",
          "in" : "path",
          "description" : "The unique identifier for the previously initiated run of a report. Provided in the `Identifier` field of a successful report run request.",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10009999
        } ],
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the report results were retrieved, or the report finished with no matching records. The `data` parameter is a base64-encoded ZIP file containing the CSV results.\n* `ERROR` for unexpected processing failures\n* `NOT FOUND` if the customer number is invalid\n* `INVALID CRITERIA` if the request sequence is invalid, or the account is closed, on hold, suspended, or the interface is not enabled\n* `REPORT RUNNING` if the report is still executing\n* `REPORT TIMED OUT` if the report execution exceeded the timeout."
          }
        }
      }
    },
    "/v1/reports/{reportSeq}/filter/{filterSeq}/run" : {
      "post" : {
        "summary" : "Start running a report across multiple customers",
        "description" : "Starts running a report asynchronously across multiple customers. Reports can only be run for one account at a time, even if the partner has access to customers within multiple accounts. Reports can only be run for the customer(s) within the same account that the custom report was created. Each partner may run only one report at a time. Please set up appropriate filters so that reports run quickly.\n\nThe `Identifier` in the response is a unique ID for this report run, which can be used poll for status and the retrieve results using the [retrieve results for multi-customer reports](/#POST/v1/customer/reports/results/{requestSeq}) endpoint.\n\nThe report & filter IDs come from the CollaborateMD application -- see our [help article](https://help.collaboratemd.com/help/web-reporting) for details.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, `INVALID CRITERIA`, or `REPORT RUNNING`.\n\nRequires the Batch Reporting [permission](/docs/guides/permissions.html). Batch Report requests will not be permitted to all partners, and must be approved before utilizing this functionality.\n\nFor more information, see our [Running Reports Guide](/docs/guides/running-reports.html)",
        "operationId" : "runBatchReportV1",
        "parameters" : [ {
          "name" : "reportSeq",
          "in" : "path",
          "description" : "The unique identifier for the report to run. Provided by the CollaborateMD Application",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001234
        }, {
          "name" : "filterSeq",
          "in" : "path",
          "description" : "The unique identifier for the filter to apply to the report. Provided by the CollaborateMD Application",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10004321
        }, {
          "name" : "customer",
          "in" : "query",
          "description" : "A CollaborateMD customer number to include in the batch. All customers must belong to the same account as the report. Repeat this parameter once per customer number.",
          "required" : true,
          "schema" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the batch report was started successfully. The `Identifier` will contain the ID used to retrieve the status and results\n* `ERROR` for unexpected processing failures\n* `NOT FOUND` if the customer query parameter is missing or empty\n* `INVALID CRITERIA` if the report or filter is invalid, a customer is not in the same account as the report, or an account is closed, on hold, suspended, or the interface is not enabled for one of the customers\n* `REPORT RUNNING` if a previously started report is still running. CollaborateMD only allows for one report to be running at a time per interface partner. Please wait and try again once the previous report has either finished or timed out. Reports time out after 30 minutes."
          }
        }
      }
    },
    "/v1/customer/{custno}/reports/{reportSeq}/filter/{filterSeq}/run" : {
      "post" : {
        "summary" : "Start running a report",
        "description" : "Starts running a report asynchronously for a specific customer, validating that the report and filter belong to the customer's account. Each partner may run only one report at a time. Please set up appropriate filters so that reports run quickly.\n\nThe `Identifier` in the response is a unique ID for this report run, which can be used poll for status and the retrieve results using the [get report results](/#POST/v1/customer/{custno}/reports/results/{requestSeq}) endpoint.\n\nThe report & filter IDs come from the CollaborateMD application -- see our [help article](https://help.collaboratemd.com/help/web-reporting) for details.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS`, `ERROR`, `NOT FOUND`, `INVALID CRITERIA`, or `REPORT RUNNING`.\n\nRequires the Reporting [permission](/docs/guides/permissions.html).\n\nFor more information, see our [Running Reports Guide](/docs/guides/running-reports.html)",
        "operationId" : "runReportV1",
        "parameters" : [ {
          "name" : "custno",
          "in" : "path",
          "description" : "The CollaborateMD customer number (always 8 digits)",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001001
        }, {
          "name" : "reportSeq",
          "in" : "path",
          "description" : "The unique identifier for the report to run. Provided by the CollaborateMD Application",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10001234
        }, {
          "name" : "filterSeq",
          "in" : "path",
          "description" : "The unique identifier for the filter to apply to the report. Provided by the CollaborateMD Application",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          },
          "example" : 10004321
        } ],
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the report was started successfully. The `Identifier` will contain the ID used to retrieve the status and results\n* `ERROR` for unexpected processing failures\n* `NOT FOUND` if the customer number is invalid\n* `INVALID CRITERIA` if the report or filter is invalid, doesn't belong to the customer's account, or is a standard (non-custom) report, or the account is closed, on hold, suspended, or the interface is not enabled\n* `REPORT RUNNING` if a previously started report is still running. CollaborateMD only allows for one report to be running at a time per interface partner. Please wait and try again once the previous report has either finished or timed out. Reports time out after 30 minutes."
          }
        }
      }
    },
    "/v1/customers" : {
      "get" : {
        "summary" : "Retrieve customers for a vendor",
        "description" : "Retrieves the list of customers and accounts associated with the calling vendor credential.\n\nThe response body follows the [Status](/docs/guides/reading-responses.html#the-status-field) convention; HTTP 200 OK does not mean the request was accepted. The body carries Status with values `SUCCESS` or `ERROR`. No specific permission required beyond a valid partner credential.",
        "operationId" : "getCustomersForVendor",
        "responses" : {
          "200" : {
            "description" : "Success or validation error. Status field indicates the actual result:\n\n* `SUCCESS` if the customer list was retrieved successfully\n* `ERROR` if the caller's credentials could not be validated, or another unexpected processing failure occurred."
          }
        }
      }
    }
  },
  "components" : {
    "schemas" : {
      "Address" : {
        "properties" : {
          "Line1" : {
            "type" : "string",
            "description" : "Address Line 1",
            "maxLength" : 40
          },
          "Line2" : {
            "type" : "string",
            "description" : "Address Line 2",
            "maxLength" : 40
          },
          "City" : {
            "type" : "string",
            "description" : "The city of the address",
            "maxLength" : 40
          },
          "State" : {
            "type" : "string",
            "description" : "Two-letter state abbreviation",
            "maxLength" : 2,
            "pattern" : "^[A-Za-z]{2}$"
          },
          "Zipcode" : {
            "type" : "string",
            "description" : "5, 6, or 9 digit zip code. Dashes and spaces are not required.",
            "maxLength" : 10
          },
          "Country" : {
            "type" : "string",
            "description" : "Country code, not needed if USA. An ISO 3166 alpha-3 code.",
            "maxLength" : 3
          }
        }
      },
      "Appointment" : {
        "properties" : {
          "Identifier" : {
            "type" : "string",
            "description" : "The appointment's unique identifier. Required unless another identifying field for this appointment is supplied instead."
          },
          "Provider" : {
            "$ref" : "#/components/schemas/Rendering"
          },
          "Patient" : {
            "$ref" : "#/components/schemas/Patient"
          },
          "Facility" : {
            "$ref" : "#/components/schemas/Facility"
          },
          "Resource" : {
            "$ref" : "#/components/schemas/Resource"
          },
          "Date" : {
            "type" : "string",
            "format" : "MM/DD/YYYY",
            "description" : "The date of the appointment"
          },
          "Time" : {
            "type" : "string",
            "description" : "The time of day of the appointment's start, as HH:MM in 24-hour time"
          },
          "Length" : {
            "type" : "integer",
            "format" : "int32",
            "description" : "The length of the appointment in minutes."
          },
          "Status" : {
            "type" : "string",
            "description" : "The status of the appointment. Standard statuses:\n* 0 - Scheduled\n* 1 - Checked-In\n* 2 - In Room\n* 3 - Checked-Out\n* 4 - Canceled\n* 5 - No Show\n* 6 - Deleted\n* 7 - Confirmed\n* 8 - Rescheduled\n\nIf custom statuses are used, the status's text name can be sent instead (assuming that status also exists for the customer's account in CollaborateMD) -- for example \"Scheduled\", \"Late\", \"No-Show\".",
            "enum" : [ "0", "1", "2", "3", "4", "5", "6", "7", "8" ]
          },
          "Type" : {
            "type" : "string",
            "description" : "The appointment type. A name, description, or code can be used, as long as it matches an existing appointment type for the customer's account in CollaborateMD -- for example \"Check-up\" or \"CU\""
          },
          "Note" : {
            "type" : "string",
            "description" : "A plain-text note related to the appointment",
            "maxLength" : 4000
          },
          "ReferenceID" : {
            "type" : "string",
            "description" : "Used to help uniquely identify an appointment (especially helpful for when we have an appointment create, then later an appointment update)",
            "maxLength" : 20
          }
        },
        "required" : [ "Date", "Facility", "Patient", "Provider", "Time" ],
        "xml" : {
          "name" : "Appointment",
          "namespace" : "http://www.collaboratemd.com/api/v1/"
        }
      },
      "Diagnosis" : {
        "properties" : {
          "Index" : {
            "type" : "integer",
            "format" : "int32",
            "description" : "The priority index of the diagnosis: 1 for the primary diagnosis, 2 for the secondary, and so on, up to 18. If omitted, the position of the diagnosis in the submitted list is used."
          },
          "ICDVersion" : {
            "type" : "string",
            "description" : "The ICD Version of the ICD code used:\n* 9 - ICD-9\n* 10 - ICD-10.",
            "enum" : [ "9", "10" ]
          },
          "Code" : {
            "type" : "string",
            "description" : "The ICD code for the diagnosis",
            "maxLength" : 8
          },
          "Description" : {
            "type" : "string",
            "description" : "A human-readable description of the ICD code",
            "maxLength" : 250
          },
          "POA" : {
            "type" : "string",
            "description" : "The Present on Admission (POA) indicator, for institutional claims:\n* Y - Yes\n* N - No\n* U - Unknown\n* W - Undetermined\n* 1 - Unreported\n\nOther values are ignored.",
            "enum" : [ "Y", "N", "U", "W", "1" ]
          }
        }
      },
      "EmergencyContact" : {
        "properties" : {
          "LastName" : {
            "type" : "string",
            "description" : "The person's last name",
            "maxLength" : 40
          },
          "FirstName" : {
            "type" : "string",
            "description" : "The person's first name",
            "maxLength" : 40
          },
          "MiddleInitial" : {
            "type" : "string"
          },
          "BirthDate" : {
            "type" : "string",
            "format" : "MM/DD/YYYY",
            "description" : "The person's date of birth"
          },
          "Gender" : {
            "type" : "string",
            "description" : "The person's gender:\n* M or 1 - Male\n* F or 0 - Female\n* U or 3 - Unknown",
            "enum" : [ "M", "F", "U", "1", "0", "3" ]
          },
          "SSN" : {
            "type" : "string",
            "description" : "The person's social security number, as ###-##-#### or #########"
          },
          "Address" : {
            "$ref" : "#/components/schemas/Address"
          },
          "HomePhone" : {
            "type" : "string"
          },
          "CellPhone" : {
            "type" : "string"
          },
          "WorkPhone" : {
            "type" : "string"
          },
          "WorkExtension" : {
            "type" : "string"
          },
          "Email" : {
            "type" : "string"
          },
          "Relationship" : {
            "type" : "string",
            "description" : "The Guarantor's relationship to the patient:\n* N - None\n* S - Spouse\n* P - Parent\n* C - Child\n* R - Relative\n* O - Other",
            "enum" : [ "N", "S", "P", "C", "R", "O" ]
          }
        }
      },
      "Employer" : {
        "description" : "The Insured Person's Employer",
        "properties" : {
          "EmploymentStatus" : {
            "type" : "integer",
            "format" : "int32",
            "description" : "The employment status:\n* 0 - Full Time\n* 1 - Part Time\n* 2 - Not Employed\n* 3 - Self Employed\n* 4 - Retired\n* 5 - Military\n* 6 - Unknown\n\nIf omitted, a new insured defaults to Full Time and an existing insured keeps its current status.",
            "enum" : [ 0, 1, 2, 3, 4, 5, 6 ]
          },
          "Name" : {
            "type" : "string"
          },
          "Address" : {
            "$ref" : "#/components/schemas/Address"
          }
        }
      },
      "Facility" : {
        "properties" : {
          "Identifier" : {
            "type" : "string",
            "description" : "The facility's unique identifier. Required unless Name is supplied instead: the facility is resolved by Identifier (a sequence number, then a 36-character GUID), then by Name, then by NPI."
          },
          "Name" : {
            "type" : "string",
            "description" : "The facility's name. Required unless Identifier is supplied instead: the facility is resolved by Identifier first, then by Name, then by NPI."
          }
        }
      },
      "Guarantor" : {
        "properties" : {
          "LastName" : {
            "type" : "string",
            "description" : "The person's last name",
            "maxLength" : 40
          },
          "FirstName" : {
            "type" : "string",
            "description" : "The person's first name",
            "maxLength" : 40
          },
          "MiddleInitial" : {
            "type" : "string"
          },
          "BirthDate" : {
            "type" : "string",
            "format" : "MM/DD/YYYY",
            "description" : "The person's date of birth"
          },
          "Gender" : {
            "type" : "string",
            "description" : "The person's gender:\n* M or 1 - Male\n* F or 0 - Female\n* U or 3 - Unknown",
            "enum" : [ "M", "F", "U", "1", "0", "3" ]
          },
          "SSN" : {
            "type" : "string",
            "description" : "The person's social security number, as ###-##-#### or #########"
          },
          "Address" : {
            "$ref" : "#/components/schemas/Address"
          },
          "HomePhone" : {
            "type" : "string"
          },
          "CellPhone" : {
            "type" : "string"
          },
          "WorkPhone" : {
            "type" : "string"
          },
          "WorkExtension" : {
            "type" : "string"
          },
          "Email" : {
            "type" : "string"
          },
          "Relationship" : {
            "type" : "string",
            "description" : "The Guarantor's relationship to the patient:\n* N - None\n* S - Spouse\n* P - Parent\n* C - Child\n* R - Relative\n* O - Other",
            "enum" : [ "N", "S", "P", "C", "R", "O" ]
          }
        }
      },
      "Insured" : {
        "description" : "The insured party, or policy holder.",
        "properties" : {
          "LastName" : {
            "type" : "string",
            "description" : "The person's last name",
            "maxLength" : 40
          },
          "FirstName" : {
            "type" : "string",
            "description" : "The person's first name",
            "maxLength" : 40
          },
          "MiddleInitial" : {
            "type" : "string"
          },
          "BirthDate" : {
            "type" : "string",
            "format" : "MM/DD/YYYY",
            "description" : "The person's date of birth"
          },
          "Gender" : {
            "type" : "string",
            "description" : "The person's gender:\n* M or 1 - Male\n* F or 0 - Female\n* U or 3 - Unknown",
            "enum" : [ "M", "F", "U", "1", "0", "3" ]
          },
          "SSN" : {
            "type" : "string",
            "description" : "The person's social security number, as ###-##-#### or #########"
          },
          "Address" : {
            "$ref" : "#/components/schemas/Address"
          },
          "HomePhone" : {
            "type" : "string"
          },
          "CellPhone" : {
            "type" : "string"
          },
          "WorkPhone" : {
            "type" : "string"
          },
          "WorkExtension" : {
            "type" : "string"
          },
          "Email" : {
            "type" : "string"
          },
          "Relationship" : {
            "type" : "integer",
            "format" : "int32",
            "description" : "The Insured person's relationship to the patient:\n* 0 - Unknown\n* 1 - Self\n* 2 - Spouse\n* 3 - Child\n* 4 - Other",
            "enum" : [ 0, 1, 2, 3, 4 ]
          },
          "Employer" : {
            "$ref" : "#/components/schemas/Employer"
          }
        }
      },
      "Observation" : {
        "properties" : {
          "Code" : {
            "type" : "string",
            "description" : "The LOINC code for the observation noted",
            "maxLength" : 7,
            "pattern" : "^[0-9]{1,5}-[0-9]$"
          },
          "LastMenstrualDate" : {
            "type" : "string",
            "format" : "MM/DD/YYYY",
            "description" : "Last menstrual period start date"
          }
        }
      },
      "Patient" : {
        "description" : "The patient's demographic data",
        "properties" : {
          "LastName" : {
            "type" : "string",
            "description" : "The person's last name",
            "maxLength" : 40
          },
          "FirstName" : {
            "type" : "string",
            "description" : "The person's first name",
            "maxLength" : 40
          },
          "MiddleInitial" : {
            "type" : "string"
          },
          "BirthDate" : {
            "type" : "string",
            "format" : "MM/DD/YYYY",
            "description" : "The person's date of birth"
          },
          "Gender" : {
            "type" : "string",
            "description" : "The person's gender:\n* M or 1 - Male\n* F or 0 - Female\n* U or 3 - Unknown",
            "enum" : [ "M", "F", "U", "1", "0", "3" ]
          },
          "SSN" : {
            "type" : "string",
            "description" : "The person's social security number, as ###-##-#### or #########"
          },
          "Address" : {
            "$ref" : "#/components/schemas/Address"
          },
          "HomePhone" : {
            "type" : "string"
          },
          "CellPhone" : {
            "type" : "string"
          },
          "WorkPhone" : {
            "type" : "string"
          },
          "WorkExtension" : {
            "type" : "string"
          },
          "Email" : {
            "type" : "string"
          },
          "Identifier" : {
            "type" : "string",
            "description" : "The Patient's Account number in CollaborateMD (If known)"
          },
          "OtherIdentifier" : {
            "type" : "string",
            "description" : "The patient's unique identifier, such as their Medical Record Number. Required unless another patient identifier is supplied instead: the patient is resolved by Identifier (account number), then OtherIdentifier, then SSN, then LastName plus FirstName plus date of birth."
          },
          "AccountType" : {
            "type" : "string",
            "description" : "The Patient's account type. Standard Types:\n* 0 - Other\n* 1 - Insurance\n* 2 - Worker's Comp\n* 3 - Corporate\n* 4 - Self Pay\n* 5 - Courtesy\n* 6 - Collection\n* 7 - Pre-Collection\n* 8 - Type I\n* 9 - Type II\n* 10 - Payment Plan\n* 11 - Payment Plan Collection\n* 12 - Auto.\n\nFor custom types, use the account type's name."
          },
          "VisitID" : {
            "type" : "string"
          },
          "MaritalStatus" : {
            "type" : "string",
            "description" : "A character representing the patient's marital status:\n* M - Married\n* S - Single\n* D - Divorced\n* W - Widowed\n* A - Legally Separated\n* U - Unknown",
            "enum" : [ "M", "S", "D", "W", "A", "U" ]
          },
          "Race" : {
            "type" : "string",
            "description" : "The patient's race, as a letter or its numeric equivalent:\n* I or 1 - American Indian or Eskimo or Aleut\n* A or 2 - Asian or Native Hawaiian or Pacific Islander\n* B or 3 - Black or African American\n* W or 4 - White\n* O or 5 - Other Race\n* R or 6 - Undetermined\n* 0 - Unknown\n\nIf left blank, the patient's race is set to Unknown.",
            "enum" : [ "I", "A", "B", "W", "O", "R", "0", "1", "2", "3", "4", "5", "6" ]
          },
          "Ethnicity" : {
            "type" : "string",
            "description" : "The patient's ethnicity, as a letter or its numeric equivalent:\n* H or 1 - Hispanic or Latino\n* N or 2 - Not Hispanic or Latino\n* U or 3 - Undetermined\n* 0 - Unknown\n\nIf left blank, the patient's ethnicity is set to Unknown.",
            "enum" : [ "H", "N", "U", "0", "1", "2", "3" ]
          },
          "Language" : {
            "type" : "string",
            "description" : "The patient's preferred language, as a letter, its numeric equivalent, or the language name:\n* E, 0, or English - English\n* S, 1, or Spanish - Spanish\n* O or 2 - Other\n\nSend O or 2 for any other language.",
            "enum" : [ "E", "S", "O", "0", "1", "2", "English", "Spanish" ]
          },
          "Guarantor" : {
            "$ref" : "#/components/schemas/Guarantor"
          },
          "Policy" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/Policy"
            }
          },
          "Diagnosis" : {
            "type" : "array",
            "description" : "Used to set the patient's default diagnosis codes; these are not used on claims created via interface messages. The diagnosis codes received on claim messages will be used on their claims.",
            "items" : {
              "$ref" : "#/components/schemas/Diagnosis"
            },
            "maxItems" : 12
          },
          "AdmissionDate" : {
            "type" : "string",
            "format" : "MM/DD/YYYY",
            "description" : "The patient's Date of Admission"
          },
          "AccidentOrIllnessDate" : {
            "type" : "string",
            "format" : "MM/DD/YYYY",
            "description" : "The patient's date of accident or illness"
          },
          "Observation" : {
            "$ref" : "#/components/schemas/Observation"
          },
          "EmergencyContact" : {
            "$ref" : "#/components/schemas/EmergencyContact"
          }
        }
      },
      "Payer" : {
        "properties" : {
          "Identifier" : {
            "type" : "string",
            "description" : "The payer's unique identifier"
          },
          "Name" : {
            "type" : "string",
            "description" : "The payer name. Required unless the payer is identified by an identifier instead: the payer is resolved by payer ID, then external ID, then Name (with plan name)."
          },
          "Address" : {
            "$ref" : "#/components/schemas/Address"
          },
          "PhoneNumber" : {
            "type" : "string"
          },
          "PayerType" : {
            "type" : "string",
            "description" : "The payer type, if known."
          },
          "ReferenceId" : {
            "type" : "string"
          }
        }
      },
      "Policy" : {
        "properties" : {
          "Index" : {
            "type" : "integer",
            "format" : "int32",
            "description" : "An integer representing the priority of this policy:\n* 0 - Primary\n* 1 - Secondary\n* 2 - Tertiary\n\nIndexes should be unique for each patient, i.e. there should not be two policies with index 0, as we would not know which policy to use first.",
            "enum" : [ 0, 1, 2 ]
          },
          "Payer" : {
            "$ref" : "#/components/schemas/Payer"
          },
          "Insured" : {
            "$ref" : "#/components/schemas/Insured"
          },
          "Authorization" : {
            "type" : "string",
            "description" : "The current active prior authorization number for this policy (if needed)",
            "maxLength" : 30
          },
          "MemberID" : {
            "type" : "string",
            "description" : "The member or subscriber ID on the insurance policy"
          },
          "GroupID" : {
            "type" : "string"
          },
          "EffectiveDate" : {
            "type" : "string"
          },
          "TerminationDate" : {
            "type" : "string"
          },
          "Copay" : {
            "type" : "number",
            "format" : "double"
          },
          "Deductible" : {
            "type" : "number",
            "format" : "double"
          },
          "CoInsurance" : {
            "type" : "integer",
            "format" : "int32",
            "description" : "Co-Insurance, as a percentage from 0 to 100",
            "maximum" : 100,
            "minimum" : 0
          },
          "AuthVisits" : {
            "type" : "string",
            "description" : "Max value should be 9999",
            "maxLength" : 4
          },
          "AuthVisitsUsed" : {
            "type" : "string",
            "description" : "Max value should be 9999",
            "maxLength" : 4
          },
          "AuthStartDate" : {
            "type" : "string"
          },
          "AuthEndDate" : {
            "type" : "string"
          }
        }
      },
      "Rendering" : {
        "description" : "The provider associated with the patient record. Resolved by Identifier, then by NPI, then by last and first name.",
        "properties" : {
          "Identifier" : {
            "type" : "string",
            "description" : "The provider's unique identifier"
          },
          "LastName" : {
            "type" : "string"
          },
          "FirstName" : {
            "type" : "string"
          }
        }
      },
      "Resource" : {
        "properties" : {
          "Identifier" : {
            "type" : "string",
            "description" : "The resource's unique identifier. Could be the resource ID in CollaborateMD, the short code, the NPI, etc. Required unless LastName and FirstName are supplied instead: the resource is resolved by Identifier (as a sequence number, then as a code or name), then by LastName plus FirstName."
          },
          "LastName" : {
            "type" : "string",
            "description" : "If the resource is not a person, just use the last name as the name and leave the first name blank. Required unless Identifier is supplied instead: the resource is resolved by Identifier first, then by LastName plus FirstName."
          },
          "FirstName" : {
            "type" : "string",
            "description" : "The resource's first name, when the resource is a person. Required unless Identifier is supplied instead: the resource is resolved by Identifier first, then by LastName plus FirstName."
          }
        }
      },
      "FollowUpNote" : {
        "properties" : {
          "Status" : {
            "type" : "string"
          },
          "StatusMessage" : {
            "type" : "string"
          },
          "Identifier" : {
            "type" : "integer",
            "format" : "int32"
          },
          "Note" : {
            "type" : "string"
          },
          "Username" : {
            "type" : "string"
          },
          "FollowUpDate" : {
            "type" : "string"
          }
        },
        "required" : [ "Status" ],
        "xml" : {
          "name" : "FollowUpNote",
          "namespace" : "http://www.collaboratemd.com/api/v1/"
        }
      },
      "ClaimStatusUpdate" : {
        "properties" : {
          "Status" : {
            "type" : "string"
          },
          "Payer" : {
            "type" : "string"
          }
        },
        "xml" : {
          "name" : "ClaimStatusUpdate",
          "namespace" : "http://www.collaboratemd.com/api/v1/"
        }
      },
      "Charge" : {
        "description" : "The line item charges for the claim, i.e. the list of procedures done.",
        "properties" : {
          "Index" : {
            "type" : "integer",
            "format" : "int32",
            "description" : "The priority index of the charge. 0 for the first charge on the claim, 1 for the second, etc."
          },
          "OtherIdentifier" : {
            "type" : "string",
            "description" : "A Unique Identifier for this charge (used for reporting purposes only)",
            "maxLength" : 60
          },
          "FromDate" : {
            "type" : "string",
            "format" : "MM/DD/YYYY",
            "description" : "The starting date of the service"
          },
          "ToDate" : {
            "type" : "string",
            "format" : "MM/DD/YYYY",
            "description" : "The ending date of the service"
          },
          "CPTCode" : {
            "type" : "string",
            "description" : "The CPT or HCPCS code for the procedure",
            "maxLength" : 10
          },
          "CPTDescription" : {
            "type" : "string",
            "description" : "A human-readable description of the CPT or HCPCS code",
            "maxLength" : 200
          },
          "POS" : {
            "type" : "string",
            "description" : "Place of Service Code",
            "maxLength" : 2
          },
          "TOS" : {
            "type" : "string",
            "description" : "Type of Service Code",
            "maxLength" : 2
          },
          "Modifier1" : {
            "type" : "string",
            "description" : "The first modifier code for the charge",
            "maxLength" : 2
          },
          "Modifier2" : {
            "type" : "string",
            "description" : "The second modifier code for the charge",
            "maxLength" : 2
          },
          "Modifier3" : {
            "type" : "string",
            "description" : "The third modifier code for the charge",
            "maxLength" : 2
          },
          "Modifier4" : {
            "type" : "string",
            "description" : "The fourth modifier code for the charge",
            "maxLength" : 2
          },
          "Units" : {
            "type" : "number",
            "format" : "double",
            "description" : "The number of units for the charge"
          },
          "UnitPrice" : {
            "type" : "number",
            "format" : "double",
            "description" : "The price per unit for the charge"
          },
          "DrugCode" : {
            "type" : "string",
            "description" : "The Drug Code (if applicable) for the charge",
            "maxLength" : 11
          },
          "DrugUnits" : {
            "type" : "number",
            "format" : "double",
            "description" : "The number of Drug Code units for the charge"
          },
          "DrugUnitOfMeasure" : {
            "type" : "string",
            "description" : "The Unit of Measure for the Drug Code:\n* UN - unit\n* GR - gram\n* ML - milliliter\n* F2 - international unit\n* ME - milligram",
            "enum" : [ "UN", "GR", "ML", "F2", "ME" ],
            "maxLength" : 2
          },
          "Diagnosis" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/Diagnosis"
            }
          }
        },
        "required" : [ "CPTCode", "FromDate" ]
      },
      "Claim" : {
        "properties" : {
          "OtherIdentifier" : {
            "type" : "string",
            "description" : "A Unique Identifier for this claim (used for reporting purposes only)"
          },
          "Rendering" : {
            "$ref" : "#/components/schemas/Rendering"
          },
          "Referring" : {
            "$ref" : "#/components/schemas/Referring"
          },
          "Supervising" : {
            "$ref" : "#/components/schemas/Supervising"
          },
          "Ordering" : {
            "$ref" : "#/components/schemas/Referring"
          },
          "SalesRep" : {
            "$ref" : "#/components/schemas/Referring"
          },
          "Facility" : {
            "$ref" : "#/components/schemas/Facility"
          },
          "Patient" : {
            "$ref" : "#/components/schemas/Patient"
          },
          "Charge" : {
            "type" : "array",
            "description" : "The line item charges for the claim, i.e. the list of procedures done.",
            "items" : {
              "$ref" : "#/components/schemas/Charge"
            }
          },
          "HospFromDate" : {
            "type" : "string",
            "format" : "MM/DD/YYYY",
            "description" : "The hospitalization from date"
          },
          "HospToDate" : {
            "type" : "string",
            "format" : "MM/DD/YYYY",
            "description" : "The hospitalization to date"
          },
          "ClaimNote" : {
            "type" : "string",
            "description" : "The note to be placed in the Claim Note field"
          },
          "Frequency" : {
            "type" : "string"
          },
          "ClaimControl1" : {
            "type" : "string"
          },
          "ClaimControl2" : {
            "type" : "string"
          },
          "ClaimControl3" : {
            "type" : "string"
          }
        },
        "required" : [ "Patient" ],
        "xml" : {
          "name" : "Claim",
          "namespace" : "http://www.collaboratemd.com/api/v1/"
        }
      },
      "Referring" : {
        "properties" : {
          "Identifier" : {
            "type" : "string",
            "description" : "The referring provider's unique identifier. Required unless the NPI, or LastName plus FirstName, are supplied instead: the referring provider is resolved by Identifier first, then by a 10-digit NPI, then by name."
          },
          "ReferenceID" : {
            "type" : "string",
            "description" : "A provided unique identifier that can be used to reference the referring provider.",
            "maxLength" : 12
          },
          "Type" : {
            "type" : "string",
            "description" : "The referring provider type",
            "enum" : [ "Individual", "Organization" ]
          },
          "LastName" : {
            "type" : "string",
            "description" : "The referring provider's last name. Used together with FirstName when no Identifier or NPI is supplied.",
            "maxLength" : 40
          },
          "FirstName" : {
            "type" : "string",
            "description" : "The referring provider's first name. Used together with LastName when no Identifier or NPI is supplied.",
            "maxLength" : 40
          },
          "MiddleInitial" : {
            "type" : "string"
          },
          "Credentials" : {
            "type" : "string",
            "description" : "The provider's credentials, such as \"MD\"",
            "maxLength" : 12
          },
          "State" : {
            "type" : "string",
            "description" : "The two-letter abbreviation for the state in which the provider operates",
            "maxLength" : 2,
            "pattern" : "^[A-Za-z]{2}$"
          },
          "NPI" : {
            "type" : "string",
            "description" : "The National Provider Identifier for the referring provider."
          },
          "Taxonomy" : {
            "type" : "string",
            "description" : "The provider's taxonomy code. Alphanumeric.",
            "maxLength" : 10
          },
          "Address" : {
            "$ref" : "#/components/schemas/Address"
          },
          "Phone" : {
            "type" : "string"
          },
          "FaxNumber" : {
            "type" : "string"
          }
        },
        "xml" : {
          "name" : "Referring",
          "namespace" : "http://www.collaboratemd.com/api/v1/"
        }
      },
      "Supervising" : {
        "properties" : {
          "Identifier" : {
            "type" : "string",
            "description" : "The supervising provider's unique identifier. Could be the provider ID in CollaborateMD, the short code, the NPI, etc. Required unless the NPI, or LastName plus FirstName, are supplied instead: the provider is resolved by Identifier first, then by a 10-digit NPI, then by name."
          },
          "LastName" : {
            "type" : "string",
            "description" : "The supervising provider's last name. Used together with FirstName when no Identifier or NPI is supplied.",
            "maxLength" : 40
          },
          "FirstName" : {
            "type" : "string",
            "description" : "The supervising provider's first name. Used together with LastName when no Identifier or NPI is supplied.",
            "maxLength" : 40
          },
          "MiddleInitial" : {
            "type" : "string"
          }
        }
      },
      "ICharge" : {
        "description" : "The line item charges for the claim, i.e. the list of procedures done.",
        "properties" : {
          "Index" : {
            "type" : "integer",
            "format" : "int32",
            "description" : "The priority index of the charge. 0 for the first charge on the claim, 1 for the second, etc."
          },
          "OtherIdentifier" : {
            "type" : "string",
            "description" : "A Unique Identifier for this charge (used for reporting purposes only)",
            "maxLength" : 60
          },
          "FromDate" : {
            "type" : "string",
            "format" : "MM/DD/YYYY",
            "description" : "The starting date of the service"
          },
          "ToDate" : {
            "type" : "string",
            "format" : "MM/DD/YYYY",
            "description" : "The ending date of the service"
          },
          "CPTCode" : {
            "type" : "string",
            "description" : "The CPT or HCPCS code for the procedure",
            "maxLength" : 10
          },
          "CPTDescription" : {
            "type" : "string",
            "description" : "A human-readable description of the CPT or HCPCS code",
            "maxLength" : 200
          },
          "POS" : {
            "type" : "string",
            "description" : "Place of Service Code",
            "maxLength" : 2
          },
          "TOS" : {
            "type" : "string",
            "description" : "Type of Service Code",
            "maxLength" : 2
          },
          "Modifier1" : {
            "type" : "string",
            "description" : "The first modifier code for the charge",
            "maxLength" : 2
          },
          "Modifier2" : {
            "type" : "string",
            "description" : "The second modifier code for the charge",
            "maxLength" : 2
          },
          "Modifier3" : {
            "type" : "string",
            "description" : "The third modifier code for the charge",
            "maxLength" : 2
          },
          "Modifier4" : {
            "type" : "string",
            "description" : "The fourth modifier code for the charge",
            "maxLength" : 2
          },
          "Units" : {
            "type" : "number",
            "format" : "double",
            "description" : "The number of units for the charge"
          },
          "UnitPrice" : {
            "type" : "number",
            "format" : "double",
            "description" : "The price per unit for the charge"
          },
          "DrugCode" : {
            "type" : "string",
            "description" : "The Drug Code (if applicable) for the charge",
            "maxLength" : 11
          },
          "DrugUnits" : {
            "type" : "number",
            "format" : "double",
            "description" : "The number of Drug Code units for the charge"
          },
          "DrugUnitOfMeasure" : {
            "type" : "string",
            "description" : "The Unit of Measure for the Drug Code:\n* UN - unit\n* GR - gram\n* ML - milliliter\n* F2 - international unit\n* ME - milligram",
            "enum" : [ "UN", "GR", "ML", "F2", "ME" ],
            "maxLength" : 2
          },
          "Diagnosis" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/Diagnosis"
            }
          },
          "RevCode" : {
            "type" : "string",
            "description" : "The Revenue Code for the procedure",
            "maxLength" : 4
          }
        },
        "required" : [ "CPTCode", "FromDate" ]
      },
      "IClaim" : {
        "properties" : {
          "OtherIdentifier" : {
            "type" : "string",
            "description" : "A Unique Identifier for this claim (used for reporting purposes only)"
          },
          "Rendering" : {
            "$ref" : "#/components/schemas/Rendering"
          },
          "Referring" : {
            "$ref" : "#/components/schemas/Referring"
          },
          "Supervising" : {
            "$ref" : "#/components/schemas/Supervising"
          },
          "Ordering" : {
            "$ref" : "#/components/schemas/Referring"
          },
          "SalesRep" : {
            "$ref" : "#/components/schemas/Referring"
          },
          "Facility" : {
            "$ref" : "#/components/schemas/Facility"
          },
          "Patient" : {
            "$ref" : "#/components/schemas/Patient"
          },
          "Charge" : {
            "type" : "array",
            "description" : "The line item charges for the claim, i.e. the list of procedures done.",
            "items" : {
              "$ref" : "#/components/schemas/Charge"
            }
          },
          "HospFromDate" : {
            "type" : "string",
            "format" : "MM/DD/YYYY",
            "description" : "The hospitalization from date"
          },
          "HospToDate" : {
            "type" : "string",
            "format" : "MM/DD/YYYY",
            "description" : "The hospitalization to date"
          },
          "ClaimNote" : {
            "type" : "string",
            "description" : "The note to be placed in the Claim Note field"
          },
          "Frequency" : {
            "type" : "string"
          },
          "ClaimControl1" : {
            "type" : "string"
          },
          "ClaimControl2" : {
            "type" : "string"
          },
          "ClaimControl3" : {
            "type" : "string"
          },
          "TypeOfBill" : {
            "type" : "string",
            "description" : "Three digit Type of Bill Code for the Claim",
            "maxLength" : 3,
            "pattern" : "^[0-9]{3}$"
          },
          "AdmissionType" : {
            "type" : "string",
            "description" : "The Admission Type Code",
            "maxLength" : 1
          },
          "AdmissionSource" : {
            "type" : "string",
            "description" : "The Admission Source Code",
            "maxLength" : 1
          },
          "AdmissionDate" : {
            "type" : "string",
            "description" : "The date and time of the patient's admission. AA is the AM/PM indicator."
          },
          "DischargeStatus" : {
            "type" : "string"
          },
          "DischargeDate" : {
            "type" : "string",
            "description" : "The date and time of the patient's discharge. AA is the AM/PM indicator."
          },
          "Condition" : {
            "type" : "array",
            "description" : "A list of Condition codes.  Boxes 18-28 of the CMS-1450 claim form.",
            "items" : {
              "type" : "string",
              "xml" : {
                "name" : "Condition"
              }
            },
            "maxItems" : 2
          },
          "ValueCode" : {
            "type" : "array",
            "description" : "A list of Value Codes and their amounts.  Boxes 39-41 of the CMS-1450 claim form.",
            "items" : {
              "$ref" : "#/components/schemas/ValueCode"
            },
            "maxItems" : 12
          },
          "OccuranceCode" : {
            "type" : "array",
            "description" : "A list of Occurance Codes and their dates.  Boxes 31-34 of the CMS-1450 claim form.",
            "items" : {
              "$ref" : "#/components/schemas/OccuranceCode"
            },
            "maxItems" : 8
          },
          "OccuranceSpanCode" : {
            "type" : "array",
            "description" : "A list of Occurance-Span Codes and their date ranges. Boxes 35 and 36 of the CMS-1450 claim form.",
            "items" : {
              "$ref" : "#/components/schemas/OccuranceSpanCode"
            },
            "maxItems" : 4
          },
          "ICharge" : {
            "type" : "array",
            "description" : "The line item charges for the claim, i.e. the list of procedures done.",
            "items" : {
              "$ref" : "#/components/schemas/ICharge"
            }
          },
          "Diagnosis" : {
            "type" : "array",
            "description" : "A list of Diagnosis codes. Box 66 A-Q of the CMS-1450 claim form.",
            "items" : {
              "$ref" : "#/components/schemas/Diagnosis"
            },
            "maxItems" : 18
          },
          "Admission" : {
            "$ref" : "#/components/schemas/Diagnosis"
          },
          "ExternalCause" : {
            "type" : "array",
            "description" : "Box 72 of the CMS-1450 claim form.",
            "items" : {
              "$ref" : "#/components/schemas/Diagnosis"
            },
            "maxItems" : 12
          },
          "PatientReason" : {
            "type" : "array",
            "description" : "Box 70 of the CMS-1450 claim form.",
            "items" : {
              "$ref" : "#/components/schemas/Diagnosis"
            },
            "maxItems" : 3
          }
        },
        "required" : [ "Patient" ],
        "xml" : {
          "name" : "IClaim",
          "namespace" : "http://www.collaboratemd.com/api/v1/"
        }
      },
      "OccuranceCode" : {
        "properties" : {
          "Code" : {
            "type" : "string",
            "description" : "The Occurance code",
            "maxLength" : 2
          },
          "Date" : {
            "type" : "string",
            "format" : "MM/DD/YYYY",
            "description" : "The date of the Occurance"
          }
        }
      },
      "OccuranceSpanCode" : {
        "properties" : {
          "Code" : {
            "type" : "string",
            "description" : "The Occurance Span code",
            "maxLength" : 2
          },
          "StartDate" : {
            "type" : "string",
            "format" : "MM/DD/YYYY",
            "description" : "The start date for the Occurance Span"
          },
          "EndDate" : {
            "type" : "string",
            "format" : "MM/DD/YYYY",
            "description" : "The end date for the Occurance Span"
          }
        }
      },
      "ValueCode" : {
        "properties" : {
          "Code" : {
            "type" : "string",
            "description" : "The Value code",
            "maxLength" : 2
          },
          "Amount" : {
            "type" : "number",
            "format" : "double",
            "description" : "The monetary amount for the Value Code"
          }
        }
      },
      "PatientUpdate" : {
        "properties" : {
          "Provider" : {
            "$ref" : "#/components/schemas/Rendering"
          },
          "Patient" : {
            "$ref" : "#/components/schemas/Patient"
          },
          "Facility" : {
            "$ref" : "#/components/schemas/Facility"
          },
          "Referring" : {
            "$ref" : "#/components/schemas/Referring"
          },
          "Ordering" : {
            "$ref" : "#/components/schemas/Referring"
          },
          "Supervising" : {
            "$ref" : "#/components/schemas/Supervising"
          }
        },
        "required" : [ "Patient" ],
        "xml" : {
          "name" : "PatientUpdate",
          "namespace" : "http://www.collaboratemd.com/api/v1/"
        }
      },
      "PatientNote" : {
        "properties" : {
          "Note" : {
            "type" : "string"
          },
          "Username" : {
            "type" : "string"
          },
          "ClaimId" : {
            "type" : "string"
          }
        },
        "xml" : {
          "name" : "PatientNote",
          "namespace" : "http://www.collaboratemd.com/api/v1/"
        }
      },
      "ApplyRequest" : {
        "properties" : {
          "AppliedAmount" : {
            "type" : "string"
          },
          "Claim" : {
            "type" : "integer",
            "format" : "int32"
          }
        },
        "xml" : {
          "name" : "ApplyRequest",
          "namespace" : "http://www.collaboratemd.com/api/v1/"
        }
      },
      "PaymentRequest" : {
        "properties" : {
          "Amount" : {
            "type" : "string"
          },
          "Received" : {
            "type" : "string"
          },
          "DepositDate" : {
            "type" : "string"
          },
          "Type" : {
            "type" : "string",
            "description" : "The type of payment:\n* 2 - Patient payment\n* 3 - Copay",
            "enum" : [ "2", "3" ]
          },
          "Source" : {
            "type" : "integer",
            "format" : "int32",
            "description" : "The payment source:\n* 0 - Cash\n* 1 - Check\n* 2 - Credit Card (unspecified)\n* 10 - Visa\n* 11 - Mastercard\n* 12 - American Express\n* 13 - Discover",
            "enum" : [ 0, 1, 2, 10, 11, 12, 13 ]
          },
          "Check" : {
            "type" : "string"
          },
          "CopayDos" : {
            "type" : "string"
          },
          "Memo" : {
            "type" : "string"
          },
          "Provider" : {
            "type" : "string"
          },
          "Office" : {
            "type" : "string"
          },
          "ApplyRequest" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/ApplyRequest"
            }
          }
        },
        "xml" : {
          "name" : "PaymentRequest",
          "namespace" : "http://www.collaboratemd.com/api/v1/"
        }
      },
      "RefundRequest" : {
        "properties" : {
          "Amount" : {
            "type" : "string"
          },
          "TransactionId" : {
            "type" : "string"
          },
          "Date" : {
            "type" : "string"
          },
          "Memo" : {
            "type" : "string"
          }
        },
        "xml" : {
          "name" : "RefundRequest",
          "namespace" : "http://www.collaboratemd.com/api/v1/"
        }
      }
    },
    "securitySchemes" : {
      "basicAuth" : {
        "type" : "http",
        "description" : "HTTP Basic authentication using your issued WebAPI credentials. Credentials are entered at request time and are never stored by this documentation site.",
        "scheme" : "basic"
      }
    }
  }
}