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#
| Term | Meaning |
|---|---|
| JMHZ | Unified Monthly Employer Report – the source of the applicant's income data. |
| MPSV | Ministry of Labour and Social Affairs of the Czech Republic – administrator of JMHZ and operator of the Jenda application. |
| Jenda | The MPSV portal in which the applicant gives consent. |
| Deeplink URL | A URL that shows the consent to the applicant directly on a page in the Jenda portal. |
uuidZadosti | Identifier of the data request at MPSV. The SeP needs it to download the data. |
| MPSV credentials | The SeP's access credentials for the MPSV API. They are shown in the application detail in the Bank iD Developer Portal. |
Flow#
- The applicant logs in with Bank iD and the SeP obtains their
access_token. The auth request must include thejmhzscope 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.) - The SeP calls
GET /profileand obtains the applicant's details. - The SeP calls
POST /public/jmhz/consent-link. Using the applicant's details, Bank iD creates a data request at MPSV and returnsdeeplinkUrl,uuidZadostiandexpiresAt. - The SeP immediately redirects the applicant to
deeplinkUrl. - The applicant gives consent in the Jenda portal.
- The Jenda portal redirects the applicant back to the SeP's
callbackUrland appends thestateparameter. - Using
uuidZadostiand 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
jmhzscope 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:RWandPROD:RWS), - and at the same time holds the contractual role
ADMINin the organization that owns the application.
- has permissions to edit the application configuration and view the application secrets (
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_secretof a production application.
Prerequisites for the call#
The consent-link endpoint can be called only if:
- the application has the
jmhzscope registered and theaccess_tokencontains it, - the SeP has first called
GET /profilefor 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/jsonThe 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"
}| Field | Type | Required | Description |
|---|---|---|---|
state | string, max. 512 characters | YES | SeP value used to link the call to its workflow. Bank iD passes it to MPSV and MPSV returns it unchanged in the callback. |
callbackUrl | string (URL) | YES | Address 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"
}| Field | Type | Description |
|---|---|---|
deeplinkUrl | string (URL) | URL of the consent page in the Jenda application. Redirect the applicant to it without any changes. |
uuidZadosti | string (UUID) | Identifier of the data request. Store it, you need it to download the data. |
expiresAt | string (ISO 8601, UTC) | Deeplink validity: 15 minutes from issue. |
The deeplink is single-use and valid for 15 minutes. Redirect the applicant to
deeplinkUrlimmediately. To open the consent page again, call the endpoint again. The request at MPSV is not created again anduuidZadostistays the same.
Error responses#
| HTTP | error | When |
|---|---|---|
| 400 | invalid_request | state is missing or callbackUrl does not match any JMHZ Redirect URL. |
| 401 | invalid_token | Missing or invalid access_token. |
| 403 | insufficient_scope | The token does not contain the jmhz scope or the application is disabled. |
| 409 | jmhz_not_ready | The request at MPSV is not ready yet. Repeat the call later. |
| 422 | jmhz_bsi_error | The applicant's identity could not be verified or the applicant currently has no ID document available. |
| 422 | jmhz_zadost_error | MPSV rejected the data request. |
| 502 | mpsv_error | Error while communicating with MPSV. |
| 503 | mpsv_unavailable | The 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"
}| Field | Description |
|---|---|
error | Error code from the table above. |
error_description | Error description. Intended for debugging, do not base your application logic on it. |
trace_id | Request 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.
| Situation | What the SeP receives |
|---|---|
| Consent given | Redirect to callbackUrl with the state parameter appended. |
| Applicant closed the page | Nothing. The workflow must account for this. |
| Deeplink expired or already used | The 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-worksDownloading 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:
uuidZadostifrom theconsent-linkresponse,- 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/jsonThe 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#
| Sandbox | Production | |
|---|---|---|
| Communication with MPSV | Simulated, MPSV is not called | Bank iD calls MPSV |
uuidZadosti, jmhzSouhlasId | Selected from a list of test values | Generated by MPSV for the specific applicant |
| Consent page | Mock on the Bank iD side | MPSV Jenda application |
| Applicant on the consent page | Always Jan Testovací Uživatel (1.1.1990) | Logged-in applicant |
| Credit provider on the consent page | Always Bank iD SANDBOX | SeP's organization |
| Data download | Bank iD mock endpoint with static data | MPSV API |
Environment#
| Purpose | Sandbox URL |
|---|---|
| Creating a deeplink | https://oidc.sandbox.bankid.cz/public/jmhz/consent-link |
| Consent page | https://jmhzsandbox.bankid.cz/jmhz-souhlas |
| Sample data | https://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:
deeplinkUrlleads 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.
errorCode | Meaning |
|---|---|
AUTH_CODE_EXPIRED | The deeplink is older than 15 minutes. |
REQUEST_INVALID | Unknown request. |
CONSENT_INVALID | Unknown 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| Parameter | Location | Required | Description |
|---|---|---|---|
uuidZadosti | path | YES | Value from the consent-link response. |
Ocp-Apim-Subscription-Key | header | YES | Must 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"
}| HTTP | errorCode | Meaning |
|---|---|---|
| 404 | REQUEST_INVALID | Unknown uuidZadosti. |
| 404 | CONSENT_NOT_GRANTED | No consent has been given for the request. |
| 500 | INTERNAL_ERROR | Internal error. |