Hobok MCP by usefulapi

v1.6.1
io.usefulapi/hobok Checked 2 days ago Published 1 day ago

Read 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.

ParameterTypeDescription
pageintegerPage number (default 1).
per_pageintegerResults per page (default 20, max 100).
statusstringOnly 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}.

ParameterTypeDescription
local_id *stringThe 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.

ParameterTypeDescription
lines *arrayInvoice lines. At least one.
buyerobjectA one-off buyer, copied onto the invoice. Use either this or client_id, not both.
client_idintegerId of an existing customer (from hobok_list_clients).
due_datestringDue date yyyy-mm-dd. Default: issue date plus the account's payment terms.
email_messagestringPlain-text email body. Used only when send_email is true.
idempotency_keystringYour 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_datestringIssue date yyyy-mm-dd (default: today, set by Hobok).
notesstringNotes printed on the invoice.
our_referencestringYour reference, printed on the invoice.
send_emailbooleanEmail the invoice to the buyer now. Default false. A sent email cannot be recalled; set true only when the user asks.
their_referencestringThe 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.

ParameterTypeDescription
local_id *stringThe invoice's local_id, as returned by hobok_list_invoices or hobok_create_invoice.
idempotency_keystringYour 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_datestringPayment date yyyy-mm-dd (default: today, set by Hobok).
payment_methodstringA value from hobok_list_payment_methods.
payment_referencestringPayment reference, e.g. a bank reference or OCR number.
send_receipt_emailbooleanEmail 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.

ParameterTypeDescription
local_id *stringThe 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.

ParameterTypeDescription
pageintegerPage number (default 1).
per_pageintegerResults 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.

ParameterTypeDescription
name *stringCustomer name or company name.
citystringCity.
co_addressstringc/o address line.
emailstringEmail address.
phonestringPhone number.
postal_codestringPostal code.
street_addressstringStreet and house number.

hobok_list_products List products

List the saved products and services of the hobby business, with their prices. GET /v1/products.

ParameterTypeDescription
pageintegerPage number (default 1).
per_pageintegerResults 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.

ParameterTypeDescription
name *stringProduct or service name.
unit_price *numberPrice per unit in SEK. Required.
descriptionstringDescription.
unitstringUnit, e.g. st, h.