Creating a Visma Nmbrs OAuth 2.0 integration
This guide is part of the Publicus connection catalog. Once you have the credentials, connect the service and Publicus stores them for you.
Distilled from Nmbrs’s own documentation: the developer portal Getting Started page, the partner page (retrieved 2026-12-03), the Authentication reference and the Visma Nmbrs Public REST API reference. Retrieved 2026-08-25.
You end up holding four things, and they come from three different places. Nmbrs’s own checklist lists them: client_id, client_secret, redirect_uri and a subscription_key. The subscription key is the one people forget — it is not part of OAuth, and without it every call fails no matter how valid the token is.
Become a partner and get portal access
Section titled “Become a partner and get portal access”- Complete the partner form (Word partner) on Nmbrs’ developer-platform page; the page is in Dutch. The developer portal still links an older AppStore form, which no longer exists. An Integration Partner Manager then arranges a call. Nmbrs is explicit that the call is not a prerequisite for the following steps, so start them in parallel — and if you are building a private integration with no intention of being listed on the App Store, you may use the API without being featured.
- Sign up to the Nmbrs Developer Portal and confirm you have an active login. This is where the integration is managed.
Get the subscription key
Section titled “Get the subscription key”- In the developer portal, subscribe to a product. This generates the subscription key, and Nmbrs states it “must be used on every API request”.
Get a test environment
Section titled “Get a test environment”- Create a Nmbrs test account by following the portal’s Create a Nmbrs account instructions. You cannot meaningfully exercise the API without one.
Register the application
Section titled “Register the application”- Open the My Integrations tab and add your application. Nmbrs issues a client ID and client secret.
- Register the redirect URI(s) there. At most five may be registered, and the
redirect_uriyou send later must match one of them exactly. For local testing Nmbrs acceptshttp://localhost:8080. - Register separate clients for development and production — Nmbrs expects this: “We expect partners to have separate clientId for development and production.”
Connect a customer
Section titled “Connect a customer”-
Send the customer to the authorization URL with the scopes your integration needs, plus
offline_access:https://identityservice.nmbrs.com/connect/authorize?client_id={client_id}&state={random-per-request}&scope=employee.info.read employee.leave.read company.info.read offline_access&response_type=code&redirect_uri={redirect_uri}Request
offline_accessor you get no refresh token — Nmbrs only returns one if that scope was asked for. -
The customer signs in to Visma Connect and picks a profile on the consent page. Two things to warn them about: only client logins and company logins with visible debtors appear in the profile picker, and consent is one profile per debtor — so a customer with several debtors consents several times. Re-running consent does not lose earlier profiles, but the previously consented ones must be left selected.
-
Exchange the returned
code— valid 5 minutes and single-use — at the token endpoint, authenticating with HTTP Basic:POST /connect/token HTTP/1.1Host: identityservice.nmbrs.comAuthorization: Basic base64(urlencode(client_id) + ":" + urlencode(client_secret))Content-Type: application/x-www-form-urlencodedgrant_type=authorization_code&code={code}&redirect_uri={redirect_uri} -
Store the
refresh_tokencarefully. It lasts 30 days, is single-use, and every exchange returns a new one — losing the newest one means the customer has to consent again.
Call the API
Section titled “Call the API”-
Both headers are mandatory, against
https://api.nmbrsapp.com:Authorization: Bearer {access_token}X-Subscription-Key: {subscription_key}The access token is valid for 1 hour.
If you need to request many scopes
Section titled “If you need to request many scopes”- Nmbrs also supports Pushed Authorization Requests. Instead of putting the parameters in the redirect URL, POST them to
https://identityservice.nmbrs.com/connect/parwith the same Basic authentication and use the returnedrequest_uriin the redirect. It is optional — the discovery document reportsrequire_pushed_authorization_requests: false— and it exists for exactly the case where a long scope list would be truncated or rejected in a browser URL. Therequest_uriis valid for 600 seconds and is single-use. Steps 10 onwards are unchanged.
Telling a customer how to disconnect
Section titled “Telling a customer how to disconnect”- Customers revoke integrations themselves in the App Manager inside their Nmbrs environment. Where a customer consented several profiles, revocation is per client and has to be done for each.
Connect it to Publicus
Section titled “Connect it to Publicus”Open Connections under Credentials, choose Visma Nmbrs, and pick Visma Nmbrs OAuth 2.0 (authorization code). Publicus asks for exactly the fields listed above and keeps them in your workspace’s secret storage.
See also: Visma Nmbrs in the catalog.
This guide is maintained by Publicus and published under CC BY 4.0.