API Reference
Start developing plugins for BizFusion.

 
Contact Person (ContactPersonDTO)

You can add one or more contact persons to a customer record.
Note, adding a contact person to a customer record is completely optional.


Properties
property data type reference
ContactPersonId Int32 Primary Key
CustomerId Int32 CustomerDTO
FirstName String
LastName String
Initials String
GenderId Int32 GenderDTO
Timestamp String


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


JSON sample
{
  "Timestamp": "AQIDDg==",
  "ContactPersonId": 1,
  "CustomerId": 2,
  "FirstName": "Bruce",
  "LastName": "Wayne",
  "Initials": "B",
  "GenderId": 1
}


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.