> ## Documentation Index
> Fetch the complete documentation index at: https://docs.selltrust.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# Criar Produto

Cadastra um novo produto ou bundle.

<ParamField header="Authorization" type="string" required>
  Token de acesso no formato `Bearer <seu_token>`.
</ParamField>

<ParamField body="category_id" type="string" required>
  ID da categoria (UUID).
</ParamField>

<ParamField body="title" type="string" required>
  Título do produto (entre 2 e 255 caracteres).
</ParamField>

<ParamField body="description" type="string">
  Descrição do produto (até 50.000 caracteres).
</ParamField>

<ParamField body="images" type="array" required>
  Lista de imagens do produto (máx 5). Cada imagem possui `name` e `extension`.
</ParamField>

<ParamField body="hide_product" type="boolean" required>
  Define se o produto está oculto na loja.
</ParamField>

<ParamField body="is_bundle" type="boolean" required>
  Define se o produto é um combo (`true`) ou simples (`false`).
</ParamField>

<ParamField body="chat_enabled" type="boolean" required>
  Habilita o chat no produto.
</ParamField>

<ParamField body="chat_welcome_message" type="string">
  Mensagem automática de boas-vindas do chat.
</ParamField>

**Se `is_bundle = false` (Produto Simples), envie também:**

<ParamField body="pricing" type="object">
  Objeto contendo `price` (número) e opcionalmente `comparison` (número).
</ParamField>

<ParamField body="min_quantity" type="number">
  Quantidade mínima por pedido.
</ParamField>

<ParamField body="inventory_amount" type="number">
  Quantidade em estoque.
</ParamField>

<ParamField body="instructions" type="string">
  Instruções adicionais após a compra.
</ParamField>

<ParamField body="license_keys" type="array">
  Lista de chaves de licença (strings). Se enviado, sobressai o inventory\_amount.
</ParamField>

<ParamField body="parent_id" type="string">
  ID do produto Combo/Bundle pai (caso este produto seja uma variante).
</ParamField>

<ResponseExample>
  ```json Response theme={null}
  {
    "id": "uuid-do-produto",
    "store_id": "uuid-da-loja",
    "category_id": "uuid-da-categoria",
    "title": "Meu Produto",
    "slug": "meu-produto",
    "description": "<p>Detalhes...</p>",
    "images": [],
    "hide_product": false,
    "is_bundle": false,
    "price": 99.9,
    "comparison_price": 129.9,
    "min_quantity": null,
    "inventory_amount": 10,
    "parent_id": null,
    "sales_count": 0,
    "chat_enabled": false,
    "chat_welcome_message": null,
    "instructions": null,
    "created_at": "2024-01-01T00:00:00.000Z",
    "updated_at": "2024-01-01T00:00:00.000Z"
  }
  ```
</ResponseExample>
