Pay back expense claims
Pays someone back for costs they paid with their own money (expense claims), like Xero's, with a SEPA file when asked.
$0.01 a call
From your agent’s balance. A call that fails costs nothing.
An example
Pay Lena back for her train tickets and the hardware store, and give me the bank file.
Your agent callsbooks_repay_claims$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.
{
"person": "lena.brandt@hansenvoss.example",
"sepa_file": true,
"iban": "DE02 1203 0000 0000 2020 51"
}Use it when
Someone on the team is owed for receipts they paid privately, say at the end of the month.
- For a cost the business paid itself, use
books_record_expense.
What it does
Pay back what someone paid for the business with their own money (expense claims, from books_record_expense with paid_by), like Xero's: all their open claims in one currency, or the claims named, in one entry from paid_from (default the bank account) against Expense claims to repay. sepa_file: true adds a SEPA credit transfer file to their iban, to upload to the bank.
What comes back
repaid: the claims paid back, currency, total, entry: the repayment, and file: the SEPA file with its download link when asked. Every reply also carries cost_usd and balance_usd.
Inputs
| Name | Type | What it is |
|---|---|---|
personRequired | string | Their email, as paid_by had it. 3 to 254 characters. |
claims | array of integers | Only these claims (claim_id). 1 to 200 items. |
currency | string | When it is not the base currency, e.g. "USD". The rate is then rate, a standing rate, or the European Central Bank's for the date. Matches ^[A-Za-z]{3}$. |
date | string | When it was paid. Default today. Matches ^\d{4}-\d{2}-\d{2}$. |
paid_from | string | An account code from the chart, e.g. "6600". 1 to 20 characters. |
reference | string | Up to 140 characters. |
sepa_file | boolean | Default: false. |
iban | string | Up to 42 characters. |
bic | string | Up to 11 characters. |
The call
Over MCP, call books_repay_claims on https://api.conecto.chat/mcp/books. Over REST:
curl -X POST https://api.conecto.chat/v1/tools/books_repay_claims \
-H "Authorization: Bearer $CONECTO_KEY" \
-H "Content-Type: application/json" \
-d '{"person":"lena.brandt@hansenvoss.example","sepa_file":true,"iban":"DE02 1203 0000 0000 2020 51"}'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 account, tax, entry or file of the books has that code, name or id. | Check the codes with books_list_accounts and the taxes with books_get. |
archived409 | The account or tax is archived. | Use another one, or un-archive it with books_save_accounts. |
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 | The person has no claims to repay, or a claim named is not one of theirs. | List them with books_list_claims. |
invalid_input400 | Their claims are in more than one currency, a SEPA file for claims not in euros, or the date is in the future. | Give currency, or fix what the message names. |
nothing_to_repay409 | Their open claims come to nothing or less (money they returned). | Nothing to pay back. |
no_iban409 | For the SEPA file, no iban for the person or none on the bank account. | Pass iban, and add the bank account's with books_save_accounts. |
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