Skip to main content

Add or Update an Expense

This service allows you to add or update expenses and expense items.

Within BigChange an 'Expense' record can have multiple 'Expense Item' records. An 'Expense Item' must be linked to an 'Expense'.

Depending on which entity(s) are being added or updated, different parameters are required.

Query String Parameters

NameTypeDescriptionRequired
ActionStringExpenseSaveRequired
ExpenseIdIntUnique Id of the expense.2, 3
StartDateTimeStart date and time for expense record e.g. ‘2020-01-09 01:00:00.000’.1, 2, 5, 6
EndDateTimeEnd date and time for expense record e.g. ‘2020-01-09 23:00:00.000’.1, 2, 5, 6
ResourceIdIntUnique Id of the resource.Required
ExpenseItemIdIntUnique Id of the expense item.4, 5, 6
ExpenseItemDateDateTimeDate of expense item e.g. ‘2020-01-09 23:00:00.000’.3, 4, 5, 6
ExpenseItemTypeIdIntUnique Id of the expense item type.3, 4, 5, 6
ExpenseItemExclTaxDoubleExpense item value prior to tax. These values are used, no calculation is undertaken.3, 4, 5, 6
ExpenseItemInclTaxDoubleExpense item value prior after tax. These values are used, no calculation is undertaken.3, 4, 5, 6
ExpenseItemVATDoubleExpense item tax amount. These values are used, no calculation is undertaken.2, 3, 4, 5
ExpenseItemCurrencyStringISO 3 character currency identifier E.g.: "GBP" "USD" "EUR" .Required
ExpenseItemFuelDoubleFuel Cost amount.Optional
ExpenseItemStatusIntThe required expense item status value.3, 4, 5, 6
ExpenseItemCommentStringExpense Back Office CommentOptional
IsLocalTimeBoolSet to true when local time is provided, as opposed to a UTC datetime. Default is false.Optional.

note

Required Key:

  • 1: When adding a new expense
  • 2: When updating an existing expense
  • 3: When adding a new expense item
  • 4: When updating an existing expense item
  • 5: When updating both an expense and an expense item together
  • 6: When adding both an expense and an expense item together

Response Codes

Example

Request URL

https://webservice.bigchange.com/v01/services.ashx?action=ExpenseSave&Start=2024-10-16 09:00:00&End=2024-10-16 17:30:00&ResourceId=78298&IsLocalTime=true