API Reference
Start developing plugins for BizFusion.

 
Invoice Line (InvoiceLineDTO)

An invoice line contains the product that the customer ordered, but not the selected options.
Use an 'Invoice Variant' to specify the selected product options.

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

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


Properties
property data type reference
Timestamp String
InvoiceLineId Int32 Primary Key
InvoiceId Int32 InvoiceDTO
ProductId Int32 ProductDTO
Description String
Quantity Int32
Price Decimal
VatLineId Int32 VatLineDTO
InvoiceVariant Array of: InvoiceVariantDTO


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


JSON sample
{
  "InvoiceLineId": 0,
  "InvoiceId": 1,
  "ProductId": 1,
  "Description": "Playstation 4",
  "Quantity": 1,
  "Price": 299.0,
  "VatLineId": 1,
  "Timestamp": "AQIDGA==",
  "InvoiceVariant": []
}


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.