Skip to main content

API keys

API keys are unique to each sales unit and act as your credentials when authenticating API requests. They are referred to as merchant keys to distinguish them from other key types, such as partner keys.

Who this page is for

This page is for merchants building a direct API integration. If that's not you:

Production and test keys​

As a merchant building a direct integration, you will need two separate sets of API keys — one for testing and one for production. Each set is tied to a specific sales unit and can only be used for that unit. If you have multiple sales units, you will have a separate set of keys for each one.

  • Test environment: Keys are normally available a few minutes after the sales unit is created. See How to create a test sales unit for details.
  • Production environment: Keys are normally available a few days after application, depending on workload and whether we need additional information.
Keep your API keys secret
  • Vipps MobilePay will never ask for your API keys.
  • If you need to share keys with a colleague, always use encrypted email or a secure secrets manager.
  • If you accidentally expose your API keys, regenerate them immediately:
  • Update your integrations after regenerating keys so they continue to work.

Getting the API keys​

You can find your API keys in the business portal. Log in and follow these steps:

  1. Click For developers from the sidebar. (If you don't see this option, ask your administrator to give you Developer access). On the page that opens, you should see a list of sales units. Select Test or Production.
  2. Find your sales unit and click the corresponding Show keys button. A panel will open where you can copy the values of each key.
  3. Take a copy of the Merchant Sales Number (MSN) as well, as part of your API credentials.

API key details​

API Key NameDescriptionFormatExample
client_idClient ID for the sales unit (the "username")GUIDfb492b5e-7907-4d83-bc20-c7fb60ca35de
client_secretClient secret for the sales unit (the "password")Base64Y8Kteew6GE3ZmeycEt6egg==
Ocp-Apim-Subscription-Key (primary)Subscription key for the API productBase640f14ebcab0eb4b29ae0cb90d91b4a84a
Ocp-Apim-Subscription-Key (secondary)Interchangeable with the primary keyBase640f14ebcab0eb4b29ae0cb90d91b4a84a

You use client_id and client_secret with the Access Token API to get an access token for subsequent API requests.

The primary and secondary Ocp-Apim-Subscription-Key values are interchangeable. Having two lets you rotate one without downtime while the other remains active.

The same keys work across all integration types — direct API, mobile apps, point of sale, and plugins.

tip

The Merchant Serial Number (MSN) is not an API key, but you will need it in many API requests. You can find it in the same place as your API keys in the business portal.

Next step​

Once you have your API keys, see Authentication and authorization to learn how to use them to obtain an access token.