Sales forecasts
Endpoints
Get list of sales forecasts from SCP
| /processes/{processcode}/sales-forecasts | 
Parameters
| Type | Name | Description | Schema | 
|---|---|---|---|
| Path | processCode | Process code | string | 
| Query | onlyForcedSalesForecasts | Only forced sales forecasts ? | boolean | 
| Query | page | Page index | integer (int32) | 
| Query | size | Entity count per page | integer (int32) | 
Responses
| HTTP Code | Description | Schema | 
|---|---|---|
| 200 | Successfull | < GetSalesForecasts > array | 
| 400 | Functionnal error | No Content | 
| 500 | Internal server error | No Content | 
Data structure
GetSalesForecasts
Sales forecast data structure for Get.
| Name | Description | Value | 
|---|---|---|
| companyCode | string | |
| establishmentCode | string | |
| itemCode | Item code | string | 
| customerCode | Customer code | string | 
| groupCode | Customer group code | string | 
| groupLevel | Customer group level | integer | 
| groupValueCode | Customer group value code | string | 
| startDate | Start date | datetime (AAAA-MM-JJTHH:MM:SSZ) | 
| endDate | End date | datetime (AAAA-MM-JJTHH:MM:SSZ) | 
| baselineQuantity | Baseline quantity | double | 
| promotionalQuantity | Promotional quantity | double | 
| projectQuantity | Project quantity | double | 
| unitCode | Unit code | string | 
| isValidated | True if sales forecast is validated | boolean |