Bank iD
Start developing nowDocumentationFAQ

Log in
Register
Bank iD

Bank iD is a digital solution for companies that allows safe client identification and electronic signature.

info@bankid.cz
Navigation

Start developing now Documentation GitHub FAQ UX manual Bank iD

Documents

Terms of use Privacy policy

  1. Documentation
  2. JMHZ

JMHZ – income data from MPSV#

Version: 0.1 updated 27.11.2026

This service is under development. The description reflects the current design and may change, among other things due to changes on the MPSV side.

What the service is for#

When assessing creditworthiness, a consumer credit provider (hereinafter SeP) can use the applicant's income data from the Unified Monthly Employer Report (JMHZ), which is administered by MPSV. To allow this, the applicant must give consent in the MPSV Jenda application.

In this process, Bank iD acts as an integrator:

  • it registers the SeP's application with MPSV,
  • it creates a data request for the applicant at MPSV,
  • it verifies the applicant with MPSV and obtains a one-time verification code for the consent, so the applicant does not have to log in again in the Jenda portal,
  • it returns a ready-to-use deeplink URL to the consent page to the SeP.

After consent is given, the SeP downloads the income data directly from the MPSV API.

You will be able to try the integration first in the Sandbox, which simulates the communication with MPSV. (Currently not available)

Glossary#

TermMeaning
JMHZUnified Monthly Employer Report – the source of the applicant's income data.
MPSVMinistry of Labour and Social Affairs of the Czech Republic – administrator of JMHZ and operator of the Jenda application.
JendaThe MPSV portal in which the applicant gives consent.
Deeplink URLA URL that shows the consent to the applicant directly on a page in the Jenda portal.
uuidZadostiIdentifier of the data request at MPSV. The SeP needs it to download the data.
MPSV credentialsThe SeP's access credentials for the MPSV API. They are shown in the application detail in the Bank iD Developer Portal.

Flow#

jmhz_prubeh_en.png

  1. The applicant logs in with Bank iD and the SeP obtains their access_token. The auth request must include the jmhz scope and the profile scopes for first name, last name and ID documents. (If the user currently has no ID document available, the service cannot be provided.)
  2. The SeP calls GET /profile and obtains the applicant's details.
  3. The SeP calls POST /public/jmhz/consent-link. Using the applicant's details, Bank iD creates a data request at MPSV and returns deeplinkUrl, uuidZadosti and expiresAt.
  4. The SeP immediately redirects the applicant to deeplinkUrl.
  5. The applicant gives consent in the Jenda portal.
  6. The Jenda portal redirects the applicant back to the SeP's callbackUrl and appends the state parameter.
  7. Using uuidZadosti and its MPSV credentials, the SeP downloads the data directly from the MPSV API.

Developer Portal settings#

1. Registering the organization with MPSV#

The SeP's organization must be registered with MPSV. Bank iD handles the registration directly from the Developer Portal.

  • The registration form opens automatically when the jmhz scope is added to an application for the first time.
  • First name, last name, e-mail and company ID number (IČO) are prefilled from the logged-in user and the organization. Only the e-mail used for the registration can be changed.
  • The registration can be performed by a user who:
    • has permissions to edit the application configuration and view the application secrets (APL:RW and PROD:RWS),
    • and at the same time holds the contractual role ADMIN in the organization that owns the application.

After a successful registration, the portal shows the confirmation "Organization is registered with MPSV" with the following details:

  • company ID number (IČO) of the organization,
  • registration date,
  • who performed the registration and with which e-mail,
  • MPSV credentials.

The same details then remain visible in the application overview (see MPSV credentials). The registration is done once per organization.

Warning: any subsequent manipulation of the credentials in the portal may cause the service to stop working and requires manual intervention by Bank iD.

2. Adding the jmhz scope#

Add the jmhz scope in the application settings, the same way as other scopes (see How to get started, section Application settings).

Besides jmhz, the application needs the following scopes from /profile, which return these applicant details:

  • first name and last name (profile.name),
  • ID document number and type (profile.idcards).

3. JMHZ Redirect URL#

Once the jmhz scope is added, the application settings show a JMHZ – MPSV settings section with the mandatory parameter JMHZ Redirect URL. This is the address the applicant returns to from the Jenda portal.

When consent-link is called, Bank iD checks that the callbackUrl from the request matches one of the registered JMHZ Redirect URLs. Otherwise the call is rejected with the error 400 invalid_request.

4. MPSV credentials#

After the organization is registered, the Credentials tab in the application detail shows an MPSV JMHZ block with the access credentials for the MPSV API. The SeP uses them to call the data download endpoint.

  • The block is visible only to users with permission to view the application secret (APL:RWS).
  • The secret is hidden and is shown only after clicking Show secret.

