Scenario Analysis¶
GET /api/scenario-analysis
GET /api/scenario-analysis/{id}
POST /api/scenario-analysis
PUT /api/scenario-analysis/{id}
DELETE /api/scenario-analysis/{id}
Required privilege: Scenarios / View (read) ยท Scenarios / Edit (write)
Scenario Analysis allows planners to model "what-if" changes to demand, supply, inventory, or forecasts and evaluate the downstream impact on the supply chain - without affecting live data.
Scenario Object¶
{
"id": 7,
"Scenario Name": "Q2 Demand Surge",
"Scenario Description": "Model 30% demand increase in Q2 across ITEM-A",
"Scenario Status": "Active",
"Created At": "2024-03-01T10:00:00Z",
"Updated At": "2024-03-05T14:00:00Z",
"Created By": "jane.doe@acme.com"
}
| Field | Type | Description |
|---|---|---|
id |
integer | Internal scenario identifier |
Scenario Name |
string | Display name |
Scenario Description |
string | null | Description |
Scenario Status |
string | Active, Draft, Archived |
Created By |
string | User who created the scenario |
GET - List Scenarios¶
GET - Get Scenario¶
POST - Create Scenario¶
POST /api/scenario-analysis HTTP/1.1
Content-Type: application/json
X-XSRF-TOKEN: <csrf>
{
"Scenario Name": "Q2 Demand Surge",
"Scenario Description": "Model 30% demand increase in Q2 for ITEM-A",
"Scenario Status": "Draft"
}
PUT - Update Scenario¶
PUT /api/scenario-analysis/{id} HTTP/1.1
Content-Type: application/json
X-XSRF-TOKEN: <csrf>
{
"Scenario Status": "Active"
}
DELETE - Delete Scenario¶
Scenario Order Details¶
Once a scenario is active, retrieve the projected order data:
| Endpoint | Description |
|---|---|
GET /api/scenario-purchase-order-details/{scenario_id} |
Projected POs |
GET /api/scenario-manufacturing-order-details/{scenario_id} |
Projected MOs |
GET /api/scenario-forecast-details/{scenario_id} |
Projected forecasts |
GET /api/scenario-sales-order-details/{scenario_id} |
Projected SOs |