API Reference
Start developing plugins for BizFusion.

 
Payment Type (PaymentTypeDTO)

There are three payment types:

1. In
2. Out
3. Credit

You can only create credit payments for documents that have linked credit notes.


Properties
property data type reference
PaymentTypeId Int32 Primary Key
PaymentTypeName String
Timestamp String


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


Enum Values
1 = In
2 = Out
3 = Credit


* This object is read only.

JSON sample
{
  "PaymentTypeId": 1,
  "PaymentTypeName": "In",
  "Timestamp": "AQIDGw=="
}


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.