Optum Wallet API
What Is the CCG API?β
The Optum Wallet API (CCG API) is a RESTful service for executing payment and wallet operations server-to-server, without the Optum Wallet UI. Most payment operations reference a saved paymentMethodId instead of a raw card number; PCI-scoped operations also support submitting payment method details inline β see API Scopes below.
This page assumes you've already completed Merchant Onboarding and the Direct-to-V2 Integration Steps (prerequisites, credentials, and your integration path). Come back here once that's done to find a specific API operation.
π What do you need?β
- ποΈ Creating a session to launch the widget β Sessions
- π³ Making a payment or refund directly from your server β Choose a Payment Flow
- π Adding, editing, or removing a wallet payment method β Wallet Management
- π Setting up event notifications β Webhooks
- π Getting an OAuth token or checking scopes β Authentication
- β οΈ Looking up an error code β Error Handling
Your Journey Through the APIβ
- AuthenticateGet an OAuth token scoped to your operation β see Authentication.
- Choose your flowLaunching the widget? Create a Session. Calling directly from your server? Go straight to Payments or Wallet Management.
- Make the callExecute the operation β a one-time or recurring payment, a capture, or a wallet change β against the scope it requires.
- Handle the resultPoll the resource's status or listen for Webhooks. If something fails, check Error Handling.
API Scopesβ
Every request must include an OAuth Bearer token scoped to the operation. Use the table below to determine which scope to request:
| Scope | Used For |
|---|---|
merchant | Standard payment and session operations, referencing a saved paymentMethodId |
merchant-wallet-management | Managing customer wallets and payment methods |
merchant-pci | Submitting payment method details inline (one-time-pay, pay-and-save) for CARD or BANK_ACCOUNT |
See Authentication β Scopes, Base URLs & Headers Reference for the exact OAuth scope strings and how to obtain and attach access tokens to requests.
Available APIsβ
In addition to the HCP API Catalog (Financial Package β Commerce subpackage), the following API groups are available:
Sessions
Create and manage checkout sessions that drive the payment lifecycle.
π³Payments
Single, split-tender, ACH, and IIAS payments, refunds, captures, and disputes.
πWallet Management
Add, edit, delete, and search payment methods, including manufacturer cards.
πWebhooks
Event notifications for payment lifecycle changes and status updates.
πAuthentication
OAuth token acquisition, scopes, and request header requirements.
β οΈError Handling
Payment, refund, and session error codes, meanings, and recommended resolutions.