Warning: Protect the MPSV credentials the same way as the client_secret of a production application.

Prerequisites for the call#

The consent-link endpoint can be called only if:

  1. the application has the jmhz scope registered and the access_token contains it,
  2. the SeP has first called GET /profile for the given applicant (see API Overview – Profile API).

Using the applicant's details, Bank iD creates a data request at MPSV in the background. If the SeP calls consent-link before the NIA and MPSV query is ready, it receives 409 jmhz_not_ready. Repeat the call after a short pause (we recommend 3 seconds).

API: Creating a deeplink#

POST /public/jmhz/consent-link
Host: oidc.bankid.cz
Authorization: Bearer <access_token>
Content-Type: application/json

The endpoint uses the same security as the Profile API: the applicant's access_token obtained in the Bank iD authorization flow.

Request#

{
  "state": "bank-id-works",
  "callbackUrl": "https://sep.example.cz/callback?authorizationId=abc123"
}
FieldTypeRequiredDescription
statestring, max. 512 charactersYESSeP value used to link the call to its workflow. Bank iD passes it to MPSV and MPSV returns it unchanged in the callback.
callbackUrlstring (URL)YESAddress the applicant returns to after giving consent. It must match one of the JMHZ Redirect URLs registered in the application.

Response 200 OK#

{
  "deeplinkUrl": "https://jenda.mpsv.cz/jmhz-souhlas?jmhzSouhlasId=7e8e8409-8e76-4fdf-a108-533f8b10f0ff&authCode=BANKBSI-…&callbackUrl=https%3A%2F%2Fsep.example.cz%2Fcallback%3FauthorizationId%3Dabc123",
  "uuidZadosti": "7e8e8409-8e76-4fdf-a108-533f8b10f0ff",
  "expiresAt": "2026-11-09T07:16:53Z"
}
FieldTypeDescription
deeplinkUrlstring (URL)URL of the consent page in the Jenda application. Redirect the applicant to it without any changes.
uuidZadostistring (UUID)Identifier of the data request. Store it, you need it to download the data.
expiresAtstring (ISO 8601, UTC)Deeplink validity: 15 minutes from issue.

The deeplink is single-use and valid for 15 minutes. Redirect the applicant to deeplinkUrl immediately. To open the consent page again, call the endpoint again. The request at MPSV is not created again and uuidZadosti stays the same.

Error responses#

HTTPerrorWhen
400invalid_requeststate is missing or callbackUrl does not match any JMHZ Redirect URL.
401invalid_tokenMissing or invalid access_token.
403insufficient_scopeThe token does not contain the jmhz scope or the application is disabled.
409jmhz_not_readyThe request at MPSV is not ready yet. Repeat the call later.
422jmhz_bsi_errorThe applicant's identity could not be verified or the applicant currently has no ID document available.
422jmhz_zadost_errorMPSV rejected the data request.
502mpsv_errorError while communicating with MPSV.
503mpsv_unavailableThe MPSV service is temporarily unavailable.

The error response body has the same format as in the Profile API (application/json):

{
  "error": "insufficient_scope",
  "error_description": "Access token does not contain scope jmhz",
  "trace_id": "6978cbb3ac59fa00843e40d606228857"
}
FieldDescription
errorError code from the table above.
error_descriptionError description. Intended for debugging, do not base your application logic on it.
trace_idRequest identifier. Include it when contacting support.

Consent and callback#

In the Jenda portal, the applicant sees whom they are granting access to and which data, and confirms the consent. The consent cannot be declined; the applicant can only close the page.

SituationWhat the SeP receives
Consent givenRedirect to callbackUrl with the state parameter appended.
Applicant closed the pageNothing. The workflow must account for this.
Deeplink expired or already usedThe Jenda portal shows an error (page not found), no callback is sent.
callbackUrl:  https://sep.example.cz/callback?authorizationId=abc123
redirect:     https://sep.example.cz/callback?authorizationId=abc123&state=bank-id-works

Downloading data from MPSV#

The SeP downloads the data directly from the MPSV API; Bank iD does not act as an intermediary. For the call, use:

  • uuidZadosti from the consent-link response,
  • the MPSV credentials from the Developer Portal.
GET /jmhz/psu-b2b-reference/api/v1/data/{uuidZadosti}
Host: b2b.mpsv.cz
Ocp-Apim-Subscription-Key: <MPSV credentials>
Accept: application/json

The response structure is described in the MPSV documentation at developers.mpsv.cz. A sample response is available in the Sandbox – Downloading sample data section.

Sandbox#

The JMHZ Sandbox is not available yet

