# ACTIVE_COMPANY_REQUIRED

Select an active company (NIF) for this operation

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

| | |
|---|---|
| HTTP status | `403` Forbidden |

## Example response

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

```json
{
  "type": "https://docs.beel.es/errors/ACTIVE_COMPANY_REQUIRED",
  "title": "ACTIVE_COMPANY_REQUIRED",
  "detail": "Select an active company (NIF) for this operation",
  "instance": "/v1/<resource>",
  "errors": [],
  "success": false,
  "error": {
    "code": "ACTIVE_COMPANY_REQUIRED",
    "message": "Select an active company (NIF) for this operation",
    "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">{"Select an active company (NIF) for this operation"}</Tab>
  <Tab value="Spanish">{"Selecciona una empresa (NIF) activa para esta operación"}</Tab>
  <Tab value="Catalan">{"Selecciona una empresa (NIF) activa per a aquesta operació"}</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_MANAGEMENT_FORBIDDEN" description="Only the owner or an admin can manage account settings." href="/errors/ACCOUNT_MANAGEMENT_FORBIDDEN" />
  <Card title="ACCOUNT_NOT_ACCESSIBLE" description="You do not have access to that account" href="/errors/ACCOUNT_NOT_ACCESSIBLE" />
  <Card title="ACCOUNT_REQUIRES_FOCUS_SWITCH" description="You are a member of that account, but it is not your active account right now. Switch your active account and try again." href="/errors/ACCOUNT_REQUIRES_FOCUS_SWITCH" />
  <Card title="ACTIVE_COMPANY_HEADER_INVALID" description="Header '‹value›' must contain a company identifier (UUID)." href="/errors/ACTIVE_COMPANY_HEADER_INVALID" />
  <Card title="ACTIVE_COMPANY_NOT_ACCESSIBLE" description="The selected company does not belong to your account" href="/errors/ACTIVE_COMPANY_NOT_ACCESSIBLE" />
</div>

## Keep exploring

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