Checking access…

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

Authentication β€” Scopes, Base URLs & Headers Reference

When to use this page

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:allProductionFull scope
financial/commerce/checkout:merchantProductionMerchant scope
financial/commerce/checkout:merchant-wallet-managementProductionMerchant wallet management scope
financial/commerce/checkout:merchant-pciProductionMerchant PCI scope
financial/commerce/nonprodcheckout:allNon-productionFull scope
financial/commerce/nonprodcheckout:merchantNon-productionMerchant scope
financial/commerce/nonprodcheckout:merchant-wallet-managementNon-productionMerchant wallet management scope
financial/commerce/nonprodcheckout:merchant-pciNon-productionMerchant PCI 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.