Skip to content
Docs

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.

  1. 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.
  2. Sign up to the Nmbrs Developer Portal and confirm you have an active login. This is where the integration is managed.
  1. In the developer portal, subscribe to a product. This generates the subscription key, and Nmbrs states it “must be used on every API request”.
  1. Create a Nmbrs test account by following the portal’s Create a Nmbrs account instructions. You cannot meaningfully exercise the API without one.
  1. Open the My Integrations tab and add your application. Nmbrs issues a client ID and client secret.
  2. Register the redirect URI(s) there. At most five may be registered, and the redirect_uri you send later must match one of them exactly. For local testing Nmbrs accepts http://localhost:8080.
  3. Register separate clients for development and production — Nmbrs expects this: “We expect partners to have separate clientId for development and production.”
  1. 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_access or you get no refresh token — Nmbrs only returns one if that scope was asked for.

  2. 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.

  3. Exchange the returned code — valid 5 minutes and single-use — at the token endpoint, authenticating with HTTP Basic:

    POST /connect/token HTTP/1.1
    Host: identityservice.nmbrs.com
    Authorization: Basic base64(urlencode(client_id) + ":" + urlencode(client_secret))
    Content-Type: application/x-www-form-urlencoded
    grant_type=authorization_code&code={code}&redirect_uri={redirect_uri}
  4. Store the refresh_token carefully. 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.

  1. 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.

  1. Nmbrs also supports Pushed Authorization Requests. Instead of putting the parameters in the redirect URL, POST them to https://identityservice.nmbrs.com/connect/par with the same Basic authentication and use the returned request_uri in the redirect. It is optional — the discovery document reports require_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. The request_uri is valid for 600 seconds and is single-use. Steps 10 onwards are unchanged.
  1. 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.

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.