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β
| Gateway | OAuth2 Type | Flow Type | Token URL |
|---|---|---|---|
| gateway | OAuth2 | clientCredentials | https://api.uhg.com/oauth2/token |
API Base URLsβ
| Environment | Base URL |
|---|---|
| Non-production | https://api-stg.uhg.com/api/financial/commerce/nonprodcheckout/v2 |
| Production | https://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β
| Scope | Environment | Description |
|---|---|---|
https://api.uhg.com/.default | All | Default scope assigned to all clients |
financial/commerce/checkout:all | Production | Full scope |
financial/commerce/checkout:merchant | Production | Merchant scope |
financial/commerce/checkout:merchant-wallet-management | Production | Merchant wallet management scope |
financial/commerce/checkout:merchant-pci | Production | Merchant PCI scope |
financial/commerce/nonprodcheckout:all | Non-production | Full scope |
financial/commerce/nonprodcheckout:merchant | Non-production | Merchant scope |
financial/commerce/nonprodcheckout:merchant-wallet-management | Non-production | Merchant wallet management scope |
financial/commerce/nonprodcheckout:merchant-pci | Non-production | Merchant PCI scope |
Headers by Environment and Operationβ
| Header | Non-production | Production | When to send it |
|---|---|---|---|
Authorization | Required | Required | Every authenticated API request |
X-Merchant-Id | Required | Required | Merchant operations |
X-Upstream-Env | Required | Omit | Non-production routing only |
X-Source | When required by the operation | When required by the operation | Operations such as refund creation |
Content-Type | Requests with a body | Requests with a body | Use the media type required by the request body; omit it for bodyless GET requests |
See API Headers for the full header-by-header reference.