Payroll API
v1 Guides MK Get started

Payroll API

Errors

Every error is application/problem+json (RFC 9457):

{
  "type": "https://developer.merot.com/payroll/errors#validation_failed",
  "title": "Validation failed",
  "status": 422,
  "detail": "grossSalary or targetNet is required.",
  "instance": "req_01J9Z6M2N3P4Q5R6S7T8U9V0",
  "code": "validation_failed",
  "errors": [
    { "path": "grossSalary", "message": "grossSalary or targetNet required" }
  ]
}

instance is the request id; include it when contacting support.

Codes

CodeStatusMeaning
unauthenticated401Missing or invalid API key.
key_revoked401The API key has been revoked.
company_required400X-Company-Id is required (the key has more than one employer company).
validation_failed422Field-level validation errors — most commonly a missing grossSalary/targetNet, or a malformed decimal string.
mpin_validation_failed422A МПИН file-generation call found blocking issues; the response lists them, or pass force: true to generate anyway.
rate_limited429Too many requests — see Rate limits.
not_found404No such resource for this company (e.g. an unknown country/rate key).