| Campo | Tipo | Obrigatório | Formato |
|---|---|---|---|
supplier | integer | Sim | |
name | string | Sim | |
description | string | Sim | |
price | float | Sim | |
weight | float | Sim | |
productType | integer | Sim | |
reference | string | Não | |
externalCode | string | Não | |
pageTitle | string | Não | |
friendlyUrl | string | Não | |
shortDescription | string | Não | |
oldPrice | float | Não | |
suggestedPrice | float | Não | |
costPrice | float | Não | |
width | float | Não | |
height | float | Não | |
length | float | Não | |
tags | string | Não | |
searchTerms | string | Não | |
gender | integer | Não | |
ageRange | integer | Não | |
gtin | string | Não | |
condition | integer | Não | |
maximumPurchase | integer | Não | |
customizeLimit | integer | Não | |
adult | boolean | Não | |
customized | boolean | Não | |
special | boolean | Não | |
featured | boolean | Não | |
release | boolean | Não | |
visibility | integer | Não | |
active | boolean | Não | |
ignoreMinimumPurchase | boolean | Não | |
preSale | string | Não | AAAA-MM-DD |
creditValue | float | Não | |
productType | int | Sim | |
sizeLabel | string | Não | |
optionLabel | string | Não | |
aliasPath | string | Não | |
markupMarketplace | float | Não | |
resalePrice | float | Não | |
addAdditionalDeliveryTime | integer | Não | |
additionalDeliveryTime | boolean | Não | |
optionLabel | string | Não | |
sizeLabel | string | Não |
curl --location '/products' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"data": {
"supplier": 4,
"name": "Teste produto com imagem na api",
"description": "Descrição do meu produto",
"price": 49.90,
"weight": 0.50,
"visibility": 1,
"productType": 1
}
}'{
"error": true,
"messages": {
"price": {
"notFloat": "Invalid type given. Floating point value expected."
}
}
}