Quantities
Endpoints
Import entity list
| /companies/{companycode}/quantities/import | 
Parameters
| Type | Name | Description | Schema | 
|---|---|---|---|
| Path | companyCode | Current context company code | string | 
| Path | targetApps | List of target applications (import only in these applications) | list of string within (SUPPLY, FORECAST, SCHEDULING) | 
| Body | body | 
Data structure
ImportQuantityList
| Name | Value | 
|---|---|
| callback | string | 
| data | Quantity list | 
| parameters | 
QuantityParameters
Quantity parameters structure.
| Name | Description | Value | Business rules | 
|---|---|---|---|
| deleteBeforeImport | Delete movement stocks of the scope before import ? | boolean | |
| depositCodes | List of deposit codes | list of string | |
| establishmentCode | Stock establishment code | string | 2 characters max | 
| managementType | Management type | string | within (ACTUAL, FORECAST) | 
| movementTypes | List of movement types | list of string | within (PURCHASE, SALE, MANUFACTURING_ORDER, ORDER_PREPARATION) | 
Quantity
Quantity data structure.
| Name | Description | Value | Business rules | 
|---|---|---|---|
| activityCode | Activity code | string | 20 characters max | 
| batchNumber | Batch number | string | 20 characters max | 
| chrono | Chrono | integer | |
| companyCode | Stock company code | string | 2 characters max | 
| depositCode | Deposit code | string | 10 characters max | 
| direction | Direction | string | within (INPUT, OUTPUT) | 
| establishmentCode | Stock establishment code | string | 2 characters max | 
| forecastQuantity | Forecast quantity | double | |
| forecastUnitCode | Forecast unit code | string | 5 characters max | 
| item | Item | string | 20 characters max | 
| itemReferenceCode | Item reference code | string | 20 characters max | 
| managementType | Management type | string | within (ACTUAL, FORECAST) | 
| movementDateTime | Movement date time | datetime (ISO-8601) | YYYY-MM-DDTHH:MM:SSZ | 
| movementNature | Movement nature | string | within (P_ORDER, S_ORDER, S_DELIV, MO_IN, MO_OUT, SPLY_INV) | 
| ni1 | Internal number 1 | integer | |
| ni2 | Internal number 2 | integer | |
| ni3 | Internal number 3 | integer | |
| operatingProcessCode | Operating process code | string | 20 characters max | 
| originalCompanyCode | Original company code | string | 2 characters max | 
| originalEstablishmentCode | Original establishment code | string | 2 characters max | 
| prechro | Chrono prefix | string | 5 characters max | 
| quantity1 | Quantity 1 | double | |
| quantity2 | Quantity 2 | double | |
| quantity3 | Quantity 3 | double | |
| soaCode | SOA code | string | 20 characters max | 
| thirdParty | Third party | string | 10 characters max | 
| thirdPartyNature | Third party nature | string | within (CUSTOMER, SUPPLIER) | 
| unitCode1 | Unit code 1 | string | 5 characters max | 
| unitCode2 | Unit code 2 | string | 5 characters max | 
| unitCode3 | Unit code 3 | string | 5 characters max | 
| orderDateTime | Order date time | datetime ISO-8601 | when movementNature = S_ORDER or S_DELIV | 
| deliveryDateTime | Delivery date time | datetime ISO-8601 | when movementNature = S_ORDER or S_DELIV | 
| soldUnderPromotion | True if delivery form is under promotion | boolean | if true or false, the flag is forced (not re-evaluated by treatment) |