API Reference
Start developing plugins for BizFusion.

 
Custom Voucher (CustomVoucherDTO)

You use a Custom Voucher to create a custom journal entry in BizFusion.

There are three transaction types that you can choose from:
1. Income (money in)
2. Expense (money out)
3. Neutral (no money flow)

You can link payments to income and expense transactions.
You can't link a payment to neutral transactions.


Properties
property data type reference
CustomVoucherId Int32 Primary Key
CustomVoucherDate DateTime
CustomerId Int32 CustomerDTO
TransactionTypeId Int32 TransactionTypeDTO
Reference String
Timestamp String
CustomVoucherLine Array of: CustomVoucherLineDTO


Methods
method parameters URL
Get
/api/CustomVoucher
Get
Int32 id
/api/CustomVoucher?id={value}
Get
Int32 pageIndex, Int32 recordsPerPage
/api/CustomVoucher?pageIndex={value}&recordsPerPage={value}
Post /api/CustomVoucher
Put /api/CustomVoucher?id={value}
Delete
Int32 id, String timestamp
/api/CustomVoucher?id={value}&timestamp={value}
GetJournalTransactionId
Int32 id
/api/CustomVoucherSet/JournalTransactionId?id={value}
GetByYear
Int32 year
/api/CustomVoucherSet/ByYear?year={value}
GetByPeriod
DateTime startDate, DateTime endDate
/api/CustomVoucherSet/ByPeriod?startDate={value}&endDate={value}
GetRecordCount
/api/CustomVoucherSet/RecordCount
PostCashPayment
Int32 journalTransactionId
/api/CustomVoucherSet/CashPayment?journalTransactionId={value}
GetPayments
Int32 id
/api/CustomVoucherSet/Payments?id={value}
GetByCustomerId
Int32 id
/api/CustomVoucherSet/ByCustomerId?id={value}
PutUnpost
Int32 id, String timestamp
/api/CustomVoucherSet/Unpost?id={value}&timestamp={value}
PutUnpostAndDelete
Int32 id, String timestamp
/api/CustomVoucherSet/UnpostAndDelete?id={value}&timestamp={value}
GetByField
String field, String value
/api/CustomVoucherSet/ByField?field={value}&value={value}
GetAfterId
Int32 id
/api/CustomVoucherSet/AfterId?id={value}
GetBeforeId
Int32 id
/api/CustomVoucherSet/BeforeId?id={value}
GetMaxId
/api/CustomVoucherSet/MaxId




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.