API Reference
Start developing plugins for BizFusion.

 
Customer Type (CustomerTypeDTO)

There are three different customer types:

1. Company
2. Person
3. Employee

The customer type restricts the type of documents that you can add a customer to.
E.g. you can only link Employees to a profit payout.


Properties
property data type reference
CustomerTypeId Int32 Primary Key
CustomerTypeName String
Timestamp String


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


Enum Values
1 = Person
2 = Company
3 = Employee


* This object is read only.

JSON sample
{
  "Timestamp": "AQIDCg==",
  "CustomerTypeId": 1,
  "CustomerTypeName": "Person"
}


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.