Docs

Associate Expenses

POST /Orders/{orderId}/expenses

POST/Orders/{orderId}/expenses

Links existing expenses to the order by adding one expense line per expense, at the expense's total. All or nothing: if any expense is missing, was paid by the company or is already on an order, nothing is linked. 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
expenseIdsuuid[]Optional