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

# Criar lote de produção

> Registra a produção de uma receita. Deduz ingredientes do armazém e registra o output produzido.

<ParamField header="x-api-key" type="string" required>
  API key do BOH com escopo `inventory:write`.
</ParamField>

<ParamField path="vendorId" type="string" required>UUID do vendor.</ParamField>
<ParamField body="store_id" type="string">UUID do estabelecimento.</ParamField>
<ParamField body="external_store_id" type="string">ID externo do estabelecimento.</ParamField>
<ParamField body="recipe_id" type="string" required>UUID da receita a produzir.</ParamField>
<ParamField body="quantity_produced" type="number" required>Quantidade produzida (na unidade de produção da receita).</ParamField>
<ParamField body="occurred_at" type="string">Quando foi produzido (ISO 8601).</ParamField>
<ParamField body="notes" type="string">Notas adicionais.</ParamField>
<ParamField body="external_user_id" type="string" required>Ator responsável.</ParamField>
<ParamField body="idempotency_key" type="string">Chave de idempotência.</ParamField>

<RequestExample>
  ```json theme={null}
  {
    "external_store_id": "cozinha-principal",
    "recipe_id": "rec_01...",
    "quantity_produced": 5,
    "external_user_id": "chef_01"
  }
  ```
</RequestExample>

<ResponseExample>
  ```json 201 theme={null}
  {
    "id": "pb_01...",
    "status": "COMPLETED",
    "recipe_id": "rec_01...",
    "quantity_produced": 5
  }
  ```
</ResponseExample>
