Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Errors

    The error object of the Inventory 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 Inventory

    StatusCodeMeaning
    404movement_not_foundThe movement does not exist for this company, is in a location the token does not cover, or is named twice in the command. Check the movementId in the stock card of the item.
    404operation_not_foundNo command was applied under this operationId. A command that was refused leaves no record.
    404event_not_foundThe event does not exist for this company.
    404subscription_not_foundThe subscription does not exist for this company.
    422insufficient_available_stockThe change would leave a balance with less on hand than reserved, or with a negative quantity. Nothing was applied, and no line of the command was. Lower the quantity, wait for stock, or release a reservation with a reversal.
    422quantity_limit_exceededThe change would take a balance above the largest quantity the ledger holds. Nothing was applied. Check the quantity and its unit.
    422movement_already_reversedThe movement already has a reversal, so it cannot be reversed again. The reversal is listed in the stock card with reversesMovementId.
    422invalid_reversalThe movement is itself a reversal, and a reversal cannot be reversed. Record the change again as a new movement.
    422transfer_reversal_needs_both_movementsA transfer is two movements, and a reversal must name both. Send one reversal with both movements of the transfer, each with the revision of its own balance.

    The full rule: Developer guide