GetBill

Request: GET

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


Gets the bill from the system based on the ID parameter.


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


Query parameters:

ID: The ID of the bill

Sample Response:

{

"Code": 1,

"Info": "",

"RowsAffected": 0,

"Scalar": null,

"Identity": 0,

"RetInfo": {

"ID": 48,

"BillNumber": "762",

"BillDate": "2024-03-31",

"Received": "2024-04-18",

"Status": "Finalised",

"EntID": 665,

"EntCode": "ABCD-LTD",

"DueDate": null,

"TaxDeduct": 0.0,

"Currency": "USD",

"Total": 10614.29,

"Actual": 10614.42,

"JobIDs": [

1250,

1364,

1436,

1562,

1617

],

"WorkOrders": [

5715,

6218,

6488,

6756,

6837

],

"AddedBy": "ADMIN",

"AddedOn": "2024-04-18T11:07:06.52",

"ValidatedBy": "SMITH",

"ValidatedOn": "2024-04-18T11:25:49.84",

"Accounts": [

{

"AccID": 7331,

"Name": "Account Line 1",

"LocalName": null,

"Code": "FER",

"JobID": 1562,

"Rate": 1769.28,

"Qty": 1.000,

"Total": 1769.28,

"Taxes": [

{

"TaxCode": "VAT",

"FinCode": "VAT",

"Rate": 20.00

}

],

"IntRemarks": null,

"ExtRemarks": null,

"Updated": "2024-04-18T11:25:42.023"

},

{

"AccID": 8449,

"Name": "Account Line 2",

"LocalName": null,

"Code": "FSS",

"JobID": 1250,

"Rate": 1769.28,

"Qty": 1.000,

"Total": 1769.28,

"Taxes": [

{

"TaxCode": "VAT",

"FinCode": "VAT",

"Rate": 20.00

}

],

"IntRemarks": null,

"ExtRemarks": null,

"Updated": "2024-04-18T11:25:42.027"

},

{

"AccID": 8471,

"Name": "Account Line 3",

"LocalName": null,

"Code": "POOL",

"JobID": 1617,

"Rate": 1768.89,

"Qty": 1.000,

"Total": 1768.89,

"Taxes": [

{

"TaxCode": "VAT",

"FinCode": "VAT",

"Rate": 20.00

}

],

"IntRemarks": null,

"ExtRemarks": null,

"Updated": "2024-04-18T11:25:42.03"

},

{

"AccID": 8493,

"Name": "Account Line 5",

"LocalName": null,

"Code": "ASC5",

"JobID": 1436,

"Rate": 1768.89,

"Qty": 1.000,

"Total": 1768.89,

"Taxes": [

{

"TaxCode": "VAT",

"FinCode": "VAT",

"Rate": 20.00

}

],

"IntRemarks": null,

"ExtRemarks": null,

"Updated": "2024-04-18T11:25:42.033"

},

{

"AccID": 8515,

"Name": "Account Line 6",

"LocalName": null,

"Code": "POKI",

"JobID": 1364,

"Rate": 1768.89,

"Qty": 1.000,

"Total": 1768.89,

"Taxes": [

{

"TaxCode": "VAT",

"FinCode": "VAT",

"Rate": 20.00

}

],

"IntRemarks": null,

"ExtRemarks": null,

"Updated": "2024-04-18T11:25:42.037"

}

],

"Actions": [

{

"LogTime": "2024-04-18T11:07:06.527",

"Action": "Bill Created",

"Data": "ID: 48; \r\nBill Date: 3/31/2024 12:00:00 AM; \r\nBill Number: 762; \r\nCompany: 2; \r\nCurrency: USD; \r\nEntity ID: 6; \r\nTotal Amount (incl Tax): 10614.42; \r\nTotal Tax Amount: 1769.07; \r\nTax Deduction: 0; \r\nBill Received On: 4/18/2024 12:00:00 AM; \r\nDisputed: False; \r\n",

"UserID": "ADMIN"

},

{

"LogTime": "2024-04-18T11:07:06.537",

"Action": "Status Change",

"Data": "New Status: Created; Bill Number: 762;",

"UserID": "ADMIN"

},

{

"LogTime": "2024-05-15T14:32:13.597",

"Action": "Status Change",

"Data": "New Status: Finalised; Bill Number: 762;",

"UserID": "ADMIN"

}

]

}

}