Oblio MCP by usefulapi

v1.28.1
io.usefulapi/oblio Checked 2 days ago Published 1 day ago

Read Oblio clients, products and documents; create proformas, issue, collect and cancel invoices.

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

oblio_list_companies List companies

The companies (CIF, name, your access level) linked to the connected Oblio account. Good first call: every other tool needs a CIF from here. GET /api/nomenclature/companies.

oblio_list_vat_rates List VAT rates

VAT rates (name, percent, default) of a company; use the name and percent on document lines. GET /api/nomenclature/vat_rates.

ParameterTypeDescription
cif *stringCIF of YOUR company in Oblio (from oblio_list_companies), for example RO37311090.

oblio_list_series List document series

Document series of a company (type Factura/Proforma/Aviz, name, start, next number, default). Use the name as series_name. GET /api/nomenclature/series.

ParameterTypeDescription
cif *stringCIF of YOUR company in Oblio (from oblio_list_companies), for example RO37311090.

oblio_list_languages List document languages

Foreign languages a company can issue documents in (code, name). GET /api/nomenclature/languages.

ParameterTypeDescription
cif *stringCIF of YOUR company in Oblio (from oblio_list_companies), for example RO37311090.

oblio_list_management List stock managements

Stock managements (gestiuni) of a company with their work point and type; works only when stock is enabled. GET /api/nomenclature/management.

ParameterTypeDescription
cif *stringCIF of YOUR company in Oblio (from oblio_list_companies), for example RO37311090.

oblio_list_clients List or search clients

Clients of a company, optionally filtered by name or client CIF. Up to 250 per page: pass next_offset as offset for the next page. GET /api/nomenclature/clients.

ParameterTypeDescription
cif *stringCIF of YOUR company in Oblio (from oblio_list_companies), for example RO37311090.
client_cifstringCIF of the client to find.
namestringClient name to search.
offsetintegerStart position, a multiple of 250 (0 default); use next_offset from the previous reply.

oblio_list_products List or search products

Products and services of a company with unit, price, VAT and (with stock) quantities. Up to 250 per page: pass next_offset as offset. GET /api/nomenclature/products.

ParameterTypeDescription
cif *stringCIF of YOUR company in Oblio (from oblio_list_companies), for example RO37311090.
codestringProduct code to find.
include_unsalablebooleantrue = include products marked as not for sale.
managementstringStock management to search in (see oblio_list_management).
namestringProduct name to search.
offsetintegerStart position, a multiple of 250 (0 default); use next_offset from the previous reply.
work_stationstringWork point of that management.

oblio_get_document Get a document

One invoice, proforma or notice by series and number: type, series, number, link to the PDF and (invoices) the collections. GET /api/docs/<type>.

ParameterTypeDescription
cif *stringCIF of YOUR company in Oblio (from oblio_list_companies), for example RO37311090.
number *stringDocument number within the series, digits only (0055 and 55 are the same).
series_name *stringDocument series name (from oblio_list_series), for example FCT.
type *stringinvoice (factura), proforma or notice (aviz de insotire).

oblio_list_invoices List invoices

Invoices of a company with filters (series, number, dates, client, draft/canceled/collected), newest first by default. Optional products, collections and e-Factura (SPV) status per invoice. Pass next_offset as offset for the next page. GET /api/docs/invoice/list.

ParameterTypeDescription
cif *stringCIF of YOUR company in Oblio (from oblio_list_companies), for example RO37311090.
canceledbooleantrue = only canceled, false = only not canceled.
client_cifstringOnly invoices of the client with this CIF.
client_codestringOnly invoices of the client with this code.
client_emailstringOnly invoices of the client with this e-mail.
collectedbooleantrue = only collected (paid), false = only not collected.
draftbooleantrue = only drafts, false = only issued.
issued_afterstringIssued on or after yyyy-mm-dd.
issued_beforestringIssued on or before yyyy-mm-dd.
limit_per_pageintegerResults per page, 1-100 (default 100).
numberstringOnly this document number.
offsetintegerStart position (0 default); use next_offset from the previous reply.
order_bystring
order_dirstring
series_namestringOnly this series.
with_collectsbooleanInclude the collections.
with_einvoice_statusbooleanInclude the e-Factura (SPV) status.
with_productsbooleanInclude the invoice lines.

