Promotion offers
Endpoints
Export entity list
| /forecast/companies/{companycode}/establishments/{establishmentcode}/promotion-offers | 
Parameters
| Type | Name | Description | Schema | Business rules | 
|---|---|---|---|---|
| Path | companyCode | Current context company code | string | 2 characters max | 
| Path | establishmentCode | Current context establishment code | string | 2 characters max | 
| Query | plans | Promotion plans | list of string | |
| Query | planValidities | 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 | promotionValidities | Promotion validities | list of string | within (OUT_OF_DATE, CURRENT, FUTURE) | 
| Query | withSold | True if it’s necessary to export sold quantities and amounts ? | boolean | |
| Query | customerHierarchy | Customer hierarchy code | string | |
| Query | customerHierarchyLevel | Customer hierarchy level | integer | |
| Query | customerHierarchyValues | Customer hierarchy values | list of string | |
| Query | page | Page index | integer (int32) | |
| Query | size | Entity count per page | integer (int32) | 
Responses
| HTTP Code | Description | Schema | 
|---|---|---|
| 200 | Successfull | < PromotionOfferExport > array | 
| 400 | Functionnal error | No Content | 
| 500 | Internal server error | No Content | 
Import entity list
| /forecast/companies/{companycode}/establishments/{establishmentcode}/promotion-offers/import | 
Parameters
| Type | Name | Description | Schema | Business rules | 
|---|---|---|---|---|
| Path | companyCode | Current context company code | string | 2 characters max | 
| Path | establishmentCode | Current context establishment code | string | 2 characters max | 
| Body | body | 
Data structure
PromotionOfferExport
Promotion offer data structure for Get.
| Name | Description | Value | Business rules | 
|---|---|---|---|
| companyCode | Company code | string | 2 characters max | 
| establishmentCode | Establishment code | string | 2 characters max | 
| planCode | Plan code | string | 10 characters max | 
| referenceCode | Reference code | string | 8 characters max | 
| suffix | Suffix | string | 8 characters max | 
| nbOffer | Promotion offer internal number | integer | |
| offerLabel | Promotion offer label | string | 50 characters max | 
| offerState | Promotion offer state | string | within (CRE, OFF, CFM, REF, CAN) : CRE = Not offered | 
| promStartDate | Promotion start date | datetime (ISO-8601) | YYYY-MM-DDTHH:MM:SSZ | 
| promEndDate | Promotion end date | datetime (ISO-8601) | YYYY-MM-DDTHH:MM:SSZ | 
| forecastStartDate | Forecast start date | datetime (ISO-8601) | YYYY-MM-DDTHH:MM:SSZ | 
| forecastEndDate | Forecast end date | datetime (ISO-8601) | YYYY-MM-DDTHH:MM:SSZ | 
| salesStartDate | Sales start date | datetime (ISO-8601) | YYYY-MM-DDTHH:MM:SSZ | 
| salesEndDate | Sales end date | datetime (ISO-8601) | YYYY-MM-DDTHH:MM:SSZ | 
| confirmationDate | Confirmation date | datetime (ISO-8601) | YYYY-MM-DDTHH:MM:SSZ | 
| visitStartDate | Visit start date | datetime (ISO-8601) | YYYY-MM-DDTHH:MM:SSZ | 
| visitEndDate | Visit end date | datetime (ISO-8601) | YYYY-MM-DDTHH:MM:SSZ | 
| customerDesc | Customer description | string | 50 characters max | 
| salesPersonCode | Sales person code | string | 10 characters max | 
| salesPersonLabel | Sales person label | string | |
| promotionLevel | Promotion level | string | within (CN, CR, PV, AU) : CN = National center | 
| comment | Comment | string | |
| customerGroupCode | Customer group code | string | 10 characters max | 
| customerGroupLevel | Customer group level | string | |
| customerGroupValueCode | Customer group value code | string | 20 characters max | 
| customerCode | Customer code | string | 10 characters max | 
| forecasted | True if promotion offer is forecasted | boolean | |
| processed | True if promotion offer is processed | boolean | |
| offeredDate | Offering date | datetime (ISO-8601) | YYYY-MM-DDTHH:MM:SSZ | 
| confirmedDate | Confirming date | datetime (ISO-8601) | YYYY-MM-DDTHH:MM:SSZ | 
| refusedDate | Refusing date | datetime (ISO-8601) | YYYY-MM-DDTHH:MM:SSZ | 
| closedDate | Closing date | datetime (ISO-8601) | YYYY-MM-DDTHH:MM:SSZ | 
| customerSelection | Customer selection | ||
| offeredItems | Promotion offered items | OfferedItemExport list | 
DeepPyramid
| Name | Description | Value | Business rules | 
|---|---|---|---|
| hierarchyValues | Hierarchy values | PyramidValue list | |
| union | Union | boolean | 
PyramidValue
| Name | Description | Value | Business rules | 
|---|---|---|---|
| hierarchyCode | hierarchy code | string | Code $$ if the values are customer codes | 
| level | Level | integer | Level 0 if the values are customer codes | 
| values | values | list of string | Hierarchy values or customer codes | 
| included | Included | boolean | 
OfferedItemExport
| Name | Description | Value | Business rules | 
|---|---|---|---|
| itemCode | Item code | string | 20 characters max | 
| offeredItemState | Offered item state | string | within (OFF, REF) : OFF = Offered REF = Refused | 
| customerQuantity | Customer quantity | double | |
| salesQuantity | Sales quantity | double | |
| confirmedQuantity | Confirmed quantity | double | |
| forecastQuantity | Forecast quantity | double | |
| regularSalesQuantity | Regular sales quantity | double | |
| unitCode | Unit code | string | 5 characters max | 
| customerQuantityStatUnit1 | Customer quantity in statistical unit 1 | double | |
| salesQuantityStatUnit1 | Sales quantity in statistical unit 1 | double | |
| confirmedQuantityStatUnit1 | Confirmed quantity in statistical unit 1 | double | |
| forecastQuantityStatUnit1 | Forecast quantity in statistical unit 1 | double | |
| regularSalesQuantityStatUnit1 | Regular sales quantity in statistical unit 1 | double | |
| statUnitCode1 | Statistical unit code 1 | string | 5 characters max | 
| customerQuantityStatUnit2 | Customer quantity in statistical unit 2 | double | |
| salesQuantityStatUnit2 | Sales quantity in statistical unit 2 | double | |
| confirmedQuantityStatUnit2 | Confirmed quantity in statistical unit 2 | double | |
| forecastQuantityStatUnit2 | Forecast quantity in statistical unit 2 | double | |
| regularSalesQuantityStatUnit2 | Regular sales quantity in statistical unit 2 | double | |
| statUnitCode2 | Statistical unit code 2 | string | 5 characters max | 
| customerQuantityStatUnit3 | Customer quantity in statistical unit 3 | double | |
| salesQuantityStatUnit3 | Sales quantity in statistical unit 3 | double | |
| confirmedQuantityStatUnit3 | Confirmed quantity in statistical unit 3 | double | |
| forecastQuantityStatUnit3 | Forecast quantity in statistical unit 3 | double | |
| regularSalesQuantityStatUnit3 | Regular sales quantity in statistical unit 3 | double | |
| statUnitCode3 | Statistical unit code 3 | string | 5 characters max | 
| customerQuantityStatUnit4 | Customer quantity in statistical unit 4 | double | |
| salesQuantityStatUnit4 | Sales quantity in statistical unit 4 | double | |
| confirmedQuantityStatUnit4 | Confirmed quantity in statistical unit 4 | double | |
| forecastQuantityStatUnit4 | Forecast quantity in statistical unit 4 | double | |
| regularSalesQuantityStatUnit4 | Regular sales quantity in statistical unit 4 | double | |
| statUnitCode4 | Statistical unit code 4 | string | 5 characters max | 
| salesAmount | Sales amount | double | |
| confirmedAmount | Confirmed amount | double | |
| forecastAmount | Forecast amount | double | |
| currencyCode | Currency code | string | 3 characters max | 
| itemGroupCode | Item group code | string | 20 characters max | 
| additional | Additional | boolean | |
| strictlyPromotionItem | Strictly promotion item | boolean | |
| comment | Comment | string | |
| withNPT | With NPT | boolean | |
| nptPercentRate | NPT percent rate | double | |
| nptForecastQuantity | NPT forecast quantity | double | |
| nptUnitCode | NPT unit code | string | 5 characters max | 
| nptForecastFixAmount | NPT forecast fix amount | double | |
| nptCurrencyCode | NPT currency code | string | 3 characters max | 
| nptConsumerPrice | NPT consumer price | double | |
| nptCpUnitCode | NPT consumer price unit code | string | 5 characters max | 
| nptCpCurrencyCode | NPT consumer price currency code | string | 3 characters max | 
| nptDiscountPercent | NPT discount percent | double | |
| nptDiscountPrice | NPT discount price | double | |
| nptComment | NPT comment | string | |
| regularSalesPlan | Regular sales plan | string | 10 characters max | 
| regularSalesLineNumber | Regular sales line number | integer | |
| regularSalesInternalLineNumber | Regular sales internal line number | integer | |
| productStoreDisplays | list | ||
| discounts | Discounts | Discount list | |
| forecasts | Forecasts | Forecast list | 
Forecast
| Name | Description | Value | Business rules | 
|---|---|---|---|
| startDate | Start date | datetime (ISO-8601) | |
| endDate | End date | datetime (ISO-8601) | |
| quantity | Quantity | double | |
| computedQuantity | Computed quantity | double | |
| regularSalesQuantity | Regular sales quantity | double | |
| closingRegularSalesQuantity | Closing regular sales quantity | double | |
| standardItemForecastQuantity | Standard item forecast quantity | double | |
| standardItemSoldQuantity | Standard item sold quantity | double | |
| cannibalizationQuantity | Cannibalization quantity | double | |
| unitCode | Unit code | string | 5 characters max | 
| quantityStatUnit1 | Quantity in statistical unit 1 | double | |
| computedQuantityStatUnit1 | Computed quantity in statistical unit 1 | double | |
| regularSalesQuantityStatUnit1 | Regular sales quantity in statistical unit 1 | double | |
| closingRegularSalesQuantityStatUnit1 | Closing regular sales quantity in statistical unit 1 | double | |
| standardItemForecastQuantityStatUnit1 | Standard item forecast quantity in statistical unit 1 | double | |
| standardItemSoldQuantityStatUnit1 | Standard item sold quantity in statistical unit 1 | double | |
| cannibalizationQuantityStatUnit1 | Cannibalization quantity in statistical unit 1 | double | |
| statUnitCode1 | Statistical unit code 1 | string | 5 characters max | 
| quantityStatUnit2 | Quantity in statistical unit 2 | double | |
| computedQuantityStatUnit2 | Computed quantity in statistical unit 2 | double | |
| regularSalesQuantityStatUnit2 | Regular sales quantity in statistical unit 2 | double | |
| closingRegularSalesQuantityStatUnit2 | Closing regular sales quantity in statistical unit 2 | double | |
| standardItemForecastQuantityStatUnit2 | Standard item forecast quantity in statistical unit 2 | double | |
| standardItemSoldQuantityStatUnit2 | Standard item sold quantity in statistical unit 2 | double | |
| cannibalizationQuantityStatUnit2 | Cannibalization quantity in statistical unit 2 | double | |
| statUnitCode2 | Statistical unit code 2 | string | 5 characters max | 
| quantityStatUnit3 | Quantity in statistical unit 3 | double | |
| computedQuantityStatUnit3 | Computed quantity in statistical unit 3 | double | |
| regularSalesQuantityStatUnit3 | Regular sales quantity in statistical unit 3 | double | |
| closingRegularSalesQuantityStatUnit3 | Closing regular sales quantity in statistical unit 3 | double | |
| standardItemForecastQuantityStatUnit3 | Standard item forecast quantity in statistical unit 3 | double | |
| standardItemSoldQuantityStatUnit3 | Standard item sold quantity in statistical unit 3 | double | |
| cannibalizationQuantityStatUnit3 | Cannibalization quantity in statistical unit 3 | double | |
| statUnitCode3 | Statistical unit code 3 | string | 5 characters max | 
| quantityStatUnit4 | Quantity in statistical unit 4 | double | |
| computedQuantityStatUnit4 | Computed quantity in statistical unit 4 | double | |
| regularSalesQuantityStatUnit4 | Regular sales quantity in statistical unit 4 | double | |
| closingRegularSalesQuantityStatUnit4 | Closing regular sales quantity in statistical unit 4 | double | |
| standardItemForecastQuantityStatUnit4 | Standard item forecast quantity in statistical unit 4 | double | |
| standardItemSoldQuantityStatUnit4 | Standard item sold quantity in statistical unit 4 | double | |
| cannibalizationQuantityStatUnit4 | Cannibalization quantity in statistical unit 4 | double | |
| statUnitCode4 | Statistical unit code 4 | string | 5 characters max | 
| amount | Amount | double | |
| currencyCode | Currency code | string | 3 characters max | 
ImportPromotionOfferList
| Name | Value | 
|---|---|
| callback | string | 
| data | PromotionOffer list | 
PromotionOffer
Promotion Offer data structure.
| Name | Description | Value | Business rules | 
|---|---|---|---|
| companyCode | Company code | string | 2 characters max | 
| establishmentCode | Establishment code | string | 2 characters max | 
| planCode | Plan code | string | 10 characters max | 
| referenceCode | Reference code | string | 8 characters max | 
| suffix | Suffix | string | 8 characters max | 
| nbOffer | Promotion offer internal number | integer | |
| offerLabel | Promotion offer label | string | 50 characters max | 
| offerState | Promotion offer state | string | within (CRE, OFF, CFM, REF, CAN) : CRE = Not offered | 
| promStartDate | Promotion start date | datetime (ISO-8601) | |
| promEndDate | Promotion end date | datetime (ISO-8601) | |
| salesStartDate | Sales start date | datetime (ISO-8601) | |
| salesEndDate | Sales end date | datetime (ISO-8601) | |
| confirmationDate | Confirmation date | datetime (ISO-8601) | |
| visitStartDate | Visit start date | datetime (ISO-8601) | |
| visitEndDate | Visit end date | datetime (ISO-8601) | |
| adjustStartDate | Adjustment start date | datetime (ISO-8601) | |
| adjustEndDate | Adjustment end date | datetime (ISO-8601) | |
| customerDesc | Customer description | string | 50 characters max | 
| salesPersonCode | Sales person code | string | 10 characters max | 
| promotionLevel | Promotion level | string | within (CN, CR, PV, AU) : CN = National center | 
| comment | Comment | string | 1000 characters max | 
| customerGroupCode | Customer group code | string | 10 characters max | 
| customerGroupLevel | Customer group level | integer | |
| customerGroupValueCode | Customer group value code | string | 20 characters max | 
| customerCode | Customer code | string | 10 characters max | 
| forecastOffer | Forecast the promotion offer ? | boolean | |
| inPromotionDuration | In promotion duration (minimum number of days between the order date and the shipping date to identify orders under promotional conditions) | integer | -1 if it’s not necessary to identify orders under promotion | 
| offeredItems | Promotion offered items | OfferedItem list | 
OfferedItem
| Name | Description | Value | Business rules | 
|---|---|---|---|
| itemCode | Item code | string | 20 characters max | 
| offeredItemState | Offered item state | string | within (OFF, REF) : OFF = Offered | 
| customerQuantity | Customer quantity | double | |
| salesQuantity | Sales quantity | double | |
| confirmedQuantity | Confirmed quantity | double | |
| unitCode | Unit code | string | 5 characters max | 
| salesAmount | Sales amount | double | |
| confirmedAmount | Confirmed amount | double | |
| currencyCode | Currency code | string | 3 characters max | 
| itemGroupCode | Item group code | string | 20 characters max | 
| additional | Additional | boolean | |
| comment | Comment | string | 1000 characters max | 
| scenarioCode | Scenario | string | 15 characters max | 
| withNPT | With NPT | boolean | |
| nptPercentRate | NPT percent rate | double | |
| nptForecastQuantity | NPT forecast quantity | double | |
| nptUnitCode | NPT unit code | string | 5 characters max | 
| nptForecastFixAmount | NPT forecast fix amount | double | |
| nptCurrencyCode | NPT currency code | string | 3 characters max | 
| nptConsumerPrice | NPT consumer price | double | |
| nptCpUnitCode | NPT consumer price unit code | string | 5 characters max | 
| nptCpCurrencyCode | NPT consumer price currency code | string | 3 characters max | 
| nptDiscountPercent | NPT discount percent | double | |
| nptDiscountPrice | NPT discount price | double | |
| nptComment | NPT comment | string | 1000 characters max | 
| productStoreDisplays | list | ||
| discounts | Discounts | Discount list | 
Discount
| Name | Description | Value | Business rules | 
|---|---|---|---|
| discountNatureCode | Discount nature code | string | 8 characters max | 
| calculationRule | Calculation rule | string | within (PERCENT, UNITPRIC, SPECPRIC) : PERCENT = Percentage | 
| calculationValue | Calculation value | double | |
| currencyCode | Currency code | string | 3 characters max | 
| unitCode | Unit code | string | 5 characters max | 
| comment | Comment | string | 1000 characters max | 
| discountType | Discount type | string | within (INV, CP) : INV = Invoiced |