FastBill MCP by usefulapi

v1.17.1
io.usefulapi/fastbill Checked 2 days ago Published 1 day ago

Read FastBill customers, invoices, estimates, expenses; create customers, invoices, projects.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

fastbill_list_customers List customers

List customers (name, address, e-mail, VAT id, payment terms and bank details as stored in FastBill). Filter by search term (organization, name, address, zip, e-mail or tags), customer number, country or city. customer.get.

ParameterTypeDescription
citystring
country_codestringISO 3166 alpha-2 country code, e.g. DE.
customer_numberstringExact customer number.
limitintegerResults per call, 1-100 (default 25). Every call counts against FastBill's hourly API quota.
offsetintegerIndex of the first result, from 0 (default 0). Pass the previous reply's next_offset.
termstringSearch term matched against organization, first/last name, address, zip code, e-mail and tags.

fastbill_get_customer Get customer

One customer by FastBill customer id. customer.get with CUSTOMER_ID.

ParameterTypeDescription
customer_id *integerFastBill customer id.

fastbill_list_contacts List contacts

List contact persons of customers (name, position, e-mail, phone). Filter by customer, search term or contact id. contact.get.

ParameterTypeDescription
contact_idintegerOne contact id.
customer_idintegerOnly contacts of this customer id.
customer_numberstring
limitintegerResults per call, 1-100 (default 25). Every call counts against FastBill's hourly API quota.
offsetintegerIndex of the first result, from 0 (default 0). Pass the previous reply's next_offset.
termstringSearch term matched against organization, name, address, zip code, e-mail and tags.

fastbill_list_invoices List invoices

List outgoing invoices, drafts and credit notes with totals, state (draft, unpaid, overdue, paid, canceled), dates and line items. Filter by customer, number, type, date ranges (invoice date, due date, paid date, last update). invoice.get.

ParameterTypeDescription
customer_idinteger
end_datestringInvoices dated up to this day.
end_due_datestringA date, yyyy-mm-dd.
end_lastupdatestringA date, yyyy-mm-dd.
end_paid_datestringA date, yyyy-mm-dd.
invoice_numberstring
limitintegerResults per call, 1-100 (default 25). Every call counts against FastBill's hourly API quota.
offsetintegerIndex of the first result, from 0 (default 0). Pass the previous reply's next_offset.
start_datestringInvoices dated on or after this day.
start_due_datestringA date, yyyy-mm-dd.
start_lastupdatestringChanged on or after this day.
start_paid_datestringA date, yyyy-mm-dd.
typestringoutgoing = finalized invoice, draft, credit = credit note.

fastbill_get_invoice Get invoice

One invoice by FastBill invoice id, with all line items, VAT, payments and the document URL. invoice.get with INVOICE_ID.

ParameterTypeDescription
invoice_id *integerFastBill invoice id.

fastbill_list_recurring_invoices List recurring invoices

List recurring invoice templates (customer, interval data, totals, items). recurring.get.

ParameterTypeDescription
invoice_idintegerOne recurring invoice id.
limitintegerResults per call, 1-100 (default 25). Every call counts against FastBill's hourly API quota.
offsetintegerIndex of the first result, from 0 (default 0). Pass the previous reply's next_offset.

fastbill_list_estimates List estimates

List estimates (quotes) with state (a created, b sent, c negotiation, d accepted, e rejected, f invoiced), totals and items. estimate.get.

ParameterTypeDescription
customer_idinteger
end_datestringA date, yyyy-mm-dd.
estimate_idinteger
estimate_numberstring
limitintegerResults per call, 1-100 (default 25). Every call counts against FastBill's hourly API quota.
offsetintegerIndex of the first result, from 0 (default 0). Pass the previous reply's next_offset.
start_datestringA date, yyyy-mm-dd.

fastbill_list_expenses List expenses

List expense entries (supplier, category, net/VAT/gross, dates, document URL). Filter by invoice number or date ranges. expense.get.

