Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Errors

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

    StatusCodeMeaning
    422not_an_approverThe person named in personId does not approve payments in this account.
    404account_not_foundThe bank account does not exist in your account.
    404statement_not_foundThe statement does not exist.
    404transaction_not_foundThe transaction does not exist.
    404match_not_foundThe match does not exist. Every booked transaction has one; a pending transaction has none.
    404open_item_not_foundThe invoice or bill does not exist in the ledger of the company.
    404payment_not_foundThe payment proposal does not exist.
    404batch_not_foundThe payment file does not exist.
    404operation_not_foundNo change was sent with this operationId.
    404company_not_foundThe company does not exist in your account.
    404subscription_not_foundThe subscription does not exist in your account.
    404delivery_not_foundThe delivery does not exist in your account.
    422nothing_to_retryThe delivery is not waiting for another attempt.
    422nothing_parkedThe delivery is not parked.
    422endpoint_not_answeringThe endpoint of the subscription does not answer.
    422statement_duplicateA statement of this account for the same period is already imported.
    422statement_gapThe opening balance of the file is not the closing balance of the last statement of the account.
    422transaction_pendingThe transaction is pending. It is matched once the bank books it.
    422already_matchedThe transaction is already matched. A match that was accepted is final.
    422nothing_to_acceptThe match has no suggestion to accept.
    422invalid_match_stateThe match is not in a state that allows this.
    422transfer_unavailableThe other transaction is already matched, was left, or is not booked yet.
    422open_item_exceededThe invoice or bill does not owe as much as the part you assigned to it.
    422bill_has_proposalThe bill already has a payment proposal that is not rejected by the bank.
    422amount_exceeds_openThe amount is more than the bill still owes.
    422invalid_payment_statusThe payment proposal is not in a status that allows this.
    422self_approvalThe person who prepared a payment proposal does not approve or decline it.
    422insufficient_authorityThe amount needs a higher approval than the approver holds.
    422statement_unbalancedThe opening balance plus the booked lines is not the closing balance of the file.
    422statement_out_of_periodA line is dated outside the period of the statement.
    422statement_duplicate_lineA bank reference appears twice in the file or is already stored for the account.
    422allocation_emptyA split needs at least one part.
    422allocation_mismatchThe parts do not add up to the amount of the transaction, or a part is not a positive amount.
    422allocation_exceeds_lineThe parts are larger than the transaction.
    422allocation_kindA split holds open items and entries. A transfer and a return are matched by their own operations.
    422wrong_sideA credit is matched to invoices you issued and a debit to bills you received.
    422unknown_entryThe entry is not one of the entries of the contract.
    422entry_wrong_sideThe entry does not fit the direction of the transaction.
    422transfer_same_accountBoth transactions are on the same account.
    422transfer_mismatchThe two transactions are not the same amount in opposite directions.
    422bill_not_payableOnly a bill you received can be paid.
    422no_beneficiary_accountThe account of the beneficiary is not on file, so no payment can be prepared.
    422amount_invalidThe amount is not greater than zero.
    422reason_requiredDeclining a proposal needs a reason.
    422batch_emptyThe export names no payment.
    422mixed_accountsThe payments belong to more than one account.

    The full rule: Developer guide