Docs
Add Expense Line Item
POST /Orders/{orderId}/expenseLineItems
POST
/Orders/{orderId}/expenseLineItemsAdds 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
| Field | Type | Required | Description |
|---|---|---|---|
| orderId | uuid | Required |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| description | string | Optional | |
| quantity | number | Optional | |
| unitAmount | number | Optional | |
| lineItemGroupId | uuid | Optional | |
| expenseId | uuid | Optional |
Response
Type: uuid