BillingEngine
v0.3.0Invoices, customers, payments and revenue figures of BillingEngine from any MCP client.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
find_customers Find customers
Lists customers, optionally filtered by a search text that matches company, names and email.
| Parameter | Type | Description |
|---|---|---|
external_id | string | Find the customer with this identifier from another system |
page | integer | Page of the list, starting at 1 |
query | string |
create_customer Create a customer
Creates a customer. Needs a company or a last name and a full address (line 1, postal code, city, country).
| Parameter | Type | Description |
|---|---|---|
address * | object | |
buyer_reference | string | Leitweg-ID or buyer reference for e-invoices |
company | string | |
customer_type | string | Business or consumer; it decides the default interest and the late payment flat fee on reminders. Without it the account default applies |
email | string | |
external_id | string | Identifier of the customer in another system, unique per account |
first_name | string | |
last_name | string | |
phone | string | |
salutation | string | How the letters address the customer |
title | string | Academic or professional title such as Dr. |
vat_number | string |
update_customer Update a customer
Changes the given fields of a customer; fields that are left out stay as they are.
| Parameter | Type | Description |
|---|---|---|
id * | integer | |
address | object | |
buyer_reference | string | Leitweg-ID or buyer reference for e-invoices |
company | string | |
customer_type | string | Business or consumer; it decides the default interest and the late payment flat fee on reminders. Without it the account default applies |
email | string | |
external_id | string | Identifier of the customer in another system, unique per account |
first_name | string | |
last_name | string | |
phone | string | |
salutation | string | How the letters address the customer |
title | string | Academic or professional title such as Dr. |
vat_number | string |
create_invoice Create a draft invoice
Creates a draft invoice for a customer. Number, language, texts and VAT treatment come from the account settings. The invoice is not sent; it counts towards the monthly invoice maximum of the plan.
| Parameter | Type | Description |
|---|---|---|
customer_id * | integer | |
items * | array | |
closing_text | string | Text below the items, defaults to the account's text |
date | string | Invoice date, defaults to today |
due_days | integer | Days until payment is due |
external_id | string | Identifier of the invoice in another system; a second invoice with the same one is refused |
opening_text | string | Text above the items, defaults to the account's text. Do not put the purchase order number here, use purchase_order_number |
purchase_order_number | string | Purchase order number of the customer, printed on the invoice and sent in the e-invoice |
service_period_end_date | string | |
service_period_start_date | string |
update_invoice Update a draft invoice
Changes a draft invoice. Passing items replaces all existing items, so send the complete list. Sent invoices cannot be changed.
| Parameter | Type | Description |
|---|---|---|
id * | integer | |
closing_text | string | Text below the items, defaults to the account's text |
date | string | Invoice date, defaults to today |
due_days | integer | Days until payment is due |
external_id | string | Identifier of the invoice in another system; a second invoice with the same one is refused |
items | array | |
opening_text | string | Text above the items, defaults to the account's text. Do not put the purchase order number here, use purchase_order_number |
purchase_order_number | string | Purchase order number of the customer, printed on the invoice and sent in the e-invoice |
service_period_end_date | string | |
service_period_start_date | string |
list_invoices List invoices
Lists invoices, newest first. Status: draft, open (sent and unpaid), overdue (open and past due), paid, uncollectible, cancelled or cancellation (a credit note that cancels an invoice, once sent). Type: invoice or credit_note.
| Parameter | Type | Description |
|---|---|---|
after | string | Invoice date from |
before | string | Invoice date until |
customer_id | integer | |
external_id | string | Find the invoice with this identifier from another system |
number | string | |
page | integer | Page of the list, starting at 1 |
per_page | integer | |
status | string | |
type | string |
get_invoice Get an invoice
Returns one invoice with its items, tax breakdown, amounts and status. Amounts are decimal strings such as "119.00".
| Parameter | Type | Description |
|---|---|---|
id * | integer |
download_invoice Download an invoice file
Saves the PDF or the XML e-invoice of an invoice on this computer and returns the file path. Defaults to the Downloads folder.
| Parameter | Type | Description |
|---|---|---|
id * | integer | |
directory | string | Target folder, defaults to ~/Downloads |
format | string |
record_payment Record a payment
Records a payment for one or more sent, open invoices of the same customer and tax rate. The amount is gross.
| Parameter | Type | Description |
|---|---|---|
amount * | number | Gross amount received |
invoice_ids * | array | |
date | string | Defaults to today |
external_id | string | Identifier of the payment in another system |
payment_method | string | Defaults to transfer |
list_payments List payments
Lists recorded payments, newest first, optionally only those for one invoice.
| Parameter | Type | Description |
|---|---|---|
invoice_id | integer | |
page | integer | Page of the list, starting at 1 |
get_profits Get income, expenses and profit
Money received (payments and cash revenues), expenses, depreciations and profit per period and in total, net and gross, as on the dashboard. In the current year the interval year counts the depreciations of the whole year, month and quarter only up to and including the current one.
| Parameter | Type | Description |
|---|---|---|
after | string | First day of the range, defaults to 1 January of the current year, or of the year of an earlier before |
before | string | Last day of the range, defaults to 31 December of the current year, or of the year of a later after |
interval | string | Length of the periods, defaults to month. The range is widened to whole periods |
get_invoiced_revenue Get invoiced revenue
Sent invoices by invoice date per period and in total, net and gross. Drafts and cancelled invoices are left out.
| Parameter | Type | Description |
|---|---|---|
after | string | First day of the range, defaults to 1 January of the current year, or of the year of an earlier before |
before | string | Last day of the range, defaults to 31 December of the current year, or of the year of a later after |
interval | string | Length of the periods, defaults to month. The range is widened to whole periods |
get_open_amounts Get open amounts
What is open today, what of it is overdue and what of that a reminder was sent for, net and gross.
get_vat_balance Get the VAT balance
Output tax, input tax and balance. Without a range it covers the current period of the VAT return; give both after and before or neither, at most ten years apart. If unassigned_bookings is above 0, say that the balance leaves them out and that the tax report in BillingEngine lists them.
| Parameter | Type | Description |
|---|---|---|
after | string | First day of the range |
before | string | Last day of the range |
get_article_sales Get sales per article
Quantity and amount invoiced per article in a range, largest first, with the total.
| Parameter | Type | Description |
|---|---|---|
after | string | First day of the range, defaults to 1 January of the current year, or of the year of an earlier before |
before | string | Last day of the range, defaults to 31 December of the current year, or of the year of a later after |
page | integer | Page of the list, starting at 1 |
per_page | integer | Use 5 for a top five |