Promotion plan
Endpoints
Get list of promotion plans
| /forecast/companies/{companycode}/establishments/{establishmentcode}/promotion-plans | 
Parameters
| Type | Name | Description | Schema | 
|---|---|---|---|
| Path | companyCode | Current context company code | string | 
| Path | establishmentCode | Current context establishment code | string | 
| Query | planCode | Plan code | string | 
| Query | validities | Promotion plan validities | list of string within (OUT_OF_DATE, CURRENT, FUTURE) | 
| Query | budget | True if only budget plans, False if only not budget plans ? | boolean | 
| Query | page | Page index | integer (int32) | 
| Query | size | Entity count per page | integer (int32) | 
Responses
| HTTP Code | Description | Schema | 
|---|---|---|
| 200 | Successfull | < PromotionPlan > array | 
| 400 | Functionnal error | No Content | 
| 500 | Internal server error | No Content | 
Data structure
PromotionPlan
Promotion plan data structure for Get.
| Name | Description | Value | 
|---|---|---|
| companyCode | Current company code | string | 
| establishmentCode | Current establishment code | string | 
| planCode | Plan code | string | 
| planLabel | Plan label | string | 
| planStartDate | Plan start date | datetime (ISO-8601) | 
| planEndDate | Plan end date | datetime (ISO-8601) | 
| budget | Budget | boolean |