Skip to main content
Beta. Melso does not serve these endpoints yet, and their fields can still change.
Melso keeps each company’s books from what you send it. Every record updates the company’s tax estimates at once, and Melso’s professionals review them before any return.

Choose how to send them

Invoices the company issues through Melso invoicing are booked already. Do not send them again.

Send a document

The surest way: Melso reads the file itself and keeps it as evidence for the AEAT.
The answer is 202, processing. Read the document again, or wait for its webhook, until it is booked with its expense_id, needs_review for Melso’s professionals, or duplicate of an expense already booked.

Send the figures

Duplicates and checks

Melso never refuses a record for looking odd. It books it and says why in warnings: Delete the record if it was a mistake. A VAT book import is stricter: it skips duplicates and refuses rows that do not add up, and its answer lists both.

The accounting account

account is the Spanish chart of accounts (PGC) account, such as 600 (goods), 601 (raw materials), 602 (other supplies) or 629 (other services). Send it on each line of vat_lines to split one invoice, such as food and cleaning products from the same supplier. Without it, Melso picks the account from the company’s activity and the expense’s category.

Credit notes

Send a credit note as an expense with negative amounts, and name the expense it corrects in rectifies_expense_id.

Import a VAT book

For a quarter’s or a year’s history, send the received or issued VAT book in one call. Each row is an invoice: number, date, counterparty NIF and name, base, rate, VAT and total. The answer lists the rows created, skipped as duplicates, and refused with their reason.

Everything else

Bank statements, payroll and the company’s own invoices have their own endpoints in the Melso API.