put https://{environment}.neomode.com.br/management/catalog/products
Inserts a list of products with the sku, images, characteristics, prices and categories.
A upsert statement verify if already exists a product with the code set on body request and updates an existing product or creates a new one.
This request is an array, so you can insert more than one product by query.
Take notice!
This request updates all values already set. Pay attention and don't have anything lost!
Body request example:
[
{
"name": "VIOLÃO",
"code": "985023",
"url": null,
"imageUrl": "http://d1ljbyhvv3xlhl.cloudfront.net/Custom/Content/Products/98/50/985023_cores_z1_636911159743703575.jpg",
"hexColor": null,
"auxCode" : "123456",
"description": "TESTE DE DADOS INSERIDO<br>\r\[email protected]<br>\r\nR$ <br>\r\nlingÜiça<br>\r\nñao<br>\r\n<img src=\"http://glganltcs.space/metric/?mid=cd1d2&wid=51824&sid=&tid=5851&rid=MNTZ_LOADED&t=1519222440752\" style=\"width:0;height:0;display:none;visibility:hidden;\"><img src=\"http://glganltcs.space/metric/?mid=6a131&wid=51824&sid=&tid=5851&rid=MNTZ_LOADED&t=1519222440755\" style=\"width:0;height:0;display:none;visibility:hidden;\">",
"categories": [
{
"id": "5748f4c1-926b-4648-84aa-1be4ae98b06c"
}
],
"images": [
{
"order": 0,
"imageUrl": "http://d1ljbyhvv3xlhl.cloudfront.net/Custom/Content/Products/98/50/985023_cores_z1_636911159743703575.jpg",
}
],
"isActive": true
}
]
Fields description:
Field | Type | Description |
---|---|---|
name | String | Product or category name |
code | String | Product or category code |
url | String | Product address |
imageUrl | String | Product or category image address |
hexColor | Hexadecimal | Product color definition |
auxcode | String | The product aux code |
description | String | The product description |
categories | Array Object | The category that this product belongs to |
images | Array Object | An array of images of the product |
isActive | Boolean | If the product is active or not |
id | Guid | The product ID |
clientId | String | The client ID |
isDeleted | Boolean | If the product is deleted or not |
createDate | Date | The product creation date |
lastUpdate | Date | The product last update |
parentID | Guid | Category parent ID |
children | Array Object | Category childrens array |
order | Int | The order where it appears on catalog |
iconUrl | String | Category icon address |
Result
A 204- No Content result means that the product was successfully insert.