Track Expenses
POST {{baseUrl}}/odata/Projects(31db2084-03c6-45f7-b46b-8f59ab197db9)/TrackExpenses
A helper method that makes it easier to track the actual expenses of the project.
Properties:
- autoApprove - true/false. If true, the Expense Request will immediately be transferred to the
Approved
stated. - projectTaskId - project task Id, if null - the ID of the main task (the project itself) will be filled in.
- expenseTypeId - expense type Id
- amount - expense amount
- date - expense date
- description - text note
Execution of the method results in the creation of a new Expense Request with filling in the expense lines and, if necessary, the request is immediately “Approved”.
Request Body
{"autoApprove"=>true, "lines"=>[{"projectTaskId"=>nil, "expenseTypeId"=>"21db2084-03c6-45f7-b46b-8f59ab197db9", "amount"=>12, "date"=>"2022-01-01", "description"=>"Text note"}]}
RESPONSES
status: OK
{"@odata.context":"https://api.timetta.com/odata/$metadata#Edm.Guid","value":"d77d2f67-2140-4401-bb26-c0e597b7b0dc"}