Docs
Add Order Document Line
POST /Orders/{orderId}/documents/{documentId}/lines
POST
/Orders/{orderId}/documents/{documentId}/linesAdds a line to a quote or invoice and returns its id. Kind is Resource (default) or Expense, and an Expense line cannot reference a need. The need id is optional; the group id is optional and comes from Orders_AddDocumentLineGroup or Orders_GetOrder. Unit is Each (default), Hour, Day, Week, Month or Flat and count is how many resources (default 1): an Each line takes count 1 and a Flat line quantity 1. lineTotal is stored as printed; omitted, it is count x quantity x unit price. lineTotal is ignored without permission to edit order amounts. On an organization-level order (org token, resource inventory edit) orderLineItemId matches the charge to a line of this order.
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| orderId | uuid | Required | |
| documentId | uuid | Required |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| description | string | Optional | |
| quantity | number | Optional | |
| unitPrice | number | Optional | |
| count | number | Optional | |
| unit | string | Optional | |
| lineTotal | number | Optional | |
| procurementResourceId | uuid | Optional | |
| orderDocumentLineGroupId | uuid | Optional | |
| kind | string | Optional | |
| orderLineItemId | uuid | Optional |
Response
Type: uuid