Hobok MCP by usefulapi
v1.6.1Read invoices, customers and products; issue invoices and record payments in Hobok.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
hobok_get_me Get the connected hobby business
Show the hobby business this API key is bound to, the plan, the next invoice number, the payment terms and the currency. GET /v1/me.
hobok_list_payment_methods List payment methods
List the payment method values that hobok_mark_invoice_paid accepts. Each value is in Swedish and is printed on the receipt. GET /v1/payment-methods.
hobok_list_invoices List invoices
List invoices, optionally by status (sent, paid, credited). Each invoice has its number, buyer, lines, totals and dates. GET /v1/invoices.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default 1). |
per_page | integer | Results per page (default 20, max 100). |
status | string | Only invoices with this status. |
hobok_get_invoice Get an invoice
Fetch one invoice with its lines, totals, status and emails sent. GET /v1/invoices/{local_id}.
| Parameter | Type | Description |
|---|---|---|
local_id * | string | The invoice's local_id, as returned by hobok_list_invoices or hobok_create_invoice. |
hobok_create_invoice Issue an invoice
Issue an invoice with status sent. It takes the next invoice number, which cannot be reused. Give client_id for a saved customer, or buyer for a one-off buyer, not both. VAT is always 0. The invoice is emailed only when send_email is true. POST /v1/invoices with an Idempotency-Key. Retrying the same request with the same key does not issue a second invoice. Two separate invoices with the same content need different idempotency_key values, or the second call returns the first invoice. A network or timeout error does not say whether the record was saved: list the records first before you retry.
| Parameter | Type | Description |
|---|---|---|
lines * | array | Invoice lines. At least one. |
buyer | object | A one-off buyer, copied onto the invoice. Use either this or client_id, not both. |
client_id | integer | Id of an existing customer (from hobok_list_clients). |
due_date | string | Due date yyyy-mm-dd. Default: issue date plus the account's payment terms. |
email_message | string | Plain-text email body. Used only when send_email is true. |
idempotency_key | string | Your own key for this request. Retrying with the same key returns the first answer. If you omit it, the server derives one from the request. |
issue_date | string | Issue date yyyy-mm-dd (default: today, set by Hobok). |
notes | string | Notes printed on the invoice. |
our_reference | string | Your reference, printed on the invoice. |
send_email | boolean | Email the invoice to the buyer now. Default false. A sent email cannot be recalled; set true only when the user asks. |
their_reference | string | The buyer's reference, printed on the invoice. |
hobok_mark_invoice_paid Mark an invoice paid
Record that a sent invoice was paid. Hobok creates the receipt and books the income for the year. Only a sent invoice can be marked paid; any other status returns 409. POST /v1/invoices/{local_id}/mark-paid with an Idempotency-Key. Use hobok_list_payment_methods for payment_method values. A network or timeout error does not say whether the record was saved: list the records first before you retry.
| Parameter | Type | Description |
|---|---|---|
local_id * | string | The invoice's local_id, as returned by hobok_list_invoices or hobok_create_invoice. |
idempotency_key | string | Your own key for this request. Retrying with the same key returns the first answer. If you omit it, the server derives one from the request. |
payment_date | string | Payment date yyyy-mm-dd (default: today, set by Hobok). |
payment_method | string | A value from hobok_list_payment_methods. |
payment_reference | string | Payment reference, e.g. a bank reference or OCR number. |
send_receipt_email | boolean | Email the receipt to the buyer. Default false. A sent email cannot be recalled; set true only when the user asks. |
hobok_email_receipt Email a receipt
Queue the payment receipt of a paid invoice for delivery to the buyer. A 200 means queued, not delivered. The API has no idempotency key here: a retry can send the receipt twice, so check hobok_get_invoice first. POST /v1/invoices/{local_id}/receipt/email.
| Parameter | Type | Description |
|---|---|---|
local_id * | string | The invoice's local_id, as returned by hobok_list_invoices or hobok_create_invoice. |
hobok_list_clients List customers
List the saved customers of the hobby business. Use an id from this list as client_id in hobok_create_invoice. GET /v1/clients.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default 1). |
per_page | integer | Results per page (default 20, max 100). |
hobok_create_client Add a customer
Add a saved customer with a name and optional address and contact fields. POST /v1/clients. Hobok documents no idempotency key here. A network or timeout error does not say whether the record was saved: list the records first before you retry.
| Parameter | Type | Description |
|---|---|---|
name * | string | Customer name or company name. |
city | string | City. |
co_address | string | c/o address line. |
email | string | Email address. |
phone | string | Phone number. |
postal_code | string | Postal code. |
street_address | string | Street and house number. |
hobok_list_products List products
List the saved products and services of the hobby business, with their prices. GET /v1/products.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default 1). |
per_page | integer | Results per page (default 20, max 100). |
hobok_create_product Add a product
Add a saved product or service with its price in SEK. POST /v1/products. Hobok documents no idempotency key here. A network or timeout error does not say whether the record was saved: list the records first before you retry.
| Parameter | Type | Description |
|---|---|---|
name * | string | Product or service name. |
unit_price * | number | Price per unit in SEK. Required. |
description | string | Description. |
unit | string | Unit, e.g. st, h. |