smallinvoice MCP by usefulapi

v1.18.1
io.usefulapi/smallinvoice Checked 2 days ago Published 1 day ago

Read smallinvoice contacts, invoices, offers, projects and hours; create contacts and invoices.

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

smallinvoice_get_owner Get the account owner

The smallinvoice account the API client belongs to (the owner's id and details). A cheap check that the connection works. GET /auth/owner.

smallinvoice_list_contacts List contacts

List contacts (customers and suppliers): name, type (company or person), relation, e-mail, currency. Add with=main_address for the address. Needs the "contact" scope. GET /contacts. Returns count, total, next_offset (pass it as offset for the next page) and the items.

ParameterTypeDescription
filterstringOptional filter as a JSON object string, e.g. {"currency":"CHF"}; combine with {"and":[...]} / {"or":[...]}. Comparators go before the value: "<", "<=", ">", ">=", "!" (not), "~" (contains), e.g. {"na…
limitintegerItems per page (default 100, max 200).
offsetintegerItems to skip (paging: the previous reply's next_offset).
qstringOptional free-text search over several fields.
sortstringOptional sort: 'name' ascending, '-name' descending, '-surname,name' for several.
withstringOptional extra fields to include, comma separated (e.g. 'main_address' on contacts).

smallinvoice_get_contact Get a contact

One contact by id, with its fields. Add with=main_address for the main address. Needs the "contact" scope. GET /contacts/{id}.

ParameterTypeDescription
id *integerThe contact id (from smallinvoice_list_contacts).
withstringOptional extra fields to include, comma separated (e.g. 'main_address' on contacts).

smallinvoice_list_contact_addresses List a contact's addresses

All addresses of one contact. Needs the "contact" scope. GET /contacts/{contactId}/addresses.

ParameterTypeDescription
contact_id *integerThe contact id.
limitintegerItems per page (default 100, max 200).
offsetintegerItems to skip (paging: the previous reply's next_offset).

smallinvoice_list_contact_people List a contact's people

The contact persons of one company contact. Needs the "contact" scope. GET /contacts/{contactId}/people.

ParameterTypeDescription
contact_id *integerThe contact id.
limitintegerItems per page (default 100, max 200).
offsetintegerItems to skip (paging: the previous reply's next_offset).

smallinvoice_list_contact_groups List contact groups

List the contact groups. Needs the "contact" scope. GET /contacts/configuration/groups. Returns count, total, next_offset (pass it as offset for the next page) and the items.

ParameterTypeDescription
filterstringOptional filter as a JSON object string, e.g. {"currency":"CHF"}; combine with {"and":[...]} / {"or":[...]}. Comparators go before the value: "<", "<=", ">", ">=", "!" (not), "~" (contains), e.g. {"na…
limitintegerItems per page (default 100, max 200).
offsetintegerItems to skip (paging: the previous reply's next_offset).
qstringOptional free-text search over several fields.
sortstringOptional sort: 'name' ascending, '-name' descending, '-surname,name' for several.
withstringOptional extra fields to include, comma separated (e.g. 'main_address' on contacts).

smallinvoice_list_invoices List invoices

List invoices: number, contact, dates, total, currency, status. Filter by contact_id or a JSON filter. Needs the "invoice" scope. GET /receivables/invoices. Returns count, total, next_offset (pass it as offset for the next page) and the items.

ParameterTypeDescription
contact_idintegerOnly documents of this contact (customer) id.
filterstringOptional filter as a JSON object string, e.g. {"currency":"CHF"}; combine with {"and":[...]} / {"or":[...]}. Comparators go before the value: "<", "<=", ">", ">=", "!" (not), "~" (contains), e.g. {"na…
limitintegerItems per page (default 100, max 200).
offsetintegerItems to skip (paging: the previous reply's next_offset).
qstringOptional free-text search over several fields.
sortstringOptional sort: 'name' ascending, '-name' descending, '-surname,name' for several.
withstringOptional extra fields to include, comma separated (e.g. 'main_address' on contacts).

smallinvoice_get_invoice Get an invoice

One invoice by id with its positions, totals and status. Needs the "invoice" scope. GET /receivables/invoices/{id}.

ParameterTypeDescription
id *integerThe invoice id (from smallinvoice_list_invoices).
withstringOptional extra fields to include, comma separated (e.g. 'main_address' on contacts).

smallinvoice_list_invoice_payments List payments of an invoice

The payments recorded on one invoice. Needs the "invoice" scope. GET /receivables/invoices/{invoiceId}/payments.

ParameterTypeDescription
invoice_id *integerThe invoice id.
limitintegerItems per page (default 100, max 200).
offsetintegerItems to skip (paging: the previous reply's next_offset).

smallinvoice_list_offers List offers

List offers (quotes). Filter by contact_id or a JSON filter. Needs the "offer" scope. GET /receivables/offers. Returns count, total, next_offset (pass it as offset for the next page) and the items.

ParameterTypeDescription
contact_idintegerOnly documents of this contact (customer) id.
filterstringOptional filter as a JSON object string, e.g. {"currency":"CHF"}; combine with {"and":[...]} / {"or":[...]}. Comparators go before the value: "<", "<=", ">", ">=", "!" (not), "~" (contains), e.g. {"na…
limitintegerItems per page (default 100, max 200).
offsetintegerItems to skip (paging: the previous reply's next_offset).
qstringOptional free-text search over several fields.
sortstringOptional sort: 'name' ascending, '-name' descending, '-surname,name' for several.
withstringOptional extra fields to include, comma separated (e.g. 'main_address' on contacts).

smallinvoice_get_offer Get an offer

One offer (quote) by id with its positions and totals. Needs the "offer" scope. GET /receivables/offers/{id}.

ParameterTypeDescription
id *integerThe offer id (from smallinvoice_list_offers).
withstringOptional extra fields to include, comma separated (e.g. 'main_address' on contacts).

smallinvoice_list_order_confirmations List order confirmations

List order confirmations. Filter by contact_id or a JSON filter. Needs the "order_confirmation" scope. GET /receivables/order-confirmations. Returns count, total, next_offset (pass it as offset for the next page) and the items.

ParameterTypeDescription
contact_idintegerOnly documents of this contact (customer) id.
filterstringOptional filter as a JSON object string, e.g. {"currency":"CHF"}; combine with {"and":[...]} / {"or":[...]}. Comparators go before the value: "<", "<=", ">", ">=", "!" (not), "~" (contains), e.g. {"na…
limitintegerItems per page (default 100, max 200).
offsetintegerItems to skip (paging: the previous reply's next_offset).
qstringOptional free-text search over several fields.
sortstringOptional sort: 'name' ascending, '-name' descending, '-surname,name' for several.
withstringOptional extra fields to include, comma separated (e.g. 'main_address' on contacts).

smallinvoice_get_order_confirmation Get an order confirmation

One order confirmation by id. Needs the "order_confirmation" scope. GET /receivables/order-confirmations/{id}.

ParameterTypeDescription
id *integerThe order confirmation id.
withstringOptional extra fields to include, comma separated (e.g. 'main_address' on contacts).

smallinvoice_list_delivery_notes List delivery notes

List delivery notes. Filter by contact_id or a JSON filter. Needs the "delivery_note" scope. GET /receivables/delivery-notes. Returns count, total, next_offset (pass it as offset for the next page) and the items.

ParameterTypeDescription
contact_idintegerOnly documents of this contact (customer) id.
filterstringOptional filter as a JSON object string, e.g. {"currency":"CHF"}; combine with {"and":[...]} / {"or":[...]}. Comparators go before the value: "<", "<=", ">", ">=", "!" (not), "~" (contains), e.g. {"na…
limitintegerItems per page (default 100, max 200).
offsetintegerItems to skip (paging: the previous reply's next_offset).
qstringOptional free-text search over several fields.
sortstringOptional sort: 'name' ascending, '-name' descending, '-surname,name' for several.
withstringOptional extra fields to include, comma separated (e.g. 'main_address' on contacts).

smallinvoice_get_delivery_note Get a delivery note

One delivery note by id. Needs the "delivery_note" scope. GET /receivables/delivery-notes/{id}.

ParameterTypeDescription
id *integerThe delivery note id.
withstringOptional extra fields to include, comma separated (e.g. 'main_address' on contacts).

smallinvoice_list_products List catalog products

List the catalog's products (articles). Needs the "catalog" scope. GET /catalog/products. Returns count, total, next_offset (pass it as offset for the next page) and the items.

ParameterTypeDescription
filterstringOptional filter as a JSON object string, e.g. {"currency":"CHF"}; combine with {"and":[...]} / {"or":[...]}. Comparators go before the value: "<", "<=", ">", ">=", "!" (not), "~" (contains), e.g. {"na…
limitintegerItems per page (default 100, max 200).
offsetintegerItems to skip (paging: the previous reply's next_offset).
qstringOptional free-text search over several fields.
sortstringOptional sort: 'name' ascending, '-name' descending, '-surname,name' for several.
withstringOptional extra fields to include, comma separated (e.g. 'main_address' on contacts).

smallinvoice_list_services List catalog services

List the catalog's services. Needs the "catalog" scope. GET /catalog/services. Returns count, total, next_offset (pass it as offset for the next page) and the items.

ParameterTypeDescription
filterstringOptional filter as a JSON object string, e.g. {"currency":"CHF"}; combine with {"and":[...]} / {"or":[...]}. Comparators go before the value: "<", "<=", ">", ">=", "!" (not), "~" (contains), e.g. {"na…
limitintegerItems per page (default 100, max 200).
offsetintegerItems to skip (paging: the previous reply's next_offset).
qstringOptional free-text search over several fields.
sortstringOptional sort: 'name' ascending, '-name' descending, '-surname,name' for several.
withstringOptional extra fields to include, comma separated (e.g. 'main_address' on contacts).

smallinvoice_list_units List units

List the units (piece, hour, ...) with their ids, which an invoice position's unit_id refers to. Needs the "configuration" scope. GET /catalog/configuration/units. Returns count, total, next_offset (pass it as offset for the next page) and the items.

ParameterTypeDescription
filterstringOptional filter as a JSON object string, e.g. {"currency":"CHF"}; combine with {"and":[...]} / {"or":[...]}. Comparators go before the value: "<", "<=", ">", ">=", "!" (not), "~" (contains), e.g. {"na…
limitintegerItems per page (default 100, max 200).
offsetintegerItems to skip (paging: the previous reply's next_offset).
qstringOptional free-text search over several fields.
sortstringOptional sort: 'name' ascending, '-name' descending, '-surname,name' for several.
withstringOptional extra fields to include, comma separated (e.g. 'main_address' on contacts).

smallinvoice_list_bank_accounts List bank accounts

List the account's bank accounts (as printed on documents). Needs the "configuration" scope. GET /configuration/bank-accounts. Returns count, total, next_offset (pass it as offset for the next page) and the items.

ParameterTypeDescription
filterstringOptional filter as a JSON object string, e.g. {"currency":"CHF"}; combine with {"and":[...]} / {"or":[...]}. Comparators go before the value: "<", "<=", ">", ">=", "!" (not), "~" (contains), e.g. {"na…
limitintegerItems per page (default 100, max 200).
offsetintegerItems to skip (paging: the previous reply's next_offset).
qstringOptional free-text search over several fields.
sortstringOptional sort: 'name' ascending, '-name' descending, '-surname,name' for several.
withstringOptional extra fields to include, comma separated (e.g. 'main_address' on contacts).

smallinvoice_list_projects List projects

List projects. Needs the "project" scope. GET /reporting/projects. Returns count, total, next_offset (pass it as offset for the next page) and the items.

ParameterTypeDescription
filterstringOptional filter as a JSON object string, e.g. {"currency":"CHF"}; combine with {"and":[...]} / {"or":[...]}. Comparators go before the value: "<", "<=", ">", ">=", "!" (not), "~" (contains), e.g. {"na…
limitintegerItems per page (default 100, max 200).
offsetintegerItems to skip (paging: the previous reply's next_offset).
qstringOptional free-text search over several fields.
sortstringOptional sort: 'name' ascending, '-name' descending, '-surname,name' for several.
withstringOptional extra fields to include, comma separated (e.g. 'main_address' on contacts).

smallinvoice_get_project Get a project

One project by id. Needs the "project" scope. GET /reporting/projects/{id}.

ParameterTypeDescription
id *integerThe project id (from smallinvoice_list_projects).
withstringOptional extra fields to include, comma separated (e.g. 'main_address' on contacts).

smallinvoice_list_working_hours List working hours

List recorded working hours (time tracking entries). Needs the "working_hours" scope. GET /reporting/working-hours. Returns count, total, next_offset (pass it as offset for the next page) and the items.

ParameterTypeDescription
filterstringOptional filter as a JSON object string, e.g. {"currency":"CHF"}; combine with {"and":[...]} / {"or":[...]}. Comparators go before the value: "<", "<=", ">", ">=", "!" (not), "~" (contains), e.g. {"na…
limitintegerItems per page (default 100, max 200).
offsetintegerItems to skip (paging: the previous reply's next_offset).
qstringOptional free-text search over several fields.
sortstringOptional sort: 'name' ascending, '-name' descending, '-surname,name' for several.
withstringOptional extra fields to include, comma separated (e.g. 'main_address' on contacts).

smallinvoice_list_efforts List efforts

List efforts (expenses and services recorded against projects). Needs the "effort" scope. GET /reporting/efforts. Returns count, total, next_offset (pass it as offset for the next page) and the items.

ParameterTypeDescription
filterstringOptional filter as a JSON object string, e.g. {"currency":"CHF"}; combine with {"and":[...]} / {"or":[...]}. Comparators go before the value: "<", "<=", ">", ">=", "!" (not), "~" (contains), e.g. {"na…
limitintegerItems per page (default 100, max 200).
offsetintegerItems to skip (paging: the previous reply's next_offset).
qstringOptional free-text search over several fields.
sortstringOptional sort: 'name' ascending, '-name' descending, '-surname,name' for several.
withstringOptional extra fields to include, comma separated (e.g. 'main_address' on contacts).

smallinvoice_list_activities List activities

List activities (the kinds of work that hours are booked on). Needs the "activity" scope. GET /reporting/activities. Returns count, total, next_offset (pass it as offset for the next page) and the items.

ParameterTypeDescription
filterstringOptional filter as a JSON object string, e.g. {"currency":"CHF"}; combine with {"and":[...]} / {"or":[...]}. Comparators go before the value: "<", "<=", ">", ">=", "!" (not), "~" (contains), e.g. {"na…
limitintegerItems per page (default 100, max 200).
offsetintegerItems to skip (paging: the previous reply's next_offset).
qstringOptional free-text search over several fields.
sortstringOptional sort: 'name' ascending, '-name' descending, '-surname,name' for several.
withstringOptional extra fields to include, comma separated (e.g. 'main_address' on contacts).

smallinvoice_list_cost_units List cost units

List cost units. Needs the "cost_unit" scope. GET /reporting/cost-units. Returns count, total, next_offset (pass it as offset for the next page) and the items.

ParameterTypeDescription
filterstringOptional filter as a JSON object string, e.g. {"currency":"CHF"}; combine with {"and":[...]} / {"or":[...]}. Comparators go before the value: "<", "<=", ">", ">=", "!" (not), "~" (contains), e.g. {"na…
limitintegerItems per page (default 100, max 200).
offsetintegerItems to skip (paging: the previous reply's next_offset).
qstringOptional free-text search over several fields.
sortstringOptional sort: 'name' ascending, '-name' descending, '-surname,name' for several.
withstringOptional extra fields to include, comma separated (e.g. 'main_address' on contacts).

smallinvoice_create_contact Create a contact

WRITE: creates a new company contact (customer) in smallinvoice, with its main address. Needs the "contact" scope. POST /contacts. Nothing is sent to anyone. Private persons are not supported here (smallinvoice needs more fields for them): create those in smallinvoice. Check smallinvoice_list_contacts first so you do not create a duplicate.

ParameterTypeDescription
city *stringMain address: city.
country *stringMain address: ISO country code, e.g. CH.
name *stringCompany name, as printed on documents.
postcode *stringMain address: postcode.
street *stringMain address: street and number.
currencystringISO currency, e.g. CHF or EUR.
emailstringE-mail address.
relationarrayRelation codes (default ['CL'] = client, as in the vendor's example). See the vendor docs for the others.

smallinvoice_create_invoice Create an invoice

WRITE: creates a new invoice for a contact. Needs the "invoice" scope. POST /receivables/invoices. It is only created: it is NOT sent by e-mail or post and its status is not changed; the user reviews it in smallinvoice. Not idempotent: calling it twice creates two invoices. Use smallinvoice_list_contacts / smallinvoice_list_units first for the ids.

ParameterTypeDescription
contact_address_id *integerThe id of the contact's address to print (smallinvoice_list_contact_addresses, or main_address_id on the contact).
contact_id *integerThe contact (customer) id.
currency *stringISO currency, e.g. CHF.
date *stringInvoice date, yyyy-mm-dd.
due *stringDue date, yyyy-mm-dd.
language *stringDocument language: de, en, fr or it.
positions *arrayThe invoice positions.