Analytics Stock Real Movement
Endpoints
Get stock movement list
| /companies/{companycode}/establishments/{establishmentcode}/analytics/stock-real-movements | 
| operation.deprecated | 
Parameters
| Type | Name | Description | Schema | 
|---|---|---|---|
| Path | companyCode | Current context company code | string | 
| Path | establishmentCode | Current context establishment code | string | 
| Query | from | Begin date | string | 
| Query | to | End date | string | 
Responses
| HTTP Code | Description | Schema | 
|---|---|---|
| 200 | Successfull | < stock movement response information > array | 
| 400 | Functionnal error | No Content | 
| 500 | Internal server error | No Content | 
Data structure
stock movement response information
Description of a stock movement.
| Name | Description | Value | 
|---|---|---|
| at | movement date | datetime (ISO-8601) | 
| cancelled | movement deleted or not | boolean | 
| companyCode | Current company code | string | 
| containerMovements | Container movement list | ContainerMovements list | 
| establishmentCode | Current establishment code | string | 
| itemBatchMovements | Items/batch movement list | ItemBatchMovements list | 
| movementId | Current movement id | integer | 
| natureCode | movement nature | string | 
| type | movement type (INPUT, OUTPUT or TRANSFER) | string (INPUT, OUTPUT, TRANSFER) | 
ContainerMovements
| Name | Description | Value | 
|---|---|---|
| containerNsc | Container code | string | 
| direction | Direction (INPUT or OUTPUT) | string (INPUT, OUTPUT) | 
| geoContext | Context | 
ItemBatchMovements
| Name | Description | Value | 
|---|---|---|
| direction | Direction (INPUT or OUTPUT) | string (INPUT, OUTPUT) | 
| enteredQuantities | Items/batch quantities (declared with input units) | |
| geoContext | Context | |
| stockQuantities | Items/batch quantities (declared with stock units) | 
Quantities
| Name | Description | Value | 
|---|---|---|
| batchCode | Batch code | string | 
| itemCode | Item code | string | 
| quantity1 | First quantity | |
| quantity2 | Second quantity | 
GeoContext
| Name | Description | Value | 
|---|---|---|
| childContainerNsc | Child container code | string | 
| depotCode | Deposit code | string | 
| locationCode | Location code | string | 
| parentContainerNsc | Parent container code | string |