POST Method Details for Create.
Create an employee expense
Definition
https://app[x].timelog.com/[account name]/api/v{version}/employee-expense
Parameters
-
model object Expense information
- Amount number Gets or sets the amount.
- Comment string Gets or sets the comment.
- CurrencyID integer Gets or sets the currency identifier.
- Date string Gets or sets the date.
- ExchangeRate number Gets or sets the exchange rate.
- ExpenseTypeID integer Gets or sets the expense type identifier.
- IsBillable boolean Gets or sets a value indicating whether this instance is billable.
- Number string Gets or sets the employee expense no.
- PaymentMethodID integer Gets or sets the payment method identifier.
- ProjectID integer Gets or sets the project identifier.
- ProjectSubContractID integer Gets or sets the project sub contract identifier the expense is booked on. When omitted or 0, the project's default expense contract is used. Prepaid services contracts cannot be selected.
- UserID integer Gets or sets the user identifier of the employee the expense is created for. When omitted, the expense is created for the current user. Creating an expense for another user requires the same privileges as registering time on their behalf.
- VatAmount number Gets or sets the vat amount.
- version string The requested API version
Returns
- [200] Expense was created successfully
- [401] Invalid authentication token
-
[500] Expense could not be created
- Code integer Gets the code.
- Details array Gets the details.
- DeveloperNote object
- Message string Gets the message.
- Parameters string Gets the parameters.
- Url string Gets the URL.