API Reference
Start developing plugins for BizFusion.

 
Credit Method (CreditMethodDTO)

Always use credit method: 'Return and Replace' on returns.

Properties
property data type reference
CreditMethodId Int32 Primary Key
CreditMethodName String
Timestamp String


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


Enum Values
1 = ReturnAndReplace


* This object is read only.

JSON sample
{
  "Timestamp": "AQIDHg==",
  "CreditMethodId": 1,
  "CreditMethodName": "ReturnAndReplace"
}


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.