Quantities

Endpoints

Import entity list

/companies/{companycode}/quantities/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, FORECAST, 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

ImportQuantityList

Name Value

callback
optional

string

data
optional

Quantity list

parameters
optional

QuantityParameters

Quantity parameters structure.

Name Description Value Business rules

deleteBeforeImport
optional

Delete movement stocks of the scope before import ?

boolean

depositCodes
optional

List of deposit codes

list of string

establishmentCode
optional

Stock establishment code

string

2 characters max

managementType
optional

Management type

string

within (ACTUAL, FORECAST)

movementTypes
optional

List of movement types

list of string

within (PURCHASE, SALE, MANUFACTURING_ORDER, ORDER_PREPARATION)

Quantity

Quantity data structure.

Name Description Value Business rules

activityCode
optional

Activity code

string

20 characters max

batchNumber
optional

Batch number

string

20 characters max

chrono
required

Chrono

integer

companyCode
required

Stock company code

string

2 characters max

depositCode
required

Deposit code

string

10 characters max

direction
required

Direction

string

within (INPUT, OUTPUT)

establishmentCode
required

Stock establishment code

string

2 characters max

forecastQuantity
optional

Forecast quantity

double

forecastUnitCode
optional

Forecast unit code

string

5 characters max

item
required

Item

string

20 characters max

itemReferenceCode
optional

Item reference code

string

20 characters max

managementType
required

Management type

string

within (ACTUAL, FORECAST)

movementDateTime
required

Movement date time

datetime (ISO-8601)

YYYY-MM-DDTHH:MM:SSZ

movementNature
required

Movement nature

string

within (P_ORDER, S_ORDER, S_DELIV, MO_IN, MO_OUT, SPLY_INV)

ni1
required

Internal number 1

integer

ni2
required

Internal number 2

integer

ni3
required

Internal number 3

integer

operatingProcessCode
optional

Operating process code

string

20 characters max

originalCompanyCode
required

Original company code

string

2 characters max

originalEstablishmentCode
required

Original establishment code

string

2 characters max

prechro
required

Chrono prefix

string

5 characters max

quantity1
required

Quantity 1

double

quantity2
optional

Quantity 2

double

quantity3
optional

Quantity 3

double

soaCode
optional

SOA code

string

20 characters max

thirdParty
optional

Third party

string

10 characters max

thirdPartyNature
optional

Third party nature

string

within (CUSTOMER, SUPPLIER)

unitCode1
required

Unit code 1

string

5 characters max

unitCode2
optional

Unit code 2

string

5 characters max

unitCode3
optional

Unit code 3

string

5 characters max

orderDateTime
optional

Order date time

datetime ISO-8601

when movementNature = S_ORDER or S_DELIV
YYYY-MM-DDTHH:MM:SSZ

deliveryDateTime
optional

Delivery date time

datetime ISO-8601

when movementNature = S_ORDER or S_DELIV
YYYY-MM-DDTHH:MM:SSZ

soldUnderPromotion
optional

True if delivery form is under promotion

boolean

if true or false, the flag is forced (not re-evaluated by treatment)