# COMPANY_ACTIVE_IN_PRODUCTION

This company is active in Live and cannot be deleted. Deactivate it in Live first: the deactivation is scheduled, the current cycle is charged and served in full, and from its effective date you will be able to delete the company

<Callout type="info">
**Category:** [Companies](/errors/category/subaccount)
</Callout>

| | |
|---|---|
| HTTP status | `409` Conflict |

## Example response

When this error occurs, the API answers `409` Conflict with a JSON body of this shape:

```json
{
  "type": "https://docs.beel.es/errors/COMPANY_ACTIVE_IN_PRODUCTION",
  "title": "COMPANY_ACTIVE_IN_PRODUCTION",
  "detail": "This company is active in Live and cannot be deleted. Deactivate it in Live first: the deactivation is scheduled, the current cycle is charged and served in full, and from its effective date you will be able to delete the company",
  "instance": "/v1/<resource>",
  "errors": [],
  "success": false,
  "error": {
    "code": "COMPANY_ACTIVE_IN_PRODUCTION",
    "message": "This company is active in Live and cannot be deleted. Deactivate it in Live first: the deactivation is scheduled, the current cycle is charged and served in full, and from its effective date you will be able to delete the company",
    "details": {}
  },
  "meta": {
    "timestamp": "2026-05-21T10:00:00Z",
    "request_id": "4bf92f3577b34da6a3ce929d0e0e4736"
  }
}
```

The `type` URI is stable and always resolves to this page.

## Message

<Tabs items={["English", "Spanish", "Catalan"]}>
  <Tab value="English">{"This company is active in Live and cannot be deleted. Deactivate it in Live first: the deactivation is scheduled, the current cycle is charged and served in full, and from its effective date you will be able to delete the company"}</Tab>
  <Tab value="Spanish">{"Esta empresa está activada en Live y no se puede borrar. Da de baja su activación en Live: la baja es programada, se cobra y se da el ciclo en curso, y desde la fecha de efecto podrás borrarla"}</Tab>
  <Tab value="Catalan">{"Aquesta empresa està activada a Live i no es pot esborrar. Dona de baixa la seva activació a Live: la baixa és programada, es cobra i es dona el cicle en curs, i des de la data d'efecte la podràs esborrar"}</Tab>
</Tabs>

Send the request with `Accept-Language: <es|en|ca>` to receive the message in your preferred language.

## Other errors in this category

<div className="grid grid-cols-2 gap-3 not-prose">
  <Card title="ACCOUNT_HAS_NO_HOLDER" description="The target account has no registered holder yet, so a NIF cannot be created on its behalf" href="/errors/ACCOUNT_HAS_NO_HOLDER" />
  <Card title="CANNOT_DELETE_PRIMARY" description="The account's primary company cannot be deleted." href="/errors/CANNOT_DELETE_PRIMARY" />
  <Card title="CHECKOUT_REQUIRED" description="A payment method is required to create a production company" href="/errors/CHECKOUT_REQUIRED" />
  <Card title="COMPANY_HAS_INVOICES" description="This company has invoices in Live and cannot be deleted. Delete its drafts and proformas first; if it has already issued invoices, the way out is to deactivate it in Live, not to delete it" href="/errors/COMPANY_HAS_INVOICES" />
  <Card title="COMPANY_NOT_FOUND" description="Company not found" href="/errors/COMPANY_NOT_FOUND" />
</div>

## Keep exploring

<div className="grid grid-cols-2 gap-3 not-prose">
  <Card title="All Companies errors" description="Every code in this category in one table." href="/errors/category/subaccount" />
  <Card title="Error reference home" description="Browse every category or jump to the handling guide." href="/errors" />
</div>

---

Full OpenAPI spec: https://docs.beel.es/api/openapi