{"openapi":"3.0.3","info":{"title":"ABM Prepay LAB Claim API-1.0.2","version":"1.0.2","description":"The Ancillary Benefits Management Pre-Pay Lab API supports Optum's Ancillary Benefit Management (ABM) laboratory products exchange information in real time enabling enforcement of laboratory policies, lab test utilization management and claims management.\n\n**DEX Z-code.** Send the DEX Z-code for each lab test in the line `<procedure-desc>`. `<user-defined id=\"18\">` is optional.\n\n**Response.** The response echoes the claim, then returns `<edits>` (the edit flags that fired, per line) and `<applied-edits>` (each line after the edits are applied, with the updated amounts, disposition and flags). Claim edit rule failures and processing errors (for example an unknown `enterprise-id` or missing claim data) are not API failures: they are returned with HTTP 200 as a claim-level flag with mnemonic `ERR` or `DDERR` and a message describing the problem.\n\nThe `enterprise-id` is assigned by Optum per client.\n\n**Authentication.** Requires an OAuth 2.0 bearer token, obtained with the client-credentials grant from https://sandbox-apigw.optum.com/apip/auth/sntl/v1/token (send `grant_type=client_credentials`, `client_id` and `client_secret` as form fields with content type `application/x-www-form-urlencoded`). The Production token URL is https://apigw.optum.com/apip/auth/sntl/v1/token. Sandbox and Production use different client credentials.\n\n**XML notes.** Elements that carry an attribute plus a value (for example `<id type=\"npi\">`, `<claim-UDF ordinal=\"3\">`, `<user-defined id=\"8\">`, `<modifier order=\"1\">`, `<diagnosis order=\"1\">`) are listed as separate fields in the schema. The XML examples show the exact format to send and receive. Dates are `YYYY-MM-DD`.\n\n**Sample request.** The request body on the endpoint page is pre-filled with a complete XML request. Replace `YOUR_ACCESS_TOKEN` with the token from the authentication step, and use an `enterprise-id` provided by Optum.\n"},"servers":[{"url":"https://sandbox-apigw.optum.com","description":"Sandbox"},{"url":"https://apigw.optum.com","description":"Production"}],"tags":[{"name":"ABM","description":"ABM Pre-Pay Post-Adjudication Lab Claims API"},{"name":"prepaylab"}],"security":[{"oauth2":[]}],"paths":{"/abm/prepaylab/v1":{"post":{"summary":"PrePay Lab API Endpoint","operationId":"postPrepayLab","tags":["prepaylab"],"security":[{"oauth2":[]}],"requestBody":{"$ref":"#/components/requestBodies/prepaylabdata"},"responses":{"200":{"$ref":"#/components/responses/prepaylabdata"},"400":{"description":"Malformed or invalid XML request"},"401":{"description":"Missing, invalid or expired bearer token"},"403":{"description":"Access denied. You do not have permission to access this resource","content":{"application/xml":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":"<response>\n  <error>\n    <status>403</status>\n    <errorCode>Forbidden</errorCode>\n    <message>You do not have permission to access this resource.</message>\n    <path>/api/xml</path>\n    <timestamp>2026-12-02T06:33:46Z</timestamp>\n  </error>\n</response>"}}},"500":{"description":"Unexpected error while processing the request"}},"description":"**Request fields**\n\nEach section lists element paths relative to the element named in its heading. Attributes are shown as `@name`. Req = Yes means the element is required.\n\n**Request** - `request`\n\n| Element | Type | Req | Description |\n|---|---|---|---|\n| `environment` | string |  | Send test when you are testing, otherwise live. The same rule applies in Sandbox and Production. live is assumed if the tag is not sent |\n| `enterprise-id` | string ≤ 50 | Yes | Enterprise identifier provided by Optum, one per client |\n\n**Claim** - `request/claim` (required)\n\n| Element | Type | Req | Description |\n|---|---|---|---|\n| `@type` | string |  | Claim type: professional (default), outpatient or inpatient |\n| `icd-version` | string |  | ICD 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 |\n| `id` | string ≤ 50 | Yes | Payer claim ID (unique health plan claim identifier) |\n| `subscriber-id` | string ≤ 80 | Yes | Subscriber client ID |\n| `plan` | string ≤ 50 |  | Plan identifier; value provided by Optum |\n| `account` | string ≤ 50 |  | Subscriber group or policy number |\n\n**Patient** - `request/claim/patient` (required)\n\n| Element | Type | Req | Description |\n|---|---|---|---|\n| `id[@type=\"mrn\"]` | string ≤ 256 | Yes | Subscriber client ID + patient dependent code. |\n| `id[@type=\"other\"]` | string ≤ 40 |  | Patient client master ID. |\n| `gender` | string ≤ 1 |  | Patient sex: M = Male; F = Female; U = Unknown |\n| `date-of-birth` | date |  | Patient date of birth, YYYY-MM-DD |\n| `name/first` | string ≤ 35 |  | Patient first name |\n| `name/last` | string ≤ 60 |  | Patient last name or organization name |\n| `address/state` | string ≤ 2 |  | State code |\n| `address/zip-code` | string ≤ 15 |  | Zip code |\n\n**Claim user-defined fields** - `request/claim`\n\n| Element | Type | Req | Description |\n|---|---|---|---|\n| `claim-UDF[@ordinal=\"1\"]` | string ≤ 255 |  | Subscriber client ID + patient dependent code, if not in patient element. |\n| `claim-UDF[@ordinal=\"2\"]` | string ≤ 255 |  | Patient client master ID, if not in patient element. |\n| `claim-UDF[@ordinal=\"3\"]` | string ≤ 5 |  | Payer claim ITS claim indicator, if applicable (Home / Host / Local; null otherwise). |\n| `claim-UDF[@ordinal=\"4\"]` | string ≤ 60 |  | Subscriber plan LOB / client native value. |\n| `claim-UDF[@ordinal=\"5\"]` | string ≤ 60 |  | Subscriber plan product type / client native value. |\n| `claim-UDF[@ordinal=\"6\"]` | string ≤ 255 |  | Payer prior claim ID or payer claim version. |\n| `claim-UDF[@ordinal=\"11\"]` | string ≤ 255 |  | Subscriber group or policy number, if not in account element. |\n| `claim-UDF[@ordinal=\"15\"]` | string ≤ 255 |  | Value provided by Optum, if not in plan element. |\n| `claim-UDF[@ordinal=\"22\"]` | string ≤ 255 |  | Diagnosis codes 1-12, comma delimited. |\n\n**Line (repeat for each line)** - `request/claim/line` (required)\n\n| Element | Type | Req | Description |\n|---|---|---|---|\n| `id` | string ≤ 3 | Yes | Payer line number |\n| `status` | string ≤ 1 |  | Line status: A = active (default), P = profile (analyzed for statistics only, no action taken), D = deleted, X = deny |\n| `procedure-code` | string ≤ 5 | Yes | Line submitted procedure code |\n| `procedure-desc` | string ≤ 80 |  | Line submitted procedure code description. Send the DEX Z-code for the lab test in this field |\n| `modifier[@order=1-4]` | string ≤ 25 |  | Line submitted procedure code modifier. Array position maps to the XML order attribute (1-4). |\n| `units` | number |  | Line submitted units of service (billed units). Whole numbers; fractional values are rounded by the service |\n| `charges` | number | Yes | Line billed amount |\n| `allowed-amount` | number |  | Line allowed amount. For prepay, provide if available (for example, when the claim is being sent after pricing) |\n| `service-date` | date |  | Line service from date, YYYY-MM-DD |\n| `service-through` | date |  | Line service to date, YYYY-MM-DD |\n| `icd-version` | string |  | ICD 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 |\n| `diagnosis[@order=1-4]` | string ≤ 10 |  | Line diagnosis pointer or code. Array position maps to the XML order attribute (1-4) |\n| `place-of-service` | string ≤ 2 |  | Line place of service code |\n| `authorization` | string ≤ 50 |  | Line prior authorization number. Overrides the claim-level number. |\n\n**Line billing provider** - `request/claim/line/provider[@type=\"billing\"]`\n\n| Element | Type | Req | Description |\n|---|---|---|---|\n| `id[@type=\"npi\"]` | string ≤ 10 |  | Billing Provider NPI. |\n| `id[@type=\"tin\"]` | string ≤ 9 |  | Billing Provider TIN. |\n| `address/state` | string ≤ 2 |  | State code |\n| `address/zip-code` | string ≤ 15 |  | Zip code |\n| `name/first` | string ≤ 35 |  | Billing Provider first name |\n| `name/last` | string ≤ 60 |  | Billing Provider last name or organization name |\n\n**Line servicing provider** - `request/claim/line/provider[@type=\"servicing\"]`\n\n| Element | Type | Req | Description |\n|---|---|---|---|\n| `id[@type=\"npi\"]` | string ≤ 10 |  | Line Rendering Provider NPI. |\n| `id[@type=\"tin\"]` | string ≤ 9 |  | Line Rendering Provider TIN. |\n| `id[@type=\"clia\"]` | string ≤ 10 |  | Line CLIA number (lab claims). Overrides the claim-level CLIA number. |\n| `address/state` | string ≤ 2 |  | State code |\n| `address/zip-code` | string ≤ 15 |  | Zip code |\n| `name/first` | string ≤ 35 |  | Line Rendering Provider first name. |\n| `name/last` | string ≤ 60 |  | Line Rendering Provider last name or organization name. |\n\n**Line user-defined fields** - `request/claim/line`\n\n| Element | Type | Req | Description |\n|---|---|---|---|\n| `user-defined[@id=\"7\"]` | string ≤ 50 |  | Subscriber group or policy number. |\n| `user-defined[@id=\"8\"]` | string ≤ 1 |  | Line rendering par indicator (P = Par; N = Non-Par). |\n| `user-defined[@id=\"9\"]` | string ≤ 255 |  | Other editor indicator. |\n| `user-defined[@id=\"10\"]` | string ≤ 1 |  | Payer responsibility sequence (P/null = Primary; S = Secondary; T = Tertiary; U = Unknown). |\n| `user-defined[@id=\"16\"]` | string ≤ 50 |  | Billing provider line control number. |\n| `user-defined[@id=\"17\"]` | string ≤ 10 |  | Line rendering provider NPI. |\n| `user-defined[@id=\"18\"]` | string ≤ 80 |  | Optional. DEX Z-code for the lab test. Not required: send the Z-code in `procedure-desc`. |"}}},"components":{"securitySchemes":{"oauth2":{"type":"oauth2","description":"Client credentials grant against the Optum API gateway.","flows":{"clientCredentials":{"tokenUrl":"https://sandbox-apigw.optum.com/apip/auth/sntl/v1/token","scopes":{}}}}},"requestBodies":{"prepaylabdata":{"description":"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.","required":true,"content":{"application/xml":{"schema":{"type":"string","description":"XML request document (root element `request`).","default":"<request>\n  <environment>live</environment>\n  <enterprise-id>ABCHealthPlan_Lab</enterprise-id>\n  <claim type=\"professional\">\n    <icd-version>10</icd-version>\n    <id>CLM2026120200001</id>\n    <subscriber-id>SUB123456789</subscriber-id>\n    <plan>PLAN01</plan>\n    <account>GRP98765</account>\n    <patient>\n      <id type=\"mrn\">SUB12345678901</id>\n      <id type=\"other\">MASTER0000123</id>\n      <gender>F</gender>\n      <date-of-birth>1980-02-14</date-of-birth>\n      <name>\n        <first>JANE</first>\n        <last>DOE</last>\n      </name>\n      <address>\n        <state>TX</state>\n        <zip-code>75001</zip-code>\n      </address>\n    </patient>\n    <claim-UDF ordinal=\"1\">SUB12345678901</claim-UDF>\n    <claim-UDF ordinal=\"2\">MASTER0000123</claim-UDF>\n    <claim-UDF ordinal=\"3\">Local</claim-UDF>\n    <claim-UDF ordinal=\"4\">COMMERCIAL_PPO</claim-UDF>\n    <claim-UDF ordinal=\"5\">PPO</claim-UDF>\n    <claim-UDF ordinal=\"6\">CLM2026110100099</claim-UDF>\n    <claim-UDF ordinal=\"11\">GRP98765</claim-UDF>\n    <claim-UDF ordinal=\"15\">8000</claim-UDF>\n    <!-- diagnosis codes 1-12, comma delimited -->\n    <claim-UDF ordinal=\"22\">E119,I10,E785,J449,N183,K219,M545,R079,Z794,Z7984,E039,F419</claim-UDF>\n    <line>\n      <id>1</id>\n      <status>A</status>\n      <procedure-code>81479</procedure-code>\n      <!-- DEX Z-code for the lab test -->\n      <procedure-desc>Z1234</procedure-desc>\n      <modifier order=\"1\">90</modifier>\n      <modifier order=\"2\">91</modifier>\n      <modifier order=\"3\">59</modifier>\n      <modifier order=\"4\">QW</modifier>\n      <units>1</units>\n      <charges>450.00</charges>\n      <allowed-amount>0.00</allowed-amount>\n      <service-date>2026-11-20</service-date>\n      <service-through>2026-11-20</service-through>\n      <icd-version>10</icd-version>\n      <diagnosis order=\"1\">E119</diagnosis>\n      <diagnosis order=\"2\">I10</diagnosis>\n      <diagnosis order=\"3\">E785</diagnosis>\n      <diagnosis order=\"4\">J449</diagnosis>\n      <place-of-service>81</place-of-service>\n      <provider type=\"billing\">\n        <id type=\"npi\">1234567893</id>\n        <id type=\"tin\">123456789</id>\n        <address>\n          <state>TX</state>\n          <zip-code>75001</zip-code>\n        </address>\n        <name>\n          <first></first>\n          <last>EXAMPLE LABORATORIES LLC</last>\n        </name>\n      </provider>\n      <provider type=\"servicing\">\n        <id type=\"npi\">1234567893</id>\n        <id type=\"tin\">123456789</id>\n        <id type=\"clia\">45D0123456</id>\n        <address>\n          <state>TX</state>\n          <zip-code>75001</zip-code>\n        </address>\n        <name>\n          <first></first>\n          <last>EXAMPLE LABORATORIES LLC</last>\n        </name>\n      </provider>\n      <user-defined id=\"7\">GRP98765</user-defined>\n      <user-defined id=\"8\">P</user-defined>\n      <user-defined id=\"9\">N</user-defined>\n      <user-defined id=\"10\">P</user-defined>\n      <user-defined id=\"16\">LCN0001</user-defined>\n      <user-defined id=\"17\">1234567893</user-defined>\n      <authorization>PA20261120001</authorization>\n    </line>\n  </claim>\n</request>","example":"<request>\n  <environment>live</environment>\n  <enterprise-id>ABCHealthPlan_Lab</enterprise-id>\n  <claim type=\"professional\">\n    <icd-version>10</icd-version>\n    <id>CLM2026120200001</id>\n    <subscriber-id>SUB123456789</subscriber-id>\n    <plan>PLAN01</plan>\n    <account>GRP98765</account>\n    <patient>\n      <id type=\"mrn\">SUB12345678901</id>\n      <id type=\"other\">MASTER0000123</id>\n      <gender>F</gender>\n      <date-of-birth>1980-02-14</date-of-birth>\n      <name>\n        <first>JANE</first>\n        <last>DOE</last>\n      </name>\n      <address>\n        <state>TX</state>\n        <zip-code>75001</zip-code>\n      </address>\n    </patient>\n    <claim-UDF ordinal=\"1\">SUB12345678901</claim-UDF>\n    <claim-UDF ordinal=\"2\">MASTER0000123</claim-UDF>\n    <claim-UDF ordinal=\"3\">Local</claim-UDF>\n    <claim-UDF ordinal=\"4\">COMMERCIAL_PPO</claim-UDF>\n    <claim-UDF ordinal=\"5\">PPO</claim-UDF>\n    <claim-UDF ordinal=\"6\">CLM2026110100099</claim-UDF>\n    <claim-UDF ordinal=\"11\">GRP98765</claim-UDF>\n    <claim-UDF ordinal=\"15\">8000</claim-UDF>\n    <!-- diagnosis codes 1-12, comma delimited -->\n    <claim-UDF ordinal=\"22\">E119,I10,E785,J449,N183,K219,M545,R079,Z794,Z7984,E039,F419</claim-UDF>\n    <line>\n      <id>1</id>\n      <status>A</status>\n      <procedure-code>81479</procedure-code>\n      <!-- DEX Z-code for the lab test -->\n      <procedure-desc>Z1234</procedure-desc>\n      <modifier order=\"1\">90</modifier>\n      <modifier order=\"2\">91</modifier>\n      <modifier order=\"3\">59</modifier>\n      <modifier order=\"4\">QW</modifier>\n      <units>1</units>\n      <charges>450.00</charges>\n      <allowed-amount>0.00</allowed-amount>\n      <service-date>2026-11-20</service-date>\n      <service-through>2026-11-20</service-through>\n      <icd-version>10</icd-version>\n      <diagnosis order=\"1\">E119</diagnosis>\n      <diagnosis order=\"2\">I10</diagnosis>\n      <diagnosis order=\"3\">E785</diagnosis>\n      <diagnosis order=\"4\">J449</diagnosis>\n      <place-of-service>81</place-of-service>\n      <provider type=\"billing\">\n        <id type=\"npi\">1234567893</id>\n        <id type=\"tin\">123456789</id>\n        <address>\n          <state>TX</state>\n          <zip-code>75001</zip-code>\n        </address>\n        <name>\n          <first></first>\n          <last>EXAMPLE LABORATORIES LLC</last>\n        </name>\n      </provider>\n      <provider type=\"servicing\">\n        <id type=\"npi\">1234567893</id>\n        <id type=\"tin\">123456789</id>\n        <id type=\"clia\">45D0123456</id>\n        <address>\n          <state>TX</state>\n          <zip-code>75001</zip-code>\n        </address>\n        <name>\n          <first></first>\n          <last>EXAMPLE LABORATORIES LLC</last>\n        </name>\n      </provider>\n      <user-defined id=\"7\">GRP98765</user-defined>\n      <user-defined id=\"8\">P</user-defined>\n      <user-defined id=\"9\">N</user-defined>\n      <user-defined id=\"10\">P</user-defined>\n      <user-defined id=\"16\">LCN0001</user-defined>\n      <user-defined id=\"17\">1234567893</user-defined>\n      <authorization>PA20261120001</authorization>\n    </line>\n  </claim>\n</request>"},"example":"<request>\n  <environment>live</environment>\n  <enterprise-id>ABCHealthPlan_Lab</enterprise-id>\n  <claim type=\"professional\">\n    <icd-version>10</icd-version>\n    <id>CLM2026120200001</id>\n    <subscriber-id>SUB123456789</subscriber-id>\n    <plan>PLAN01</plan>\n    <account>GRP98765</account>\n    <patient>\n      <id type=\"mrn\">SUB12345678901</id>\n      <id type=\"other\">MASTER0000123</id>\n      <gender>F</gender>\n      <date-of-birth>1980-02-14</date-of-birth>\n      <name>\n        <first>JANE</first>\n        <last>DOE</last>\n      </name>\n      <address>\n        <state>TX</state>\n        <zip-code>75001</zip-code>\n      </address>\n    </patient>\n    <claim-UDF ordinal=\"1\">SUB12345678901</claim-UDF>\n    <claim-UDF ordinal=\"2\">MASTER0000123</claim-UDF>\n    <claim-UDF ordinal=\"3\">Local</claim-UDF>\n    <claim-UDF ordinal=\"4\">COMMERCIAL_PPO</claim-UDF>\n    <claim-UDF ordinal=\"5\">PPO</claim-UDF>\n    <claim-UDF ordinal=\"6\">CLM2026110100099</claim-UDF>\n    <claim-UDF ordinal=\"11\">GRP98765</claim-UDF>\n    <claim-UDF ordinal=\"15\">8000</claim-UDF>\n    <!-- diagnosis codes 1-12, comma delimited -->\n    <claim-UDF ordinal=\"22\">E119,I10,E785,J449,N183,K219,M545,R079,Z794,Z7984,E039,F419</claim-UDF>\n    <line>\n      <id>1</id>\n      <status>A</status>\n      <procedure-code>81479</procedure-code>\n      <!-- DEX Z-code for the lab test -->\n      <procedure-desc>Z1234</procedure-desc>\n      <modifier order=\"1\">90</modifier>\n      <modifier order=\"2\">91</modifier>\n      <modifier order=\"3\">59</modifier>\n      <modifier order=\"4\">QW</modifier>\n      <units>1</units>\n      <charges>450.00</charges>\n      <allowed-amount>0.00</allowed-amount>\n      <service-date>2026-11-20</service-date>\n      <service-through>2026-11-20</service-through>\n      <icd-version>10</icd-version>\n      <diagnosis order=\"1\">E119</diagnosis>\n      <diagnosis order=\"2\">I10</diagnosis>\n      <diagnosis order=\"3\">E785</diagnosis>\n      <diagnosis order=\"4\">J449</diagnosis>\n      <place-of-service>81</place-of-service>\n      <provider type=\"billing\">\n        <id type=\"npi\">1234567893</id>\n        <id type=\"tin\">123456789</id>\n        <address>\n          <state>TX</state>\n          <zip-code>75001</zip-code>\n        </address>\n        <name>\n          <first></first>\n          <last>EXAMPLE LABORATORIES LLC</last>\n        </name>\n      </provider>\n      <provider type=\"servicing\">\n        <id type=\"npi\">1234567893</id>\n        <id type=\"tin\">123456789</id>\n        <id type=\"clia\">45D0123456</id>\n        <address>\n          <state>TX</state>\n          <zip-code>75001</zip-code>\n        </address>\n        <name>\n          <first></first>\n          <last>EXAMPLE LABORATORIES LLC</last>\n        </name>\n      </provider>\n      <user-defined id=\"7\">GRP98765</user-defined>\n      <user-defined id=\"8\">P</user-defined>\n      <user-defined id=\"9\">N</user-defined>\n      <user-defined id=\"10\">P</user-defined>\n      <user-defined id=\"16\">LCN0001</user-defined>\n      <user-defined id=\"17\">1234567893</user-defined>\n      <authorization>PA20261120001</authorization>\n    </line>\n  </claim>\n</request>"}}}},"responses":{"prepaylabdata":{"description":"Edit results and applied edits for the claim. Also returned (HTTP 200) when edit rules fail or the claim cannot be processed; look for a claim-level flag with mnemonic ERR or DDERR","content":{"application/xml":{"schema":{"$ref":"#/components/schemas/PrepayLabResponse"},"example":"<response>\n  <enterprise-id>ABCHealthPlan_Lab</enterprise-id>\n  <environment>live</environment>\n  <claim type=\"professional\">\n    <icd-version>10</icd-version>\n    <id>CLM2026120200001</id>\n    <subscriber-id>SUB123456789</subscriber-id>\n    <plan>PLAN01</plan>\n    <account>GRP98765</account>\n    <patient>\n      <id type=\"mrn\">SUB12345678901</id>\n      <id type=\"other\">MASTER0000123</id>\n      <gender>F</gender>\n      <date-of-birth>1980-02-14</date-of-birth>\n      <name>\n        <first>JANE</first>\n        <last>DOE</last>\n      </name>\n      <address>\n        <state>TX</state>\n        <zip-code>75001</zip-code>\n      </address>\n    </patient>\n    <claim-UDF ordinal=\"1\">SUB12345678901</claim-UDF>\n    <claim-UDF ordinal=\"2\">MASTER0000123</claim-UDF>\n    <claim-UDF ordinal=\"3\">Local</claim-UDF>\n    <claim-UDF ordinal=\"4\">COMMERCIAL_PPO</claim-UDF>\n    <claim-UDF ordinal=\"5\">PPO</claim-UDF>\n    <claim-UDF ordinal=\"6\">CLM2026110100099</claim-UDF>\n    <claim-UDF ordinal=\"11\">GRP98765</claim-UDF>\n    <claim-UDF ordinal=\"15\">8000</claim-UDF>\n    <claim-UDF ordinal=\"22\">E119,I10,E785,J449,N183,K219,M545,R079,Z794,Z7984,E039,F419</claim-UDF>\n    <line>\n      <id>1</id>\n      <status>A</status>\n      <procedure-code>81479</procedure-code>\n      <procedure-desc>Z1234</procedure-desc>\n      <modifier order=\"1\">90</modifier>\n      <modifier order=\"2\">91</modifier>\n      <modifier order=\"3\">59</modifier>\n      <modifier order=\"4\">QW</modifier>\n      <units>1</units>\n      <charges>450.00</charges>\n      <allowed-amount>0.00</allowed-amount>\n      <service-date>2026-11-20</service-date>\n      <service-through>2026-11-20</service-through>\n      <icd-version>10</icd-version>\n      <diagnosis order=\"1\">E119</diagnosis>\n      <diagnosis order=\"2\">I10</diagnosis>\n      <diagnosis order=\"3\">E785</diagnosis>\n      <diagnosis order=\"4\">J449</diagnosis>\n      <place-of-service>81</place-of-service>\n      <provider type=\"billing\">\n        <id type=\"npi\">1234567893</id>\n        <id type=\"tin\">123456789</id>\n        <address>\n          <state>TX</state>\n          <zip-code>75001</zip-code>\n        </address>\n        <name>\n          <first></first>\n          <last>EXAMPLE LABORATORIES LLC</last>\n        </name>\n      </provider>\n      <provider type=\"servicing\">\n        <id type=\"npi\">1234567893</id>\n        <id type=\"tin\">123456789</id>\n        <id type=\"clia\">45D0123456</id>\n        <address>\n          <state>TX</state>\n          <zip-code>75001</zip-code>\n        </address>\n        <name>\n          <first></first>\n          <last>EXAMPLE LABORATORIES LLC</last>\n        </name>\n      </provider>\n      <user-defined id=\"7\">GRP98765</user-defined>\n      <user-defined id=\"8\">P</user-defined>\n      <user-defined id=\"9\">N</user-defined>\n      <user-defined id=\"10\">P</user-defined>\n      <user-defined id=\"16\">LCN0001</user-defined>\n      <user-defined id=\"17\">1234567893</user-defined>\n      <authorization>PA20261120001</authorization>\n    </line>\n  </claim>\n  <edits>\n    <claim-edits>\n      <id>CLM2026120200001</id>\n    </claim-edits>\n    <line-edits>\n      <id>1</id>\n      <adjusted-units>0</adjusted-units>\n      <adjusted-decimal-units>000</adjusted-decimal-units>\n      <accountable-units>1</accountable-units>\n      <adjusted-charges>0.00</adjusted-charges>\n      <procedure-code>81479</procedure-code>\n        <flag>\n          <id>10002</id>\n          <mnemonic>gNPI</mnemonic>\n          <message>[Pattern 33335] The Z-Code Z1234 requires the NPI to be registered with the DEX Diagnostics Exchange.</message>\n          <error-level>35000</error-level>\n          <action>deny</action>\n          <edit-type>Clinical</edit-type>\n          <pattern>\n            <id>33335</id>\n            <short-name>33335</short-name>\n          </pattern>\n          <msg-parameters>\n            <template>[Pattern 33335] The Z-Code @1@ requires the NPI to be registered with the DEX Diagnostics Exchange.</template>\n            <msg-param context=\"CURRENT\" name=\"Genomics Z-Codes\" order=\"1\" param-type=\"claim field\">Z1234</msg-param>\n          </msg-parameters>\n          <link type=\"flag\">10000</link>\n        </flag>\n    </line-edits>\n  </edits>\n  <applied-edits>\n    <line>\n      <id>1</id>\n      <status>A</status>\n      <procedure-code>81479</procedure-code>\n      <charges>0.00</charges>\n      <adjusted-units>0</adjusted-units>\n      <accountable-units>1</accountable-units>\n      <adjusted-decimal-units>000</adjusted-decimal-units>\n      <service-date>2026-11-20</service-date>\n      <service-through>2026-11-20</service-through>\n      <allowed-amount>0.00</allowed-amount>\n      <non-covered-charges>0.00</non-covered-charges>\n      <modifier>90</modifier>\n      <modifier>91</modifier>\n      <modifier>59</modifier>\n      <modifier>QW</modifier>\n      <ndc-units>0.0</ndc-units>\n      <procedure-desc>Z1234</procedure-desc>\n      <rvu>0.0</rvu>\n      <edit-applied>no</edit-applied>\n      <disposition>Deny</disposition>\n        <flag type=\"disposition\">\n          <mnemonic>gNPI</mnemonic>\n          <message>[Pattern 33335] The Z-Code Z1234 requires the NPI to be registered with the DEX Diagnostics Exchange.</message>\n          <edit-type>Clinical</edit-type>\n        </flag>\n      <diagnosis>E119</diagnosis>\n    </line>\n  </applied-edits>\n</response>"}}}},"schemas":{"PrepayLabClaim":{"type":"object","properties":{"type":{"type":"string","description":"Claim type: professional (default), outpatient or inpatient","enum":["professional","outpatient","inpatient"],"xml":{"attribute":true},"default":"professional"},"icd-version":{"type":"string","description":"ICD 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"},"id":{"type":"string","description":"Payer claim ID (unique health plan claim identifier)","maxLength":50},"subscriber-id":{"type":"string","description":"Subscriber client ID","maxLength":80},"plan":{"type":"string","description":"Plan identifier; value provided by Optum","maxLength":50},"account":{"type":"string","description":"Subscriber group or policy number","maxLength":50},"patient":{"type":"object","properties":{"mrn":{"type":"string","description":"Subscriber client ID + patient dependent code. Serialized as `<id type=\"mrn\">value</id>`.","xml":{"name":"id"},"x-xml-attribute":{"type":"mrn"},"maxLength":256},"other":{"type":"string","description":"Patient client master ID. Serialized as `<id type=\"other\">value</id>`.","maxLength":40,"xml":{"name":"id"},"x-xml-attribute":{"type":"other"}},"gender":{"type":"string","description":"Patient sex: M = Male; F = Female; U = Unknown","maxLength":1,"enum":["M","F","U"]},"date-of-birth":{"type":"string","description":"Patient date of birth, YYYY-MM-DD","format":"date"},"name":{"type":"object","properties":{"first":{"type":"string","description":"Patient first name","maxLength":35},"last":{"type":"string","description":"Patient last name or organization name","maxLength":60}}},"address":{"type":"object","properties":{"state":{"type":"string","description":"State code","maxLength":2},"zip-code":{"type":"string","description":"Zip code","maxLength":15}},"description":"Patient address"}},"description":"Patient","required":["mrn"]},"claim-UDF-1":{"type":"string","description":"Subscriber client ID + patient dependent code, if not in patient element. Serialized as `<claim-UDF ordinal=\"1\">value</claim-UDF>`.","xml":{"name":"claim-UDF"},"x-xml-attribute":{"ordinal":"1"},"maxLength":255},"claim-UDF-2":{"type":"string","description":"Patient client master ID, if not in patient element. Serialized as `<claim-UDF ordinal=\"2\">value</claim-UDF>`.","xml":{"name":"claim-UDF"},"x-xml-attribute":{"ordinal":"2"},"maxLength":255},"claim-UDF-3":{"type":"string","description":"Payer claim ITS claim indicator, if applicable (Home / Host / Local; null otherwise). Serialized as `<claim-UDF ordinal=\"3\">value</claim-UDF>`.","maxLength":5,"xml":{"name":"claim-UDF"},"x-xml-attribute":{"ordinal":"3"}},"claim-UDF-4":{"type":"string","description":"Subscriber plan LOB / client native value. Serialized as `<claim-UDF ordinal=\"4\">value</claim-UDF>`.","maxLength":60,"xml":{"name":"claim-UDF"},"x-xml-attribute":{"ordinal":"4"}},"claim-UDF-5":{"type":"string","description":"Subscriber plan product type / client native value. Serialized as `<claim-UDF ordinal=\"5\">value</claim-UDF>`.","maxLength":60,"xml":{"name":"claim-UDF"},"x-xml-attribute":{"ordinal":"5"}},"claim-UDF-6":{"type":"string","description":"Payer prior claim ID or payer claim version. Serialized as `<claim-UDF ordinal=\"6\">value</claim-UDF>`.","xml":{"name":"claim-UDF"},"x-xml-attribute":{"ordinal":"6"},"maxLength":255},"claim-UDF-11":{"type":"string","description":"Subscriber group or policy number, if not in account element. Serialized as `<claim-UDF ordinal=\"11\">value</claim-UDF>`.","xml":{"name":"claim-UDF"},"x-xml-attribute":{"ordinal":"11"},"maxLength":255},"claim-UDF-15":{"type":"string","description":"Value provided by Optum, if not in plan element. Serialized as `<claim-UDF ordinal=\"15\">value</claim-UDF>`.","xml":{"name":"claim-UDF"},"x-xml-attribute":{"ordinal":"15"},"maxLength":255},"claim-UDF-22":{"type":"string","description":"Diagnosis codes 1-12, comma delimited. Serialized as `<claim-UDF ordinal=\"22\">value</claim-UDF>`.","xml":{"name":"claim-UDF"},"x-xml-attribute":{"ordinal":"22"},"maxLength":255},"line":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Payer line number","maxLength":3},"status":{"type":"string","description":"Line status: A = active (default), P = profile (analyzed for statistics only, no action taken), D = deleted, X = deny","maxLength":1,"enum":["A","P","D","X"],"default":"A"},"procedure-code":{"type":"string","description":"Line submitted procedure code","maxLength":5},"procedure-desc":{"type":"string","description":"Line submitted procedure code description. Send the DEX Z-code for the lab test in this field","maxLength":80},"modifier":{"type":"array","items":{"type":"string","description":"Line submitted procedure code modifier. Array position maps to the XML order attribute (1-4).","maxLength":25},"xml":{"name":"modifier"},"maxItems":4,"description":"Serialized as `<modifier order=\"1\">..</modifier>` through order=\"4\"."},"units":{"type":"number","description":"Line submitted units of service (billed units). Whole numbers; fractional values are rounded by the service"},"charges":{"type":"number","description":"Line billed amount"},"allowed-amount":{"type":"number","description":"Line allowed amount. For prepay, provide if available (for example, when the claim is being sent after pricing)"},"service-date":{"type":"string","description":"Line service from date, YYYY-MM-DD","format":"date"},"service-through":{"type":"string","description":"Line service to date, YYYY-MM-DD","format":"date"},"icd-version":{"type":"string","description":"ICD 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":{"type":"array","items":{"type":"string","description":"Line diagnosis pointer or code. Array position maps to the XML order attribute (1-4)","maxLength":10},"xml":{"name":"diagnosis"},"maxItems":4,"description":"Serialized as `<diagnosis order=\"1\">..</diagnosis>` through order=\"4\""},"place-of-service":{"type":"string","description":"Line place of service code","maxLength":2},"billing-provider":{"type":"object","properties":{"type":{"type":"string","description":"Provider role. Always \"billing\" for this element.","enum":["billing"],"xml":{"attribute":true}},"npi":{"type":"string","description":"Billing Provider NPI. Serialized as `<id type=\"npi\">value</id>`","maxLength":10,"xml":{"name":"id"},"x-xml-attribute":{"type":"npi"}},"tin":{"type":"string","description":"Billing Provider TIN. Serialized as `<id type=\"tin\">value</id>`.","maxLength":9,"xml":{"name":"id"},"x-xml-attribute":{"type":"tin"}},"address":{"type":"object","properties":{"state":{"type":"string","description":"State code","maxLength":2},"zip-code":{"type":"string","description":"Zip code","maxLength":15}},"description":"Address"},"name":{"type":"object","properties":{"first":{"type":"string","description":"Billing Provider first name","maxLength":35},"last":{"type":"string","description":"Billing Provider last name or organization name","maxLength":60}}}},"description":"Billing provider","xml":{"name":"provider"}},"servicing-provider":{"type":"object","properties":{"type":{"type":"string","description":"Provider role. Always \"servicing\" for this element.","enum":["servicing"],"xml":{"attribute":true}},"npi":{"type":"string","description":"Line Rendering Provider NPI. Serialized as `<id type=\"npi\">value</id>`.","maxLength":10,"xml":{"name":"id"},"x-xml-attribute":{"type":"npi"}},"tin":{"type":"string","description":"Line Rendering Provider TIN. Serialized as `<id type=\"tin\">value</id>`.","maxLength":9,"xml":{"name":"id"},"x-xml-attribute":{"type":"tin"}},"clia":{"type":"string","description":"Line CLIA number (lab claims). Overrides the claim-level CLIA number. Serialized as `<id type=\"clia\">value</id>`.","maxLength":10,"xml":{"name":"id"},"x-xml-attribute":{"type":"clia"}},"address":{"type":"object","properties":{"state":{"type":"string","description":"State code","maxLength":2},"zip-code":{"type":"string","description":"Zip code","maxLength":15}},"description":"Address"},"name":{"type":"object","properties":{"first":{"type":"string","description":"Line Rendering Provider first name.","maxLength":35},"last":{"type":"string","description":"Line Rendering Provider last name or organization name.","maxLength":60}}}},"description":"Servicing provider","xml":{"name":"provider"}},"user-defined-7":{"type":"string","description":"Subscriber group or policy number. Serialized as `<user-defined id=\"7\">value</user-defined>`.","maxLength":50,"xml":{"name":"user-defined"},"x-xml-attribute":{"id":"7"}},"user-defined-8":{"type":"string","description":"Line rendering par indicator (P = Par; N = Non-Par). Serialized as `<user-defined id=\"8\">value</user-defined>`.","maxLength":1,"xml":{"name":"user-defined"},"x-xml-attribute":{"id":"8"}},"user-defined-9":{"type":"string","description":"Other editor indicator. Serialized as `<user-defined id=\"9\">value</user-defined>`.","xml":{"name":"user-defined"},"x-xml-attribute":{"id":"9"},"maxLength":255},"user-defined-10":{"type":"string","description":"Payer responsibility sequence (P/null = Primary; S = Secondary; T = Tertiary; U = Unknown). Serialized as `<user-defined id=\"10\">value</user-defined>`.","maxLength":1,"xml":{"name":"user-defined"},"x-xml-attribute":{"id":"10"}},"user-defined-16":{"type":"string","description":"Billing provider line control number. Serialized as `<user-defined id=\"16\">value</user-defined>`.","maxLength":50,"xml":{"name":"user-defined"},"x-xml-attribute":{"id":"16"}},"user-defined-17":{"type":"string","description":"Line rendering provider NPI. Serialized as `<user-defined id=\"17\">value</user-defined>`.","maxLength":10,"xml":{"name":"user-defined"},"x-xml-attribute":{"id":"17"}},"user-defined-18":{"type":"string","description":"Optional. DEX Z-code for the lab test. Not required: send the Z-code in `procedure-desc`. Serialized as `<user-defined id=\"18\">value</user-defined>`.","maxLength":80,"xml":{"name":"user-defined"},"x-xml-attribute":{"id":"18"}},"authorization":{"type":"string","description":"Line prior authorization number. Overrides the claim-level number.","maxLength":50}},"description":"Claim line","required":["id","procedure-code","charges"],"xml":{"name":"line"}},"xml":{"name":"line"},"minItems":1}},"description":"Claim","required":["id","subscriber-id","patient","line"],"xml":{"name":"claim"}},"PrepayLabResponse":{"type":"object","properties":{"enterprise-id":{"type":"string","description":"Enterprise identifier, echoed from the request"},"environment":{"type":"string","description":"Environment the request ran in"},"claim":{"$ref":"#/components/schemas/PrepayLabClaim"},"edits":{"type":"object","properties":{"claim-edits":{"type":"object","properties":{"id":{"type":"string","description":"Payer claim ID"},"flag":{"type":"array","items":{"$ref":"#/components/schemas/EditFlag"},"xml":{"name":"flag"},"description":"Claim-level edit flags. Rule failures and processing errors are returned here, with HTTP 200, as a flag with mnemonic ERR or DDERR and a message describing the problem"}},"description":"Edits that affect the whole claim rather than a single line"},"line-edits":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Payer line number the edits apply to"},"adjusted-units":{"type":"number","description":"Units after edits. 0 means the line is fully denied; between 0 and the submitted units means a partial denial; equal to the submitted units means no adjustment"},"adjusted-decimal-units":{"type":"string","description":"Decimal portion of the adjusted units, as a 3-digit string (for example \"000\")"},"accountable-units":{"type":"number","description":"Recommended units to pay. For a Deny disposition this is the number of denied units; for Pay it is the number of paid units"},"adjusted-charges":{"type":"number","description":"Line charges after edits are applied"},"procedure-code":{"type":"string","description":"Line submitted procedure code"},"flag":{"type":"array","items":{"$ref":"#/components/schemas/EditFlag"},"xml":{"name":"flag"},"description":"Edit flags fired on the line, one element per flag"},"allowed-amount":{"type":"number","description":"Line allowed amount, if sent on the request"},"source-id":{"type":"string","maxLength":25,"description":"Set when the edit service creates an additional line from one you sent (for example when a line is split or its units are transferred). Holds the id of the line you sent"}},"description":"Edits for one line","xml":{"name":"line-edits"}},"xml":{"name":"line-edits"},"description":"Edit results per line"}},"description":"Edits fired for the claim, at claim level and per line"},"applied-edits":{"type":"object","properties":{"line":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Payer line number"},"status":{"type":"string","description":"Line status: A = active, P = profile, D = deleted, X = deny","enum":["A","P","D","X"]},"procedure-code":{"type":"string","description":"Line submitted procedure code"},"charges":{"type":"number","description":"Line charges after edits are applied"},"adjusted-units":{"type":"number","description":"Line units after edits are applied"},"accountable-units":{"type":"number","description":"Recommended units to pay. For a Deny disposition this is the number of denied units; for Pay it is the number of paid units"},"adjusted-decimal-units":{"type":"string","description":"Decimal portion of the adjusted units, as a 3-digit string"},"service-date":{"type":"string","description":"Line service from date","format":"date"},"service-through":{"type":"string","description":"Line service to date","format":"date"},"allowed-amount":{"type":"number","description":"Line allowed amount after edits are applied (the updated claim amount)"},"non-covered-charges":{"type":"number","description":"Line charges not covered after edits are applied"},"modifier":{"type":"array","items":{"type":"string","description":"Line procedure code modifier"},"xml":{"name":"modifier"},"maxItems":4,"description":"Modifiers, one element each. Unlike the request there is no order attribute"},"ndc-units":{"type":"number","description":"NDC units"},"procedure-desc":{"type":"string","description":"Line procedure description (Z-code), echoed from the request"},"rvu":{"type":"number","description":"Relative value units"},"edit-applied":{"type":"string","description":"Whether an edit changed the line: yes or no","enum":["yes","no"]},"disposition":{"type":"string","description":"Line disposition after the edits: Deny, Review or Pay. A type=\"Add\" attribute marks a line added during processing"},"flag":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"Set to \"disposition\" on the flag that drove the line disposition","xml":{"attribute":true}},"mnemonic":{"type":"string","description":"Edit flag mnemonic"},"message":{"type":"string","description":"Edit message text"},"edit-type":{"type":"string","description":"Edit type (for example: Clinical)"}},"description":"Edit flag reflected in the applied line","xml":{"name":"flag"}},"xml":{"name":"flag"},"description":"Edit flags reflected in the applied line"},"diagnosis":{"type":"array","items":{"type":"string","description":"Line diagnosis code"},"xml":{"name":"diagnosis"}},"source-id":{"type":"string","maxLength":25,"description":"Id of the line you sent, when this line was created from it"}},"description":"Line after edits are applied","xml":{"name":"line"}},"xml":{"name":"line"},"description":"Each line with the edits applied: updated amounts, disposition and flags"}},"description":"Claim lines after the edits are applied and the claim amount is updated"}},"description":"Prepay lab response: the claim echoed from the request, the edits that fired, and the lines with edits applied. Elements sent are returned as sent, and the service may add elements from your enterprise configuration (for example claim-UDF 15).","xml":{"name":"response"}},"EditFlag":{"type":"object","properties":{"id":{"type":"string","description":"Edit flag ID","maxLength":25},"mnemonic":{"type":"string","description":"Edit flag mnemonic","maxLength":20},"message":{"type":"string","description":"Edit message text, with parameters substituted","maxLength":2000},"error-level":{"type":"integer","description":"Edit severity. Higher numbers indicate greater severity"},"action":{"type":"string","description":"Recommended action: pay, deny, review or profile (letter case may vary)"},"edit-type":{"type":"string","description":"Edit type. Currently always Clinical"},"pattern":{"type":"object","properties":{"id":{"type":"string","description":"Edit pattern ID"},"short-name":{"type":"string","description":"Edit pattern short name"}},"description":"Edit pattern that fired"},"msg-parameters":{"type":"object","properties":{"template":{"type":"string","description":"Message template; @1@, @2@ ... mark where parameters are substituted"},"msg-param":{"type":"array","items":{"type":"string","description":"Parameter value. Serialized as `<msg-param context=\"CURRENT\" name=\"...\" order=\"1\" param-type=\"claim field\">value</msg-param>`; context, name, order and param-type are XML attributes","x-xml-attribute":{"context":"string","name":"string","order":"integer","param-type":"string"}},"xml":{"name":"msg-param"}}},"description":"Message template and the parameters substituted into it"},"link":{"type":"string","description":"Linked flag ID. Serialized as `<link type=\"flag\">ID</link>`","x-xml-attribute":{"type":"flag"}},"auto-fix":{"type":"string","description":"Suggested correction for the line. Serialized as `<auto-fix type=\"CHANGEPROC\">value</auto-fix>`. type is CHANGEPROC (change the procedure code), ADDPROC (add a procedure code), DELPROC (remove a procedure code), ADDMOD (add a modifier) or DELMOD (remove a modifier)","xml":{"name":"auto-fix"},"x-xml-attribute":{"type":"CHANGEPROC | ADDPROC | DELPROC | ADDMOD | DELMOD"}},"percent":{"type":"number","description":"Percentage of the submitted amount that should be paid. Returned only by edits that reduce payment"},"target-line":{"type":"string","description":"Line that units are transferred to, when the edit moves units between lines","maxLength":25},"vendor-code":{"type":"string","description":"Code mapped for your system, when applicable","maxLength":80},"disclosure":{"type":"object","description":"Rationale and source behind the edit, when available","properties":{"source":{"type":"array","items":{"type":"string"},"xml":{"name":"source"},"description":"Origin of the disclosure text"},"text":{"type":"array","items":{"type":"string"},"xml":{"name":"text"},"description":"Disclosure statement"}}}},"description":"Edit flag fired on the claim or on a line","xml":{"name":"flag"}},"ErrorResponse":{"type":"object","xml":{"name":"response"},"description":"Error returned by the API gateway","properties":{"error":{"type":"object","xml":{"name":"error"},"properties":{"status":{"type":"integer","description":"HTTP status code"},"errorCode":{"type":"string","description":"Short name of the error"},"message":{"type":"string","description":"Description of the error"},"path":{"type":"string","description":"The request path the error relates to"},"timestamp":{"type":"string","format":"date-time","description":"When the error occurred (UTC)"}}}}}}},"x-readme":{"explorer-enabled":true,"proxy-enabled":true}}