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 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
| 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