API Reference
Start developing plugins for BizFusion.

 
Credit Term (CreditTermDTO)

BizFusion comes pre-installed with a couple of credit terms.
A credit term specifies the number of days a customer has to pay for his invoice.


Properties
property data type reference
CreditTermId Int32 Primary Key
CreditTermName String
CreditDays Int32
Timestamp String


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


JSON sample
{
  "Timestamp": "AQIDFg==",
  "CreditTermId": 1,
  "CreditTermName": "7 days",
  "CreditDays": 7
}


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.