API Reference
Start developing plugins for BizFusion.

 
Income Voucher (IncomeVoucherDTO)

You use an Invoice to register income from the sale of goods and services, but you may also
have income from other activities. E.g. you receive interest on extended company loans.
This is also income that you need to register and you use an income voucher to do that.

The specified customer plays the role of 'Debtor'.
This person/company owes you money.


Properties
property data type reference
VoucherId Int32
VoucherDate DateTime
CustomerId Int32 CustomerDTO
Reference String
Timestamp String
VoucherLine Array of: VoucherLineDTO


Methods
method parameters URL
Get
/api/IncomeVoucher
Get
Int32 id
/api/IncomeVoucher?id={value}
Get
Int32 pageIndex, Int32 recordsPerPage
/api/IncomeVoucher?pageIndex={value}&recordsPerPage={value}
Post /api/IncomeVoucher
Put /api/IncomeVoucher?id={value}
Delete
Int32 id, String timestamp
/api/IncomeVoucher?id={value}&timestamp={value}
GetJournalTransactionId
Int32 id
/api/IncomeVoucherSet/JournalTransactionId?id={value}
GetByYear
Int32 year
/api/IncomeVoucherSet/ByYear?year={value}
GetByPeriod
DateTime startDate, DateTime endDate
/api/IncomeVoucherSet/ByPeriod?startDate={value}&endDate={value}
GetRecordCount
/api/IncomeVoucherSet/RecordCount
PostCashPayment
Int32 journalTransactionId
/api/IncomeVoucherSet/CashPayment?journalTransactionId={value}
GetPayments
Int32 id
/api/IncomeVoucherSet/Payments?id={value}
GetByCustomerId
Int32 id
/api/IncomeVoucherSet/ByCustomerId?id={value}
PutUnpost
Int32 id, String timestamp
/api/IncomeVoucherSet/Unpost?id={value}&timestamp={value}
PutUnpostAndDelete
Int32 id, String timestamp
/api/IncomeVoucherSet/UnpostAndDelete?id={value}&timestamp={value}
GetByField
String field, String value
/api/IncomeVoucherSet/ByField?field={value}&value={value}
GetAfterId
Int32 id
/api/IncomeVoucherSet/AfterId?id={value}
GetBeforeId
Int32 id
/api/IncomeVoucherSet/BeforeId?id={value}
GetMaxId
/api/IncomeVoucherSet/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.