cadastrar produtos e relacionamentos (completo)
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": "PRODUCT 01",
"code": "P_01",
"situation": "1",
"ipi": "5",
"ressuply_deadline": "90",
"multiple_inventory": "10",
"max_items_per_purchase": "20",
"min_items_per_purchase": null,
"active": "1",
"seo_title": "",
"seo_description": "",
"seo_keywords": "",
"seo_canonical": "",
"seo_redirect": "",
"seo_slug": "",
"export_date": "",
"concept": "001",
"tags": "palavra-chave 1,palavra-chave 2",
"kit_exclusive": 0,
"kit_behavior": null,
"stock": [
{
"segmentation": "centro_1",
"qty_reservation": "10",
"qty_stock": "150"
},
{
"segmentation": "centro_2",
"qty_reservation": "5",
"qty_stock": "199"
}
],
"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"
}
],
"attributes": [
{
"attribute": "icms_reduzido",
"value": "1",
"order": "1"
},
{
"attribute": "tributa_ipi",
"value": "1",
"order": "2"
},
{
"attribute": "tributa_st",
"value": "1",
"order": "3"
},
{
"attribute": "ncm",
"value": "023",
"order": "4"
},
{
"attribute": "origem",
"value": "1",
"order": "5"
},
{
"attribute": "marca",
"value": "Marca Exemplo",
"order": "6"
},
{
"attribute": "peso",
"value": "1.25",
"order": "7"
},
{
"attribute": "altura",
"value": "2.32",
"order": "8"
},
{
"attribute": "largura",
"value": "1.22",
"order": "9"
},
{
"attribute": "profundidade",
"value": "1",
"order": "10"
},
{
"attribute": "peso_cubico",
"value": "2",
"order": "11"
},
{
"attribute": "ipi",
"value": "5",
"order": "12"
},
{
"attribute": "descricao",
"value": "Descrição de exemplo",
"order": "13"
}
],
"categories": [
{
"code": "categoria_1"
},
{
"code": "subcategoria_categoria1_nivel1"
},
{
"code": "subcategoria_categoria1_nivel2"
},
{
"code": "categoria_2"
},
{
"code": "subcategoria_categoria2_nivel1"
}
],
"images": [
{
"link": "http://linkimages.com/img1.jpg"
},
{
"link": "http://linkimages.com/img2.jpg"
}
],
"videos": [
{
"link": "http://linkvideo1"
},
{
"link": "http://linkvideo2"
}
],
"extended_warranties": [
{
"code": "001",
"name": "Garantia 1 Revenda",
"warranty_period_months": "12",
"value": "10.00",
"order_type_code": "01",
"active": 1
},
{
"code": "001",
"name": "Garantia 1 Consumo",
"warranty_period_months": "12",
"value": "12.00",
"order_type_code": "02",
"active": 1
}
],
"kit": [
{
"code": "P_02",
"quantity": 1,
"principal": 1
},
{
"code": "P_03",
"quantity": 1,
"principal": 0
}
]
}
]
}'
Response Response Example
{}
Requisição
Parâmetros Bodytext/plain
Respostas
Modificado em 2025-07-01 19:53:56