API Reference
Start developing plugins for BizFusion.

 
Journal Entry (JournalEntryDTO)

Every document gets translated into a journal entry once you 'post' it.
The journal lines specify which accounts need to be debited and credit.

You can't edit the journal directly.
You need to use a 'Custom Voucher' if you want to create a custom journal entry.

Developers can export the journal entries to various financial reporting tools.
E.g. you can use this data to generate various XBRL documents.


Properties
property data type reference
JournalEntryId Int32 Primary Key
JournalEntryDate DateTime
CustomerId Int32 CustomerDTO
TransactionTypeId Int32 TransactionTypeDTO
Timestamp String
JournalLine Array of: JournalLineDTO


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


* This object is read only.

JSON sample
{
  "Timestamp": "AQIDKA==",
  "JournalEntryId": 1,
  "JournalEntryDate": "2014-12-31T00:00:00",
  "CustomerId": 2,
  "TransactionTypeId": 2,
  "JournalLine": [
    {
      "JournalLineId": 1,
      "JournalEntryId": 1,
      "AccountId": 7,
      "Debit": 0.0,
      "Credit": 299.0,
      "Timestamp": "AQIDKQ=="
    },
    {
      "JournalLineId": 2,
      "JournalEntryId": 1,
      "AccountId": 9,
      "Debit": 299.0,
      "Credit": 0.0,
      "Timestamp": "AQIDBA=="
    }
  ]
}


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.