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 locked (declared Sent or Confirmed, or Ordered on an internal order, with no unsent revision); call Orders_MintOrderVersion first. Requires EventAdmin on the event. Expense ids come from Expenses_GetExpenses.

Path Parameters

FieldTypeRequiredDescription
orderIduuidRequired

Request Body

FieldTypeRequiredDescription
descriptionstringOptional
quantitynumberOptional
unitAmountnumberOptional
lineItemGroupIduuidOptional
expenseIduuidOptional

Response

Type: uuid