curl --location -g --request PUT '/products/{{identificador_produto}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"class": "padrao",
"type": "normal",
"situation": "1",
"name": "PRODUTO_01",
"code": "P_01",
"ressuply_deadline": "90",
"active": "1",
"attributes": [
{
"attribute": "estoque_produto",
"value": "10"
},
{
"attribute": "valor_integrado_de",
"value": 200.00
},
{
"attribute": "valor_integrado_por",
"value": 195.00
},
{
"attribute": "valor_integrado_avista",
"value": 190.00
},
{
"attribute": "situacao_produto",
"value": 1
},
{
"attribute": "marca",
"value": "Marca Exemplo"
},
{
"attribute": "largura",
"value": "1.22"
},
{
"attribute": "altura",
"value": "2.32"
},
{
"attribute": "peso_produto",
"value": "350"
},
{
"attribute": "comprimento",
"value": "1"
},
{
"attribute": "desc_modelo_produto",
"value": "Descrição de modelo exemplo"
},
{
"attribute": "descricao",
"value": "Descrição de exemplo"
},
{
"attribute": "part_number",
"value": ""
},
{
"attribute": "cod_barras",
"value": "código de barras"
},
{
"attribute": "tempo_garantia_produto",
"value": 0
},
{
"attribute": "qtd_estoque_crossdocking",
"value": 0
},
{
"attribute": "qtd_disponivel_crossdocking",
"value": 0
},
{
"attribute": "prazo_movimentacao_crossdocking",
"value": 0
},
{
"attribute": "valor_integrado_crossdocking",
"value": 0
},
{
"attribute": "valor_manual_crossdocking",
"value": 0
},
{
"attribute": "valor_vigente_crossdocking",
"value": 0
},
{
"attribute": "prazo_movimentacao_ressuprimento",
"value": 0
},
{
"attribute": "valor_integrado_ressuprimento",
"value": 0
},
{
"attribute": "valor_manual_ressuprimento",
"value": 0
},
{
"attribute": "valor_vigente_ressuprimento",
"value": 0
},
{
"attribute": "estoque_infinito_ressuprimento",
"value": 0
}
],
"categories": [
{
"code": "categoria_1"
},
{
"code": "subcategoria_categoria1_nivel1"
},
{
"code": "subcategoria_categoria1_nivel2"
}
],
"filters": [
{
"name": "Voltagem",
"value": "110"
},
{
"name": "Voltagem",
"value": "220"
}
],
"prices": [
{
"segmentation": "CODLISTA1",
"segmentation_name": "Lista 1",
"value_of": "100",
"value_for": "100",
"spot_value": "100"
},
{
"segmentation": "CODLISTA2",
"segmentation_name": "Lista 2",
"value_of": "200",
"value_for": "200",
"spot_value": "200"
}
],
"contributors": [
{
"name": "Mario de Andrade",
"type": "Autor",
"code": "1"
},
{
"name": "José Saramago",
"type": "Tradutor",
"code": "2"
},
{
"name": "Douglas Adams",
"type": "Ilustrador",
"code": "3"
}
],
"stock": [
{
"segmentation": "CODIGOERPRS",
"qty_reservation": "47",
"qty_stock": "180",
"store_qty_security": "1",
"marketplace_qty_security": "2",
"ressuply_deadline": "15"
},
{
"segmentation": "CODIGOERPSP",
"qty_reservation": "4",
"qty_stock": "98",
"store_qty_security": "10",
"marketplace_qty_security": "1",
"ressuply_deadline": "16"
},
{
"segmentation": "CODIGOERPSC",
"qty_reservation": "20",
"qty_stock": "40",
"store_qty_security": "2",
"marketplace_qty_security": "8",
"ressuply_deadline": "14"
}
]
}'