API Reference
Start developing plugins for BizFusion.

 
Product Group (ProductGroupDTO)

Use product groups to categorize your products.
This enables you to quickly find them later on.

Product groups also simplify the creation of discount rules.


Properties
property data type reference
ProductGroupId Int32 Primary Key
ProductGroupName String
Timestamp String


Methods
method parameters URL
Get
/api/ProductGroup
Get
Int32 id
/api/ProductGroup?id={value}
Get
Int32 pageIndex, Int32 recordsPerPage
/api/ProductGroup?pageIndex={value}&recordsPerPage={value}
Post /api/ProductGroup
Put /api/ProductGroup?id={value}
Delete
Int32 id, String timestamp
/api/ProductGroup?id={value}&timestamp={value}
GetRecordCount
/api/ProductGroupSet/RecordCount
GetByField
String field, String value
/api/ProductGroupSet/ByField?field={value}&value={value}
GetAfterId
Int32 id
/api/ProductGroupSet/AfterId?id={value}
GetBeforeId
Int32 id
/api/ProductGroupSet/BeforeId?id={value}
GetMaxId
/api/ProductGroupSet/MaxId


JSON sample
{
  "Timestamp": "AQIDEg==",
  "ProductGroupId": 1,
  "ProductGroupName": "Games"
}


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.