GetInvoiceList

Request: GET

Signature: /api/v1/getinvoicelist?DateType=InvDate&FromDate=2024-01-01&ToDate=2024-01-31


Gets the list of invoices in the system based on the DateType parameter between the parameter dates. Please note that the InvNum and InvDate properties for each invoice may change until the final invoice is issued.


The token must be passed as a Header in the request.


Query parameters:

DateType: Must be one of the following: InvDate, Created, Approved, Finalised. Note that except InvDate, all other date types expect a time stamp as well.

FromDate: Invoices from this date/time onwards are included (FromDate is included). Date/Times are in UTC.

ToDate: Invoices till this date/time are included (ToDate is included). Date/Times are in UTC.


Response:

{

"Code": 1,

"Info": "",

"RowsAffected": 2,

"Scalar": null,

"Identity": 0,

"RetInfo": [

{

"ID": 29,

"InvNum": "0001",

"InvDate": "2024-03-18",

"Type": "I",

"Status": "Finalised",

"EntID": 39,

"EntCode": "MSRS",

"Currency": "USD",

"Total": 81479.58,

"JobIDs": [1723, 1899],

"DocID": 18,

"CreatedBy": "ADMIN",

"CreatedOn": "2024-03-12T15:23:38.89",

"ApprovedBy": "ADMIN",

"ApprovedOn": "2024-03-18T09:24:20.33"

},

{

"ID": 30,

"InvNum": "PF0012-1",

"InvDate": "2024-04-02",

"Type": "I",

"Status": "Draft",

"EntID": 6,

"EntCode": "XYZ",

"Currency": "EUR",

"Total": 4050.00,

"JobIDs": [],

"DocID": null,

"CreatedBy": "ADMIN",

"CreatedOn": "2024-03-18T09:46:22.153",

"ApprovedBy": null,

"ApprovedOn": null

}

]

}