Docs

Add Line Items

POST /Orders/{orderId}/lineItems

POST/Orders/{orderId}/lineItems

Adds resource lines to the order in bulk. Each entry names a need (procurement resource), the group it joins and a quantity greater than zero; a groupId that matches no group on the order adds the line ungrouped. A composite parent need cannot be ordered; order its components. Refused while the order is Paid, or Abandoned or Canceled (reopen first); an internal order only once Canceled. Need ids come from Procurements_GetProcurement and group ids from Orders_GetOrder. Returns the new line ids in request order. On an organization-level order (org token, resource inventory edit) each line names resourceTypeId, an optional variant and named resource, quantity, disposition (Pool or OrgUse; defaults to the order's), startDateTime and endDateTime (both or neither), rate card, the vendor's provider offering, billingMode (PerShow or Covering, Pool only) and an optional org need. An undated line takes its need's schedule span (earliest block start to latest block end) and holds nothing without one. A Pool line naming no resource adds units to inventory once the order is confirmed, and refuses a fractional quantity and a composite type.

Path Parameters

FieldTypeRequiredDescription
orderIduuidRequired

Request Body

FieldTypeRequiredDescription
lineItemsAddOrderLineItemsRequestLineItem[]Optional

AddOrderLineItemsRequestLineItem

FieldTypeDescription
groupIduuid| null
procurementResourceIduuid| null
quantitynumber
resourceTypeIduuid| null
resourceVariantIduuid| null
resourceIduuid| null
dispositionstring| null
startDateTimedate-time| null
endDateTimedate-time| null
rateCardIduuid| null
providerOfferingIduuid| null
billingModestring| null

Response

Type: uuid[]