PrePay Lab API Endpoint

Request fields

Each section lists element paths relative to the element named in its heading. Attributes are shown as @name. Req = Yes means the element is required.

Request - request

ElementTypeReqDescription
environmentstringSend test when you are testing, otherwise live. The same rule applies in Sandbox and Production. live is assumed if the tag is not sent
enterprise-idstring ≤ 50YesEnterprise identifier provided by Optum, one per client

Claim - request/claim (required)

ElementTypeReqDescription
@typestringClaim type: professional (default), outpatient or inpatient
icd-versionstringICD version. ICD-10: 10, ICD10, ICD-10 or 0. ICD-9: 9, ICD9 or ICD-9. If not sent, the version configured for your enterprise is used
idstring ≤ 50YesPayer claim ID (unique health plan claim identifier)
subscriber-idstring ≤ 80YesSubscriber client ID
planstring ≤ 50Plan identifier; value provided by Optum
accountstring ≤ 50Subscriber group or policy number

Patient - request/claim/patient (required)

ElementTypeReqDescription
id[@type="mrn"]string ≤ 256YesSubscriber client ID + patient dependent code.
id[@type="other"]string ≤ 40Patient client master ID.
genderstring ≤ 1Patient sex: M = Male; F = Female; U = Unknown
date-of-birthdatePatient date of birth, YYYY-MM-DD
name/firststring ≤ 35Patient first name
name/laststring ≤ 60Patient last name or organization name
address/statestring ≤ 2State code
address/zip-codestring ≤ 15Zip code

Claim user-defined fields - request/claim

ElementTypeReqDescription
claim-UDF[@ordinal="1"]string ≤ 255Subscriber client ID + patient dependent code, if not in patient element.
claim-UDF[@ordinal="2"]string ≤ 255Patient client master ID, if not in patient element.
claim-UDF[@ordinal="3"]string ≤ 5Payer claim ITS claim indicator, if applicable (Home / Host / Local; null otherwise).
claim-UDF[@ordinal="4"]string ≤ 60Subscriber plan LOB / client native value.
claim-UDF[@ordinal="5"]string ≤ 60Subscriber plan product type / client native value.
claim-UDF[@ordinal="6"]string ≤ 255Payer prior claim ID or payer claim version.
claim-UDF[@ordinal="11"]string ≤ 255Subscriber group or policy number, if not in account element.
claim-UDF[@ordinal="15"]string ≤ 255Value provided by Optum, if not in plan element.
claim-UDF[@ordinal="22"]string ≤ 255Diagnosis codes 1-12, comma delimited.

Line (repeat for each line) - request/claim/line (required)

ElementTypeReqDescription
idstring ≤ 3YesPayer line number
statusstring ≤ 1Line status: A = active (default), P = profile (analyzed for statistics only, no action taken), D = deleted, X = deny
procedure-codestring ≤ 5YesLine submitted procedure code
procedure-descstring ≤ 80Line submitted procedure code description. Send the DEX Z-code for the lab test in this field
modifier[@order=1-4]string ≤ 25Line submitted procedure code modifier. Array position maps to the XML order attribute (1-4).
unitsnumberLine submitted units of service (billed units). Whole numbers; fractional values are rounded by the service
chargesnumberYesLine billed amount
allowed-amountnumberLine allowed amount. For prepay, provide if available (for example, when the claim is being sent after pricing)
service-datedateLine service from date, YYYY-MM-DD
service-throughdateLine service to date, YYYY-MM-DD
icd-versionstringICD version. ICD-10: 10, ICD10, ICD-10 or 0. ICD-9: 9, ICD9 or ICD-9. If not sent, the version configured for your enterprise is used
diagnosis[@order=1-4]string ≤ 10Line diagnosis pointer or code. Array position maps to the XML order attribute (1-4)
place-of-servicestring ≤ 2Line place of service code
authorizationstring ≤ 50Line prior authorization number. Overrides the claim-level number.

Line billing provider - request/claim/line/provider[@type="billing"]

ElementTypeReqDescription
id[@type="npi"]string ≤ 10Billing Provider NPI.
id[@type="tin"]string ≤ 9Billing Provider TIN.
address/statestring ≤ 2State code
address/zip-codestring ≤ 15Zip code
name/firststring ≤ 35Billing Provider first name
name/laststring ≤ 60Billing Provider last name or organization name

Line servicing provider - request/claim/line/provider[@type="servicing"]

ElementTypeReqDescription
id[@type="npi"]string ≤ 10Line Rendering Provider NPI.
id[@type="tin"]string ≤ 9Line Rendering Provider TIN.
id[@type="clia"]string ≤ 10Line CLIA number (lab claims). Overrides the claim-level CLIA number.
address/statestring ≤ 2State code
address/zip-codestring ≤ 15Zip code
name/firststring ≤ 35Line Rendering Provider first name.
name/laststring ≤ 60Line Rendering Provider last name or organization name.

Line user-defined fields - request/claim/line

ElementTypeReqDescription
user-defined[@id="7"]string ≤ 50Subscriber group or policy number.
user-defined[@id="8"]string ≤ 1Line rendering par indicator (P = Par; N = Non-Par).
user-defined[@id="9"]string ≤ 255Other editor indicator.
user-defined[@id="10"]string ≤ 1Payer responsibility sequence (P/null = Primary; S = Secondary; T = Tertiary; U = Unknown).
user-defined[@id="16"]string ≤ 50Billing provider line control number.
user-defined[@id="17"]string ≤ 10Line rendering provider NPI.
user-defined[@id="18"]string ≤ 80Optional. DEX Z-code for the lab test. Not required: send the Z-code in procedure-desc.
Body Params

Prepay lab claim payload, sent as an XML document. The field-by-field reference is in the Request fields table in this endpoint's description.

XML request document (root element request).

Responses

400

Malformed or invalid XML request

401

Missing, invalid or expired bearer token

500

Unexpected error while processing the request

Language
Credentials
OAuth2
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/xml