Billy MCP by usefulapi

v1.28.1
io.usefulapi/billy Checked 2 days ago Published 22 hours ago

Read Billy invoices, bills, contacts, products and postings; create contacts and draft invoices.

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

billy_get_organization Get the company

The Billy company the access token belongs to: id, name, address, registration (CVR) number, base currency, VAT settings, fiscal year, default payment terms, invoice numbering, default accounts. Good first call. GET /organization.

billy_list_contacts List contacts

List customers and suppliers: name, type, address, CVR/registration number, EAN, payment terms, customer/supplier flags. The API has no documented search filter, so `search` is applied to the returned page only (case-insensitive on name, contact number and registration number); page on with next_page to look further. Paged. GET /contacts.

ParameterTypeDescription
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
page_sizeintegerRecords per page, 1-200 (default 50).
searchstringKeep only contacts on the returned page whose name, contactNo or registrationNo contains this text.

billy_get_contact Get a contact

One contact by id, with its contact persons (names and e-mail addresses). GET /contacts/{id}.

ParameterTypeDescription
id *stringThe contact id (from billy_list_contacts).

billy_list_invoices List invoices

List sales invoices and credit notes (newest first by default): number, date, due date, state (draft/approved/voided), amount, tax, balance, isPaid, contactId, currency. Filter by state, customer, number, date, period, paid status or free text. Paged. GET /invoices.

ParameterTypeDescription
contact_idstringOnly invoices of this contact (from billy_list_contacts).
entry_date_periodstringDate period: all, year:2026, month:2026-03, quarter:2026-2, dates:2026-01-01...2026-01-31 ...
invoice_nostringExact invoice number.
is_paidbooleantrue = only paid invoices, false = only unpaid.
max_due_datestringDue date on or before (yyyy-mm-dd); with is_paid=false this finds overdue invoices.
max_entry_datestringInvoice date on or before (yyyy-mm-dd).
min_due_datestringDue date on or after (yyyy-mm-dd).
min_entry_datestringInvoice date on or after (yyyy-mm-dd).
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
page_sizeintegerRecords per page, 1-200 (default 50).
qstringFree-text search over invoice number, order number, contact name, line description, amount.
sort_directionstringSort direction (default ASC).
sort_propertystringSort by (default entryDate).
statestringOnly invoices in this state.

billy_get_invoice Get an invoice

One invoice by id with its lines (product, description, quantity, unit price, amount, tax) and its payment associations. GET /invoices/{id}.

ParameterTypeDescription
id *stringThe invoice id (from billy_list_invoices).

billy_list_bills List bills (supplier invoices)

List bills (purchase invoices from suppliers): supplier, dates, state (draft/approved/voided), amount, balance, isPaid, supplier invoice number. Filter by state, supplier, dates or paid status. Paged. GET /bills.

ParameterTypeDescription
contact_idstringOnly bills of this supplier contact.
is_paidbooleantrue = only paid bills, false = only unpaid.
max_due_datestringDue date on or before (yyyy-mm-dd).
max_entry_datestringBill date on or before (yyyy-mm-dd).
min_due_datestringDue date on or after (yyyy-mm-dd).
min_entry_datestringBill date on or after (yyyy-mm-dd).
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
page_sizeintegerRecords per page, 1-200 (default 50).
qstringFree-text search over supplier name, description, voucher number, amount, supplier invoice number.
sort_directionstringSort direction (default ASC).
sort_propertystringSort by (default entryDate).
statestringOnly bills in this state.
suppliers_invoice_nostringExact supplier invoice number.

billy_get_bill Get a bill

One supplier bill by id with its lines. GET /bills/{id}.

ParameterTypeDescription
id *stringThe bill id (from billy_list_bills).

billy_list_products List products

List products and services usable as invoice lines: name, product number, description, sales account, archived flag. The API has no documented search filter, so `search` is applied to the returned page only (name, productNo). Paged. GET /products.

ParameterTypeDescription
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
page_sizeintegerRecords per page, 1-200 (default 50).
searchstringKeep only products on the returned page whose name or productNo contains this text.

billy_get_product Get a product

One product by id with its unit prices per currency. GET /products/{id}.

ParameterTypeDescription
id *stringThe product id (from billy_list_products).

billy_list_accounts List accounts (chart of accounts)

