Stock statement
Endpoints
Import entity list
| /companies/{companycode}/stock-statements/import | 
Parameters
| Type | Name | Description | Schema | 
|---|---|---|---|
| Path | companyCode | Current context company code | string | 
| Body | body | 
Data structure
StockStatement
Stock statement data structure.
| Name | Description | Value | Business rules | 
|---|---|---|---|
| batch | Batch | string | 20 characters max | 
| companyCode | Current company code | string | 2 characters max | 
| depositCode | Deposit code | string | 10 characters max | 
| establishmentCode | Current establishment code | string | 2 characters max | 
| firstQuantity | First quantity | double | |
| firstUnitCode | First unit code | string | 5 characters max | 
| itemCode | Item code | string | 20 characters max | 
| secondQuantity | Second quantity | double | |
| secondUnitCode | Second unit code | string | 5 characters max | 
| stockDate | Stock date | datetime (ISO-8601) | 
ImportStockStatementList
| Name | Value | 
|---|---|
| callback | string | 
| data | StockStatement list | 
| parameters | 
StockStatementParameters
Stock statement parameters structure.
| Name | Description | Value | 
|---|---|---|
| dateType | Date type | string (BEGIN_CURRENT_MONTH, BEGIN_CURRENT_WEEK, BEGIN_CURRENT_DAY, CUSTOM) | 
| deleteBeforeImport | Delete stock statements of the scope before import ? | boolean | 
| depositCodes | List of deposit codes | list | 
| endDate | End date | datetime (ISO-8601) | 
| establishmentCode | Establishment code | string | 
| startDate | Start date | datetime (ISO-8601) |