Item planning internal purchase
Endpoints
Create new item planning internal purchase
/companies/{companycode}/item-planning-internal-purchases |
Parameters
Type | Name | Description | Schema | Business Rules |
---|---|---|---|---|
Path |
companyCode |
Current context company code |
string |
2 characters max |
Body |
body |
Get entity list
/companies/{companycode}/item-planning-internal-purchases |
Parameters
Type | Name | Description | Schema | Business Rules |
---|---|---|---|---|
Path |
companyCode |
Current context company code |
string |
2 characters max |
Query |
page |
Page index |
integer (int32) |
|
Query |
size |
Entity count per page |
integer (int32) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Successfull |
< Item > array |
400 |
Functionnal error |
No Content |
500 |
Internal server error |
No Content |
Import entity list
/companies/{companycode}/item-planning-internal-purchases/import |
Parameters
Type | Name | Description | Schema | Business Rules |
---|---|---|---|---|
Path |
companyCode |
Current context company code |
string |
2 characters max |
Body |
body |
Data structure
ItemPlanningInternalPurchase
Item planning internal purchase data structure.
Name | Description | Value | Business Rules |
---|---|---|---|
arrivalDepositCode |
Arrival deposit code |
string |
10 characters max |
arrivalEstablishmentCode |
Arrival establishment code |
string |
2 characters max |
companyCode |
Current company code |
string |
2 characters max |
itemCode |
Item code |
string |
20 characters max |
parameterCode |
Parameter code |
string |
(MINIMUM_REPLENISHMENT, MULTIPLE_REPLENISHMENT, REPLENISHMENT_DELAY) |
parameterUnit |
Parameter unit |
string |
Within (WEEK, TRANSFER_TIME) if parameterCode = REPLENISHMENT_DELAY 5 characters max otherwise |
parameterValue |
Parameter value |
double |
|
startDepositCode |
Start deposit code |
string |
10 characters max |
startEstablishmentCode |
Start establishment code |
string |
2 characters max |
transferTimeCode |
Transfer time code |
string |
Not empty if parameterCode = REPLENISHMENT_DELAY and parameterUnit = TRANSFER_TIME |
ImportItemPlanningInternalPurchaseList
Name | Value |
---|---|
callback |
string |
data |
|
parameters |
ItemPlanningInternalPurchaseParameters
Item planning internal purchase parameters structure.
Even if parameters are optional and empty, its should be send in request |
Name | Description | Value |
---|---|---|
parameterTypes |
List of parameter types |
list (MINIMUM_REPLENISHMENT, MULTIPLE_REPLENISHMENT, REPLENISHMENT_DELAY) |
Example of JSON that can be send:
{ "data": [ { "companyCode": "cCode", "startEstablishmentCode": "01", "arrivalEstablishmentCode": "02", "itemCode": "itemCode1", "parameterCode": "REPLENISHMENT_DELAY", "parameterUnit": "WEEK", "parameterValue": "6" } ], "parameters": { "parameterTypes" : [] } }