List sales invoices
merit_list_sales_invoicesRead-only
List sales invoices (header level: number, customer, dates, totals, paid flag) of a period. The period may span at most 3 months (Merit limit); for longer spans make several calls. Use merit_get_sales_invoice for the lines. POST /api/v2/getinvoices.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date_type | No | Which date the period filters: 0 = document date (default), 1 = date of last change. | |
| period_end | Yes | Last day of the period, yyyy-mm-dd (max 3 months after the start). | |
| max_results | No | Show at most this many rows (default 100, max 1000); the reply says how many there are in total. | |
| unpaid_only | No | true = only unpaid invoices. | |
| period_start | Yes | First day of the period, yyyy-mm-dd. |