Parameters
int number
The customer number of the customer that you add a work item to - be sure that customer numbers are unique.
string type
This parameter is used to identify the work-type (defined in: Uhasibu -> settings -> work types) that the work shold be added to, in the system you can enter an integration-code for each work-type. It is this integration-code that you can put here to clearly signal which work-type you want.
As an alternative you can enter the string 'DEFAULT' and the first found work-type will be used instead.
date date
This parameter indicated the date for which the work item should be created, 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
This is the actual wording of the work-item, in other words this is the text line that will be shown on the invoice.
int amount
Indicates the amount/price for the work item, the currency will automatically be the currency connected to the client.
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 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