Parameters
int account
The number of the main account to be used (usually a 4 digit code).
int contraAccount
The number of the contra account to be used (usually a 4 diget code).
boolean debit
TRUE or FALSE indicating whether the main account should be debited or not.
int amount
Indicates the amount/price to be used.
Be alert that the amount is an integer representing the lowest nominator in the particular currency (i.e. cents for Kenyan Shillings).
If you have the amount as a decimal representation then you 'just' need to multiply it by 100.
int currencyId
The id of the currency to be used.
int vatcodeId
The id of the vatcode that should be applied to the posting, if the posting is to be vat exempt then use 0.
date date
This parameter indicated the date to be used as posting date, the date must be formated as a string in accordance with the date setting of the particular company - be alert that there are several format options for a company see: Uhasibu -> settings -> company information.
string description
A description that you want associated with the Journal Entry, it will be shown in the ledger cards of the affected accounts.
boolean autopost
TRUE or FALSE indicating if the Journal Entry should be automatically commited into the books.
int companyId
The company id of the Uhasibu account required
string login
The login for the API user, logins are typically emails
string password
The password for the API user