Attach a receipt
Attaches a receipt from the file store to an entry that has none.
$0.01 a call
From your agent’s balance. A call that fails costs nothing.
An example
Here's the receipt for entry 61, the printer cartridges. Attach it.
Your agent callsbooks_attach_receipt$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": 61,
"file_id": "9a7b2c4d-1e3f-4a5b-8c6d-0e1f2a3b4c5d"
}Use it when
A receipt turned up after the cost was booked.
What it does
Attach a receipt or invoice from the file store to an entry that has none. It stays with the books: the file can't be deleted while the entry has it.
What comes back
The entry with its receipt. Every reply also carries cost_usd and balance_usd.
Inputs
| Name | Type | What it is |
|---|---|---|
entryRequired | integer | The entry number. At least 1. |
file_idRequired | string | A file_id from the file store. Exactly 36 characters. |
The call
Over MCP, call books_attach_receipt on https://api.conecto.chat/mcp/books. Over REST:
curl -X POST https://api.conecto.chat/v1/tools/books_attach_receipt \
-H "Authorization: Bearer $CONECTO_KEY" \
-H "Content-Type: application/json" \
-d '{"entry":61,"file_id":"9a7b2c4d-1e3f-4a5b-8c6d-0e1f2a3b4c5d"}'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). |
not_found404 | No entry has that number, or the file is not in the store. | Check the entry with books_list_entries and the file with files_list. |
has_receipt409 | The entry has a receipt already. | Leave it, or reverse the entry and book it again. |
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 - Reverse an entry
books_reverse_entryUndoes an entry by booking its mirror image; entries are never edited or deleted.$0.01 a call
Give this to your agent.
Set up Conecto from https://conecto.chat/SKILL.md