ParameterTypeDescription
end_datestringA date, yyyy-mm-dd.
end_paid_datestringA date, yyyy-mm-dd.
invoice_idinteger
invoice_numberstring
limitintegerResults per call, 1-100 (default 25). Every call counts against FastBill's hourly API quota.
offsetintegerIndex of the first result, from 0 (default 0). Pass the previous reply's next_offset.
start_datestringA date, yyyy-mm-dd.
start_paid_datestringA date, yyyy-mm-dd.

fastbill_list_revenues List revenues

List revenue entries (income booked in FastBill: customer, totals, dates, payments). Takes the same filters as invoices. revenue.get.

ParameterTypeDescription
customer_idinteger
end_datestringA date, yyyy-mm-dd.
end_paid_datestringA date, yyyy-mm-dd.
invoice_numberstring
limitintegerResults per call, 1-100 (default 25). Every call counts against FastBill's hourly API quota.
offsetintegerIndex of the first result, from 0 (default 0). Pass the previous reply's next_offset.
start_datestringA date, yyyy-mm-dd.
start_paid_datestringA date, yyyy-mm-dd.

fastbill_list_articles List products

List products and services (article number, type, title, unit price, VAT, unit). article.get.

ParameterTypeDescription
article_idinteger
article_numberstring
limitintegerResults per call, 1-100 (default 25). Every call counts against FastBill's hourly API quota.
offsetintegerIndex of the first result, from 0 (default 0). Pass the previous reply's next_offset.

fastbill_list_projects List projects

List projects (name, customer, hourly rate, VAT, start/end date). project.get.

ParameterTypeDescription
customer_idinteger
limitintegerResults per call, 1-100 (default 25). Every call counts against FastBill's hourly API quota.
offsetintegerIndex of the first result, from 0 (default 0). Pass the previous reply's next_offset.
project_idinteger

fastbill_list_time_entries List time entries

List work time entries (customer, project, date, minutes, billable minutes, comment, invoice). Without filters FastBill returns the latest entries of the current month. time.get.

ParameterTypeDescription
customer_idinteger
datestringOne day.
end_datestringA date, yyyy-mm-dd.
limitintegerResults per call, 1-100 (default 25). Every call counts against FastBill's hourly API quota.
offsetintegerIndex of the first result, from 0 (default 0). Pass the previous reply's next_offset.
project_idinteger
start_datestringA date, yyyy-mm-dd.
time_idinteger

fastbill_list_templates List document templates

List the invoice/estimate templates (template id, name, hash). Use a template id with the create tools. Ids change whenever a template is edited. template.get.

ParameterTypeDescription
limitintegerResults per call, 1-100 (default 25). Every call counts against FastBill's hourly API quota.
offsetintegerIndex of the first result, from 0 (default 0). Pass the previous reply's next_offset.

fastbill_create_customer Create customer

WRITE: create a customer. customer_type is required; a business needs organization, a consumer needs last_name. Bank details are not accepted by this tool. FastBill does not check for duplicates, so search with fastbill_list_customers first. customer.create.

ParameterTypeDescription
customer_type *stringbusiness or consumer.
academic_degreestring
addressstring
address_2string
citystring
country_codestringISO 3166 alpha-2, e.g. DE.
currency_codestring
customer_numberstringOwn customer number (FastBill assigns one if omitted).
days_for_paymentintegerDays until payment is due (stored with payment_type 1 only).
emailstring
first_namestring
last_namestringRequired for a consumer.
mobilestring
organizationstringCompany name (required for a business customer).
payment_typeinteger1 transfer, 3 cash, 4 PayPal, 5 advance payment, 6 credit card (direct debit needs bank details: set it in FastBill).
phonestring
positionstring
salutationstring
tagsstringComma-separated tags.
vat_idstringVAT identification number.
websitestring
zipcodestring

fastbill_update_customer Update customer

WRITE: update fields of an existing customer; only the fields you pass change. Bank details are not accepted by this tool. customer.update.

