Current stock

Endpoints

Import entity list

/companies/{companycode}/current-stocks/import

Parameters

Type Name Description Schema

Path

companyCode
required

Current context company code

string

Path

targetApps
optional

List of target applications (import only in these applications)

list of string within (SUPPLY, SCHEDULING)

Body

body
required

Responses

HTTP Code Description Schema

202

Accepted

No Content

400

Functionnal error

No Content

500

Internal server error

No Content

Consumes

  • application/json

Produces

  • application/json

Data structure

CurrentStock

Current stock data structure.

Name Description Value Business rules

batch
optional

Batch

string

20 characters max

companyCode
required

Current company code

string

2 characters max

depositCode
required

Deposit code

string

10 characters max

establishmentCode
required

Current establishment code

string

2 characters max

firstQuantity
required

First quantity

double

firstStockUnitCode
required

First stock unit code

string

5 characters max

itemCode
required

Item code

string

20 characters max

secondQuantity
optional

Second quantity

double

secondStockUnitCode
optional

Second stock unit code

string

5 characters max

thirdQuantity
optional

Third quantity

double

thirdStockUnitCode
optional

Third stock unit code

string

5 characters max

ImportCurrentStockList

Name Value

callback
optional

string

data
required

List of CurrentStock

parameters
required

CurrentStockParameters

Current stock parameters structure.

Name Description Value

deleteBeforeImport
optional

Delete current stocks of the scope before import ?

boolean

depositCodes
optional

List of deposit codes

list

establishmentCode
optional

Establishment code

string