> For the complete documentation index, see [llms.txt](https://expedy.gitbook.io/openapi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://expedy.gitbook.io/openapi/produto.md).

# Product

## Post Product

<mark style="color:green;">`POST`</mark> `/v1/product/`

Endpoint para cadastro de novos produtos.

#### Headers

| Name                                            | Type   | Description                     |
| ----------------------------------------------- | ------ | ------------------------------- |
| Authorization<mark style="color:red;">\*</mark> | string | Access token para autenticação. |
| Content-Type<mark style="color:red;">\*</mark>  | string | application/json.               |

{% tabs %}
{% tab title="201 Exemplo de Response." %}

```
{
  "message": "created",
  "Produto": {
    "id": 1,
    "package_measures": {
      "capacity": 1
    },
    "categoriaViaVarejo": {
      "atributos": []
    },
    "stock": 0,
    "correlacoes": [],
    "log": [],
    "_id": "616042fb4a94ac3d10c93c68",
    "reference": "string",
    "name": "string",
    "price": 15,
    "weight": 10,
    "length": 10,
    "width": 10,
    "height": 10,
    "warranty": "string",
    "pictures": [
      {
        "_id": "616042fb4a94ac3d10c93c69",
        "url": "https://www.tenhomaisdiscosqueamigos.com/wp-content/uploads/2021/02/rickroll-hd.jpg"
      }
    ],
    "variations": [
      {
        "correlacoes": [],
        "log": [],
        "_id": "616042fb4a94ac3d10c93c6a",
        "reference": "string",
        "stock": 50,
        "price": 15,
        "attributes": [
          {
            "_id": "616042fb4a94ac3d10c93c6b",
            "key": "Color",
            "value": "Red"
          }
        ],
        "pictures": [
          {
            "_id": "616042fb4a94ac3d10c93c6c",
            "url": "https://www.tenhomaisdiscosqueamigos.com/wp-content/uploads/2021/02/rickroll-hd.jpg",
            "position": "1"
          }
        ]
      }
    ],
    "company": "1",
    "atributo_olist": [],
    "atributo_ml": [],
    "atributo_b2w": [],
    "idERP_Product": 1,
    "__v": 0
  }
}
```

{% endtab %}

{% tab title="400 Exemplo de response com erro de validação." %}

```
{
  "errors": {
    "body": [
      {
        "keyword": "required",
        "dataPath": "",
        "schemaPath": "#/required",
        "params": {
          "missingProperty": "reference"
        },
        "message": "should have required property 'reference'"
      }
    ]
  }
}
```

{% endtab %}
{% endtabs %}

Segue o exemplo abaixo de body para requisição. **Campos que são obrigatórios:**

* **reference**
* **name**
* **price**
* **weight (gramas)**
* **length (cm)**
* **width (cm)**
* **height (cm)**
* **warranty**

Com relação a tributação, o campo origem aceita os seguintes tipos:

* 0 - Nacional
* 1 - Estrangeira Importação direta
* 2 - Estrangeira Adquirida no mercado interno
* 3 - Nacional Conteúdo Importação Superior a 40% e inferior ou igual a 70%
* 4 - Nacional Prod. Conf. Proc. Legislação
* 5 - Nacional Conteúdo Importação Inferior a 40%
* 6 - Estrangeira Importação direta, sem Similar nacional, na lista CAMEX e gás natural
* 7 - Estrangeira Adquirida Mercado Interno sem Similar nacional, na lista CAMEX e gás natural
* 8 - Nacional Conteúdo Importação superior a 70%

Se tiver **pictures**, o campo **url** se torna obrigatório.

Para a **variação**, é necessário cadastrar atributos para posterior enviar no post produto ([ver endpoints de Atributos](/openapi/produto/atributos.md)). Os campos obrigatórios são:

* **sku**
* **price**
* **atributos**
* **stock**

```json
## Exemplo de Body ##
{
	"stock": 10,
	"estoque": {
		"min": 1,
		"max": 500,
		"localization": "estoque loja 1"
	},
	"company": "4",
	"status": "false",
	"name": "Camiseta Basica",
	"reference": "CB",
	"description": "Camiseta Basica",
	"price": 29.99,
	"cost_price": 15.00
	"ean": null,
	"ncm": null,
	"brand": "Basica",
	"weight": 750, // considerar peso líquido
	"peso_bruto": 800,
	"width": 7,
	"height": 7,
	"length": 7,
	"warranty": "Contra Defeito de Fabricação",
	"format": "SIMPLES", // TIPOS PERMITIDOS -> SIMPLES, COM VARIACAO E KIT. SE NADA FOR INFORMADO O PRODUTO SERÁ CONSIDERADO SIMPLES
	"condition": "NOVO", // TIPOS PERMITIDOS -> NOVO E USADO. POR PADRÃO O PRODUTO SERÁ CONSIDERADO NOVO
	"production": "P - Produção própria", // TIPOS PERMITIDOS -> P - Produção própria, T - Produção de terceiros
	"free_shipping": false, // Booleano true ou false
	"tributacao": {
		"origem": "0 - Nacional" // ver tipos na parte de tributação acima
		"ncm": "237863126",
		"cest": "123567",
		"tipo_item": "",
		"porcentagem_tributos": 12,
		"icms": {
			"icms_base_retencao": "1",
			"icms_retencao": "1",
			"icms_substituto": "4"	
		},
		"tipi": "",
		"pis": "",
		"cofins": ""
	},
	"ipi_value": 20,
	"variations": [
		{
			"name": "Camiseta Basica Vermelha",
			"sku": "CB001",
			"stock": 11,
			"price": 29.99,
			"cost_price": 15.00
			"weight": 750,
			"width": 7,
			"height": 7,
			"length": 7,
			"ean": null,
			"atributos": [
				{
					"id": 5
				},
				{
					"id": 6
				}
			],
			"pictures": [
				{
					"url": "https://rockcontent.com/br/wp-content/uploads/sites/2/2020/02/teste-de-lideran%C3%A7a.png2"
				}
			]
		},
		{
			"name": "Camiseta Basica Cinza",
			"sku": "CB002",
			"stock": 9,
			"price": 32.99,
			"cost_price": 15.00
			"weight": 750,
			"width": 7,
			"height": 7,
			"length": 7,
			"ean": null,
			"atributos": [
				{
					"id": 7
				},
				{
					"id": 8
				}
			],
			"pictures": [
				{
					"url": "https://rockcontent.com/br/wp-content/uploads/sites/2/2020/02/teste-de-lideran%C3%A7a.png2"
				}
			]
		}
	],
	"pictures": [
		{
			"url": "https://rockcontent.com/br/wp-content/uploads/sites/2/2020/02/teste-de-lideran%C3%A7a.png2"
		}
	],
	"video_url": null
}
```

## Put Product

<mark style="color:orange;">`PUT`</mark> `/v1/product/:id`

Endpoint para alterar dados de um determinado produto.

#### Path Parameters

| Name                                 | Type   | Description                     |
| ------------------------------------ | ------ | ------------------------------- |
| id<mark style="color:red;">\*</mark> | number | Id do produto que será alterado |

#### Headers

| Name                                            | Type   | Description                     |
| ----------------------------------------------- | ------ | ------------------------------- |
| Content-Type<mark style="color:red;">\*</mark>  | string | application/json                |
| Authorization<mark style="color:red;">\*</mark> | string | Access token para autenticação. |

{% tabs %}
{% tab title="200 Exemplo de Response." %}

```
{
  "message": "Produto atualizado",
  "produto": {
    "package_measures": {
      "capacity": 1
    },
    "categoriaViaVarejo": {
      "atributos": []
    },
    "stock": 0,
    "correlacoes": [],
    "log": [],
    "_id": "616042fb4a94ac3d10c93c68",
    "reference": "string",
    "name": "Produto Teste 01",
    "price": 15,
    "weight": 5,
    "length": 5,
    "width": 5,
    "height": 5,
    "warranty": "string",
    "pictures": [
      {
        "_id": "616042fb4a94ac3d10c93c69",
        "url": "https://www.tenhomaisdiscosqueamigos.com/wp-content/uploads/2021/02/rickroll-hd.jpg"
      }
    ],
    "variations": [
      {
        "correlacoes": [],
        "log": [],
        "_id": "616042fb4a94ac3d10c93c6a",
        "reference": "string",
        "stock": 50,
        "price": 15,
        "attributes": [
          {
            "_id": "616042fb4a94ac3d10c93c6b",
            "key": "Color",
            "value": "Red"
          }
        ],
        "pictures": [
          {
            "_id": "616042fb4a94ac3d10c93c6c",
            "url": "https://www.tenhomaisdiscosqueamigos.com/wp-content/uploads/2021/02/rickroll-hd.jpg",
            "position": "1"
          }
        ]
      }
    ],
    "company": "1",
    "atributo_olist": [],
    "atributo_ml": [],
    "atributo_b2w": [],
    "idERP_Product": 1,
    "__v": 0
  }
}
```

{% endtab %}

{% tab title="400 Exemplo de response com erro de validação." %}

```
{
  "errors": {
    "body": [
      {
        "keyword": "required",
        "dataPath": ".variations[0]",
        "schemaPath": "#/properties/variations/items/required",
        "params": {
          "missingProperty": "reference"
        },
        "message": "should have required property 'reference'"
      }
    ]
  }
}
```

{% endtab %}
{% endtabs %}

Segue abaixo o body contendo todos os campos que podem ser alterados. **Colocar o id do produto a ser alterado no parâmetro**, ficando com a url no estilo **`/v1/product/7`** por exemplo.

{% hint style="warning" %}
Para alterar os campos das variações, a rota é a mesma, sendo necessário colocar o id da variação na url  **( `/v1/product/14 )`**` ``e mandar no body os campos que deseja alterar.`
{% endhint %}

```
## Exemplo de Body ##
{
	"name": "string",
	"price": "number",
	"category": "string",
	"weight": "number",
	"length": "number",
	"width": "number",
	"height": "number",
	"warranty": "string",
	"pictures": [
		{
			"url": "string",
			"position": "number"
		}
	]
}
```

## Atualiza Stock

<mark style="color:orange;">`POST`</mark> `/v1/product/stock/:id`

Alterar o estoque de um produto.

#### Path Parameters

| Name                                 | Type   | Description                     |
| ------------------------------------ | ------ | ------------------------------- |
| id<mark style="color:red;">\*</mark> | number | Id do produto que será alterado |

#### Headers

| Name                                            | Type   | Description                     |
| ----------------------------------------------- | ------ | ------------------------------- |
| Authorization<mark style="color:red;">\*</mark> | string | Access token para autenticação. |
| Content-Type<mark style="color:red;">\*</mark>  | string | application/json                |

#### Request Body

| Name                                    | Type   | Description                           |
| --------------------------------------- | ------ | ------------------------------------- |
| stock<mark style="color:red;">\*</mark> | number | Novo Stock a ser alterado no produto. |

{% tabs %}
{% tab title="200: OK Stock Atualizado" %}

<pre><code>{
	"message": "Produto atualizado",
	"produto": {
		"estoque": {
			"min": 0,
			"max": 0
		},
		"b2w": {
			"atributos": []
		},
		"mercadolivre": {
<strong>			"atributos": []
</strong>		},
		"shopee": {
			"atributos": []
		},
		"dafiti": {
			"atributos": []
		},
		"viavarejo": {
			"atributos": []
		},
		"package_measures": {
			"capacity": 1
		},
		"format": "SIMPLES",
		"idProdutoPai": "1",
		"condition": "NOVO",
		"vitrine": 0,
		"stock": 123123123,
		"log": [],
		"_id": "646519c25d3cf7d7b24bb43b",
		"company": "1",
		"status": "false",
		"name": "Camiseta Basica 1 variacao",
		"reference": "CB1Variacao",
		"description": "Camiseta Basica",
		"price": 12312321,
		"ean": null,
		"ncm": "",
		"brand": "Basica",
		"weight": 750,
		"width": 7,
		"height": 7,
		"length": 7,
		"warranty": "Contra Defeito de Fabricação",
		"pictures": [
			{
				"_id": "646519c25d3cf7d7b24bb43c",
				"url": "https://rockcontent.com/br/wp-content/uploads/sites/2/2020/02/teste-de-lideran%C3%A7a.png2"
			}
		],
		"video_url": null,
		"atributos": [
			{
				"_id": "646519c25d3cf7d7b24bb43d"
			}
		],
		"skus": [],
		"composicaoKit": [],
		"correlacoes": [],
		"createdAt": "2023-05-17T18:15:30.378Z",
		"updatedAt": "2023-05-25T18:13:19.447Z",
		"idERP_Product": 2,
		"__v": 0
	}
}
</code></pre>

{% endtab %}

{% tab title="404: Not Found Produto não encontrado" %}

```
{
	"message": "Produto nao encontrado"
}
```

{% endtab %}
{% endtabs %}

```
## Exemplo de Body ##
{
	"stock": 100
}
```

## Put Price

<mark style="color:orange;">`PUT`</mark> `/v1/product/price/:id`

Alterar o preço de um produto.

#### Path Parameters

| Name                                 | Type   | Description                     |
| ------------------------------------ | ------ | ------------------------------- |
| id<mark style="color:red;">\*</mark> | number | Id do produto que será alterado |

#### Headers

| Name                                            | Type   | Description                     |
| ----------------------------------------------- | ------ | ------------------------------- |
| Authorization<mark style="color:red;">\*</mark> | string | Access token para autenticação. |
| Content-Type<mark style="color:red;">\*</mark>  | string | application/json                |

#### Request Body

| Name                                    | Type   | Description                           |
| --------------------------------------- | ------ | ------------------------------------- |
| price<mark style="color:red;">\*</mark> | number | Novo Preço a ser alterado no produto. |

{% tabs %}
{% tab title="200: OK Preço Atualizado" %}

```
{
	"message": "Produto atualizado",
	"produto": {
		"estoque": {
			"min": 0,
			"max": 0
		},
		"b2w": {
			"atributos": []
		},
		"mercadolivre": {
			"atributos": []
		},
		"shopee": {
			"atributos": []
		},
		"dafiti": {
			"atributos": []
		},
		"viavarejo": {
			"atributos": []
		},
		"package_measures": {
			"capacity": 1
		},
		"format": "SIMPLES",
		"idProdutoPai": "1",
		"condition": "NOVO",
		"vitrine": 0,
		"stock": 11,
		"log": [],
		"_id": "646519c25d3cf7d7b24bb43b",
		"company": "1",
		"status": "false",
		"name": "Camiseta Basica 1 variacao",
		"reference": "CB1Variacao",
		"description": "Camiseta Basica",
		"price": 12312321,
		"ean": null,
		"ncm": "",
		"brand": "Basica",
		"weight": 750,
		"width": 7,
		"height": 7,
		"length": 7,
		"warranty": "Contra Defeito de Fabricação",
		"pictures": [
			{
				"_id": "646519c25d3cf7d7b24bb43c",
				"url": "https://rockcontent.com/br/wp-content/uploads/sites/2/2020/02/teste-de-lideran%C3%A7a.png2"
			}
		],
		"video_url": null,
		"atributos": [
			{
				"_id": "646519c25d3cf7d7b24bb43d"
			}
		],
		"skus": [],
		"composicaoKit": [],
		"correlacoes": [],
		"createdAt": "2023-05-17T18:15:30.378Z",
		"updatedAt": "2023-05-25T18:12:51.907Z",
		"idERP_Product": 2,
		"__v": 0
	}
}
```

{% endtab %}

{% tab title="404: Not Found Produto não encontrado" %}

```
{
	"message": "Produto nao encontrado"
}
```

{% endtab %}
{% endtabs %}

```
## Exemplo de Body ##
{
	"price": 12.33
}
```

## Get All Products

<mark style="color:blue;">`GET`</mark> `/v1/product/`

Endpoint para consulta de todos os produtos de uma determinada empresa.

#### Query Parameters

| Name      | Type   | Description                                     |
| --------- | ------ | ----------------------------------------------- |
| page      | string | Número da página. **Default: 1.**               |
| pageSize  | string | Quantidade de itens por página. **Default: 10** |
| name      | string | Nome do produto.                                |
| reference | string | Código de Referência do Produto.                |
| id        | string | Id do produto.                                  |

#### Headers

| Name                                            | Type   | Description                     |
| ----------------------------------------------- | ------ | ------------------------------- |
| Content-Type<mark style="color:red;">\*</mark>  | string | application/json                |
| Authorization<mark style="color:red;">\*</mark> | string | Access token para autenticação. |

{% tabs %}
{% tab title="200 Exemplo Response." %}

```
{
  "paging": {
    "total": 2,
    "page": 1,
    "limit": 10,
    "offset": 0
  },
  "Produtos": [
    {
      "id": 1,
      "package_measures": {
        "capacity": 1
      },
      "categoriaViaVarejo": {
        "atributos": []
      },
      "stock": 0,
      "correlacoes": [],
      "log": [],
      "_id": "616042fb4a94ac3d10c93c68",
      "reference": "string",
      "name": "Produto Teste 01",
      "price": 15,
      "weight": 5,
      "length": 5,
      "width": 5,
      "height": 5,
      "warranty": "string",
      "pictures": [
        {
          "_id": "616042fb4a94ac3d10c93c69",
          "url": "https://www.tenhomaisdiscosqueamigos.com/wp-content/uploads/2021/02/rickroll-hd.jpg"
        }
      ],
      "variations": [
        {
          "correlacoes": [],
          "log": [],
          "_id": "616042fb4a94ac3d10c93c6a",
          "reference": "string",
          "stock": 50,
          "price": 15,
          "attributes": [
            {
              "_id": "616042fb4a94ac3d10c93c6b",
              "key": "Color",
              "value": "Red"
            }
          ],
          "pictures": [
            {
              "_id": "616042fb4a94ac3d10c93c6c",
              "url": "https://www.tenhomaisdiscosqueamigos.com/wp-content/uploads/2021/02/rickroll-hd.jpg",
              "position": "1"
            }
          ]
        }
      ],
      "company": "1",
      "atributo_olist": [],
      "atributo_ml": [],
      "atributo_b2w": [],
      "idERP_Product": 1,
      "__v": 0
    },
    {
      "id": 2,
      "package_measures": {
        "capacity": 1
      },
      "categoriaViaVarejo": {
        "atributos": []
      },
      "stock": 0,
      "correlacoes": [],
      "log": [],
      "_id": "616043614a94ac3d10c93c6f",
      "reference": "string02",
      "name": "string02",
      "price": 15,
      "weight": 10,
      "length": 10,
      "width": 10,
      "height": 10,
      "warranty": "string02",
      "pictures": [
        {
          "_id": "616043614a94ac3d10c93c70",
          "url": "https://www.tenhomaisdiscosqueamigos.com/wp-content/uploads/2021/02/rickroll-hd.jpg"
        }
      ],
      "variations": [
        {
          "correlacoes": [],
          "log": [],
          "_id": "616043614a94ac3d10c93c71",
          "reference": "string04",
          "stock": 50,
          "price": 15,
          "attributes": [
            {
              "_id": "616043614a94ac3d10c93c72",
              "key": "Color",
              "value": "Red"
            }
          ],
          "pictures": [
            {
              "_id": "616043614a94ac3d10c93c73",
              "url": "https://www.tenhomaisdiscosqueamigos.com/wp-content/uploads/2021/02/rickroll-hd.jpg",
              "position": "1"
            }
          ]
        }
      ],
      "company": "1",
      "atributo_olist": [],
      "atributo_ml": [],
      "atributo_b2w": [],
      "idERP_Product": 2,
      "__v": 0
    }
  ]
}
```

{% endtab %}
{% endtabs %}

Todos os parâmetros são opcionais para o request, podendo serem usados para aprimoramento da pesquisa.

```
## Exemplo de query ##
{
  "page": "string",
  "pageSize": "string",
  "name": "string",
  "reference": "string",
  "id": "string"
}
```

## Get Product by ID

<mark style="color:blue;">`GET`</mark> `/v1/product/:id`

Endpoint para a consulta de um determinado Produto.

#### Path Parameters

| Name                                 | Type   | Description    |
| ------------------------------------ | ------ | -------------- |
| id<mark style="color:red;">\*</mark> | number | Id do produto. |

#### Headers

| Name                                            | Type   | Description                     |
| ----------------------------------------------- | ------ | ------------------------------- |
| Content-Type<mark style="color:red;">\*</mark>  | string | application/json                |
| Authorization<mark style="color:red;">\*</mark> | string | Access token para autenticação. |

{% tabs %}
{% tab title="200 Exemplo de Response." %}

```
{
  "produto": {
    "id": 1,
    "package_measures": {
      "capacity": 1
    },
    "categoriaViaVarejo": {
      "atributos": []
    },
    "stock": 0,
    "correlacoes": [],
    "log": [],
    "_id": "616042fb4a94ac3d10c93c68",
    "reference": "string",
    "name": "Produto Teste 01",
    "price": 15,
    "weight": 5,
    "length": 5,
    "width": 5,
    "height": 5,
    "warranty": "string",
    "pictures": [
      {
        "_id": "616042fb4a94ac3d10c93c69",
        "url": "https://www.tenhomaisdiscosqueamigos.com/wp-content/uploads/2021/02/rickroll-hd.jpg"
      }
    ],
    "variations": [
      {
        "correlacoes": [],
        "log": [],
        "_id": "616042fb4a94ac3d10c93c6a",
        "reference": "string",
        "stock": 50,
        "price": 15,
        "attributes": [
          {
            "_id": "616042fb4a94ac3d10c93c6b",
            "key": "Color",
            "value": "Red"
          }
        ],
        "pictures": [
          {
            "_id": "616042fb4a94ac3d10c93c6c",
            "url": "https://www.tenhomaisdiscosqueamigos.com/wp-content/uploads/2021/02/rickroll-hd.jpg",
            "position": "1"
          }
        ]
      }
    ],
    "company": "1",
    "atributo_olist": [],
    "atributo_ml": [],
    "atributo_b2w": [],
    "idERP_Product": 1,
    "__v": 0
  }
}
```

{% endtab %}

{% tab title="400 Exemplo de Response." %}

```
{
  "message": {
    "message": "Produto não Encontrado"
  }
}
```

{% endtab %}
{% endtabs %}

Para consultar o produto é necessário mandar o id, deixando a url como **`/v1/product/7`** por exemplo.

## Get Product Variations

<mark style="color:blue;">`GET`</mark> `/v1/product/variants/:id`

Endpoint para consulta das variações de um determinado produto principal.

#### Path Parameters

| Name                                 | Type   | Description             |
| ------------------------------------ | ------ | ----------------------- |
| id<mark style="color:red;">\*</mark> | number | Id do Produto Principal |

#### Headers

| Name                                            | Type   | Description                     |
| ----------------------------------------------- | ------ | ------------------------------- |
| Content-Type<mark style="color:red;">\*</mark>  | string | application/json                |
| Authorization<mark style="color:red;">\*</mark> | string | Access token para autenticação. |

{% tabs %}
{% tab title="200: OK " %}

```json
{
	"variacoes": [
		{
			"id": 70,
			"tributacao": {
				"icms": {
					"icms_base_retencao": "1",
					"icms_retencao": "1",
					"icms_substituto": "4"
				},
				"origem": "0 - Nacional",
				"ncm": "237863126",
				"cest": "123567",
				"tipo_item": "",
				"porcentagem_tributos": 12,
				"tipi": "",
				"pis": "",
				"cofins": ""
			},
			"estoque": {
				"min": 1,
				"max": 500,
				"localization": "estoque loja 1"
			},
			"b2w": {
				"atributos": []
			},
			"mercadolivre": {
				"atributos": []
			},
			"shopee": {
				"atributos": []
			},
			"dafiti": {
				"atributos": []
			},
			"viavarejo": {
				"atributos": []
			},
			"package_measures": {
				"capacity": 1
			},
			"format": "SIMPLES",
			"idProdutoPai": "69",
			"condition": "NOVO",
			"vitrine": 0,
			"stock": 11,
			"log": [],
			"_id": "63481190fed36a1f043158e7",
			"company": "3",
			"status": false,
			"name": "Camiseta Basica Vermelha",
			"reference": "CB001",
			"description": "Camiseta Basica",
			"price": 29.99,
			"ean": null,
			"ncm": "",
			"brand": "Basica",
			"weight": 750,
			"width": 7,
			"height": 7,
			"length": 7,
			"warranty": "Contra Defeito de Fabricação",
			"production": "P - Produção própria",
			"free_shipping": false,
			"ipi_value": 20,
			"pictures": [
				{
					"_id": "63481190fed36a1f043158e8",
					"url": "https://rockcontent.com/br/wp-content/uploads/sites/2/2020/02/teste-de-lideran%C3%A7a.png2"
				}
			],
			"video_url": null,
			"atributos": [
				{
					"_id": "63481b36fed36a1f0431591c",
					"chave": "tamanho",
					"valor": "G"
				},
				{
					"_id": "63481b36fed36a1f0431591d",
					"chave": "cor",
					"valor": "Vermelho"
				}
			],
			"skus": [],
			"correlacoes": [],
			"createdAt": "2022-10-13T13:24:32.634Z",
			"updatedAt": "2022-10-13T14:05:42.232Z",
			"idERP_Product": 70,
			"__v": 1
		},
		{
			"id": 71,
			"tributacao": {
				"icms": {
					"icms_base_retencao": "1",
					"icms_retencao": "1",
					"icms_substituto": "4"
				},
				"origem": "0 - Nacional",
				"ncm": "237863126",
				"cest": "123567",
				"tipo_item": "",
				"porcentagem_tributos": 12,
				"tipi": "",
				"pis": "",
				"cofins": ""
			},
			"estoque": {
				"min": 1,
				"max": 500,
				"localization": "estoque loja 1"
			},
			"b2w": {
				"atributos": []
			},
			"mercadolivre": {
				"atributos": []
			},
			"shopee": {
				"atributos": []
			},
			"dafiti": {
				"atributos": []
			},
			"viavarejo": {
				"atributos": []
			},
			"package_measures": {
				"capacity": 1
			},
			"format": "SIMPLES",
			"idProdutoPai": "69",
			"condition": "NOVO",
			"vitrine": 0,
			"stock": 9,
			"log": [],
			"_id": "63481190fed36a1f043158ec",
			"company": "3",
			"status": false,
			"name": "Camiseta Basica Cinza",
			"reference": "CB002",
			"description": "Camiseta Basica",
			"price": 32.99,
			"ean": null,
			"ncm": "",
			"brand": "Basica",
			"weight": 750,
			"width": 7,
			"height": 7,
			"length": 7,
			"warranty": "Contra Defeito de Fabricação",
			"production": "P - Produção própria",
			"free_shipping": false,
			"ipi_value": 20,
			"pictures": [
				{
					"_id": "63481190fed36a1f043158ed",
					"url": "https://rockcontent.com/br/wp-content/uploads/sites/2/2020/02/teste-de-lideran%C3%A7a.png2"
				}
			],
			"video_url": null,
			"atributos": [
				{
					"_id": "63481b28fed36a1f04315914",
					"chave": "tamanho",
					"valor": "G"
				},
				{
					"_id": "63481b28fed36a1f04315915",
					"chave": "cor",
					"valor": "Cinza"
				}
			],
			"skus": [],
			"correlacoes": [],
			"createdAt": "2022-10-13T13:24:32.642Z",
			"updatedAt": "2022-10-13T14:05:28.501Z",
			"idERP_Product": 71,
			"__v": 3
		}
	]
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://expedy.gitbook.io/openapi/produto.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