ParameterTypeDescription
customer_id *integerFastBill customer id.
academic_degreestring
addressstring
address_2string
citystring
country_codestringISO 3166 alpha-2, e.g. DE.
currency_codestring
customer_numberstringOwn customer number (FastBill assigns one if omitted).
customer_typestring
days_for_paymentintegerDays until payment is due (stored with payment_type 1 only).
emailstring
first_namestring
last_namestringRequired for a consumer.
mobilestring
organizationstringCompany name (required for a business customer).
payment_typeinteger1 transfer, 3 cash, 4 PayPal, 5 advance payment, 6 credit card (direct debit needs bank details: set it in FastBill).
phonestring
positionstring
salutationstring
tagsstringComma-separated tags.
vat_idstringVAT identification number.
websitestring
zipcodestring

fastbill_create_invoice Create invoice

WRITE: create an invoice for a customer from line items. FastBill stores it as a draft; it gets its number and becomes final only with fastbill_complete_invoice, and it is never sent by this tool. Check the result with fastbill_get_invoice. invoice.create.

ParameterTypeDescription
customer_id *integerFastBill customer id (see fastbill_list_customers).
items *arrayLine items (1-100).
cash_discount_daysinteger
cash_discount_percentnumber
contract_referencestring
currency_codestring
customer_order_referencestring
delivery_datestringA date, yyyy-mm-dd.
discount_percentnumberDocument discount in percent.
introtextstringIntroduction text above the items.
invoice_datestringA date, yyyy-mm-dd.
invoice_titlestring
is_grossbooleanTrue when unit_price values are gross.
service_period_endstringA date, yyyy-mm-dd.
service_period_startstringA date, yyyy-mm-dd.
template_idintegerTemplate id from fastbill_list_templates.
vat_casestringVAT case (default standard).

fastbill_complete_invoice Finalize invoice

WRITE, NOT REVERSIBLE: turn a draft invoice into a final invoice. FastBill assigns the invoice number and PDF; a final invoice can no longer be edited (it can only be canceled in FastBill). Nothing is sent to the customer. Only call this after the user confirmed the draft. invoice.complete.

ParameterTypeDescription
invoice_id *integerFastBill id of the DRAFT invoice.

fastbill_set_invoice_paid Mark invoice paid

WRITE: mark a final invoice as paid, with the payment date and method. invoice.setpaid.

ParameterTypeDescription
invoice_id *integerFastBill invoice id.
paid_datestringDate the payment arrived (default: FastBill's choice, today).
payment_methodstringe.g. paypal, cash, bank name.

fastbill_create_estimate Create estimate

WRITE: create an estimate (quote) for a customer from line items. It is not sent. estimate.create.

ParameterTypeDescription
customer_id *integerFastBill customer id (see fastbill_list_customers).
items *arrayLine items (1-100).
currency_codestring
discount_percentnumberDocument discount in percent.
estimate_datestringA date, yyyy-mm-dd.
introtextstringIntroduction text above the items.
is_grossbooleanTrue when unit_price values are gross.
template_idintegerTemplate id from fastbill_list_templates.

fastbill_create_article Create product

WRITE: create a product or service (article number, title and unit price are required). article.create.

ParameterTypeDescription
article_number *stringUnique article number.
title *string
unit_price *number
currency_codestring
descriptionstring
is_grossbooleanTrue when unit_price is gross.
tagsstring
typestring
unitstring
vat_percentnumber

fastbill_create_project Create project

WRITE: create a project for a customer (name and customer are required). project.create.

ParameterTypeDescription
customer_id *integerFastBill customer id.
project_name *string
currency_codestring
end_datestringA date, yyyy-mm-dd.
hour_pricenumberHourly rate.
start_datestringA date, yyyy-mm-dd.
vat_percentnumber

fastbill_create_time_entry Create time entry

WRITE: book a work time entry on a project (customer, project and start time are required). time.create.

ParameterTypeDescription
customer_id *integer
project_id *integer
start_time *stringDate and time, YYYY-MM-DD hh:mm:ss.
article_idintegerThe service (article id) of the entry.
billable_minutesinteger
commentstring
datestringA date, yyyy-mm-dd.
end_timestringDate and time, YYYY-MM-DD hh:mm:ss.
minutesintegerDuration in minutes (not calculated from the times).