Add Line Items
POST /Orders/{orderId}/lineItems
/Orders/{orderId}/lineItemsAdds 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
| Field | Type | Required | Description |
|---|---|---|---|
| orderId | uuid | Required |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| lineItems | AddOrderLineItemsRequestLineItem[] | Optional |
AddOrderLineItemsRequestLineItem
| Field | Type | Description |
|---|---|---|
| groupId | uuid| null | |
| procurementResourceId | uuid| null | |
| quantity | number | |
| resourceTypeId | uuid| null | |
| resourceVariantId | uuid| null | |
| resourceId | uuid| null | |
| disposition | string| null | |
| startDateTime | date-time| null | |
| endDateTime | date-time| null | |
| rateCardId | uuid| null | |
| providerOfferingId | uuid| null | |
| billingMode | string| null |
Response
Type: uuid[]