The Sandbox simulates the communication with MPSV. It is intended for developing and testing the integration before connecting to MPSV. It does not return real data of any citizen and is free of charge.

This section describes only how the Sandbox differs from production. The Developer Portal settings and the API are the same as in the previous sections.

Differences from production#

SandboxProduction
Communication with MPSVSimulated, MPSV is not calledBank iD calls MPSV
uuidZadosti, jmhzSouhlasIdSelected from a list of test valuesGenerated by MPSV for the specific applicant
Consent pageMock on the Bank iD sideMPSV Jenda application
Applicant on the consent pageAlways Jan Testovací Uživatel (1.1.1990)Logged-in applicant
Credit provider on the consent pageAlways Bank iD SANDBOXSeP's organization
Data downloadBank iD mock endpoint with static dataMPSV API

Environment#

PurposeSandbox URL
Creating a deeplinkhttps://oidc.sandbox.bankid.cz/public/jmhz/consent-link
Consent pagehttps://jmhzsandbox.bankid.cz/jmhz-souhlas
Sample datahttps://jmhzsandbox.bankid.cz/api/v1/data/{uuidZadosti}

Creating a deeplink in the Sandbox#

The request and response are the same as in production (see API: Creating a deeplink), including the jmhz scope requirement and the prior GET /profile call. Differences:

  • deeplinkUrl leads to the Bank iD mock consent page.

Consent in the Sandbox#

The mock consent page checks the deeplink parameters and shows the consent with static details.

Success: after confirmation, the page shows "Consent has been given" and redirects the applicant to callbackUrl.

Error: the page shows an error page and does not redirect the applicant to callbackUrl. The Jenda application behaves the same way in production.

The error page shows:

  • the error code (errorCode) and its description,
  • the error ID (a unique identifier of the occurrence),
  • date and time,
  • application version,
  • path (the URL where the error occurred).

The Copy information button copies these details, for example for reporting to support.

errorCodeMeaning
AUTH_CODE_EXPIREDThe deeplink is older than 15 minutes.
REQUEST_INVALIDUnknown request.
CONSENT_INVALIDUnknown consent (jmhzSouhlasId).

Downloading sample data#

Instead of the MPSV API, the SeP calls a Bank iD mock endpoint with the same response structure.

GET /api/v1/data/{uuidZadosti}
Host: jmhzsandbox.bankid.cz
Ocp-Apim-Subscription-Key: <any value>
Accept: application/json
ParameterLocationRequiredDescription
uuidZadostipathYESValue from the consent-link response.
Ocp-Apim-Subscription-KeyheaderYESMust be present. In the Sandbox environment its value is not validated. In production, use your MPSV credentials.

Response 200 OK#

{
  "uuidZadosti": "661aeeda-dfd3-409d-999a-e477f959b9f8",
  "datumSouhlasu": "2026-11-09",
  "mesicniZaznamy": [
    {
      "obdobiRok": "2026",
      "obdobiMesic": "10",
      "idPPV": "SANDBOX-PPV-0001",
      "zamestnavatel": {
        "typ": "PO",
        "nazev": "Sandbox Stavby s.r.o.",
        "ico": "12345678",
        "statIco": "CZ"
      },
      "datumNastupu": "2021-03-01",
      "datumSkonceni": null,
      "zuctovanyPrijemCelkem": 52000,
      "cistyPrijem": 40100,
      "mzdaZaPraciZuctovana": 48000,
      "tarifniMzdy": 45000,
      "premieOdmenyPravidelne": 3000,
      "premieOdmenyNepravidelne": 1000,
      "nahradyDPN": 0
    }
  ]
}

Error responses#

{
  "timestamp": "2026-11-09T07:21:03.589Z",
  "status": 404,
  "error": "Not Found",
  "path": "/api/v1/data/dc20d30d-70d3-4d02-a7a2-998cc6fdce58",
  "errorCode": "REQUEST_INVALID"
}
HTTPerrorCodeMeaning
404REQUEST_INVALIDUnknown uuidZadosti.
404CONSENT_NOT_GRANTEDNo consent has been given for the request.
500INTERNAL_ERRORInternal error.
Docs
How to get started with Bank iD
Highlevel Overview
API Overview
Code Examples
JMHZ
JMHZ – income data from MPSVWhat the service is forGlossaryFlowDeveloper Portal settingsPrerequisites for the callAPI: Creating a deeplinkConsent and callbackDownloading data from MPSVSandbox
Security
Mobile Applications
Support
API
Bank iD APIs for SeP
SeP APIs for Bank iD
Bank docs
Overview for Banks
Bank APIs
Security
Error callbacks
Bank API
IDP APIs for Bank iD
Bank iD APIs for IDP