Reverse an entry
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.
{
"entry": 57,
"memo": "Booked twice by mistake"
}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
| Name | Type | What it is |
|---|---|---|
entryRequired | integer | The entry number. At least 1. |
date | string | YYYY-MM-DD. Matches ^\d{4}-\d{2}-\d{2}$. |
memo | string | Up to 500 characters. |
The call
Over MCP, call books_reverse_entry on https://api.conecto.chat/mcp/books. Over REST:
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.
| Code | When | What to do |
|---|---|---|
no_books409 | The business keeps no books yet. | Set them up with books_setup (base currency, start date). |
unbalanced400 | The debits and credits do not add up to the same amount. | Make the lines balance. |
before_start409 | The date is before the books start. | Use a later date. |
period_locked409 | The books are locked for that date. | Use a later date, or unlock with books_lock. |
no_rate409 | There is no exchange rate for the currency on that day. | Pass rate, or set a standing rate with books_setup rates. |
rates_loading503 | The day's exchange rates are still loading. | Try again in a few minutes, or pass rate. |
not_found404 | No entry has that number. | Find it with books_list_entries. |
from_invoice409 | The entry was posted from an invoice. | Void the invoice (invoices_void) or record a refund instead. |
from_bill409 | The entry was posted from a supplier bill. | Void the bill (purchasing_void_bill) or record money back instead. |
from_claim409 | The 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_credit409 | The entry booked a prepayment or its refund. | Void the prepayment with invoices_use_credit or purchasing_use_credit (void: true). |
from_assets409 | The 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_reversal409 | The entry is itself a reversal. | Book the original again instead. |
already_reversed409 | The entry is reversed already. | Nothing to do. |
More Bookkeeping tools
All 33 tools- Set up the books
books_setupStarts the business's double-entry books (currency, start date, chart of accounts) or changes their settings.$0.001 a call - Read the books' settings
books_getThe books' settings: currency, start date, fiscal year, locked period, roles, payment accounts, taxes, and what is waiting.Free* - List the chart of accounts
books_list_accountsEvery account with its code, type, role and balance on a day.Free* - Add or change accounts
books_save_accountsAdds accounts or changes them, matched by code: name, type, description, code, role or archived.$0.001 a call - Add or change a tax
books_save_taxAdds or changes a tax rate the books use (VAT, GST, sales tax), matched by name.$0.001 a call - Book an expense
books_record_expenseBooks a cost the business paid, with its tax split off and the receipt attached.$0.01 a call - Book a journal entry
books_record_entryBooks a journal entry of two or more balancing lines, for whatever the other tools do not cover.$0.01 a call - Attach a receipt
books_attach_receiptAttaches a receipt from the file store to an entry that has none.$0.01 a call
Give this to your agent.
Set up Conecto from https://conecto.chat/SKILL.md