Docs

Quick Add Line

POST /Orders/{orderId}/quick-add-line

POST/Orders/{orderId}/quick-add-line

Creates a new need on a procurement from a resource type and puts it on the order as a line in one step; use it for a need that was forgotten, and Orders_AddLineItems for needs that already exist. Takes the quantity, an optional group and optional attribute values; missing values do not block, the need is flagged incomplete instead. Refused while the order is Paid, or Abandoned or Canceled (reopen first); an internal order only once Canceled. Returns the new need's id. Procurement ids come from Procurements_GetProcurements and resource type ids from ResourceTypes_Get.

Path Parameters

FieldTypeRequiredDescription
orderIduuidRequired

Request Body

FieldTypeRequiredDescription
procurementIduuidOptional
resourceTypeIduuidOptional
quantitynumberOptional
lineItemGroupIduuidOptional
attributeValuesQuickAddLineRequestAttributeValue[]Optional

QuickAddLineRequestAttributeValue

FieldTypeDescription
resourceAttributeIduuid
valueJsonElement| null

Response

Type: uuid