Adds products to the Competition Data table. Returns the number of updated, inserted, and failed records during the import. Creates a new row for each product.
The competition product details.
{- "data": {
- "importStrategy": "INSERT",
- "products": [
- {
- "sku": "01",
- "label": "Product01",
- "price": 10,
- "currency": "EUR",
- "competitor": "COMP",
- "competitorSku": "P001",
- "competitionType": "string",
- "country": "Spain",
- "priceUnit": 1,
- "unitOfMeasure": "string",
- "infoDate": "2021-10-25T12:14:28.646Z",
- "additionalInfo1": 0,
- "additionalInfo2": 100,
- "additionalInfo4": "test"
}, - {
- "sku": "02",
- "label": "Product02",
- "price": 10,
- "currency": "EUR",
- "competitor": "COMP",
- "competitorSku": "P002",
- "competitionType": "string",
- "country": "Italy",
- "priceUnit": 1,
- "unitOfMeasure": "string",
- "infoDate": "2021-10-25T12:16:28.646Z",
- "additionalInfo1": 0,
- "additionalInfo2": 100,
- "additionalInfo4": "test"
}
]
}
}
{- "response": {
- "node": "string",
- "data": {
- "updated": 0,
- "inserted": 0,
- "error": 0,
- "errorRecords": [
- {
- "record": {
- "sku": "string",
- "label": "string",
- "price": 0,
- "currency": "string",
- "competitor": "string",
- "competitorSku": "string",
- "competitionType": "string",
- "country": "string",
- "comments": "string",
- "source": "string",
- "priceType": "string",
- "priceUnit": 0,
- "unitOfMeasure": "string",
- "infoDate": "string",
- "additionalInfo1": 0,
- "additionalInfo2": 0,
- "additionalInfo3": "string",
- "additionalInfo4": "string"
}, - "errorMessages": [
- "string"
]
}
]
}, - "status": 0
}
}