Production item
Endpoints
Create new production item
| /companies/{companycode}/establishments/{establishmentcode}/production-items | 
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 | 
Get entity list
| /companies/{companycode}/establishments/{establishmentcode}/production-items | 
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 | page | Page index | integer (int32) | |
| Query | size | Entity count per page | integer (int32) | 
Responses
| HTTP Code | Description | Schema | 
|---|---|---|
| 200 | Successfull | < ProductionItem > array | 
| 400 | Functionnal error | No Content | 
| 500 | Internal server error | No Content | 
Import entity list
| /companies/{companycode}/establishments/{establishmentcode}/production-items/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 | 
Get one production item
| /companies/{companycode}/establishments/{establishmentcode}/production-items/{code} | 
| operation.deprecated | 
Parameters
| Type | Name | Description | Schema | Business Rules | 
|---|---|---|---|---|
| Path | code | Entity code to retrieve | string | 20 characters max | 
| Path | companyCode | Current context company code | string | 2 characters max | 
| Path | establishmentCode | Current context establishment code | string | 2 characters max | 
Delete production item
| /companies/{companycode}/establishments/{establishmentcode}/production-items/{code} | 
Parameters
| Type | Name | Description | Schema | Business Rules | 
|---|---|---|---|---|
| Path | code | Entity public uuid code to delete | string | 20 characters max | 
| Path | companyCode | Current context company code | string | 2 characters max | 
| Path | establishmentCode | Current context establishment code | string | 2 characters max | 
Data structure
ProductionItem
Production item data structure.
| Name | Description | Value | Business Rules | 
|---|---|---|---|
| code | Item production code | string | 20 characters max | 
| companyCode | Current company code | string | 2 characters max | 
| depositCode | DepositCode | string | 10 characters max | 
| establishmentCode | Current establishment code | string | 2 characters max | 
| inputItems | Input items | list | |
| label | Item production label (DEPRECATED) | string | 50 characters max | 
| launch | Launch | string | IN(NONE, PUSH, PULL, PUSH_PULL) | 
| moUnitCode | Manufacturing order unit code | string | 5 characters max | 
| priority | Priority | Integer | Minimal value = 1; Maximal value = 9999999; By default value = 999 | 
| normativeShrinkage | Normative shrinkage | double | |
| outputItems | Output items | list | |
| publicUuid | Production item public uuid | string | |
| validityEndDate | Validity end date (DEPRECATED) | datetime | YYYY-MM-DDTHH:MM:SSZ | 
ImportProductionItemList
| Name | Value | 
|---|---|
| callback | string | 
| data | ProductionItem list |