Docs

Get Procurement Needs

GET /procurement-needs

GET/procurement-needs

Lists the organization's procurement resources whose schedule falls in a date window, across every active event and the organization's own needs, with what fills each one per span: filled (confirmed, checked in or completed), in progress (planned or requested) and who fills it. from and to are required. eventId narrows to one event (ids from Organizations_GetEvents); resourceTypeIds narrows by resource type (ids from ResourceTypes_Get). Takes an org token; requires organization basic access. A need on an event the caller can't reach comes back with its dates, type and fills but no event, procurement or label.

Query Parameters

FieldTypeRequiredDescription
fromdate-timeOptional
todate-timeOptional
eventIduuidOptional
resourceTypeIdsuuid[]Optional

Response

Type: GetProcurementNeedsResponse[]

GetProcurementNeedsResponse

FieldTypeDescription
procurementResourceIduuid
procurementIduuid| null
procurementNamestring| null
scopestring| null
eventIduuid| null
eventNamestring| null
resourceTypeIduuid
eventResourceTypeIduuid| null
resourceTypeNamestring| null
resourceTypeKindstring| null
resourceTypeIconstring| null
resourceTypeColorstring| null
resourceVariantIduuid| null
resourceVariantNamestring| null
quantitynumber
indexinteger
labelstring| null
cloneGroupIduuid| null
parentProcurementResourceIduuid| null
isCompositeParentboolean
cloneGroupSizeinteger| null
cloneGroupPositioninteger| null
filledQuantitynumber
pendingQuantitynumber
spansGetProcurementNeedsResponseSpanInfo[]| null
filledSpansGetProcurementNeedsResponseFilledSpanInfo[]| null
pendingSpansGetProcurementNeedsResponsePendingSpanInfo[]| null
filledBystring[]| null
orderLinesGetProcurementNeedsResponseOrderLineInfo[]| null
orderCoveragestring| null

GetProcurementNeedsResponseSpanInfo

FieldTypeDescription
startdate-time
enddate-time

GetProcurementNeedsResponseFilledSpanInfo

FieldTypeDescription
reservationIduuid
startdate-time
enddate-time
quantitynumber
filledBystring| null
vendorNamestring| null

GetProcurementNeedsResponsePendingSpanInfo

FieldTypeDescription
reservationIduuid
startdate-time
enddate-time
quantitynumber
statusstring| null

GetProcurementNeedsResponseOrderLineInfo

FieldTypeDescription
orderIduuid
orderNamestring| null
lineItemIduuid
quantitynumber
derivedStatusstring| null