Oblio MCP by usefulapi
v1.28.1Read 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.
| Parameter | Type | Description |
|---|---|---|
cif * | string | CIF 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.
| Parameter | Type | Description |
|---|---|---|
cif * | string | CIF 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.
| Parameter | Type | Description |
|---|---|---|
cif * | string | CIF 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.
| Parameter | Type | Description |
|---|---|---|
cif * | string | CIF 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.
| Parameter | Type | Description |
|---|---|---|
cif * | string | CIF of YOUR company in Oblio (from oblio_list_companies), for example RO37311090. |
client_cif | string | CIF of the client to find. |
name | string | Client name to search. |
offset | integer | Start 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.
| Parameter | Type | Description |
|---|---|---|
cif * | string | CIF of YOUR company in Oblio (from oblio_list_companies), for example RO37311090. |
code | string | Product code to find. |
include_unsalable | boolean | true = include products marked as not for sale. |
management | string | Stock management to search in (see oblio_list_management). |
name | string | Product name to search. |
offset | integer | Start position, a multiple of 250 (0 default); use next_offset from the previous reply. |
work_station | string | Work 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>.
| Parameter | Type | Description |
|---|---|---|
cif * | string | CIF of YOUR company in Oblio (from oblio_list_companies), for example RO37311090. |
number * | string | Document number within the series, digits only (0055 and 55 are the same). |
series_name * | string | Document series name (from oblio_list_series), for example FCT. |
type * | string | invoice (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.
| Parameter | Type | Description |
|---|---|---|
cif * | string | CIF of YOUR company in Oblio (from oblio_list_companies), for example RO37311090. |
canceled | boolean | true = only canceled, false = only not canceled. |
client_cif | string | Only invoices of the client with this CIF. |
client_code | string | Only invoices of the client with this code. |
client_email | string | Only invoices of the client with this e-mail. |
collected | boolean | true = only collected (paid), false = only not collected. |
draft | boolean | true = only drafts, false = only issued. |
issued_after | string | Issued on or after yyyy-mm-dd. |
issued_before | string | Issued on or before yyyy-mm-dd. |
limit_per_page | integer | Results per page, 1-100 (default 100). |
number | string | Only this document number. |
offset | integer | Start position (0 default); use next_offset from the previous reply. |
order_by | string | |
order_dir | string | |
series_name | string | Only this series. |
with_collects | boolean | Include the collections. |
with_einvoice_status | boolean | Include the e-Factura (SPV) status. |
with_products | boolean | Include 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.
| Parameter | Type | Description |
|---|---|---|
cif * | string | CIF of YOUR company in Oblio (from oblio_list_companies), for example RO37311090. |
client * | object | |
products * | array | 1-200 lines: products/services (name + price) or discounts (name + discount). |
series_name * | string | Document series name (from oblio_list_series), for example FCT. |
currency | string | Document currency (default "RON"). |
due_date | string | Due date yyyy-mm-dd. |
exchange_rate | number | Exchange rate for a foreign-currency document (default: the company's setting). |
idempotency_key | string | Unique key so Oblio drops a duplicate of the same request. |
internal_note | string | Internal note, not visible to the client. |
issue_date | string | Issue date yyyy-mm-dd (default today). |
issuer_name | string | Prepared by (intocmit de). |
language | string | Document language code from oblio_list_languages (default "RO"). |
mentions | string | Mentions printed on the document. |
order_number | string | Order number (BT-13). |
precision | integer | Decimals, 2 to 4 (default 2). |
work_station | string | Work 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…
| Parameter | Type | Description |
|---|---|---|
cif * | string | CIF of YOUR company in Oblio (from oblio_list_companies), for example RO37311090. |
idempotency_key * | string | REQUIRED unique key for this invoice (for example a UUID) so Oblio drops a duplicate of the same request. |
series_name * | string | Document series name (from oblio_list_series), for example FCT. |
client | object | The client. Required unless reference_document is given (then Oblio takes it from the referenced document). |
collect | object | Record the payment together with the invoice. |
collect_date | string | Collection date yyyy-mm-dd. |
confirm | boolean | Must be true. Set it only after the user has confirmed this exact action in this conversation. |
currency | string | Document currency (default "RON"). |
delivery_date | string | Delivery date yyyy-mm-dd. |
due_date | string | Due date yyyy-mm-dd. |
exchange_rate | number | Exchange rate for a foreign-currency document (default: the company's setting). |
internal_note | string | Internal note, not visible to the client. |
issue_date | string | Issue date yyyy-mm-dd (default today). |
issuer_name | string | Prepared by (intocmit de). |
language | string | Document language code from oblio_list_languages (default "RO"). |
mentions | string | Mentions printed on the document. |
order_number | string | Order number (BT-13). |
precision | integer | Decimals, 2 to 4 (default 2). |
products | array | 1-200 lines: products/services (name + price) or discounts (name + discount). Required unless reference_document is given. |
reference_document | object | Base the invoice on a proforma or notice, or reverse an invoice. |
use_stock | boolean | Take the goods out of stock (only with stock enabled). |
work_station | string | Work 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.
| Parameter | Type | Description |
|---|---|---|
cif * | string | CIF of YOUR company in Oblio (from oblio_list_companies), for example RO37311090. |
collect * | object | |
number * | string | Document number within the series, digits only (0055 and 55 are the same). |
series_name * | string | Document series name (from oblio_list_series), for example FCT. |
confirm | boolean | Must 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.
| Parameter | Type | Description |
|---|---|---|
cif * | string | CIF of YOUR company in Oblio (from oblio_list_companies), for example RO37311090. |
number * | string | Document number within the series, digits only (0055 and 55 are the same). |
series_name * | string | Document series name (from oblio_list_series), for example FCT. |
type * | string | invoice (factura), proforma or notice (aviz de insotire). |
confirm | boolean | Must 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.
| Parameter | Type | Description |
|---|---|---|
cif * | string | CIF of YOUR company in Oblio (from oblio_list_companies), for example RO37311090. |
number * | string | Document number within the series, digits only (0055 and 55 are the same). |
series_name * | string | Document series name (from oblio_list_series), for example FCT. |
type * | string | invoice (factura), proforma or notice (aviz de insotire). |
confirm | boolean | Must 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.
| Parameter | Type | Description |
|---|---|---|
cif * | string | CIF of YOUR company in Oblio (from oblio_list_companies), for example RO37311090. |
number * | string | Document number within the series, digits only (0055 and 55 are the same). |
series_name * | string | Document series name (from oblio_list_series), for example FCT. |
confirm | boolean | Must 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.
| Parameter | Type | Description |
|---|---|---|
cif * | string | CIF of YOUR company in Oblio (from oblio_list_companies), for example RO37311090. |
endpoint * | string | HTTPS URL that receives the notifications. |
topic * | string | The event to subscribe to. |
confirm | boolean | Must 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}.
| Parameter | Type | Description |
|---|---|---|
id * | string | Webhook id from oblio_list_webhooks. |
confirm | boolean | Must be true. Set it only after the user has confirmed this exact action in this conversation. |