Checking access…

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

Authentication β€” Scopes, Base URLs & Headers Reference

Looking up an OAuth scope, base URL, or which headers a request needs. For the token-acquisition walkthrough, see Authorize Your Requests.

OAuth 2.0 Gateway​

GatewayOAuth2 TypeFlow TypeToken URL
gatewayOAuth2clientCredentialshttps://api.uhg.com/oauth2/token

API Base URLs​

EnvironmentBase URL
Non-productionhttps://api-stg.uhg.com/api/financial/commerce/nonprodcheckout/v2
Productionhttps://api.uhg.com/api/financial/commerce/checkout/v2

Use api-stg.uhg.com for non-production API requests. The OAuth token endpoint remains api.uhg.com in both environments.

Available Scopes​

ScopeEnvironmentDescription
https://api.uhg.com/.defaultAllDefault scope assigned to all clients
financial/commerce/checkout:merchantProductionMerchant scope
financial/commerce/checkout:merchant-wallet-managementProductionMerchant wallet management scope
financial/commerce/checkout:merchant-pciProductionMerchant PCI scope
financial/commerce/checkout:userProductionWidget-internal user scope; not for merchant or consumer applications
financial/commerce/nonprodcheckout:merchantNon-productionMerchant scope
financial/commerce/nonprodcheckout:merchant-wallet-managementNon-productionMerchant wallet management scope
financial/commerce/nonprodcheckout:merchant-pciNon-productionMerchant PCI scope
financial/commerce/nonprodcheckout:userNon-productionWidget-internal user scope; not for merchant or consumer applications

What each scope grants​

ScopeGrants
merchantMerchant session and eligible payment lifecycle operations; direct wallet management requires a separate scope
merchant-wallet-managementWallet management only (retrieve, edit, remove payment method) β€” no payment processing
merchant-pciPCI-scoped payment and payment-method setup operations; card setup uses processor-tokenized details
userWidget-internal customer-session operations; not applicable to merchant or consumer applications

Access to merchant-pci may require additional onboarding or PCI compliance verification.

Optum Wallet merchants

merchant-wallet-management and merchant-pci are not granted to Optum Wallet merchants β€” direct merchant-initiated wallet management (outside the customer-facing wallet experience) and raw-PCI payment collection (One-Time Pay, Pay and Save) are CCG-only capabilities. Optum Wallet merchants use the merchant scope.

Headers by Environment and Operation​

HeaderNon-productionProductionWhen to send it
AuthorizationRequiredRequiredEvery authenticated API request
X-Merchant-IdRequiredRequiredMerchant operations
X-Upstream-EnvRequiredOmitNon-production routing only
X-SourceWhen required by the operationWhen required by the operationOperations such as refund creation
Content-TypeRequests with a bodyRequests with a bodyUse the media type required by the request body; omit it for bodyless GET requests

See API Headers for the full header-by-header reference.