post https://{environment}.neomode.com.br/management/catalog/products
Creates a new product on catalog.
Min request body example:
{
"name":"ProductName",
"code":"1234567890"
}
Max request body example:
{
"name": "VIOLÃO",
"code": "9850233434",
"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 |