ABM Prepay API Endpoint Connectivity Guide
Connectivity specifics for the LAB and DME Prepay API endpoints
Introduction
The ABM Prepay APIs let you send a claim to Optum Ancillary Benefit Management (ABM) before payment and receive the clinical-editing and pricing-related results in the same call. There are two dedicated endpoints: one for laboratory (LAB) claims and one for durable medical equipment (DME) claims.
Both are lightweight, stateless, HTTP-based web services. They accept Optum Claim XML (XMLv2) and return the result in real time (synchronously).
This guide provides the technical details you need to:
- Set up authentication
- Call the endpoints
- Format requests
- Read responses and handle errors
Field-level definitions for each endpoint are on the endpoint pages of the Developer portal from Optum AI Marketplace (PrePay Lab API Endpoint and PrePay DME API Endpoint). Data dictionaries and other implementation-specific artifacts, with more detailed requirements for data formats, fields and usage, are provided through the Optum Sales and Implementation process.
It is critical that data submissions are accurate and compliant with all requirements. Inaccurate or low-quality data can delay implementation, disrupt product operations, prevent fulfillment of contractual obligations, and reduce the value of the product.
PHI and PII. Data submissions may contain personally identifiable information (PII) and protected health information (PHI). Handle them in accordance with applicable HIPAA requirements, contractual obligations and Optum security policies.
At a glance
| LAB | DME | |
|---|---|---|
| Resource path | abm/prepaylab/v1 | abm/prepaydme/v1 |
| HTTP method | POST | POST |
| Request and response format | XML (XMLv2) | XML (XMLv2) |
| Claim types | As listed on the endpoint page (professional, outpatient, inpatient) | professional |
| DEX Z-code / procedure description | The DEX Z-code is sent in line procedure-desc | Line user-defined id 18 carries the procedure code description |
applied-edits in the response | Returned, with the updated line amounts and disposition | Always returned empty. Use edits |
enterprise-id | Assigned by Optum per client | Assigned by Optum per client |
Getting started
What you need before your first call
| Item | Where it comes from |
|---|---|
| Client ID and client secret | Provided by Optum during onboarding. Sandbox and Production use different client credentials |
enterprise-id | Provided by Optum. It identifies your configuration and is required in every request. Your enterprise-id is the same in Sandbox and Production |
| Network access to the API gateway | Allowlist the Optum API Gateway hostnames (see API access and firewall) |
| Data dictionary and data requirements | Provided through the Optum Sales and Implementation process |
Integration flow
- Request an access token using your client ID and client secret.
- Send the claim as an XML
POSTto the LAB or DME endpoint, with the token in theAuthorizationheader. - Check the HTTP status code.
- Read the edit results in the response. A
200status means the request was processed, not that the claim passed every edit. See Understanding the response. - Reuse the token for later calls until it is close to expiring.
API endpoint structure
- Base URL
- Production:
https://apigw.optum.com - Sandbox:
https://sandbox-apigw.optum.com
- Production:
- Resource path
- LAB:
abm/prepaylab/<version> - DME:
abm/prepaydme/<version>
- LAB:
- Methods supported:
POST
Example, submitting a claim in the sandbox:
POST https://sandbox-apigw.optum.com/abm/prepaydme/v1
POST https://sandbox-apigw.optum.com/abm/prepaylab/v1
API environments and endpoint details
APIs are available in multiple environments to support development, testing and production use. Each environment has its own base URL. Use the correct endpoint and the correct token URL for the environment you are calling.
Environment overview
- Development: Used by the Optum development team for initial integration, debugging and validation. It is accessible only from the Optum network and is not available for client integration.
- Sandbox: Lets you run quality assurance, user acceptance testing and validation before going live.
- Production: The live setting for real-world transactions, where data integrity and security are paramount.
Endpoints
| Environment | API | URL |
|---|---|---|
| Sandbox | DME | https://sandbox-apigw.optum.com/abm/prepaydme/v1 |
| Production | DME | https://apigw.optum.com/abm/prepaydme/v1 |
| Sandbox | LAB | https://sandbox-apigw.optum.com/abm/prepaylab/v1 |
| Production | LAB | https://apigw.optum.com/abm/prepaylab/v1 |
Token URLs
| Environment | URL |
|---|---|
| Sandbox | https://sandbox-apigw.optum.com/apip/auth/sntl/v1/token |
| Production | https://apigw.optum.com/apip/auth/sntl/v1/token |
API access and firewall
The Sandbox and Production endpoints above are available for external client integration. You may need to allowlist the following Optum API Gateway hostnames, and their resolved IP addresses, in accordance with your organization's network-security requirements:
sandbox-apigw.optum.comapigw.optum.com
Authentication and security
Access to the API requires authentication. The ABM Prepay APIs use Sentinel with OAuth 2.0 (client credentials).
Authentication workflow
- Request an access token from the authorization server, using the client ID and client secret provided during onboarding. Sandbox and Production use different client credentials, so use the credentials for the environment you are calling.
- Include the token in the
Authorizationheader of every API call. - The gateway validates the token on each request and rejects unauthorized access.
Request a token
curl --request POST 'https://sandbox-apigw.optum.com/apip/auth/sntl/v1/token' \
--header 'accept: application/json' \
--header 'content-type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'client_id=YOUR_CLIENT_ID' \
--data-urlencode 'client_secret=YOUR_CLIENT_SECRET'
Response:
{
"access_token": "<access_token>",
"expires_in": 7200,
"refresh_expires_in": 0,
"token_type": "Bearer"
}
Use the token
Authorization: Bearer <access_token>
Token lifetime and caching
- The access token expires after two hours (
expires_inis in seconds). - No refresh token is issued (
refresh_expires_inis0). When the token is close to expiring, request a new one with your client credentials. - Cache the token securely and reuse it across calls. Do not request a new token for every API call.
- Keep your client secret out of source control, logs and client-side code.
Making a request
ABM Prepay API requests must be submitted using Optum Claim XML (XMLv2).
HTTP headers
| Header | Value | Required |
|---|---|---|
Content-Type | application/xml | Yes |
Accept | application/xml | Yes |
Authorization | Bearer <access_token> | Yes |
Request structure
Each request is one XML document with the root element <request>. It contains one claim, with one or more lines.
| Element | Description |
|---|---|
environment | Send test when you are testing, otherwise live. The same rule applies in Sandbox and Production. live is assumed if the element is not sent |
enterprise-id | Your enterprise identifier, provided by Optum |
claim | The claim, including the patient, claim-level fields and one or more line elements |
Format conventions
- Dates use the format
YYYY-MM-DD. - Send amounts and units as numbers with a period as the decimal separator, for example
450.00. - Send XML encoded as UTF-8.
- Elements that carry an attribute plus a value (for example
<id type="npi">,<claim-UDF ordinal="4">,<user-defined id="18">,<modifier order="1">) must include the attribute. - Optional elements with no value can be omitted or sent empty.
- Respect the maximum field lengths shown on the endpoint pages.
Required elements
The endpoint specification requires the following elements. Edit results also depend on the rest of the data you send (for example provider identifiers, dates of service, units and diagnoses), so send everything your data dictionary calls for.
| Element | Notes |
|---|---|
enterprise-id | |
claim/id | Your claim identifier |
claim/subscriber-id | |
claim/patient/id with type="mrn" | |
claim/line/id | Your line number |
claim/line/procedure-code | |
claim/line/charges |
Example call
curl --request POST 'https://sandbox-apigw.optum.com/abm/prepaylab/v1' \
--header 'accept: application/xml' \
--header 'content-type: application/xml' \
--header 'authorization: Bearer YOUR_ACCESS_TOKEN' \
--data @lab_claim.xml
Use https://sandbox-apigw.optum.com/abm/prepaydme/v1 for DME claims. All values in the examples below are made up.
LAB request example
The DEX Z-code is sent in the line procedure-desc.
<request>
<sender-id></sender-id>
<environment>live</environment>
<batch-id>batch122344</batch-id> --Only If Applicable
<enterprise-id>LABClient_PE</enterprise-id>
<claim type="professional">
<id>TEST123</id>
<account>241160</account>
<plan>PLAN</plan>
<subscriber-id>SUB123456</subscriber-id>
<claim-UDF ordinal="1">8216668510</claim-UDF>
<claim-UDF ordinal="2">103276678</claim-UDF>
<claim-UDF ordinal="3">0</claim-UDF>
<claim-UDF ordinal="4">COMMERCIAL</claim-UDF>
<claim-UDF ordinal="11">241160</claim-UDF>
<claim-UDF ordinal="12">N</claim-UDF>
<claim-UDF ordinal="14">N</claim-UDF>
<claim-UDF ordinal="15">1234</claim-UDF>
<claim-UDF ordinal="20">999999999</claim-UDF>
<claim-UDF ordinal="21">1234567890</claim-UDF>
<electronic-indicator>Y</electronic-indicator>
<icd-version>ICD10</icd-version>
<patient>
<address>
<city>Philadelphia</city>
<state>PA</state>
<zip-code>19151</zip-code>
</address>
<date-of-birth>2022-12-18</date-of-birth>
<gender>F</gender>
<id type="mrn">8216668510</id>
<name>
<first>John</first>
<last>Doe</last>
</name>
</patient>
<line>
<id>1</id>
<status>A</status>
<units>1</units>
<charges>41.2</charges>
<procedure-code>0011U</procedure-code>
<procedure-desc>Z1234</procedure-desc>
<service-date>2026-11-20</service-date>
<service-through>2026-11-20</service-through>
<place-of-service>81</place-of-service>
<diagnosis>E559</diagnosis>
<diagnosis>I10</diagnosis>
<user-defined id="8">Y</user-defined>
<user-defined id="9">1</user-defined>
<user-defined id="10">N</user-defined>
<user-defined id="16">1</user-defined>
<user-defined id="17">1234567890</user-defined>
<provider type="billing">
<specialty>99</specialty>
<name>
<last>Lab Corp</last>
</name>
<address>
<city>Camden</city>
<state>NJ</state>
<zip-code>08030</zip-code>
<address>PO Box 2240</address>
</address>
<id>1234567890</id>
<id type="tin">999999999</id>
<id type="npi">1234567890</id>
</provider>
<line-note>
<note>COMPREHEN METABOLIC PANEL</note>
</line-note>
</line>
</claim>
</request>
DME request example
<request>
<environment>live</environment>
<enterprise-id>ABCHealthPlan_DME_Professional</enterprise-id>
<claim type="professional">
<icd-version>10</icd-version>
<id>CLM2026120200001</id>
<subscriber-id>SUB123456789</subscriber-id>
<plan>PLAN01</plan>
<account>GRP98765</account>
<patient>
<id type="mrn">SUB12345678901</id>
<gender>M</gender>
<date-of-birth>1985-04-12</date-of-birth>
<name>
<first>JOHN</first>
<last>DOE</last>
</name>
</patient>
<claim-UDF ordinal="17">ABCHealthPlan</claim-UDF>
<claim-UDF ordinal="22">R339,N319,K592</claim-UDF>
<line>
<id>1</id>
<status>A</status>
<procedure-code>A4351</procedure-code>
<modifier order="1">KX</modifier>
<units>10</units>
<charges>676.50</charges>
<allowed-amount>0.00</allowed-amount>
<service-date>2026-11-01</service-date>
<service-through>2026-11-30</service-through>
<diagnosis order="1">1</diagnosis>
<diagnosis order="2">2</diagnosis>
<diagnosis order="3">3</diagnosis>
<place-of-service>12</place-of-service>
<provider type="billing">
<id type="npi">1234567893</id>
<id type="tin">123456789</id>
</provider>
<provider type="servicing">
<id type="npi">1234567893</id>
<id type="tin">123456789</id>
<name>
<first></first>
<last>EXAMPLE MEDICAL SUPPLY LLC</last>
</name>
</provider>
<user-defined id="8">N</user-defined>
<user-defined id="10">P</user-defined>
<user-defined id="18">INTERMIT URIN CATH</user-defined>
</line>
</claim>
</request>
These examples show typical content. The endpoint pages list every field and include a complete request example.
Understanding the response
Responses are returned in real time, in the format requested in the Accept header (XML). Refer to the endpoint pages for the full response specification.
HTTP status and claim outcome are separate
A 200 OK means the API processed the request. It does not mean the claim passed its edits. Read the edit results in the body to find the outcome for each line.
Edit rule failures and processing errors are also returned with 200. They are not API failures. They appear as a claim-level flag with the mnemonic ERR or DDERR and a message describing the problem, for example an unknown enterprise-id or missing claim data:
<edits>
<claim-edits>
<id>CLM2026120200001</id>
<flag>
<id>1</id>
<mnemonic>ERR</mnemonic>
<error-level>0</error-level>
<message>Security ID is not valid or enterprise does not exist</message>
</flag>
</claim-edits>
</edits>
Always check for ERR and DDERR flags before using the other results.
Response structure
| Element | Description |
|---|---|
enterprise-id, environment | Echoed from the request |
claim | The claim echoed from the request. Elements you sent are returned as sent, and the service may add elements from your enterprise configuration |
edits | The edit flags that fired. claim-edits holds claim-level flags. There is one line-edits element per line |
applied-edits | Each line after the edits are applied. LAB: returned, with the updated amounts and disposition. DME: always returned empty (<applied-edits/>) |
Reading the edit flags
Each flag describes one edit that fired on the claim or on a line.
| Element | Meaning |
|---|---|
mnemonic | Short code for the edit. Use it, not the message text, to identify an edit in your code |
message | Human-readable description of the edit |
action | Recommended action: pay, deny, review or profile (letter case may vary) |
error-level | Severity. A higher number means a greater severity |
edit-type | The type of edit (currently Clinical) |
pattern | The edit pattern that fired, when applicable |
auto-fix | A suggested correction for the line, when applicable |
Some flags carry only an id, mnemonic, error-level and message. Do not assume the other elements are present.
For each line in line-edits:
adjusted-units: the units after edits are applied.0means the line is fully denied, a value between0and the submitted units means a partial denial, and a value equal to the submitted units means no adjustment.accountable-units: the recommended units to pay. For adenyaction it is the number of denied units.adjusted-charges: the charges after edits are applied.
A line can have several flags, so evaluate all of them.
LAB response example
The claim echoed from the request is omitted below.
<response>
<enterprise-id>ABCHealthPlan_Lab</enterprise-id>
<environment>live</environment>
<claim type="professional">
<!-- Claim echoed from the request -->
</claim>
<edits>
<claim-edits>
<id>CLM2026120200001</id>
</claim-edits>
<line-edits>
<id>1</id>
<adjusted-units>0</adjusted-units>
<adjusted-decimal-units>000</adjusted-decimal-units>
<accountable-units>1</accountable-units>
<adjusted-charges>0.00</adjusted-charges>
<procedure-code>81479</procedure-code>
<flag>
<id>10002</id>
<mnemonic>gNPI</mnemonic>
<message>[Pattern 33335] The Z-Code Z1234 requires the NPI to be registered with the DEX Diagnostics Exchange.</message>
<error-level>35000</error-level>
<action>deny</action>
<edit-type>Clinical</edit-type>
<pattern>
<id>33335</id>
<short-name>33335</short-name>
</pattern>
<link type="flag">10000</link>
</flag>
</line-edits>
</edits>
<applied-edits>
<line>
<id>1</id>
<status>A</status>
<procedure-code>81479</procedure-code>
<charges>0.00</charges>
<adjusted-units>0</adjusted-units>
<accountable-units>1</accountable-units>
<allowed-amount>0.00</allowed-amount>
<non-covered-charges>0.00</non-covered-charges>
<disposition>Deny</disposition>
<flag type="disposition">
<mnemonic>gNPI</mnemonic>
<message>[Pattern 33335] The Z-Code Z1234 requires the NPI to be registered with the DEX Diagnostics Exchange.</message>
<edit-type>Clinical</edit-type>
</flag>
</line>
</applied-edits>
</response>
DME response example
<response>
<enterprise-id>ABCHealthPlan_DME_Professional</enterprise-id>
<environment>live</environment>
<claim type="professional">
<!-- Claim echoed from the request -->
</claim>
<edits>
<claim-edits>
<id>CLM2026120200001</id>
</claim-edits>
<line-edits>
<id>1</id>
<adjusted-units>0</adjusted-units>
<adjusted-decimal-units>000</adjusted-decimal-units>
<accountable-units>10</accountable-units>
<adjusted-charges>0.00</adjusted-charges>
<procedure-code>A4351</procedure-code>
<flag>
<id>10002</id>
<mnemonic>dVPX</mnemonic>
<message>[Pattern 71434] CARC 243. Services not authorized by network/primary care providers for procedure code A4351.</message>
<error-level>35000</error-level>
<action>deny</action>
<edit-type>Clinical</edit-type>
<link type="flag">10000</link>
</flag>
</line-edits>
</edits>
<applied-edits/>
</response>
Handling responses in your code
- Do not rely on the order of elements or flags.
- Ignore elements you do not recognize. New elements can be added to responses over time (see Versioning and change management).
- Match on
mnemonic, not on message text, because message wording can change.
Limits and timeouts
| Item | Value |
|---|---|
| Rate limit | Typically 3,000 to 5,000 calls per minute |
| Timeout | 60 seconds by default. The timeout can be configured |
| Payload size | Not enforced. Keep requests reasonably small, under 1 MB |
Your Optum implementation team confirms the limits that apply to your integration. Set your client timeout to at least the API timeout, so that you do not abandon a request that is still being processed.
Status codes
| Code | Meaning | What to do |
|---|---|---|
| 200 OK | The request was processed | Read the edit results. Check for ERR and DDERR flags (see Understanding the response) |
| 400 Bad Request | Invalid input or missing parameters, such as malformed XML | Fix the request. Do not resend it unchanged |
| 401 Unauthorized | Authentication failed. The token is missing, invalid or expired | Request a new token and retry |
| 403 Forbidden | Access denied. The caller does not have permission to access the resource | Confirm with your Optum implementation team that your client has access to this API in this environment |
| 404 Not Found | Resource unavailable | Check the URL, including the environment and version |
| 500 Internal Server Error | Unexpected failure | Contact your Optum implementation team if it continues |
Error handling and troubleshooting
Errors are conveyed through HTTP status codes and, where applicable, descriptive response messages.
Illustrative XML parsing error
HTTP/1.1 400 Bad Request
Content-Type: application/xml
XML Parsing Error: The element type "request" must be terminated by the matching end-tag "</request>".
Error response format
Errors returned by the API gateway, such as 403, use this format:
<response>
<error>
<status>403</status>
<errorCode>Forbidden</errorCode>
<message>You do not have permission to access this resource.</message>
<path>/api/xml</path>
<timestamp>2026-12-02T06:33:46Z</timestamp>
</error>
</response>
| Element | Description |
|---|---|
status | The HTTP status code |
errorCode | Short name of the error |
message | Description of the error |
path | The request path the error relates to |
timestamp | When the error occurred (UTC) |
Common problems
| Symptom | Likely cause | What to do |
|---|---|---|
401 on every call | The token is missing, expired, or from the wrong environment | Request a new token from the token URL that matches the endpoint URL (Sandbox or Production) |
403 | Your client does not have permission to call this API in this environment | Confirm your access with your Optum implementation team |
400 with an XML parsing message | Malformed XML, or a wrong Content-Type | Validate that the XML is well-formed and that Content-Type is application/xml |
200 with an ERR or DDERR flag | The claim could not be processed, for example because of an unknown enterprise-id or missing claim data | Read the flag message and correct the claim data |
| No edit flags on a line you expected to be edited | The data the edit needs was not sent | Check the line against your data dictionary |
Testing in the sandbox
- Use the Sandbox base URL and the Sandbox token URL.
- Use test data only. Do not submit PHI or PII in the sandbox, or in the Try It feature on the endpoint pages.
- Set
environmenttotestfor test claims. - The endpoint pages have a complete request example you can copy into your test client.
Compliance and data security
Data submissions may contain PII and PHI and must be handled in accordance with applicable HIPAA requirements, contractual obligations and Optum security policies.
Key security measures:
- Encryption of data in transit and at rest
- Role-based access control
- Audit logging
- Secure backups
- Regular risk assessments and vulnerability scans
Best practices
- Use HTTPS only.
- Do not log raw PII or PHI in observability platforms such as Splunk.
- Do not put PII or PHI in URLs.
- Store client secrets and access tokens securely.
- Cache and reuse access tokens until they approach expiration, rather than requesting a new token for every API call.
- Build your integration to tolerate new response elements.
Versioning and change management
APIs are versioned to support backward compatibility and smooth transitions.
- The version is part of the endpoint path (for example
/v1). - Optum may add optional request elements and new response elements within a version. Ignore elements you do not recognize.
- Changes that are not backward compatible are released under a new version.
- Optum announces the deprecation of an endpoint in advance.
- This guide keeps a change log (below).
Documentation authority
This guide provides connectivity and integration guidance for the ABM Prepay APIs. The endpoint pages on the Developer portal from Optum AI Marketplace contain the current API specifications and are authoritative for request and response definitions. If information in this guide differs from an endpoint page, the endpoint page takes precedence.
Change log
| Date | Version | Description |
|---|---|---|
| 28-Aug-2025 | 1.0 | Original version |
| 11-Dec-2025 | 1.1 | Updated to include LAB API endpoints |
| 02-Dec-2026 | 1.2 | Updated to include some examples, response description and schema formatting |
© 2026 Optum, Inc. All rights reserved.
This publication is made available with the understanding that the publisher is not engaged in rendering legal or other services that require a professional license. Because the policy of Optum is to make continuous improvements, this guide is subject to change without notice. All attempts are made to ensure that the information presented is correct. If you find an error, please notify an Optum service representative.