GetInvoice

Request: GET

Signature: /api/v1/getinvoice?id=1234


Gets the list of invoices created in the system 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:

FromDate: Invoices from this date onwards are included (FromDate is included)

ToDate: Invoices till this date are included (ToDate is included)

Sample Response:

{

"Code": 1,

"Info": "",

"RowsAffected": 0,

"Scalar": null,

"Identity": 0,

"RetInfo": {

"ID": 1234,

"InvNum": "INV0002",

"InvDate": "2024-04-15T00:00:00",

"Type": "I",

"Status": null,

"EntID": 39,

"EntCode": "ABCD",

"CreditDays": 30,

"PFCount": 1,

"TaxExempt": null,

"Currency": "USD",

"Total": 54129.00,

"JobIDs": [

315,

317,

323,

325,

326,

328,

329,

336,

1060,

1124,

1199,

1205,

1557,

2042

],

"DocID": 28,

"CreatedBy": "ADMIN",

"CreatedOn": "2024-04-03T12:29:09.893",

"ApprovedBy": "ADMIN",

"ApprovedOn": "2024-04-15T11:47:56.52",

"RefInvID": 0,

"Accounts": [

{

"AccID": 3289,

"Name": "Charge 1",

"LocalName": null,

"Code": "PPOL",

"JobID": 323,

"Rate": 36588.81,

"Qty": 1.000,

"Total": 36588.81,

"Taxes": [

{

"TaxCode": "VAT",

"FinCode": "VAT",

"Rate": 20.00

}

],

"IntRemarks": null,

"ExtRemarks": null,

"Updated": "2024-04-15T11:47:40.25"

},

{

"AccID": 3307,

"Name": "Charge 2",

"LocalName": null,

"Code": "POLA",

"JobID": 315,

"Rate": 36588.81,

"Qty": 1.000,

"Total": 36588.81,

"Taxes": [

{

"TaxCode": "VAT",

"FinCode": "VAT",

"Rate": 20.00

}

],

"IntRemarks": null,

"ExtRemarks": "Remarks",

"Updated": "2024-04-15T11:47:40.26"

},

{

"AccID": 3327,

"Name": "Charge 3",

"LocalName": null,

"Code": "ORGDELRL",

"JobID": 328,

"Rate": 47588.63,

"Qty": 1.000,

"Total": 47588.63,

"Taxes": [

{

"TaxCode": "VAT",

"FinCode": "VAT",

"Rate": 20.00

}

],

"IntRemarks": null,

"ExtRemarks": null,

"Updated": "2024-04-15T11:47:40.267"

}

],

"Actions": [

{

"LogTime": "2024-04-03T12:29:09.94",

"Action": "Invoice Created",

"Data": "Number: PF001234-1",

"UserID": "ADMIN"

},

{

"LogTime": "2024-04-03T15:45:18.763",

"Action": "Invoice Updated",

"Data": "ID: 1234; \r\nCurrency: USD⇒UAH; \r\n",

"UserID": "ADMIN"

},

{

"LogTime": "2024-04-04T12:11:33.453",

"Action": "Add Invoice Document",

"Data": "InvID: 48; Doc: Pro-Forma Invoice - PF001234-1",

"UserID": "ADMIN"

},

{

"LogTime": "2024-04-09T07:31:10.183",

"Action": "Invoice Updated",

"Data": "ID: 1234; \r\nCurrency: UAH⇒USD; \r\n",

"UserID": "ADMIN"

},

{

"LogTime": "2024-04-15T11:48:06.903",

"Action": "Add Invoice Document",

"Data": "InvID: 1234; Doc: Invoice - INV0002",

"UserID": "ADMIN"

},

{

"LogTime": "2024-04-15T11:48:06.91",

"Action": "Invoice Approved",

"Data": "Number: INV0002; Last Pro-Forma: PF001234-1",

"UserID": "ADMIN"

},

{

"LogTime": "2024-04-15T11:48:47.357",

"Action": "Invoice Finalised",

"Data": "Number: INV0002",

"UserID": "ADMIN"

}

]

}

}