A-Cube MCP by usefulapi

v1.13.1
io.usefulapi/acube Checked 2 days ago Published 21 hours ago

Read Italian invoices, receipts and SDI notices; validate, prepare and submit agreed drafts.

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

acube_list_invoices List invoices

Sent and received Italian e-invoices (SDI) of the account: uuid, invoice number and date, document type (TD01...), sender and recipient, amounts, marking and notification status. Filter by date, number, document type, party name or VAT number. GET /invoices.

ParameterTypeDescription
created_fromstringCreated in A-Cube on or after this day.
created_tostringCreated in A-Cube on or before this day.
document_typestringSDI document type, e.g. TD01 (invoice), TD04 (credit note), TD17-TD19 (reverse-charge self-invoices).
downloadedbooleanOnly invoices already downloaded (true) or not yet (false).
invoice_date_fromstringInvoice date on or after this day.
invoice_date_tostringInvoice date on or before this day.
invoice_numberstringExact invoice number.
items_per_pageintegerItems per page, 1 to 30 (default 30). A full page means there may be more: ask for the next page.
orderstringSort direction (default desc).
order_bystringSort field (default invoice_date).
pageintegerPage number, from 1 (default 1).
recipient_namestringRecipient business name (partial match).
recipient_vat_numberstringRecipient VAT number code (digits, without the country prefix).
sender_namestringSender business name (partial match).
sender_vat_numberstringSender VAT number code (digits, without the country prefix).
signedbooleanOnly signed (true) or unsigned (false) invoices.

acube_get_invoice Get an invoice

One invoice by uuid: metadata plus the FatturaPA JSON payload (parties, lines, VAT, payment), or the XML file sent to the SDI. GET /invoices/{uuid}.

ParameterTypeDescription
uuid *stringThe invoice uuid (from acube_list_invoices).
formatstringjson (default) or xml.

acube_list_invoice_notifications List an invoice's SDI notifications

The SDI notifications of one invoice (delivery receipt RC, rejection NS, outcome NE, failed delivery MC, deadline expiry DT...), with their type, date and status: how you tell whether an invoice was delivered or rejected. GET /invoices/{uuid}/notifications.

ParameterTypeDescription
uuid *stringThe invoice uuid.

acube_get_notification Get an SDI notification

One SDI notification by uuid, with its payload. GET /notifications/{uuid}.

ParameterTypeDescription
uuid *stringThe notification uuid (from acube_list_invoice_notifications).

acube_get_invoice_stats Get invoice statistics

Counters of invoices and notifications for a year (annual; monthly or daily detail only if A-Cube activated it), for the whole account or one fiscal id. GET /invoices/stats/{year}.

ParameterTypeDescription
year *integerThe year, e.g. 2026.
fiscal_idstringOnly this customer's fiscal id (a business registry configuration).

acube_list_draft_invoices List draft invoices

Draft invoices that were created but not yet sent to the SDI. Same filters as acube_list_invoices. GET /invoices/draft.

ParameterTypeDescription
invoice_date_fromstringInvoice date on or after this day.
invoice_date_tostringInvoice date on or before this day.
invoice_numberstringExact invoice number.
items_per_pageintegerItems per page, 1 to 30 (default 30). A full page means there may be more: ask for the next page.
pageintegerPage number, from 1 (default 1).
recipient_namestringRecipient business name (partial match).

acube_get_draft_invoice Get a draft invoice

One draft invoice by uuid, with its FatturaPA JSON content. GET /invoices/draft/{uuid}.

ParameterTypeDescription
uuid *stringThe draft invoice uuid.

acube_validate_invoice Validate an invoice (no save)

Checks an invoice against the FatturaPA rules without creating or sending anything; returns the validation result or A-Cube's errors. POST /invoices/validate.

