Authentication

The UPG API allows several ways of granting access to protected resources. The easiest method for most integrations will be using API Keys. If using API Keys are not an option, the API also allows the usage of OAuth 2.0 token-based access. Two flows are supported: getting a token using client credentials for direct access tokens or using refresh tokens to allow partners access to resources.

Choosing the Right Flow

ScenarioApplicable Flow
Backend service accessing your own dataAPI Keys
Backend service accessing your own data requiring more fine-grained controlClient Credentials
Partner app accessing data on behalf of a merchantRefresh Token

Key Concepts

ConceptDescription
ClientThe service requesting access to protected resources
ApplicationAn application with access to one or multiple scopes
InstallationAn installation of an application granting access to one or multiple scopes
Client CredentialsA Client Id and Client Secret pair belonging to an application
Access TokenA JWT (JSON Web Token) credential used to access protected resources
Refresh TokenA JWT (JSON Web Token) long-lived credential used to obtain new access tokens
ScopeA permission that defines what resources the token can access
API KeyA long-lived credential to access resources without using access tokens