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

# Errors

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

| Status | Code | Meaning |
| --- | --- | --- |
| `404` | `till_not_found` | The till does not exist in your account. |
| `404` | `business_day_not_found` | The business day does not exist in your account. |
| `404` | `item_not_found` | The catalogue has no item with this code. |
| `404` | `order_not_found` | The order does not exist in your account. |
| `404` | `payment_not_found` | The payment does not exist in your account. |
| `404` | `refund_not_found` | The refund does not exist in your account. |
| `404` | `operation_not_found` | No change was sent with this `operationId`. |
| `404` | `delivery_not_found` | The delivery does not exist in your account. |
| `404` | `subscription_not_found` | The subscription does not exist in your account. |
| `422` | `invalid_status` | The order is not in a status that allows this. |
| `422` | `day_closed` | The business day of the till is closed. Nothing was changed. |
| `422` | `day_open` | The till already has an open business day. |
| `422` | `sale_in_progress` | The till has a sale in progress. A held order resumes only on a till whose current order is empty. |
| `422` | `out_of_stock` | The shelf does not hold the quantity asked for. The check runs when an item is added and again when payment starts. |
| `422` | `payments_taken` | A payment has been taken on the order, so it cannot be voided. |
| `422` | `order_paid` | A paid order cannot be voided. |
| `422` | `reader_busy` | The card reader of the till is working on a payment. |
| `422` | `network_lost` | The till has no network. Card payments, refunds and closing the day need it. |
| `422` | `no_declined_card` | The reader has no declined card to try again. |
| `422` | `no_card_payment` | The reader is not waiting for a card and has no declined card to cancel. |
| `422` | `not_paid` | Only a paid order can be refunded. |
| `422` | `nothing_to_refund` | Every unit of the order has already been returned. |
| `422` | `order_not_posted` | The sale is still in the queue of the till and has not been posted yet. |
| `422` | `insufficient_cash` | The drawer does not hold that much cash. |
| `422` | `open_order` | The till has an order with items that is not finished. A day closes only when no order is in progress. |
| `422` | `held_orders` | An order is on hold. A day closes only when none is. |
| `422` | `queue_not_empty` | Sales are still waiting in the queue of the till. A day closes only when they have been posted. |
| `422` | `unknown_item` | No item of the catalogue has this `sku`. |
| `422` | `unknown_barcode` | No item of the catalogue has this barcode. |
| `422` | `invalid_quantity` | A quantity is a whole number from 1. |
| `422` | `no_such_line` | The order has no line with this `sku`. |
| `422` | `invalid_discount` | A discount is a whole percentage from 0 to 100. |
| `422` | `discount_limit` | The discount is above the limit of the cashier profile. |
| `422` | `unknown_customer` | No customer has this id. |
| `422` | `empty_order` | The order has no lines. |
| `422` | `invalid_amount` | An amount must be greater than zero. |
| `422` | `amount_exceeds_due` | The amount is more than what is still due on the order. |
| `422` | `reason_required` | A refund needs a reason from the list. |
| `422` | `quantity_exceeds_sold` | The refund returns more units than were sold and not yet returned. |
| `422` | `method_not_used` | The customer did not pay by this method. |
| `422` | `exceeds_method` | The refund is more than was paid by this method and not yet returned. |
| `422` | `invalid_movement` | A cash movement needs `in` or `out`, an amount above zero and a reason from the list. |
| `422` | `invalid_count` | The counted cash is zero or more. |
| `422` | `invalid_float` | The opening float is zero or more. |

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