API Reference
Start developing plugins for BizFusion.

 
Purchase Variant (PurchaseVariantDTO)

The Purchase Variant contains the product options that you ordered from your vendor.
E.g. if you placed an order for a Red T-Shirt then the Purchase Variant will contain the variant value: 'Red'.

Purchase Variant is part of the following relationship:
Purchase Invoice > Purchase Invoice Line > Purchase Variant > Variant Value > Variant


Properties
property data type reference
Timestamp String
PurchaseVariantId Int32 Primary Key
PurchaseInvoiceLineId Int32 PurchaseInvoiceLineDTO
VariantValueId Int32 VariantValueDTO


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


JSON sample
{
  "PurchaseVariantId": 1,
  "PurchaseInvoiceLineId": 1,
  "VariantValueId": 5,
  "Timestamp": "AQIDJw=="
}


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.