API Reference
Start developing plugins for BizFusion.

 
Vat Line (VatLineDTO)

A VAT Code consists of one or more VAT lines.
The VAT line specifies the VAT percentage that is charged for the linked VAT Code.
The VAT Line also contains the ledger accounts on which the VAT will be posted.

Note that a VAT Line has an end date value.


Properties
property data type reference
VatPercentage Decimal
VatLineId Int32 Primary Key
VatId Int32 VatDTO
EndDate DateTime
VatPayableAccountId Int32
VatReceivableAccountId Int32
Timestamp String


Methods
method parameters URL
Get
/api/VatLine
Get
Int32 id
/api/VatLine?id={value}
Get
Int32 pageIndex, Int32 recordsPerPage
/api/VatLine?pageIndex={value}&recordsPerPage={value}
GetByYear
Int32 year
/api/VatLineSet/ByYear?year={value}
GetByPeriod
DateTime startDate, DateTime endDate
/api/VatLineSet/ByPeriod?startDate={value}&endDate={value}
GetRecordCount
/api/VatLineSet/RecordCount
GetByField
String field, String value
/api/VatLineSet/ByField?field={value}&value={value}
GetAfterId
Int32 id
/api/VatLineSet/AfterId?id={value}
GetBeforeId
Int32 id
/api/VatLineSet/BeforeId?id={value}
GetMaxId
/api/VatLineSet/MaxId


* This object is read only.

JSON sample
{
  "VatPercentage": 21.0,
  "VatLineId": 1,
  "VatId": 2,
  "EndDate": "9999-12-31T00:00:00",
  "VatPayableAccountId": 1000,
  "VatReceivableAccountId": 1001,
  "Timestamp": "AQIDBQ=="
}


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.