Item planning manufacturing
Endpoints
Create new item planning manufacturing
| /companies/{companycode}/item-planning-manufacturings | 
Parameters
| Type | Name | Description | Schema | Business Rules | 
|---|---|---|---|---|
| Path | companyCode | Current context company code | string | 2 characters max | 
| Body | body | 
Get entity list
| /companies/{companycode}/item-planning-manufacturings | 
Parameters
| Type | Name | Description | Schema | Business Rules | 
|---|---|---|---|---|
| Path | companyCode | Current context company code | string | 2 characters max | 
| Query | page | Page index | integer (int32) | |
| Query | size | Entity count per page | integer (int32) | 
Responses
| HTTP Code | Description | Schema | 
|---|---|---|
| 200 | Successfull | < Item > array | 
| 400 | Functionnal error | No Content | 
| 500 | Internal server error | No Content | 
Import entity list
| /companies/{companycode}/item-planning-manufacturings/import | 
Parameters
| Type | Name | Description | Schema | Business Rules | 
|---|---|---|---|---|
| Path | companyCode | Current context company code | string | 2 characters max | 
| Body | body | 
Data structure
ItemPlanningManufacturing
Item planning manufacturing data structure.
| Name | Description | Value | Business Rules | 
|---|---|---|---|
| activityCode | Activity code | string | 20 characters max | 
| activitySuiteCode | Activity suite code | string | 20 characters max | 
| companyCode | Current company code | string | 2 characters max | 
| establishmentCode | Current establishment code | string | 2 characters max | 
| itemCode | Item code | string | 20 characters max | 
| parameterCode | Parameter code | string | (MINIMUM_REPLENISHMENT, MAXIMUM_REPLENISHMENT, MULTIPLE_REPLENISHMENT, REPLENISHMENT_PERIOD, REPLENISHMENT_DELAY, REPLENISHMENT_DAYS) | 
| parameterUnit | Parameter unit | string | Within (DAY, WEEK) if parameterCode = REPLENISHMENT_PERIOD Within (DAY, WEEK, WORKING_DAY) if parameterCode = REPLENISHMENT_DELAY | 
| parameterValue | Parameter value | string | Within (MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY) if parameterCode = REPLENISHMENT_DAY | 
| replenishmentDays | Replenishment days | < string (MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY) > list | 
ImportItemPlanningManufacturingList
| Name | Value | 
|---|---|
| callback | string | 
| data | |
| parameters | 
ItemPlanningManufacturingParameters
Item planning manufacturing parameters structure.
| Even if parameters are optional and empty, its should be send in request | 
| Name | Description | Value | Business Rules | 
|---|---|---|---|
| establishmentCode | Establishment code | string | 2 characters max | 
| parameterTypes | List of parameter types | list (MINIMUM_REPLENISHMENT, MAXIMUM_REPLENISHMENT, MULTIPLE_REPLENISHMENT, REPLENISHMENT_PERIOD, REPLENISHMENT_DELAY, REPLENISHMENT_DAYS) | 
Example of JSON that can be send:
{
    "data": [
        {
            "companyCode": "cCode",
            "establishmentCode": "01",
            "itemCode": "itemCode1",
            "parameterCode": "REPLENISHMENT_PERIOD",
            "parameterUnit": "WEEK",
            "parameterValue": "3"
        }
    ],
    "parameters": {
        "establishmentCode" : "01",
        "parameterTypes" : []
    }
}