Docs

Get Split Preview

GET /procurement-resources/{resourceId}/split

GET/procurement-resources/{resourceId}/split

Reads what splitting a need would do without changing anything: each unit's coverage status in index order, each order line with its order, vendor, quantity and total, and the refusal reason when the need can't be split (then the unit list is empty). Need ids come from Procurements_GetProcurements. Works the same on an organization-level need (org token, resource inventory edit); no order revision is minted there.

Path Parameters

FieldTypeRequiredDescription
resourceIduuidRequired

Response

FieldTypeDescription
quantitynumber
refusalReasonstring| null
unitCoveragestring[]| null
orderLinesSplitPreviewResponseLine[]| null

SplitPreviewResponseLine

FieldTypeDescription
iduuid
orderIduuid
orderNamestring| null
vendorNamestring| null
quantitynumber
totalnumber| null