API Reference
Start developing plugins for BizFusion.

 
Voucher Line (VoucherLineDTO)

Income and Expense Vouchers consist of Voucher Lines.

Note that the type of account that you can specify depends on the type of voucher that you are creating.
E.g. you can only specify expense accounts on expense vouchers.
Likewise, you can only specify profit accounts on income vouchers.


Properties
property data type reference
VoucherLineId Int32 Primary Key
VoucherId Int32
AccountId Int32 AccountDTO
Amount Decimal
VatLineId Int32 VatLineDTO
Quantity Int32
Description String
Timestamp String


Methods
method parameters URL
Get
/api/VoucherLine
Get
Int32 id
/api/VoucherLine?id={value}
Get
Int32 pageIndex, Int32 recordsPerPage
/api/VoucherLine?pageIndex={value}&recordsPerPage={value}
GetRecordCount
/api/VoucherLineSet/RecordCount
GetByField
String field, String value
/api/VoucherLineSet/ByField?field={value}&value={value}
GetAfterId
Int32 id
/api/VoucherLineSet/AfterId?id={value}
GetBeforeId
Int32 id
/api/VoucherLineSet/BeforeId?id={value}
GetMaxId
/api/VoucherLineSet/MaxId


JSON sample
{
  "Timestamp": "AQIDKw==",
  "VoucherLineId": 1,
  "VoucherId": 1,
  "AccountId": 11,
  "Amount": 900.0,
  "VatLineId": 1,
  "Quantity": 1,
  "Description": "Laptop"
}


General Info

- Numbers should be in English format: 124.99
- Dates look like: 2014-12-31T00:00:00
- Time information is ignored.
- Concurrency is handled through timestamps

Create Record (POST)

- Primary keys are not required when doing a post.
- Timestamps are not required when doing a post.
- Provide the JSON record in the body of the post request.

Update Record (PUT)

- Timestamps are required.
- Provide the JSON record in the body of the put request.

Delete Record (DELETE)

- Primary key and Timestamp are required.