Sessions β Modes, Config & Status Reference
Looking up a session mode, a config field, a status value, or a session error code. For the integration walkthrough, see Create a Session.
Session Modesβ
CCG onlyThis CCG guidance is not exposed in Optum Wallet.
| Mode | Description |
|---|---|
PAYMENT | One-time payment via card, bank, or digital wallet. Default for guest users. |
PAYMENT_WITH_WALLET | Pay using a saved method from the wallet. Default for signed-in users. |
PAYMENT_METHOD_ENTRY | Add a new card or bank account to wallet β no payment is processed. |
PAYMENT_METHOD_SELECT | Display and select from saved payment methods β no payment is processed. |
PAYMENT_METHOD_DISPLAY | Display a specific payment method for review β no changes or payments allowed. |
WALLET | Manage (add/edit/remove) wallet payment methods without processing a payment. |
See Widget Modes for the mode support matrix.
Full Config Object Referenceβ
Beyond modes, paymentMethodChannel, and vendors (covered on Create a Session and Configure Vendors), config supports these additional fields:
| Field | Type | Default | Description |
|---|---|---|---|
splitTender.enabled | boolean | false / merchant setting | Enables split-tender payment for this session. If omitted, defaults to the merchant's split-tender configuration. |
cardCategories[] | array | merchant setting | Manufacturer-card (MF) categories and associated medications for this session. Only used when the Manufacturer Card feature is enabled. If omitted, defaults to the merchant's configured card categories. See Manufacturer Card for the payment-method-level details. |
options.preferredLanguage | en | es | en | Preferred display language for the checkout UI. |
options.paymentMethodSaveMode | ALLOW_SAVE | DISABLE_SAVE | AUTO_SAVE | ALLOW_SAVE | Controls whether/how a payment method may be saved during checkout. |
merchant.name | string (β€80 chars) | merchant's onboarded name | Custom merchant display name shown in checkout notifications. Must not contain { } + = * ^ % # ~ \ < > ? | \ [ ]`. |
merchant.merchantOrigin | string (URL) | β | Origin (scheme, host, port) of the merchant page that opened the session. Required when your authentication strategy is IDP_REQUIRED β used to securely return payment results via postMessage. Omit for other authentication strategies. |
uiVersion | string (pattern v[1-9]\d*) | β | Pins the UI version used in the hosted/short URL. |
privacyPolicyUrl | string (URL) | https://www.optum.com/privacy-policy.html | Merchant privacy policy URL shown to the customer. |
senderEmailAddress | string (email) | no-reply@ccg.optum.com | Sender address for checkout-related notification emails. |
merchantOrigin is security-relevantIf your merchant account uses IDP_REQUIRED authentication, omitting merchant.merchantOrigin breaks the secure postMessage return path for payment results. This isn't just a display setting β verify it's set correctly before going live on an IDP-required account.
paymentMethodChannelThe schema's V2PaymentMethodChannelsRequest properties are CARD / BANK_ACCOUNT. Existing sample requests on Create a Session show lowercase card / bankAccount keys. This needs verification against a live request before being treated as authoritative β if you've confirmed which casing the API actually accepts, flag it so this page can be corrected.
Session Lifecycleβ
For GET /v2/sessions/{sessionId}, the status field and HTTP response are:
| Status | HTTP response | Description |
|---|---|---|
INITIATED | 202 | The session has been initiated and is available for user interaction. |
PENDING | 202 | The session is pending completion. |
COMPLETED | 200 | The transaction or requested session flow completed successfully. |
FAILED | 200 | The transaction or requested session flow failed. |
CANCELED | 200 | The session was canceled before completion. |
An expired session is reported as a SESSION_TIMEOUT error with HTTP status
401, not as an EXPIRED value in status. Expired sessions cannot be reused;
create a new session. See Session Error Codes.
π InternalNot visible in the public site
The checkoutSessionStatus field belongs to a separate schema and has a
different enum, including ACCEPTED and CREATED. Do not treat those values
as statuses returned by GET /v2/sessions/{sessionId}. The internal session
status enum is documented in Engineering Guide β Sessions β Processing.
Polling for Payment Detailsβ
For the request, status handling, and errors, see Look Up a Session.
GET /v2/sessions/{sessionId} returns a payment object when payment details were collected or a payment was created as part of the session (PAYMENT and PAYMENT_WITH_WALLET modes) β you don't need a separate call to the Payments API to read the result.
This payment object has the same shape as the standalone Payments API response, including paymentAllocations[] β one entry per card, present whether the payment was a single-allocation or a split-tender payment. See Payment β Status & Response Reference for the full field definitions, status mapping, and webhook events β the same reference applies whether you reach the payment by polling the session or by polling GET /v2/payments/{paymentId} directly.
Common Error Codesβ
For the full session error reference, see Session Error Codes.
| Error Title | HTTP Status | Cause | Action |
|---|---|---|---|
INVALID_REQUEST | 400 | Missing required field or invalid value | Check request body against the API Spec |
UNAUTHORIZED | 401 | Invalid or expired JWT token | Refresh your token and retry |
MERCHANT_NOT_FOUND | 404 | X-Merchant-Id does not match an active merchant | Verify merchant onboarding is complete |
SESSION_TIMEOUT | 401 | Session expired before user completed the flow | Create a new session; expired sessions cannot be reused |
SESSION_ALREADY_PROCESSED | 409 | Session has already reached a terminal state | Create a new session for the next transaction |
API Response Fieldsβ
| Field | Type | Description |
|---|---|---|
sessionId | string | UUID; pass to the embedded widget as checkoutSessionId |
hostedUrl | string | Full URL; open as a popup for the hosted experience |
url | string | Session status polling endpoint |