Skip to content

Content-Type requirements

The Content-Type header is required for all endpoints that accept XML.

For other endpoints, the Content-Type header is optional, but we recommend text/plain.

The rule

Path ends in Send Why
/xml application/xml If you do not send this content type, you will receive an HTTP 415 error
/hl7 text/plain, or omit the header The endpoint declares no content type; the body is a pipe-delimited HL7 message
/837 text/plain, or omit the header The endpoint declares no content type; the body is an ANSI X12 837 file
anything else nothing No request body

Endpoints that require application/xml

Endpoints that accept an XML-formatted body require the Content-Type header with application/xml and will reject anything else with HTTP 415. The following is a non-exhaustive list of endpoints that require XML; always look up the documentation for specific endpoints to determine the required content type.

Example Endpoints
POST /v1/customer/{custno}/appointment/xml
POST /v1/customer/{custno}/claim/xml
POST /v1/customer/{custno}/iclaim/xml
POST /v1/customer/{custno}/patient/xml
POST /v1/customer/{custno}/claim/{claim}/status
POST /v1/customer/{custno}/claim/{claim}/follow-up-note
POST /v1/customer/{custno}/patient/{patient}/note
POST /v1/customer/{custno}/patient/{patient}/payment
POST /v1/customer/{custno}/patient/{patient}/refund
POST /v1/customer/{custno}/referring
POST /v2/customer/{custno}/appointment/xml
POST /v2/customer/{custno}/claim/xml
POST /v2/customer/{custno}/iclaim/xml
POST /v2/customer/{custno}/patient/xml

Endpoints that do not require a Content-Type header

Endpoints that don’t accept an XML body do not require a specific Content-Type header. We recommend that you send text/plain just for documentation’s sake, but the system doesn’t check it and won’t return HTTP 415.

The following is a non-exhaustive list of endpoints that do not require a Content-Type header. Always look up the documentation for specific endpoints to determine if the content type is required.

Endpoint Body
POST /v1/customer/{custno}/appointment/hl7 HL7 message, pipe-delimited plain text
POST /v1/customer/{custno}/claim/hl7 HL7 message, pipe-delimited plain text
POST /v1/customer/{custno}/claim/837 ANSI X12 837 file, plain text
POST /v1/customer/{custno}/patient/hl7 HL7 message, pipe-delimited plain text
POST /v2/customer/{custno}/appointment/hl7 HL7 message, pipe-delimited plain text
POST /v2/customer/{custno}/claim/hl7 HL7 message, pipe-delimited plain text
POST /v2/customer/{custno}/claim/837 ANSI X12 837 file, plain text
POST /v2/customer/{custno}/patient/hl7 HL7 message, pipe-delimited plain text