API Reference
Start developing plugins for BizFusion.

 
Product Variant (ProductVariantDTO)

Product variants specify the available product options that the customer can choose from.
E.g. a T-Shirt can have the product options Size and Color.
Size and Color are Variants and they contain the values the user can choose from.

Product Variant is the link between product and variant.
You create a product variant for each product option.

The following relationship exists between products and variants:
Product > Product Variant > Variant > Variant Value


Properties
property data type reference
Timestamp String
ProductVariant Int32
ProductId Int32 ProductDTO
VariantId Int32 VariantDTO


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


JSON sample
{
  "ProductVariant": 1,
  "ProductId": 2,
  "VariantId": 1,
  "Timestamp": "AQIDJA=="
}


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.