Create Expense

POST {{BASE_URL}}/transactions/expense

Creates a new expense transaction.
This represents either an accrual or expense payment, or both.

This is determined by the TradeDate and SettlementDate values as follows:
If only TradeDate is set this represents an accrual.
If only SettlementDate is set this represents an expense payment.
If both are set this is treated as an accrual from TradeDate -> SettlementDate and a expense payment on SettlementDate.

DTO

FieldValue
AccountThe shortcode of the financial account for the expense
AccrualAccountThe shortcode of the financial accrual account for the expense before it is paid
AmountThe numerical amount
CounterpartyAccount(Optional) The shortcode of thecounterparty account to pay the expense
CurrencyISO currency code
Description
Extended(Optional) JSON object of additional key-value pairs to be stored with the transaction
FundThe shortcode of the fund
SettlementDate(Optional)The payment date of the expense
Strategy(Optional) The shortcode of the strategy
TradeDate(Optional) The accounting date of the expense

Request Body

{"Account"=>nil, "AccrualAccount"=>nil, "Amount"=>0, "CounterpartyAccount"=>nil, "Currency"=>nil, "Description"=>"Expense", "Fund"=>nil, "SettlementDate"=>nil, "Strategy"=>nil, "TradeDate"=>nil}