Skip to main content

API keys

API keys authenticate your API requests to Vipps MobilePay.

Key typeDescription
Merchant keysStandard API keys provided to a merchant, allowing access to their sales unit. Used by merchants and sometimes by partners acting on a merchant's behalf.
Partner keysElevated API keys provided to large partners, allowing access to all their merchants' sales units. Used by partners acting on behalf of all their merchants.
Accounting keysSpecialty keys provided to accounting partners, giving them access to the Report API for one of their merchants' sales units.
Merchant-level keysSpecialty keys provided to Donations product users, allowing them to review their donations proceeds.

The key type you need depends on your role:

You will use "normal API keys", or Merchant keys. These are unique for each sales unit.

Getting the API keys

Log in to the business portal and follow these steps:

  1. Click For developers in the sidebar. You should see a list of sales units. Select Test or Production.

  2. Find your sales unit and click Show keys. A panel opens where you can copy each key value.

  3. Also copy the Merchant Serial Number (MSN) — you will need it in API requests.

    Screenshot: API keys panel for sales unit showing four key fields: client_id, client_secret, Ocp-Apim-Subscription-Key (primary), and Ocp-Apim-Subscription-Key (secondary). Each has a Regenerate button. A note explains the primary and secondary keys are interchangeable.

If you accidentally expose your API keys, regenerate them immediately.

For more information, see about the business portal.

Production and test keys

As a merchant, you will need two separate sets of 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

API keys are sensitive information, so handle them carefully:

  • 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 secret manager. If keys can't be moved securely, you can create a portal user for that person and give them basic access to the sales unit.
  • If you accidentally expose your API keys, regenerate them immediately:
  • Update your integrations after regenerating keys so they continue to work.

API key details

The key names you receive depend on which authentication method your key type uses.

Merchant keys and partner keys (standard authentication) include four values:

API Key NameDescriptionFormatExample
client_idClient ID for the sales unit (the "username")GUID00000000-0000-0000-0000-000000000000
client_secretClient secret for the sales unit (the "password")Base64AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==
Ocp-Apim-Subscription-Key (primary)Subscription key for the API productHex00000000000000000000000000000000
Ocp-Apim-Subscription-Key (secondary)Interchangeable with the primary keyHex00000000000000000000000000000000

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

Accounting keys and Donations merchant-level keys (specialized authentication) use only client_id and client_secret — there is no subscription key.

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

The same merchant 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.