cadastrar produto
POST
http://apidatain-prod.f1ws.com.br/products
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://apidatain-prod.f1ws.com.br/products' \
--header 'Content-Type: text/plain' \
--data-raw '{
"data": [
{
"class": "padrao",
"type": "product",
"name": "Produto 001",
"code": "001",
"ressuply_deadline": "10",
"active": 1,
"export_date": "",
"kit_exclusive": 0,
"concept": "001",
"stock": [
{
"segmentation": "centro_1",
"qty_reservation": "10",
"qty_stock": "150",
"ressuply_deadline": "50"
},
{
"segmentation": "centro_2",
"qty_reservation": "5",
"qty_stock": "199",
"ressuply_deadline": "34"
}
],
"prices": [
{
"segmentation": "codigo_lista_preco_1",
"segmentation_name": "nome_lista_preco_1",
"distribution_center_code": "COD_CD1",
"home_state": "SP",
"destination_state": null,
"value_of": "199.99",
"value_for": "180.00",
"spot_value": "180.00",
"value_for_taxes": "0"
},
{
"segmentation": "codigo_lista_preco_2",
"segmentation_name": "nome_lista_preco_2",
"distribution_center_code": "COD_CD1",
"home_state": "SP",
"destination_state": null,
"value_of": "200.99",
"value_for": "190.00",
"spot_value": "190.00",
"value_for_taxes": "0"
}
],
"categories": [
{
"code": "padrao"
}
],
"attributes": [
{
"attribute": "Tipo Material",
"value": "FERT",
"order": 1
},
{
"attribute": "Grupo Mercadoria",
"value": "PRP029",
"order": 2
},
{
"attribute": "Descricao Grupo Mercadoria",
"value": "FLOR",
"order": 3
},
{
"attribute": "UN Basica",
"value": "PC",
"order": 4
},
{
"attribute": "Peso Bruto",
"value": "4.900 ",
"order": 5
},
{
"attribute": "Peso liquido",
"value": "4.000 ",
"order": 6
},
{
"attribute": "Volume",
"value": "0.124704 ",
"order": 7
},
{
"attribute": "Comprimento",
"value": "0.000 ",
"order": 8
},
{
"attribute": "Largura",
"value": "0.000 ",
"order": 9
},
{
"attribute": "Altura",
"value": "0.000 ",
"order": 10
},
{
"attribute": "NCM",
"value": "3924.10.00",
"order": 11
},
{
"attribute": "PC Ean",
"value": "PC",
"order": 12
},
{
"attribute": "Ean",
"value": 7896359014064,
"order": 13
},
{
"attribute": "Cx Dun",
"value": "CX",
"order": 14
},
{
"attribute": "Cod Dun",
"value": 17896359014061,
"order": 15
},
{
"attribute": "Embalagem",
"value": "1.000 ",
"order": 16
},
{
"attribute": "Cod marca",
"value": "0004",
"order": 17
},
{
"attribute": "Setor Atividade",
"value": "S1",
"order": 18
}
]
}
]
}'
Response Response Example
{}
Requisição
Parâmetros Bodytext/plain
Respostas
Modificado em 2025-06-23 20:17:41