Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Errors

    The error object of the HR API and the codes that say what went wrong.

    On this page

    An error is an HTTP status and a JSON object whose code never changes its meaning.

    The error object

    FieldMeaning
    codeA stable code for the cause. Act on this.
    messageA sentence to read in your logs. It can change, so do not show it to the people who use your software and do not match on it.
    fieldsOn a 400, each field that is wrong and why. Absent otherwise.
    requestIdThe identifier of this request. Quote it when you ask us for help.

    Every answer, an error or not, carries the header X-RDC-Request-Id with the same value as requestId.

    Codes every product shares

    StatusCodeMeaningRetry
    400invalid_requestThe request cannot be read or breaks the contract: malformed JSON, a missing or unknown field, a wrong type. fields names each one.No. Fix the request.
    401unauthorizedThe token is missing, expired or not ours.After you get a new token.
    403forbiddenThe token does not give access to this company or operation.No.
    404<thing>_not_foundThe record does not exist for this company.No.
    409revision_conflictexpectedRevision is older than the record.Read the record again, then send a new operation.
    409operation_reusedThis operationId was sent before with another body.No.
    422A code of the product, such as blocked_by_checksThe request is well formed and a rule of the product refuses it.No. The code says what to change.
    429rate_limitedToo many requests. Retry-After gives the seconds.Yes, after the pause.
    503unavailableThe service cannot answer now.Yes, with the same operationId.

    Codes of HR

    StatusCodeMeaning
    404employee_not_foundThe person does not exist.
    404leave_request_not_foundThe leave request does not exist.
    404step_not_foundThe step is not one of the steps of the onboarding checklist.
    404manager_not_foundThe manager is not a person of your account.
    404department_not_foundThe department is not one of the departments of your account.
    404workplace_not_foundThe workplace is not one of the workplaces of your account.
    404onboarding_not_foundThe person has no onboarding checklist. Every hire made through the API has one.
    404document_not_foundThe document does not exist.
    404operation_not_foundNo change was recorded under this operationId.
    404event_not_foundThe event does not exist, or it has not been delivered to a subscription yet.
    404subscription_not_foundThe subscription does not exist in your account.
    422not_approverThe person named in actorId is neither the approver of the request nor the HR lead.
    422not_allowedThe person named in actorId may not cancel this request, or may not issue documents. Only the person, the approver or the HR lead cancels a request; only the HR lead issues a document.
    422own_requestThe person named in actorId is the person who made the request.
    422not_step_ownerThe person named in actorId is neither the owner of the step nor the HR lead.
    422external_id_takenAnother person already has this externalId.
    422not_startedThe first day of work of the person is later than the day of the request.
    422employment_endedThe person has a last day, or has left. Their periods of employment do not change any more, and no document is issued after the last day.
    422not_after_currentThe effectiveFrom is on or before the first day of the period that runs. Earlier periods are not rewritten.
    422already_offboardingThe person already has a last day.
    422leave_after_last_dayA pending or approved request ends after the last day. Cancel it first.
    422before_startThe leave starts before the person's first day of work.
    422after_last_dayThe leave ends after the person's last day of work.
    422leave_overlapsA pending or approved request of the same person covers some of these days.
    422over_balanceThe request counts more working days than the balance of annual leave. It is refused when it is made and again when it is approved.
    422not_pendingThe request was already decided.
    422request_closedThe request is rejected or cancelled and does not change any more.
    422leave_startedAn approved leave is cancelled only before its first day.
    422step_blockedA step that this one waits for is not done. blockedBy of the checklist names it.
    422step_doneThe step is already done.
    422step_not_doneThe step is not done, so there is nothing to reopen.
    422step_has_dependentsA step that waits for this one is done. Reopen it first.
    422name_requiredThe name is empty, or longer than 120 characters.
    422job_requiredThe job is empty, or longer than 120 characters.
    422reason_requiredThe reason is empty, or longer than 280 characters.
    422note_not_validThe note is empty, or longer than 280 characters.
    422kind_not_validThe kind is not one of the values of the operation.
    422date_not_validA day is not a real day, or the last day is before the first.
    422date_in_the_pastThe leave starts before today. Only medical leave is entered for days that are gone, and a hire starts today or later.
    422outside_calendarThe days are outside the period the calendar of your account is complete for (getCalendar).
    422no_working_daysThe days of the request are all weekend days or public holidays, so nothing would be taken.
    422not_a_working_dayThe startDate is a weekend day or a public holiday.
    422salary_not_validThe grossSalary is not a decimal string greater than zero.
    422contract_not_validA fixed-term contract has a contractEnd after its first day, and an indefinite one has none.
    422no_changeThe fields sent are the ones the period already has.
    422same_personThe manager is the person themselves.

    The full rule: Developer guide