Skip to content

Register OAuth 2.0 Application

Register an OAuth application to integrate with SumUp and generate client credentials for OAuth-authenticated requests. See OAuth2 authorization flows for details on obtaining access tokens for protected API resources.

This guide covers registering a client application and obtaining credentials through these steps:

  1. Log in to your account
  2. Create an OAuth application
  3. Generate client credentials
  4. Access client credentials

Log in to your SumUp account. Log in to your SumUp account. Account name (First name + last name) replaces the Log in button in the top-right corner.

  1. Navigate to Account > Settings > For Developers > OAuth2 Apps. This page allows you to create and edit OAuth applications.

  2. Click on Create application to define your application.

    Create OAuth App screen
    Create OAuth App screen

    Describe your application and provide its homepage. Click Register application to complete.

    Edit details by clicking the application. Update initial data and add optional items like logo, Terms & Conditions, and Privacy Policy URLs.

  3. Under Scopes, specify the authorization scopes for your app. Scopes represent the access rights of the app once consent is granted by the user.

    Edit OAuth App screen
    Edit OAuth App screen

    The app requests user consent to access their data in line with the scopes granted here. For detailed information, see OAuth2 Authorization Code Flow.

On the OAuth2 Apps page, click on a registered application. Go to the Client credentials tab.

Click on Create client secret to open the following form:

Create new OAuth App credentials form
Create new OAuth App credentials form

Provide the following details:

NameRequiredDescription
Client nameYesA descriptive name for your client application.
Application typeYesType: Web, Android, iOS, or Other.
Authorized redirect URLYesRedirect URL for post-authentication. When merchant users authenticate with SumUp and authorize your client app to access their account data, they are redirected to this path in your application. You can add multiple URLs; separate with a comma.
Authorized JavaScript OriginNoThe origin URI of your client application. SumUp allows Cross-Origin Resource Sharing (CORS) across various domains from the browser and is available for type web applications only. The value allows your client application to request resources from SumUp servers.

Click Save to generate the client credentials. In the Client secrets section, you will see an entry with the name, application type, and client ID of each generated credential.

Once created, credentials appear in the Client credentials section of your OAuth application’s settings (see screenshot).

OAuth client credentials section
OAuth client credentials section

Use the download button to access a JSON file with the full client credential details for the current application. Below you can see an example:

{
"id": "CCCFAXYD",
"name": "SA web client",
"client_id": "fOcmczrYtYMJ7Li5GjMLLcUeC9dN",
"client_secret": "717bd571b54297494cd7a79b491e8f2c1da6189c4cc2d3481380e8366eef539c",
"application_type": "web",
"redirect_uris": ["https://sample-app.example.com/callback"]
}

You have registered a client application and downloaded OAuth client credentials.

You can now use one of the OAuth2 authorization flows to obtain an access token and start making payments with either a payment card entered by a customer or with a token for a recurring payment.