oblio_list_webhooks List webhooks

The webhook subscriptions of the account (id, CIF, topic, endpoint). GET /api/webhooks.

oblio_create_proforma Create a proforma

Create a PROFORMA (not a fiscal invoice; the preferred first step). It takes the next number of the series immediately, there is no draft state, and Oblio sends no e-mail. Check client, lines, VAT (oblio_list_vat_rates) and series (oblio_list_series) first. Returns the series, number and a PDF link. Not retried: if the reply is an error, look in Oblio before repeating. POST /api/docs/proforma.

ParameterTypeDescription
cif *stringCIF of YOUR company in Oblio (from oblio_list_companies), for example RO37311090.
client *object
products *array1-200 lines: products/services (name + price) or discounts (name + discount).
series_name *stringDocument series name (from oblio_list_series), for example FCT.
currencystringDocument currency (default "RON").
due_datestringDue date yyyy-mm-dd.
exchange_ratenumberExchange rate for a foreign-currency document (default: the company's setting).
idempotency_keystringUnique key so Oblio drops a duplicate of the same request.
internal_notestringInternal note, not visible to the client.
issue_datestringIssue date yyyy-mm-dd (default today).
issuer_namestringPrepared by (intocmit de).
languagestringDocument language code from oblio_list_languages (default "RO").
mentionsstringMentions printed on the document.
order_numberstringOrder number (BT-13).
precisionintegerDecimals, 2 to 4 (default 2).
work_stationstringWork point (only with stock enabled; default "Sediu").

oblio_issue_invoice Issue an invoice (fiscal, irreversible)

ISSUE a real INVOICE. This is a legal fiscal document: it takes the next number in the series at once, there is no draft state, it cannot be edited, and it can only be cancelled afterwards (it may also be sent to ANAF e-Factura / SPV, automatically if the account is set up so). Needs confirm: true, an idempotency_key, and the user's explicit approval of the exact client, lines, totals and series. Optionally base it on a proforma or notice (reference_document), record the payment at once (collect) or set the delivery date. Not retried: if the reply is an error, look in Oblio before repeating. O…

ParameterTypeDescription
cif *stringCIF of YOUR company in Oblio (from oblio_list_companies), for example RO37311090.
idempotency_key *stringREQUIRED unique key for this invoice (for example a UUID) so Oblio drops a duplicate of the same request.
series_name *stringDocument series name (from oblio_list_series), for example FCT.
clientobjectThe client. Required unless reference_document is given (then Oblio takes it from the referenced document).
collectobjectRecord the payment together with the invoice.
collect_datestringCollection date yyyy-mm-dd.
confirmbooleanMust be true. Set it only after the user has confirmed this exact action in this conversation.
currencystringDocument currency (default "RON").
delivery_datestringDelivery date yyyy-mm-dd.
due_datestringDue date yyyy-mm-dd.
exchange_ratenumberExchange rate for a foreign-currency document (default: the company's setting).
internal_notestringInternal note, not visible to the client.
issue_datestringIssue date yyyy-mm-dd (default today).
issuer_namestringPrepared by (intocmit de).
languagestringDocument language code from oblio_list_languages (default "RO").
mentionsstringMentions printed on the document.
order_numberstringOrder number (BT-13).
precisionintegerDecimals, 2 to 4 (default 2).
productsarray1-200 lines: products/services (name + price) or discounts (name + discount). Required unless reference_document is given.
reference_documentobjectBase the invoice on a proforma or notice, or reverse an invoice.
use_stockbooleanTake the goods out of stock (only with stock enabled).
work_stationstringWork point (only with stock enabled; default "Sediu").

oblio_collect_invoice Record an invoice payment (collect)

Record that an issued invoice was paid (receipt, bank order, card...). Changes the invoice's paid status and is not reversible from the API. Needs confirm: true and the user's approval of the amount. Not retried. PUT /api/docs/invoice/collect.

ParameterTypeDescription
cif *stringCIF of YOUR company in Oblio (from oblio_list_companies), for example RO37311090.
collect *object
number *stringDocument number within the series, digits only (0055 and 55 are the same).
series_name *stringDocument series name (from oblio_list_series), for example FCT.
confirmbooleanMust be true. Set it only after the user has confirmed this exact action in this conversation.

oblio_cancel_document Cancel a document (fiscal)

CANCEL an invoice, proforma or notice. A cancelled invoice stays in the series but is void; if it was already sent to e-Factura / SPV, check the SPV side as well. Needs confirm: true and the user's approval. Not retried. PUT /api/docs/<type>/cancel.

ParameterTypeDescription
cif *stringCIF of YOUR company in Oblio (from oblio_list_companies), for example RO37311090.
number *stringDocument number within the series, digits only (0055 and 55 are the same).
series_name *stringDocument series name (from oblio_list_series), for example FCT.
type *stringinvoice (factura), proforma or notice (aviz de insotire).
confirmbooleanMust be true. Set it only after the user has confirmed this exact action in this conversation.

oblio_restore_document Restore a cancelled document (fiscal)

Restore a previously CANCELLED invoice, proforma or notice. Needs confirm: true and the user's approval. Not retried. PUT /api/docs/<type>/restore.

ParameterTypeDescription
cif *stringCIF of YOUR company in Oblio (from oblio_list_companies), for example RO37311090.
number *stringDocument number within the series, digits only (0055 and 55 are the same).
series_name *stringDocument series name (from oblio_list_series), for example FCT.
type *stringinvoice (factura), proforma or notice (aviz de insotire).
confirmbooleanMust be true. Set it only after the user has confirmed this exact action in this conversation.

oblio_send_einvoice_to_spv Send an invoice to e-Factura (SPV)

SEND an issued invoice to ANAF e-Factura (SPV). Irreversible: a document accepted by ANAF cannot be withdrawn from this API. Needs confirm: true and the user's approval. Not retried: check the status with oblio_list_invoices (with_einvoice_status) before repeating. Returns text, sent and a code (-1 not sent, 2 errors, 0 processing, 1 sent). POST /api/docs/einvoice.

ParameterTypeDescription
cif *stringCIF of YOUR company in Oblio (from oblio_list_companies), for example RO37311090.
number *stringDocument number within the series, digits only (0055 and 55 are the same).
series_name *stringDocument series name (from oblio_list_series), for example FCT.
confirmbooleanMust be true. Set it only after the user has confirmed this exact action in this conversation.

oblio_create_webhook Create a webhook

Subscribe an HTTPS endpoint to an Oblio event (stock changes, drafts/updates/cancellations of documents, collections). Oblio will POST account data to that URL, so only use an endpoint the user named and controls; it must answer 200 with the base64 of the X-Oblio-Request-Id header. Needs confirm: true. POST /api/webhooks.

ParameterTypeDescription
cif *stringCIF of YOUR company in Oblio (from oblio_list_companies), for example RO37311090.
endpoint *stringHTTPS URL that receives the notifications.
topic *stringThe event to subscribe to.
confirmbooleanMust be true. Set it only after the user has confirmed this exact action in this conversation.

oblio_delete_webhook Delete a webhook

Delete a webhook subscription by id (from oblio_list_webhooks). Needs confirm: true. DELETE /api/webhooks/{id}.

ParameterTypeDescription
id *stringWebhook id from oblio_list_webhooks.
confirmbooleanMust be true. Set it only after the user has confirmed this exact action in this conversation.