# REPRESENTATION_ALREADY_ACTIVE

There is already an active representation document. Cancel it before generating another one.

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

| | |
|---|---|
| HTTP status | `400` Bad Request |
| Retry | No |

## When it happens

The company already has an active representation document, so a new one is not generated.

## How to fix it

Use the active one. To replace it, cancel it first and then generate a new one.

## Retry

Do not retry. The outcome is final: sending the same request again gets the same answer.

## Returned by

The operations where this code is most likely. The list is not exhaustive.

- [`POST /v1/companies/{company_id}/representation`](/companies/generateCompanyRepresentation)

## Example response

When this error occurs, the API answers `400` Bad Request with a JSON body of this shape:

```json
{
  "type": "https://docs.beel.es/errors/REPRESENTATION_ALREADY_ACTIVE",
  "title": "REPRESENTATION_ALREADY_ACTIVE",
  "detail": "There is already an active representation document. Cancel it before generating another one.",
  "instance": "/v1/<resource>",
  "errors": [],
  "success": false,
  "error": {
    "code": "REPRESENTATION_ALREADY_ACTIVE",
    "message": "There is already an active representation document. Cancel it before generating another one.",
    "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">{"There is already an active representation document. Cancel it before generating another one."}</Tab>
  <Tab value="Spanish">{"Ya hay un documento de representación activo. Cancélalo antes de generar otro."}</Tab>
  <Tab value="Catalan">{"Ja hi ha un document de representació actiu. Cancel·la’l abans de generar-ne un altre."}</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="ALREADY_DISABLED" description="VeriFactu is already disabled for this user" href="/errors/ALREADY_DISABLED" />
  <Card title="ALREADY_ENABLED" description="VeriFactu is already enabled for this user" href="/errors/ALREADY_ENABLED" />
  <Card title="ALREADY_REGISTERED" description="The NIF is already registered in VeriFactu" href="/errors/ALREADY_REGISTERED" />
  <Card title="API_COMMUNICATION_ERROR" description="Error communicating with the VeriFactu API" href="/errors/API_COMMUNICATION_ERROR" />
  <Card title="API_KEY_NOT_CONFIGURED" description="The VeriFactu API key has not been configured" href="/errors/API_KEY_NOT_CONFIGURED" />
</div>

## Keep exploring

<div className="grid grid-cols-2 gap-3 not-prose">
  <Card title="All VeriFactu errors" description="Every code in this category in one table." href="/errors/category/verifactu" />
  <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