# Companies errors

All error codes returned by the Companies endpoints (11 total).

Every error returned by the **Companies** endpoints. Click any code for the full example response and localized messages.

| Code | Message |
|------|---------|
| [`ACCOUNT_HAS_NO_HOLDER`](/errors/ACCOUNT_HAS_NO_HOLDER) | The target account has no registered holder yet, so a NIF cannot be created on its behalf |
| [`CANNOT_DELETE_PRIMARY`](/errors/CANNOT_DELETE_PRIMARY) | The account's primary company cannot be deleted. |
| [`CHECKOUT_REQUIRED`](/errors/CHECKOUT_REQUIRED) | A payment method is required to create a production company |
| [`COMPANY_ACTIVE_IN_PRODUCTION`](/errors/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 |
| [`COMPANY_HAS_INVOICES`](/errors/COMPANY_HAS_INVOICES) | 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 |
| [`NIF_ALREADY_REGISTERED`](/errors/NIF_ALREADY_REGISTERED) | The NIF is already registered |
| [`NIF_PROD_ALREADY_ACTIVE_IN_ANOTHER_ACCOUNT`](/errors/NIF_PROD_ALREADY_ACTIVE_IN_ANOTHER_ACCOUNT) | This NIF is already registered in production under another account. A NIF can only issue real invoices from a single account. |
| [`NUMBERING_REQUIRES_ACTIVATION`](/errors/NUMBERING_REQUIRES_ACTIVATION) | Series numbering can only be configured in a creation request that activates the company. Remove the numbering block or activate a mode (activate:true) |
| [`PAYMENT_REQUIRED`](/errors/PAYMENT_REQUIRED) | You have an outstanding payment. Settle it to keep operating in production |
| [`PLAN_ACTIVATION_REQUIRED`](/errors/PLAN_ACTIVATION_REQUIRED) | Your plan is still in its trial period. Activate it to start invoicing in production |
| [`SUBACCOUNT_USER_NOT_FOUND`](/errors/SUBACCOUNT_USER_NOT_FOUND) | User not found |

## Keep exploring

<div className="grid grid-cols-2 gap-3 not-prose">
  <Card title="Error reference home" description="Landing page with all categories and a guide on handling errors." href="/errors" />
  <Card title="Handling errors" description="Response shape, the type URI, and programmatic patterns." href="/guides/handling-errors" />
</div>

---

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