Docs

Add Expense Line Item

POST /Orders/{orderId}/expenseLineItems

POST/Orders/{orderId}/expenseLineItems

Adds an expense line (description, quantity greater than zero, unit amount, optional group) to the order and returns its id. Leave expenseId empty for a planned line with no receipt, or pass an expense id to link an existing expense; an expense can be on at most one order and cannot be one the company paid. Refused while the order is Paid, or Abandoned or Canceled (reopen first); an internal order only once Canceled. Needs Order.Edit on the order and Expense.View at the event. Expense ids come from Expenses_GetExpenses.

Path Parameters

FieldTypeRequiredDescription
orderIduuidRequired

Request Body

FieldTypeRequiredDescription
descriptionstringOptional
quantitynumberOptional
unitAmountnumberOptional
lineItemGroupIduuidOptional
expenseIduuidOptional

Response

Type: uuid