API Reference
Start developing plugins for BizFusion.

 
Account (AccountDTO)

You can add new accounts to the account schema in BizFusion

Certain accounts have been marked as system accounts and cannot be edited or deleted.
All system accounts have an Enum Value.
Use the 'GetByEnumId()' method to retrieve a system account.


Properties
property data type reference
AccountId Int32 Primary Key
AccountName String
AccountGroupId Int32 AccountGroupDTO
Timestamp String


Methods
method parameters URL
Get
/api/Account
Get
Int32 id
/api/Account?id={value}
Get
Int32 pageIndex, Int32 recordsPerPage
/api/Account?pageIndex={value}&recordsPerPage={value}
Post /api/Account
Put
Int32 id, AccountDTO record
/api/Account?id={value}
Delete
Int32 id, String timestamp
/api/Account?id={value}&timestamp={value}
GetByEnumId
Int32 enumId
/api/AccountSet/ByEnumId?enumId={value}
GetRecordCount
/api/AccountSet/RecordCount
GetByField
String field, String value
/api/AccountSet/ByField?field={value}&value={value}
GetAfterId
Int32 id
/api/AccountSet/AfterId?id={value}
GetBeforeId
Int32 id
/api/AccountSet/BeforeId?id={value}
GetMaxId
/api/AccountSet/MaxId


Enum Values
1 = Sales
2 = Expenses
5 = Equity
6 = CurrentAccount
7 = Debtor
8 = Creditor
9 = PettyCash
10 = Inventory
11 = OfficeEquipment
14 = StartBalanceSetup
15 = ProfitPreviousYear
16 = RunningProfit
17 = CompanyBankAccount
18 = ReceivedCredit
19 = ExtendedCredit
23 = GoodsToShip
24 = GoodsToReceive
25 = RoundingDifferences
26 = CostOfGoodsSold
29 = AssetWriteOff
30 = AssetSales
31 = PaymentDifference
32 = AccumulatedRoundingDifferences
33 = CashTransit
34 = BankTransit
35 = CurrentAccountTransit
36 = StockDifference
37 = StockCorrection
38 = StockDepreciation
39 = CrossPayment
40 = Private
41 = PrivateTransit


JSON sample
{
  "Timestamp": "AQIDAA==",
  "AccountId": 7,
  "AccountName": "Debtor",
  "AccountGroupId": 2
}


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.