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β
| 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 Capabilities for the full 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β
| Status | Description |
|---|---|
ACCEPTED | Session created, initialization in progress |
CREATED | Session ready; widget can be loaded |
COMPLETED | Transaction succeeded (payment processed, method added, etc.) |
FAILED | Transaction failed or an unrecoverable error occurred |
EXPIRED | Session timed out before the user completed the flow |
CANCELED | Session was explicitly canceled |
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 | 410 | Session expired before user completed the flow | Create a new session and retry |
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 |
|---|---|---|
checkoutSessionId | 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 |