List invoices
Changed onList invoices (faturas) with filters and pagination.
Translates VBA: PTQ_Financeiro_list
Request
- Base URLhttps://api.multigest.pt (the document declares no server; this is the origin it was published from)
- URLhttps://api.multigest.pt/api/invoices
- AuthAPI key in header x-api-token and API key in header x-origin-verify
Query parameters
Filter by year
Filter by month(s) — CSV of 1-12 (#695 multi)
Filter by document type(s) — CSV (#695 multi)
Filter by sent to accountant
Search in number, ATCUD, emitter/acquirer NIF or client name
Filter by client NIF(s) (Faturas.A) — CSV (#695 multi)
Filter by acquirer/customer NIF(s) (Faturas.B) — CSV
Flow filter: 'vendas' (own PV NIF/NIPC) or 'compras'
CSV of justified|partially_justified|unjustified|over_justified (#695 multi)
CSV of paid|partially_paid|unpaid|over_paid (#695 multi)
CSV of TOConline archive states: enviada|arquivada|erro_arquivo|sem_confirmacao|sem_feedback (#695 multi)
Filter by PV the invoice belongs to (uploaded OR cost-center split) — CSV of PontosDeVenda.ID
Filter by presence of a cost-center split (true=has one, false=has none)
Filter by dataentrada >= this date (YYYY-MM-DD)
Filter by dataentrada <= this date, inclusive (YYYY-MM-DD)
Order by: data (document date) | entrada (upload date) | valor | numero
asc | desc (default desc)
Period filters read: entrada (upload date, default) | documento (document date)
Headers
Response
Successful Response
Changes
- info
added the new optional
queryrequest parameterdate_field - info
added the new optional
queryrequest parametersort_by - info
added the new optional
queryrequest parametersort_order
- info