Expenses

API Methods ››
Parent Previous Next

Get material entries by filter

GET ./api/expenses?[ExpenseFilter]

       ExpenseFilter parameters:

ExpenseId (optional)

UserId (optional)

ProjectId (optional)

ExpenseCategoryId (optional)

ExpenseTypeId (optional)

DatesInUtc

EarliestExpenseDate (optional)

LatestExpenseDate (optional)

IncludeBooked (default = false)

IncludeUnsubmitted (default = true)

IncludeSubmitted (default = true)

IncludeApproved (default = true)

IncludeRejected (default = false)

IncludeInvoiced (default = true)

Page (optional)

PageSize (optional)


Get expense entry by ID

GET ./api/expenses/{id}


Count expenses

GET ./api/expenses/count?[ExpenseFilter]


Add expense entry

POST ./api/expenses (new expense entity in HTTP body)

(You can GET an example object to see what the POSTed object should look like.)


Update expense entry

PUT ./api/expenses/{id} (expense entity in HTTP body)

(You can GET an example object to see what the POSTed object should look like.)


Delete expense entry

DELETE ./api/expenses/{id}


Submit expense entry

POST ./api/expenses/{id}/Submit


Reset expense entry to unsubmitted

POST ./api/expenses/{id}/Unsubmit


Reject expense entry

POST ./api/expenses/{id}/Reject


Approve expense entry

POST ./api/expenses/{id}/Approve