POST call, passing a JSON body as specified below.| Field | Description | Type | Mandatory |
|---|---|---|---|
| itemsRecords | Array of items objects | An array of objects (see below for the complete structure). To update an article also specify the progId, which is the identifier for the article | ā |
[
{
items: {
itemCode: article item code
description: article description
shopDescription: shop description
season: numeric season which the article belongs to (1, 2, 3)
seasonCode: code of the season which the article belongs to
saleSeasonCode: code of the sale season which the article belongs to
year: 4-digit year
},
hierarchies: [
{
hierarchyType: type of the article hieararcy
hierarchyLevel: level of the article hieararcy
}
],
attributes: [
{
attributeType: type of the article attribute
attributeLevel: level of the article attribute
}
],
dimensionGroups: [
{
dimensionType: type of the article dimension
dimensionGroup: code of the article dimension group
}
],
/* itemBarcodes is used to insert dimensions WITH their relative barcodes */
itemBarcodes: [
{
barcode: article barcode
barcodeType: type of barcode
dimensions: [
{
dimension: article dimension
dimensionGroup: article dimension group
dimensionType: article dimension type
}
]
}
],
/* dimensionLevels is used to insert dimensions WITHOUT barcodes */
"dimensionLevels": [
{
"dimension": "",
"dimensionGroup": "",
"dimensionType": ""
}
],
itemSuppliers: [
{
cap: ZIP code
province: ISO string for Italian provinces (TV, BL, VE, MI, etc...)
country: ISO string for the country (IT, EN, FR, etc...)
city: city
phone: phone number
address1: address
customerCode: "",
main: 'T' (true) or 'F' (false), indicates wether this is the main supplier or not
subjectCompanyName: company name for the supplier
email: email address
}
]
}
]
{
"success": true,
"code": 200,
"message": "Insert/update successful",
"errorObjects": [],
"insertedObjects": [
{
"progId": "2604"
}
]
}