Checking access…

Skip to main content
Version: v2
Audience: Consumers, CCG Platform Engineers

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.
ModeDescription
PAYMENTOne-time payment via card, bank, or digital wallet. Default for guest users.
PAYMENT_WITH_WALLETPay using a saved method from the wallet. Default for signed-in users.
PAYMENT_METHOD_ENTRYAdd a new card or bank account to wallet β€” no payment is processed.
PAYMENT_METHOD_SELECTDisplay and select from saved payment methods β€” no payment is processed.
PAYMENT_METHOD_DISPLAYDisplay a specific payment method for review β€” no changes or payments allowed.
WALLETManage (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:

FieldTypeDefaultDescription
splitTender.enabledbooleanfalse / merchant settingEnables split-tender payment for this session. If omitted, defaults to the merchant's split-tender configuration.
cardCategories[]arraymerchant settingManufacturer-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.preferredLanguageen | esenPreferred display language for the checkout UI.
options.paymentMethodSaveModeALLOW_SAVE | DISABLE_SAVE | AUTO_SAVEALLOW_SAVEControls whether/how a payment method may be saved during checkout.
merchant.namestring (≀80 chars)merchant's onboarded nameCustom merchant display name shown in checkout notifications. Must not contain { } + = * ^ % # ~ \ < > ? | \ [ ]`.
merchant.merchantOriginstring (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.
uiVersionstring (pattern v[1-9]\d*)β€”Pins the UI version used in the hosted/short URL.
privacyPolicyUrlstring (URL)https://www.optum.com/privacy-policy.htmlMerchant privacy policy URL shown to the customer.
senderEmailAddressstring (email)no-reply@ccg.optum.comSender address for checkout-related notification emails.
merchantOrigin is security-relevant

If 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.

Casing on paymentMethodChannel

The 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:

StatusHTTP responseDescription
INITIATED202The session has been initiated and is available for user interaction.
PENDING202The session is pending completion.
COMPLETED200The transaction or requested session flow completed successfully.
FAILED200The transaction or requested session flow failed.
CANCELED200The 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
Internal: Technical Processing Details

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 TitleHTTP StatusCauseAction
INVALID_REQUEST400Missing required field or invalid valueCheck request body against the API Spec
UNAUTHORIZED401Invalid or expired JWT tokenRefresh your token and retry
MERCHANT_NOT_FOUND404X-Merchant-Id does not match an active merchantVerify merchant onboarding is complete
SESSION_TIMEOUT401Session expired before user completed the flowCreate a new session; expired sessions cannot be reused
SESSION_ALREADY_PROCESSED409Session has already reached a terminal stateCreate a new session for the next transaction

API Response Fields​

FieldTypeDescription
sessionIdstringUUID; pass to the embedded widget as checkoutSessionId
hostedUrlstringFull URL; open as a popup for the hosted experience
urlstringSession status polling endpoint