API Reference
Start developing plugins for BizFusion.

 
Vat (VatDTO)

BizFusion comes pre-installed with the VAT definitions of the Netherlands.
We recommend that you use the VAT Wizard to create the VAT Codes for your country.

Go to: 'VAT > VAT Wizard' to start adding the VAT Codes for your country.


Properties
property data type reference
VatId Int32 Primary Key
VatName String
TradeTypeId Int32 TradeTypeDTO
Timestamp String
PricesIncludeTax Boolean
VatLine Array of: VatLineDTO


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


* This object is read only.

JSON sample
{
  "Timestamp": "AQIDBA==",
  "VatId": 2,
  "VatName": "High",
  "TradeTypeId": 1,
  "PricesIncludeTax": true,
  "VatLine": [
    {
      "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.