Item
Endpoints
Create new item
/companies/{companycode}/items |
Parameters
Type | Name | Description | Schema | Business Rules |
---|---|---|---|---|
Path |
companyCode |
Current context company code |
string |
2 characters max |
Body |
body |
Get entity list
/companies/{companycode}/items |
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}/items/import |
Parameters
Type | Name | Description | Schema | Business Rules |
---|---|---|---|---|
Path |
companyCode |
Current context company code |
string |
2 characters max |
Body |
body |
Get one item
/companies/{companycode}/items/{code} |
operation.deprecated |
Parameters
Type | Name | Description | Schema | Business Rules |
---|---|---|---|---|
Path |
code |
Entity code to retrieve |
string |
20 characters max |
Delete item
/companies/{companycode}/items/{code} |
Parameters
Type | Name | Description | Schema | Business Rules |
---|---|---|---|---|
Path |
code |
Entity public uuid code to delete |
string |
20 characters max |
Data structure
Item
Item data structure.
Name | Description | Value | Business Rules |
---|---|---|---|
allExpeditionSites |
All expedition sites |
boolean |
|
code |
Item code |
string |
20 characters max |
companyCode |
Current company code |
string |
2 characters max |
consumerPriceUnitCode |
Consumer price unit code |
string |
5 characters max |
downgradedItems |
list |
||
ean |
GTIN |
string |
14 characters max |
establishments |
All establishments code |
Establishment list |
|
expeditionSites |
list |
||
firstUnitCode |
First unit code |
string |
5 characters max |
hierarchies |
GroupLink list |
||
imageCode |
string |
||
label |
Item label |
string |
50 characters max |
labels |
TranslationLabel list |
||
outer |
Outer |
integer |
|
planningInfos |
Planning informations |
||
priceUnitCode |
Price unit code |
string |
5 characters max |
publicUuid |
Item public uuid |
string |
|
qualityInfos |
ItemQualityInfos list |
||
secondUnitCode |
Second unit code |
string |
5 characters max |
shortLabel |
Short label |
string |
12 characters max |
stockInfos |
Stock informations |
||
stockManaged |
boolean |
||
substituteItems |
list |
||
unitConversions |
UnitConversion list |
||
useBatch |
boolean |
||
validityEndDate |
Validity end date |
datetime (ISO-8601) |
YYYY-MM-DDTHH:MM:SSZ |
Establishment
Name | Value | Business Rules |
---|---|---|
code |
string |
2 characters max |
label |
string |
50 characters max |
ItemPlanningInfos
Name | Value |
---|---|
internalPurchaseReplenishmentInfos |
|
manufacturingReplenishmentInfos |
|
purchaseReplenishmentInfos |
|
stockInfos |
ItemPlanningInternalPurchaseInfos
Name | Value | Business Rules |
---|---|---|
startEstablishmentCode |
string |
2 characters max |
startDepositCode |
string |
10 characters max |
arrivalEstablishmentCode |
string |
2 characters max |
arrivalDepositCode |
string |
10 characters max |
parameterCode |
string |
IN(MINIMUM_REPLENISHMENT, MULTIPLE_REPLENISHMENT, REPLENISHMENT_DELAY) |
parameterUnit |
string |
if MINIMUM_REPLENISHMENT or MULTIPLE_REPLENISHMENT, it is a unit code |
parameterValue |
decimal |
if REPLENISHMENT_DELAY, it is null |
transferTimeCode |
string |
ItemPlanningManufacturingInfos
Name | Value | Business Rules |
---|---|---|
establishmentCode |
string |
2 characters max |
activityCode |
string |
use only activityCode or activitySuiteCode |
activitySuiteCode |
string |
use only activityCode or activitySuiteCode |
parameterCode |
string |
IN(MINIMUM_REPLENISHMENT, MULTIPLE_REPLENISHMENT, MAXIMUM_REPLENISHMENT, REPLENISHMENT_PERIOD, REPLENISHMENT_DELAY, REPLENISHMENT_DAYS) |
parameterUnit |
string |
if REPLENISHMENT_PERIOD, parameterUnit IN(DAY, WEEK) |
parameterValue |
decimal |
|
replenishmentDays |
list |
IN(MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY) |
ItemPlanningPurchaseInfos
Name | Value | Business Rules |
---|---|---|
establishmentCode |
string |
2 characters max |
depositCode |
string |
2 characters max |
parameterCode |
string |
IN(MINIMUM_REPLENISHMENT, MULTIPLE_REPLENISHMENT, MAXIMUM_REPLENISHMENT, REPLENISHMENT_PERIOD, REPLENISHMENT_DELAY) |
parameterUnit |
string |
if REPLENISHMENT_PERIOD, parameterUnit IN(DAY, WEEK) |
parameterValue |
decimal |
ItemPlanningStockInfos
Name | Value | Business Rules |
---|---|---|
establishmentCode |
string |
2 characters max |
depositCode |
string |
2 characters max |
parameterCode |
string |
IN(MINIMUM_SALES_HEDGE, MAXIMUM_INVENTORY_HEDGE, MINIMUM_INVENTORY_HEDGE, MINIMUM_STOCK_HEDGE, MAXIMUM_STOCK) |
parameterUnit |
string |
if MINIMUM_SALES_HEDGE, parameterUnit IN(DAY, SALES_DAY, WEEK) |
parameterValue |
decimal |
ItemQualityInfos
Name | Value | Business Rules |
---|---|---|
establishmentCode |
string |
2 characters max |
lockingDuration |
double |
|
preservationDuration |
double |
|
preservationDurationUnit |
string |
DAYS or MONTHS |
useDuration |
double |
|
optimalPreservationDuration |
integer |
|
shippingGuaranteedDuration |
integer |
ItemStockInfos
Name | Value | Business Rules |
---|---|---|
firstUnitCode |
string |
5 characters max |
multiItemBatch |
boolean |
|
referenceItemBatchCode |
string |
|
secondUnitCode |
string |
5 characters max |
thirdUnitCode |
string |
5 characters max |
UnitConversion
Name | Value | Business Rules |
---|---|---|
constantQuantity |
boolean |
|
quantity |
double |
|
referenceQuantity |
double |
|
referenceUnitCode |
string |
5 characters max |
unitCode |
string |
5 characters max |
TranslationLabel
Name | Value | Business Rules |
---|---|---|
language |
string |
2 characters max (FR, EN, ES or PT) |
label |
string |
50 characters max |
ImportItemList
Name | Value |
---|---|
callback |
string |
data |
Item list |
Example of JSON that can be send:
{ "companyCode": "cCompany", "code": "01", "label": "Item 1", "shortLabel": null, "validityEndDate": "2099-12-31T00:00:00.000Z", "imageCode": null, "firstUnitCode": "KG", "secondUnitCode": "COL", "ean": null, "outer": null, "priceUnitCode": null, "consumerPriceUnitCode": null, "establishments": [], "hierarchies": [{ "code": "H1", "value": "V1", "establishmentCode": "01" }, { "code": "H2", "value": "V2", "establishmentCode": null }], "stockManaged": true, "useBatch": true, "qualityInfos": [{ "establishmentCode": "01", "useDuration": null, "lockingDuration": null, "preservationDuration": 6, "preservationDurationUnit": "MONTHS" }], "stockInfos": { "firstUnitCode": "KG", "secondUnitCode": null, "thirdUnitCode": null, "multiItemBatch": false, "referenceItemBatchCode": null }, "substituteItems": [], "downgradedItems": [], "allExpeditionSites": true, "expeditionSites": [], "planningInfos" : { "stockInfos": [{ "establishmentCode": "01", "depositCode": "01", "parameterCode": "MINIMUM_INVENTORY_HEDGE", "parameterUnit": "DAY", "parameterValue": 2 }], "purchaseReplenishmentInfos": [{ "establishmentCode": "01", "depositCode": null, "parameterCode": "MINIMUM_REPLENISHMENT", "parameterUnit": "PAL", "parameterValue": 3.755 }, { "establishmentCode": "01", "depositCode": null, "parameterCode": "MULTIPLE_REPLENISHMENT", "parameterUnit": "PAL", "parameterValue": 3 }], "manufacturingReplenishmentInfos": [{ "establishmentCode": "01", "activityCode": null, "activitySuiteCode": null, "parameterCode": "MULTIPLE_REPLENISHMENT", "parameterUnit": "PAL", "parameterValue": 5.123, "replenishmentDays": [] }, { "establishmentCode": "01", "activityCode": null, "activitySuiteCode": null, "parameterCode": "MINIMUM_REPLENISHMENT", "parameterUnit": "PAL", "parameterValue": 6.123, "replenishmentDays": [] }, { "establishmentCode": "01", "activityCode": null, "activitySuiteCode": null, "parameterCode": "MAXIMUM_REPLENISHMENT", "parameterUnit": "COL", "parameterValue": 3, "replenishmentDays": [] }, { "establishmentCode": "01", "activityCode": null, "activitySuiteCode": null, "parameterCode": "REPLENISHMENT_PERIOD", "parameterUnit": "WEEK", "parameterValue": 4, "replenishmentDays": [] }, { "establishmentCode": "01", "activityCode": null, "activitySuiteCode": null, "parameterCode": "REPLENISHMENT_DAYS", "parameterUnit": null, "parameterValue": null, "replenishmentDays": [ "MONDAY", "TUESDAY" ] }, { "establishmentCode": "01", "activityCode": null, "activitySuiteCode": null, "parameterCode": "REPLENISHMENT_DELAY", "parameterUnit": "DAY", "parameterValue": 5, "replenishmentDays": [] }], "internalPurchaseReplenishmentInfos": [{ "startEstablishmentCode": "01", "startDepositCode": "01", "arrivalEstablishmentCode": "01", "arrivalDepositCode": "02", "parameterCode": "MINIMUM_REPLENISHMENT", "parameterUnit": "COL", "parameterValue": 25, "transferTimeCode": null }, { "startEstablishmentCode": "01", "startDepositCode": "01", "arrivalEstablishmentCode": "01", "arrivalDepositCode": "02", "parameterCode": "REPLENISHMENT_DELAY", "parameterUnit": "WEEK", "parameterValue": 2, "transferTimeCode": null }, { "startEstablishmentCode": "01", "startDepositCode": "01", "arrivalEstablishmentCode": "01", "arrivalDepositCode": "02", "parameterCode": "MULTIPLE_REPLENISHMENT", "parameterUnit": "COL", "parameterValue": 3, "transferTimeCode": null }, { "startEstablishmentCode": "01", "startDepositCode": "02", "arrivalEstablishmentCode": "01", "arrivalDepositCode": "01", "parameterCode": "REPLENISHMENT_DELAY", "parameterUnit": null, "parameterValue": null, "transferTimeCode": "FD" }] }, "unitConversions": [{ "referenceUnitCode": "COL", "referenceQuantity": 1, "unitCode": "KG", "quantity": 3.6, "constantQuantity": true }, { "referenceUnitCode": "COL", "referenceQuantity": 80, "unitCode": "PAL", "quantity": 1, "constantQuantity": false }] }