API Reference
Start developing plugins for BizFusion.

 
Payment Source (PaymentSourceDTO)

All payments have an origin/source.
You need to specify this origin/source when you create the payment.

The ledger account that is updated depends on the specified payment source.
E.g. if you specify payment source 'Cash', then the cash account is debited or credited.


Properties
property data type reference
PaymentSourceId Int32 Primary Key
PaymentSourceName String
AccountId Int32 AccountDTO
Timestamp String


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


Enum Values
0 = Custom
1 = Cash
2 = Bank
3 = CurrentAccount
6 = PersonalBankAccount
7 = PaymentDifference
8 = CrossPayment
9 = OwnerInvestment


* This object is read only.

JSON sample
{
  "Timestamp": "AQIDGg==",
  "PaymentSourceId": 1,
  "PaymentSourceName": "Cash",
  "AccountId": 9
}


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.