API Reference
Start developing plugins for BizFusion.

 
Purchase Invoice Line (PurchaseInvoiceLineDTO)

A purchase line contains the product that you ordered, but not the selected options.
Use a 'Purchase Variant' to specify the selected product options.

E.g. you register the purchase of a T-Shirt on a purchase line, but the ordered Size and Color values
are registered on the Purchase Variant record.

The following relationship exists between purchase invoices and variants:
Purchase Invoice > Purchase Invoice Line > Purchase Variant > Variant Value > Variant


Properties
property data type reference
Timestamp String
PurchaseInvoiceLineId Int32 Primary Key
PurchaseInvoiceId Int32 PurchaseInvoiceDTO
ProductId Int32 ProductDTO
Quantity Int32
Price Decimal
VatLineId Int32 VatLineDTO
PurchaseVariant Array of: PurchaseVariantDTO


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


JSON sample
{
  "PurchaseInvoiceLineId": 1,
  "PurchaseInvoiceId": 1,
  "ProductId": 2,
  "Quantity": 50,
  "Price": 5.0,
  "VatLineId": 1,
  "Timestamp": "AQIDJg==",
  "PurchaseVariant": [
    {
      "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.