ParameterTypeDescription
fattura_elettronica_body *arrayExactly one invoice body (an array with one object), snake_case keys: dati_generali (dati_generali_documento...), dati_beni_servizi (dettaglio_linee, dati_riepilogo), optional dati_pagamento. Field na…
fattura_elettronica_headerobjectFatturaPA header as A-Cube JSON (snake_case keys): dati_trasmissione (codice_destinatario, pec_destinatario), cedente_prestatore (seller), cessionario_committente (buyer). Give the full header (seller…

acube_create_draft_invoice Create a draft invoice

WRITE: saves a new invoice as a DRAFT in A-Cube. Nothing is sent to the SDI until acube_send_draft_invoice. Not idempotent: calling it twice creates two drafts. Validate first with acube_validate_invoice. POST /invoices/draft.

ParameterTypeDescription
fattura_elettronica_body *arrayExactly one invoice body (an array with one object), snake_case keys: dati_generali (dati_generali_documento...), dati_beni_servizi (dettaglio_linee, dati_riepilogo), optional dati_pagamento. Field na…
fattura_elettronica_headerobjectFatturaPA header as A-Cube JSON (snake_case keys): dati_trasmissione (codice_destinatario, pec_destinatario), cedente_prestatore (seller), cessionario_committente (buyer). Give the full header (seller…

acube_send_draft_invoice Send a draft invoice to the SDI

WRITE: accepts a draft and transmits it to the Sistema di Interscambio. This is a legal act: a sent e-invoice cannot be recalled (only corrected with a credit note) and may be billed by A-Cube. Without confirm: true it only returns the draft for review. Show the draft to the user and get their explicit OK first. POST /invoices/draft/{uuid}/send.

ParameterTypeDescription
uuid *stringThe draft invoice uuid.
confirmbooleanMust be true to actually send. Otherwise the draft is returned as a preview.

acube_delete_draft_invoice Delete a draft invoice

WRITE: permanently deletes a draft invoice (a draft only: a sent invoice answers 409). Without confirm: true it only returns the draft. DELETE /invoices/draft/{uuid}.

ParameterTypeDescription
uuid *stringThe draft invoice uuid.
confirmbooleanMust be true to actually delete. Otherwise the draft is returned as a preview.

acube_list_receipts List electronic receipts

Electronic commercial receipts (scontrini) with number, date, status, type (sale, void, return) and totals. GET /receipts.

ParameterTypeDescription
document_date_fromstringReceipt date on or after this day.
document_date_tostringReceipt date on or before this day.
document_numberstringExact receipt document number.
fiscal_idstringOnly this business's receipts (its fiscal id).
items_per_pageintegerItems per page, 1 to 100 (default 30). A full page means there may be more: ask for the next page.
pageintegerPage number, from 1 (default 1).
statusstringReceipt status, as shown in the list.
typestringReceipt type, e.g. sale, void, return.

acube_get_receipt Get an electronic receipt

One electronic receipt by uuid: type, status, number, date, total and links to voiding or returned receipts (no line items: use acube_get_receipt_details). GET /receipts/{uuid}.

ParameterTypeDescription
uuid *stringThe receipt uuid (from acube_list_receipts).

acube_get_receipt_details Get electronic receipt details

The line items and VAT, discount and taxable totals of one electronic receipt. GET /receipts/{uuid}/details.

ParameterTypeDescription
uuid *stringThe receipt uuid (from acube_list_receipts).

acube_list_business_registry_configurations List business registry configurations

The businesses (fiscal ids) set up on the account, with which services are on: customer invoices, supplier invoices, receipts, signature, legal storage. GET /business-registry-configurations.

ParameterTypeDescription
emailstringContact email.
fiscal_idstringExact fiscal id.
items_per_pageintegerItems per page, 1 to 100 (default 30). A full page means there may be more: ask for the next page.
namestringBusiness name (partial match).
pageintegerPage number, from 1 (default 1).
receipts_enabledbooleanOnly businesses with electronic receipts on (true) or off (false).
supplier_invoice_enabledbooleanOnly businesses that receive supplier invoices (true) or not (false).

acube_get_business_registry_configuration Get a business registry configuration

One business by fiscal id: name, email, enabled services and its webhook configurations. GET /business-registry-configurations/{fiscalId}.

ParameterTypeDescription
fiscal_id *stringThe business's fiscal id (codice fiscale or partita IVA).

acube_list_webhooks List webhook configurations

The webhooks (events and target URLs) configured on the account. Authentication keys and tokens are never returned. GET /api-configurations.

ParameterTypeDescription
fiscal_idstringOnly webhooks of this business (fiscal id).
items_per_pageintegerItems per page, 1 to 30 (default 30). A full page means there may be more: ask for the next page.
pageintegerPage number, from 1 (default 1).

acube_list_numbering_sequences List numbering sequences

The invoice numbering sequences (name, year, last number). GET /numbering-sequences.

ParameterTypeDescription
items_per_pageintegerItems per page, 1 to 100 (default 30). A full page means there may be more: ask for the next page.
pageintegerPage number, from 1 (default 1).
sequence_namestringOnly this sequence name.
yearintegerOnly this year.

acube_get_current_numbering_sequence Get the current numbering sequence

The sequence now in use for a sequence name. Its number is the LAST number used: the next invoice gets that number plus one. GET /numbering-sequences/current/{name}.

ParameterTypeDescription
name *stringThe sequence name.

acube_list_jobs List background jobs

Background jobs (invoice, report and zip downloads, F24 and daily receipt report downloads) with status ready, started, completed or error. GET /jobs.

ParameterTypeDescription
fiscal_idstringOnly this business's jobs.
items_per_pageintegerItems per page, 1 to 30 (default 30). A full page means there may be more: ask for the next page.
job_typestringOnly this job type.
pageintegerPage number, from 1 (default 1).
statusstringOnly jobs in this status.

acube_get_job Get a background job

One background job by uuid with its status and result. GET /jobs/{uuid}.

ParameterTypeDescription
uuid *stringThe job uuid (from acube_list_jobs).

acube_verify_fiscal_id Check a fiscal id

Checks whether a codice fiscale or partita IVA is valid. GET /verify/fiscal-id/{id}.

ParameterTypeDescription
id *stringThe fiscal id or VAT number to check, e.g. 12345678901.

acube_verify_company Look up an Italian company

Basic registry data of an Italian company by VAT number (name, address, status), optionally with the split-payment check. GET /verify/company/{id}.

ParameterTypeDescription
id *stringThe company's VAT number or fiscal id.
check_split_paymentbooleanAlso tell whether the company is subject to split payment.

acube_get_recipient_code Get the SDI recipient code

The account's 7-character SDI recipient code (codice destinatario), the address customers put on invoices they send to you. GET /users/me/recipient-code.