API Reference
Start developing plugins for BizFusion.

 
Stock Entry (StockEntryDTO)

The Stock List consists of one or more stock entries.
This list is automatically adjusted whenever you post a receive, shipment or return.


Properties
property data type reference
StockEntryId Int32 Primary Key
ProductId Int32 ProductDTO
StockPrice Decimal
Quantity Int32
VoucherDate DateTime
Timestamp String
AssemblyId Int32? (optional)


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


* This object is read only.

JSON sample
{
  "Timestamp": "AQIDHQ==",
  "StockEntryId": 1,
  "ProductId": 1,
  "StockPrice": 150.0,
  "Quantity": 100,
  "VoucherDate": "2015-12-31T00:00:00",
  "AssemblyId": null
}


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.