Bookkeeping

Reverse an entry

books_reverse_entry · Changes data · Markdown

Undoes an entry by booking its mirror image; entries are never edited or deleted.

$0.01 a call

From your agent’s balance. A call that fails costs nothing.

An example

Entry 57 was booked twice by mistake. Undo it.

Your agent callsbooks_reverse_entry$0.01 a call

The example business is Hansen & Voss, a restaurant-equipment wholesaler in Hamburg with 60 staff. The reply is the one the tool really gives.

With these arguments
{
  "entry": 57,
  "memo": "Booked twice by mistake"
}
What comes back
{
  "reversal": {
    "entry": 3,
    "date": "2026-10-05",
    "memo": "Booked twice by mistake",
    "reference": "RE 2026-10-5521",
    "party": "Hamburg Energie",
    "source": "reversal",
    "total": "238.00",
    "currency": "EUR",
    "rate": null,
    "lines": [
      {
        "account": "6800",
        "account_name": "Utilities and phone",
        "debit": null,
        "credit": "200.00",
        "description": "Hamburg Energie",
        "tax": "VAT 19%"
      },
      {
        "account": "1300",
        "account_name": "Tax to reclaim",
        "debit": null,
        "credit": "38.00",
        "description": "VAT 19%",
        "tax": "VAT 19%"
      }
    ],
    "reverses": 1,
    "reversed_by": null,
    "receipt_file_id": null,
    "recorded_at": "2026-10-15T14:29:47+00:00",
    "recorded_by": "key 4101 (Pip)"
  },
  "reversed": 1
}

Use it when

An entry was wrong or booked twice.

What it does

Undo an entry by booking its mirror image (entries are never edited or deleted). It is dated like the entry, or today when that period is locked, unless date is given. Bank lines matched to the entry wait to be matched again. Entries posted from invoices follow the invoice: void it, or record a refund.

What comes back

reversal: the new mirror entry; reversed: the entry it undoes. Every reply also carries cost_usd and balance_usd.

Inputs

NameTypeWhat it is
entryRequiredintegerThe entry number. At least 1.
datestringYYYY-MM-DD. Matches ^\d{4}-\d{2}-\d{2}$.
memostringUp to 500 characters.

The call

Over MCP, call books_reverse_entry on https://api.conecto.chat/mcp/books. Over REST:

Terminal
curl -X POST https://api.conecto.chat/v1/tools/books_reverse_entry \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entry":57,"memo":"Booked twice by mistake"}'

When it refuses

A refused call costs nothing and says what to do next.

CodeWhenWhat to do
no_books409The business keeps no books yet.Set them up with books_setup (base currency, start date).
unbalanced400The debits and credits do not add up to the same amount.Make the lines balance.
before_start409The date is before the books start.Use a later date.
period_locked409The books are locked for that date.Use a later date, or unlock with books_lock.
no_rate409There is no exchange rate for the currency on that day.Pass rate, or set a standing rate with books_setup rates.
rates_loading503The day's exchange rates are still loading.Try again in a few minutes, or pass rate.
not_found404No entry has that number.Find it with books_list_entries.
from_invoice409The entry was posted from an invoice.Void the invoice (invoices_void) or record a refund instead.
from_bill409The entry was posted from a supplier bill.Void the bill (purchasing_void_bill) or record money back instead.
from_claim409The entry paid expense claims back, or is a claim already paid back.Record money a person returned as a negative expense with paid_by.
from_credit409The entry booked a prepayment or its refund.Void the prepayment with invoices_use_credit or purchasing_use_credit (void: true).
from_assets409The entry was booked by the asset register: depreciation or a sale.Undo depreciation with books_depreciate undo_after, or a sale with books_dispose_asset undo.
is_reversal409The entry is itself a reversal.Book the original again instead.
already_reversed409The entry is reversed already.Nothing to do.

Give this to your agent.

Set up Conecto from https://conecto.chat/SKILL.md