smallinvoice MCP by usefulapi
v1.18.1Read 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.
| Parameter | Type | Description |
|---|---|---|
filter | string | Optional filter as a JSON object string, e.g. {"currency":"CHF"}; combine with {"and":[...]} / {"or":[...]}. Comparators go before the value: "<", "<=", ">", ">=", "!" (not), "~" (contains), e.g. {"na… |
limit | integer | Items per page (default 100, max 200). |
offset | integer | Items to skip (paging: the previous reply's next_offset). |
q | string | Optional free-text search over several fields. |
sort | string | Optional sort: 'name' ascending, '-name' descending, '-surname,name' for several. |
with | string | Optional 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}.
| Parameter | Type | Description |
|---|---|---|
id * | integer | The contact id (from smallinvoice_list_contacts). |
with | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
contact_id * | integer | The contact id. |
limit | integer | Items per page (default 100, max 200). |
offset | integer | Items 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.
| Parameter | Type | Description |
|---|---|---|
contact_id * | integer | The contact id. |
limit | integer | Items per page (default 100, max 200). |
offset | integer | Items 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.
| Parameter | Type | Description |
|---|---|---|
filter | string | Optional filter as a JSON object string, e.g. {"currency":"CHF"}; combine with {"and":[...]} / {"or":[...]}. Comparators go before the value: "<", "<=", ">", ">=", "!" (not), "~" (contains), e.g. {"na… |
limit | integer | Items per page (default 100, max 200). |
offset | integer | Items to skip (paging: the previous reply's next_offset). |
q | string | Optional free-text search over several fields. |
sort | string | Optional sort: 'name' ascending, '-name' descending, '-surname,name' for several. |
with | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
contact_id | integer | Only documents of this contact (customer) id. |
filter | string | Optional filter as a JSON object string, e.g. {"currency":"CHF"}; combine with {"and":[...]} / {"or":[...]}. Comparators go before the value: "<", "<=", ">", ">=", "!" (not), "~" (contains), e.g. {"na… |
limit | integer | Items per page (default 100, max 200). |
offset | integer | Items to skip (paging: the previous reply's next_offset). |
q | string | Optional free-text search over several fields. |
sort | string | Optional sort: 'name' ascending, '-name' descending, '-surname,name' for several. |
with | string | Optional 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}.
| Parameter | Type | Description |
|---|---|---|
id * | integer | The invoice id (from smallinvoice_list_invoices). |
with | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
invoice_id * | integer | The invoice id. |
limit | integer | Items per page (default 100, max 200). |
offset | integer | Items 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.
| Parameter | Type | Description |
|---|---|---|
contact_id | integer | Only documents of this contact (customer) id. |
filter | string | Optional filter as a JSON object string, e.g. {"currency":"CHF"}; combine with {"and":[...]} / {"or":[...]}. Comparators go before the value: "<", "<=", ">", ">=", "!" (not), "~" (contains), e.g. {"na… |
limit | integer | Items per page (default 100, max 200). |
offset | integer | Items to skip (paging: the previous reply's next_offset). |
q | string | Optional free-text search over several fields. |
sort | string | Optional sort: 'name' ascending, '-name' descending, '-surname,name' for several. |
with | string | Optional 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}.
| Parameter | Type | Description |
|---|---|---|
id * | integer | The offer id (from smallinvoice_list_offers). |
with | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
contact_id | integer | Only documents of this contact (customer) id. |
filter | string | Optional filter as a JSON object string, e.g. {"currency":"CHF"}; combine with {"and":[...]} / {"or":[...]}. Comparators go before the value: "<", "<=", ">", ">=", "!" (not), "~" (contains), e.g. {"na… |
limit | integer | Items per page (default 100, max 200). |
offset | integer | Items to skip (paging: the previous reply's next_offset). |
q | string | Optional free-text search over several fields. |
sort | string | Optional sort: 'name' ascending, '-name' descending, '-surname,name' for several. |
with | string | Optional 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}.
| Parameter | Type | Description |
|---|---|---|
id * | integer | The order confirmation id. |
with | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
contact_id | integer | Only documents of this contact (customer) id. |
filter | string | Optional filter as a JSON object string, e.g. {"currency":"CHF"}; combine with {"and":[...]} / {"or":[...]}. Comparators go before the value: "<", "<=", ">", ">=", "!" (not), "~" (contains), e.g. {"na… |
limit | integer | Items per page (default 100, max 200). |
offset | integer | Items to skip (paging: the previous reply's next_offset). |
q | string | Optional free-text search over several fields. |
sort | string | Optional sort: 'name' ascending, '-name' descending, '-surname,name' for several. |
with | string | Optional 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}.
| Parameter | Type | Description |
|---|---|---|
id * | integer | The delivery note id. |
with | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
filter | string | Optional filter as a JSON object string, e.g. {"currency":"CHF"}; combine with {"and":[...]} / {"or":[...]}. Comparators go before the value: "<", "<=", ">", ">=", "!" (not), "~" (contains), e.g. {"na… |
limit | integer | Items per page (default 100, max 200). |
offset | integer | Items to skip (paging: the previous reply's next_offset). |
q | string | Optional free-text search over several fields. |
sort | string | Optional sort: 'name' ascending, '-name' descending, '-surname,name' for several. |
with | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
filter | string | Optional filter as a JSON object string, e.g. {"currency":"CHF"}; combine with {"and":[...]} / {"or":[...]}. Comparators go before the value: "<", "<=", ">", ">=", "!" (not), "~" (contains), e.g. {"na… |
limit | integer | Items per page (default 100, max 200). |
offset | integer | Items to skip (paging: the previous reply's next_offset). |
q | string | Optional free-text search over several fields. |
sort | string | Optional sort: 'name' ascending, '-name' descending, '-surname,name' for several. |
with | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
filter | string | Optional filter as a JSON object string, e.g. {"currency":"CHF"}; combine with {"and":[...]} / {"or":[...]}. Comparators go before the value: "<", "<=", ">", ">=", "!" (not), "~" (contains), e.g. {"na… |
limit | integer | Items per page (default 100, max 200). |
offset | integer | Items to skip (paging: the previous reply's next_offset). |
q | string | Optional free-text search over several fields. |
sort | string | Optional sort: 'name' ascending, '-name' descending, '-surname,name' for several. |
with | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
filter | string | Optional filter as a JSON object string, e.g. {"currency":"CHF"}; combine with {"and":[...]} / {"or":[...]}. Comparators go before the value: "<", "<=", ">", ">=", "!" (not), "~" (contains), e.g. {"na… |
limit | integer | Items per page (default 100, max 200). |
offset | integer | Items to skip (paging: the previous reply's next_offset). |
q | string | Optional free-text search over several fields. |
sort | string | Optional sort: 'name' ascending, '-name' descending, '-surname,name' for several. |
with | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
filter | string | Optional filter as a JSON object string, e.g. {"currency":"CHF"}; combine with {"and":[...]} / {"or":[...]}. Comparators go before the value: "<", "<=", ">", ">=", "!" (not), "~" (contains), e.g. {"na… |
limit | integer | Items per page (default 100, max 200). |
offset | integer | Items to skip (paging: the previous reply's next_offset). |
q | string | Optional free-text search over several fields. |
sort | string | Optional sort: 'name' ascending, '-name' descending, '-surname,name' for several. |
with | string | Optional 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}.
| Parameter | Type | Description |
|---|---|---|
id * | integer | The project id (from smallinvoice_list_projects). |
with | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
filter | string | Optional filter as a JSON object string, e.g. {"currency":"CHF"}; combine with {"and":[...]} / {"or":[...]}. Comparators go before the value: "<", "<=", ">", ">=", "!" (not), "~" (contains), e.g. {"na… |
limit | integer | Items per page (default 100, max 200). |
offset | integer | Items to skip (paging: the previous reply's next_offset). |
q | string | Optional free-text search over several fields. |
sort | string | Optional sort: 'name' ascending, '-name' descending, '-surname,name' for several. |
with | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
filter | string | Optional filter as a JSON object string, e.g. {"currency":"CHF"}; combine with {"and":[...]} / {"or":[...]}. Comparators go before the value: "<", "<=", ">", ">=", "!" (not), "~" (contains), e.g. {"na… |
limit | integer | Items per page (default 100, max 200). |
offset | integer | Items to skip (paging: the previous reply's next_offset). |
q | string | Optional free-text search over several fields. |
sort | string | Optional sort: 'name' ascending, '-name' descending, '-surname,name' for several. |
with | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
filter | string | Optional filter as a JSON object string, e.g. {"currency":"CHF"}; combine with {"and":[...]} / {"or":[...]}. Comparators go before the value: "<", "<=", ">", ">=", "!" (not), "~" (contains), e.g. {"na… |
limit | integer | Items per page (default 100, max 200). |
offset | integer | Items to skip (paging: the previous reply's next_offset). |
q | string | Optional free-text search over several fields. |
sort | string | Optional sort: 'name' ascending, '-name' descending, '-surname,name' for several. |
with | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
filter | string | Optional filter as a JSON object string, e.g. {"currency":"CHF"}; combine with {"and":[...]} / {"or":[...]}. Comparators go before the value: "<", "<=", ">", ">=", "!" (not), "~" (contains), e.g. {"na… |
limit | integer | Items per page (default 100, max 200). |
offset | integer | Items to skip (paging: the previous reply's next_offset). |
q | string | Optional free-text search over several fields. |
sort | string | Optional sort: 'name' ascending, '-name' descending, '-surname,name' for several. |
with | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
city * | string | Main address: city. |
country * | string | Main address: ISO country code, e.g. CH. |
name * | string | Company name, as printed on documents. |
postcode * | string | Main address: postcode. |
street * | string | Main address: street and number. |
currency | string | ISO currency, e.g. CHF or EUR. |
email | string | E-mail address. |
relation | array | Relation 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.
| Parameter | Type | Description |
|---|---|---|
contact_address_id * | integer | The id of the contact's address to print (smallinvoice_list_contact_addresses, or main_address_id on the contact). |
contact_id * | integer | The contact (customer) id. |
currency * | string | ISO currency, e.g. CHF. |
date * | string | Invoice date, yyyy-mm-dd. |
due * | string | Due date, yyyy-mm-dd. |
language * | string | Document language: de, en, fr or it. |
positions * | array | The invoice positions. |