WebApi

<back to all web services

AddCostBasis

Create new cost basis for client

The following routes are available for this service:
POST, OPTIONS/TaxReports/CostBasis
AddCostBasis Parameters:
NameParameterData TypeRequiredDescription
TimestampbodyDateTimeYes
TypebodystringYes
ExchangebodystringYes
CurrencybodystringYes
UserKeyNamebodystringYes
AmountbodystringYes
BasisbodystringNo
CostBasis Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
TimestampformDateTimeNo
TypeformCostBasisTypeNo
ExchangeformExchangeNameNo
CurrencyformCurrencyNo
UserKeyNameformstringNo
AmountformdecimalNo
Basisformdecimal?No
Currency Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /TaxReports/CostBasis HTTP/1.1 
Host: burntrouter.info 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Timestamp: 0001-01-01,
	Type: String,
	Exchange: String,
	Currency: String,
	UserKeyName: String,
	Amount: String,
	Basis: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Id: String,
	Timestamp: 0001-01-01,
	Type: OpeningBalance,
	Exchange: ,
	UserKeyName: String,
	Amount: 0,
	Basis: 0
}