The chart of accounts: account number, name, group, nature, VAT rate, bank-account flag and bank details (IBAN, bank name) of bank accounts. With is_bank_account=true this lists the bank accounts whose ids billy_list_bank_lines needs. Paged. GET /accounts.

ParameterTypeDescription
is_bank_accountbooleantrue = only bank accounts.
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
page_sizeintegerRecords per page, 1-200 (default 50).

billy_list_tax_rates List tax (VAT) rates

The company's VAT rates: name, rate (as a fraction, 0.25 = 25 percent), whether it applies to sales or purchases, active flag. Paged. GET /taxRates.

ParameterTypeDescription
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
page_sizeintegerRecords per page, 1-200 (default 50).

billy_list_bank_lines List bank lines

List the bank-statement lines of ONE bank account (read only; nothing is matched or reconciled): date, description, amount, side (debit/credit), reconciled flag, receipt state. Get the account id from billy_list_accounts with is_bank_account=true. Paged. GET /bankLines.

ParameterTypeDescription
account_id *stringThe bank account id (required).
entry_date_periodstringDate period: all, year:2026, month:2026-03, quarter:2026-2, dates:2026-01-01...2026-01-31 ...
is_reconciledbooleantrue = only reconciled lines, false = only unreconciled.
max_amountnumberAmount at most.
max_entry_datestringEntry date on or before (yyyy-mm-dd).
min_amountnumberAmount at least.
min_entry_datestringEntry date on or after (yyyy-mm-dd).
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
page_sizeintegerRecords per page, 1-200 (default 50).
qstringFree-text search over description or amount.
receipt_statestringOnly lines with a missing or uploaded receipt.
sidestringOnly debit (money in) or credit (money out) lines.
sort_directionstringSort direction (default ASC).
sort_propertystringSort by (default entryDate).
statusstringLine status (the API defaults to booked).

billy_list_postings List ledger postings

List ledger postings (the bookkeeping entries): date, text, account, amount, side (debit/credit), currency, voided flag. Filter by account, date or period. Read only. Paged. GET /postings.

ParameterTypeDescription
account_idstringOnly postings on this account (from billy_list_accounts).
entry_date_periodstringDate period: all, year:2026, month:2026-03, quarter:2026-2, dates:2026-01-01...2026-01-31 ...
is_voidedbooleantrue = only voided postings, false = only live ones.
max_entry_datestringEntry date on or before (yyyy-mm-dd).
min_entry_datestringEntry date on or after (yyyy-mm-dd).
pageintegerPage number, 1-based (default 1). Use next_page from the previous reply.
page_sizeintegerRecords per page, 1-200 (default 50).
qstringFree-text search over the posting text and the originator name.

billy_create_contact Create a contact

WRITE: create ONE new contact (customer and/or supplier) in the company's Billy account. It does not check for duplicates (call billy_list_contacts first) and nothing is sent to the contact. Not idempotent: a repeat call creates a second contact. POST /contacts.

ParameterTypeDescription
name *stringCompany or person name.
citystringCity.
contact_nostringYour own customer or supplier number.
country_idstringISO country code (default DK).
eanstringEAN location number for e-invoicing (Denmark).
emailstringPrimary contact e-mail (stored as the primary contact person; nothing is sent).
is_customerbooleanCustomer flag (default true).
is_supplierbooleanSupplier flag (default false).
phonestringPhone number.
registration_nostringCVR number (Denmark) or EU VAT number.
streetstringStreet and number.
typestringcompany (default) or person.
zipcodestringPostal code.

billy_create_draft_invoice Create a draft invoice

WRITE: create ONE invoice in the DRAFT state for an existing contact. The invoice is NOT approved, booked, numbered into the ledger or sent: the user reviews it in Billy and approves and sends it there. The invoice number is assigned by Billy. No payment is created. Not idempotent: a repeat call creates a second draft. POST /invoices with state=draft.

ParameterTypeDescription
contact_id *stringThe customer's contact id (from billy_list_contacts or billy_create_contact).
lines *array1-100 invoice lines.
contact_messagestringMessage to the customer shown at the top of the invoice PDF.
currency_idstringInvoice currency, e.g. DKK (default: the company's base currency).
entry_datestringInvoice date yyyy-mm-dd (default today, UTC).
tax_modestringWhether unit prices include (incl) or exclude (excl) VAT (default: the company's setting).