API Reference
Start developing plugins for BizFusion.

 
Trade Type (TradeTypeDTO)

You need to specify a trade type on a VAT definition.
There are three trade types:

1. Local Trade
2. Foreign Trade
3. VAT Shifted

The system uses the trade type information to check if the VAT on a transaction needs to
be VAT Shifted (a.k.a. Reverse Charged).

The VAT on 'Foreign Trade' and 'VAT Shifted trade' is always VAT shifted.


Properties
property data type reference
Timestamp String
TradeTypeId Int32 Primary Key
TradeTypeName String
IsVatShifted Boolean


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


Enum Values
1 = LocalTrade
2 = ForeignTrade
3 = VatShifted
4 = VatOnMarginGlobal


* This object is read only.

JSON sample
{
  "Timestamp": "AQIDAw==",
  "TradeTypeId": 1,
  "TradeTypeName": "LocalTrade",
  "IsVatShifted": false
}


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.