---
title: "Errors | Docs | Treasury by R&D Copilot"
description: "The error object of the Treasury API and the codes that say what went wrong."
canonical: "https://banking.rdcopilot.com/docs/reference/errors/"
language: en
updated: 2026-11-22
---

# Errors

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

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

## The error object

| Field | Meaning |
| --- | --- |
| `code` | A stable code for the cause. Act on this. |
| `message` | A 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. |
| `fields` | On a 400, each field that is wrong and why. Absent otherwise. |
| `requestId` | The 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

| Status | Code | Meaning | Retry |
| --- | --- | --- | --- |
| `400` | `invalid_request` | The 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. |
| `401` | `unauthorized` | The token is missing, expired or not ours. | After you get a new token. |
| `403` | `forbidden` | The token does not give access to this company or operation. | No. |
| `404` | `<thing>_not_found` | The record does not exist for this company. | No. |
| `409` | `revision_conflict` | `expectedRevision` is older than the record. | Read the record again, then send a new operation. |
| `409` | `operation_reused` | This `operationId` was sent before with another body. | No. |
| `422` | A code of the product, such as `blocked_by_checks` | The request is well formed and a rule of the product refuses it. | No. The code says what to change. |
| `429` | `rate_limited` | Too many requests. `Retry-After` gives the seconds. | Yes, after the pause. |
| `503` | `unavailable` | The service cannot answer now. | Yes, with the same `operationId`. |

## Codes of Treasury

| Status | Code | Meaning |
| --- | --- | --- |
| `422` | `not_an_approver` | The person named in `personId` does not approve payments in this account. |
| `404` | `account_not_found` | The bank account does not exist in your account. |
| `404` | `statement_not_found` | The statement does not exist. |
| `404` | `transaction_not_found` | The transaction does not exist. |
| `404` | `match_not_found` | The match does not exist. Every booked transaction has one; a pending transaction has none. |
| `404` | `open_item_not_found` | The invoice or bill does not exist in the ledger of the company. |
| `404` | `payment_not_found` | The payment proposal does not exist. |
| `404` | `batch_not_found` | The payment file does not exist. |
| `404` | `operation_not_found` | No change was sent with this `operationId`. |
| `404` | `company_not_found` | The company does not exist in your account. |
| `404` | `subscription_not_found` | The subscription does not exist in your account. |
| `404` | `delivery_not_found` | The delivery does not exist in your account. |
| `422` | `nothing_to_retry` | The delivery is not waiting for another attempt. |
| `422` | `nothing_parked` | The delivery is not parked. |
| `422` | `endpoint_not_answering` | The endpoint of the subscription does not answer. |
| `422` | `statement_duplicate` | A statement of this account for the same period is already imported. |
| `422` | `statement_gap` | The opening balance of the file is not the closing balance of the last statement of the account. |
| `422` | `transaction_pending` | The transaction is pending. It is matched once the bank books it. |
| `422` | `already_matched` | The transaction is already matched. A match that was accepted is final. |
| `422` | `nothing_to_accept` | The match has no suggestion to accept. |
| `422` | `invalid_match_state` | The match is not in a state that allows this. |
| `422` | `transfer_unavailable` | The other transaction is already matched, was left, or is not booked yet. |
| `422` | `open_item_exceeded` | The invoice or bill does not owe as much as the part you assigned to it. |
| `422` | `bill_has_proposal` | The bill already has a payment proposal that is not rejected by the bank. |
| `422` | `amount_exceeds_open` | The amount is more than the bill still owes. |
| `422` | `invalid_payment_status` | The payment proposal is not in a status that allows this. |
| `422` | `self_approval` | The person who prepared a payment proposal does not approve or decline it. |
| `422` | `insufficient_authority` | The amount needs a higher approval than the approver holds. |
| `422` | `statement_unbalanced` | The opening balance plus the booked lines is not the closing balance of the file. |
| `422` | `statement_out_of_period` | A line is dated outside the period of the statement. |
| `422` | `statement_duplicate_line` | A bank reference appears twice in the file or is already stored for the account. |
| `422` | `allocation_empty` | A split needs at least one part. |
| `422` | `allocation_mismatch` | The parts do not add up to the amount of the transaction, or a part is not a positive amount. |
| `422` | `allocation_exceeds_line` | The parts are larger than the transaction. |
| `422` | `allocation_kind` | A split holds open items and entries. A transfer and a return are matched by their own operations. |
| `422` | `wrong_side` | A credit is matched to invoices you issued and a debit to bills you received. |
| `422` | `unknown_entry` | The entry is not one of the entries of the contract. |
| `422` | `entry_wrong_side` | The entry does not fit the direction of the transaction. |
| `422` | `transfer_same_account` | Both transactions are on the same account. |
| `422` | `transfer_mismatch` | The two transactions are not the same amount in opposite directions. |
| `422` | `bill_not_payable` | Only a bill you received can be paid. |
| `422` | `no_beneficiary_account` | The account of the beneficiary is not on file, so no payment can be prepared. |
| `422` | `amount_invalid` | The amount is not greater than zero. |
| `422` | `reason_required` | Declining a proposal needs a reason. |
| `422` | `batch_empty` | The export names no payment. |
| `422` | `mixed_accounts` | The payments belong to more than one account. |

The full rule: [Developer guide](https://rdcopilot.com/docs/errors/)
