API Reference
Start developing plugins for BizFusion.

 
Product Type (ProductTypeDTO)

There are three different product types:
1. Product
2. Service
3. Non-Inventory

Use product type: 'Product' for physical products that you keep in inventory.
Use product type: 'Non-Inventory' for non physical products like: digital goods.
E.g. music files and e-books must be registered as Non-Inventory products.


Properties
property data type reference
ProductTypeId Int32 Primary Key
ProductTypeName String
Timestamp String


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


Enum Values
1 = Service
2 = InventoryProduct


* This object is read only.

JSON sample
{
  "Timestamp": "AQIDEA==",
  "ProductTypeId": 2,
  "ProductTypeName": "InventoryProduct"
}


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.