Book an expense
books_record_expenseBook a cost the business paid: account is what it was for (an expense, or an asset like equipment), paid_from where the money came from (default the bank account; a card, cash or the owner's account). paid_by instead (an email) makes it an expense claim, like Xero's: someone paid with their own money and is paid back with books_repay_claims. With a tax, the tax to reclaim is split off (amount includes it unless amount_includes_tax is false). Attach the receipt from the file store. A negative amount is a refund. Costs $0.01 per call; nothing if it fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tax | No | A tax by name (books_get lists them), e.g. "VAT 19%". | |
| date | Yes | YYYY-MM-DD | |
| memo | No | ||
| rate | No | One unit of currency in the base currency, e.g. "0.9241". Default: a standing rate, else the European Central Bank's reference rate for the date. | |
| amount | Yes | e.g. "119.00". | |
| vendor | No | ||
| account | Yes | An account code from the chart, e.g. "6600". | |
| paid_by | No | The email of whoever paid it privately and is paid back: an expense claim. Not with paid_from. | |
| currency | No | 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. | |
| tracking | No | Tracking options by category, e.g. {"Department": "Service"} (books_list_tracking). | |
| paid_from | No | An account code from the chart, e.g. "6600". | |
| reference | No | e.g. the receipt number. | |
| paid_by_name | No | ||
| receipt_file_id | No | A file_id from the file store. | |
| amount_includes_tax | No |