> ## 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.

# Confirmar orden de compra

> Cambia el estado de SUBMITTED a CONFIRMED, indicando que el proveedor ha reconocido la orden.

<ParamField header="x-api-key" type="string" required>
  API key de BOH con scope `inventory:write`.
</ParamField>

<ParamField path="vendorId" type="string" required>UUID del vendor.</ParamField>
<ParamField path="orderId" type="string" required>UUID de la orden de compra.</ParamField>
<ParamField body="external_user_id" type="string" required>Actor que confirma la orden.</ParamField>
<ParamField body="supplier_reference" type="string">Referencia de confirmación del proveedor.</ParamField>

<RequestExample>
  ```json theme={null}
  {
    "external_user_id": "compras_01",
    "supplier_reference": "OV-2026-00123"
  }
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "purchase_order": {
      "id": "po_01...",
      "status": "CONFIRMED"
    }
  }
  ```
</ResponseExample>
