Docs
Get Split Preview
GET /procurement-resources/{resourceId}/split
GET
/procurement-resources/{resourceId}/splitReads 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
| Field | Type | Required | Description |
|---|---|---|---|
| resourceId | uuid | Required |
Response
| Field | Type | Description |
|---|---|---|
| quantity | number | |
| refusalReason | string| null | |
| unitCoverage | string[]| null | |
| orderLines | SplitPreviewResponseLine[]| null |
SplitPreviewResponseLine
| Field | Type | Description |
|---|---|---|
| id | uuid | |
| orderId | uuid | |
| orderName | string| null | |
| vendorName | string| null | |
| quantity | number | |
| total | number| null |