Skip to main content
GET
List invoices
Filter by text, customer, dates or payment status. To page, pass next_cursor as cursor and keep the other parameters.

Authorizations

Authorization
string
header
required

A company API key, mk_live_…, that the company's owner creates in the Melso app under Settings, Connect your AI, API keys. It works in that one company with the owner's authority. Test keys (mk_test_…) are not issued. Keep the key on your servers. See Authentication.

Path Parameters

company_id
string<uuid>
required

The company's ID. Every company-scoped call works in exactly this company.

Query Parameters

q
string

Text found in the customer's name, its tax ID or the document number, without case.

Maximum string length: 500
document_number
string

Part of the document number (series/number), without case.

Maximum string length: 200
customer_id
string<uuid>

Only this customer's invoices, including those of the duplicates merged into it.

start_date
string<date>

Issued on or after this date.

end_date
string<date>

Issued on or before this date.

due_date_start
string<date>

Due on or after this date.

due_date_end
string<date>

Due on or before this date.

status
enum<string>

By payment, not by the invoice's status. pending: nothing paid. partial: partly paid. completed: settled. outstanding: something still owed, drafts excluded. overdue: outstanding and due before today in Spain (Europe/Madrid). Payments are the ones marked paid and the bank movements reconciled in Melso; they do not confirm a transfer.

Available options:
pending,
partial,
completed,
outstanding,
overdue
sort
enum<string>
default:-date

The order. A leading - sorts from the highest or latest.

Available options:
date,
-date,
due_date,
-due_date,
total,
-total
limit
integer
default:50

Page size.

Required range: 1 <= x <= 200
cursor
string

The next_cursor of the previous page.

Response

A page of invoices.

data
object[]
required
has_more
boolean
required

Another page follows.

next_cursor
string | null
required

Pass it as cursor for the next page. null on the last page.