Docs

Add Order Lines

POST /Organizations/{orgId}/order-lines

POST/Organizations/{orgId}/order-lines

Puts several resource needs onto one order in a single call: send to an existing order with orderId, or create a new one with newOrder, never both. newOrder takes a name and an optional Internal or External source, and optionally orderTypeId (an active order type from OrderTypes_GetOrderTypes) with values, intakeAnswers and roleOccupants as Orders_CreateOrder takes them; the new order and its lines commit together, and it is created as Orders_CreateOrder creates one (its templates and creation effects run). Each line is a procurementResourceId from Organizations_GetResourceNeeds and a quantity above zero. Every need must be on the same event, and a need already on the order has its quantity increased. Creates no reservation. Needs Order.Edit on that event, held there or at the organization (which lends it to every active event); organization basic access alone is refused.

Path Parameters

FieldTypeRequiredDescription
orgIduuidRequired

Request Body

FieldTypeRequiredDescription
linesAddOrganizationOrderLinesRequestLine[]Optional
orderIduuidOptional
newOrderAddOrganizationOrderLinesRequestNewOrderInfoOptional

AddOrganizationOrderLinesRequestLine

FieldTypeDescription
procurementResourceIduuid
quantitynumber

AddOrganizationOrderLinesRequestNewOrderInfo

FieldTypeDescription
namestring| null
sourcestring| null
orderTypeIduuid| null
valuesAddOrganizationOrderLinesRequestNewOrderInfoAttributeValueInput[]| null
intakeAnswersAddOrganizationOrderLinesRequestNewOrderInfoIntakeAnswerInput[]| null
roleOccupantsAddOrganizationOrderLinesRequestNewOrderInfoRoleOccupantsInput[]| null

AddOrganizationOrderLinesRequestNewOrderInfoAttributeValueInput

FieldTypeDescription
attributeIduuid
valueJsonElement| null
expiresOnJsonElement| null
itemExpiriesJsonElement| null

AddOrganizationOrderLinesRequestNewOrderInfoIntakeAnswerInput

FieldTypeDescription
questionIduuid
valueJsonElement| null

AddOrganizationOrderLinesRequestNewOrderInfoRoleOccupantsInput

FieldTypeDescription
roleDefinitionIduuid
crewIdsuuid[]| null
collaboratorRecordIdsuuid[]| null
resourceIdsuuid[]| null
procurementResourceIdsuuid[]| null