ErrorsAll codes
CANNOT_DELETE_PRIMARY
Cannot delete the primary account through this endpoint
Category: Companies
Example response
When this error occurs, the API returns a JSON response with the following shape:
{
"type": "https://docs.beel.es/errors/CANNOT_DELETE_PRIMARY",
"title": "CANNOT_DELETE_PRIMARY",
"detail": "Cannot delete the primary account through this endpoint",
"instance": "/v1/<resource>",
"errors": [],
"success": false,
"error": {
"code": "CANNOT_DELETE_PRIMARY",
"message": "Cannot delete the primary account through this endpoint",
"details": {}
},
"meta": {
"timestamp": "2026-05-21T10:00:00Z",
"request_id": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}The type URI is stable and always resolves to this page.
Message
Cannot delete the primary account through this endpoint
No se puede eliminar la cuenta principal desde este endpoint
No es pot eliminar el compte principal des d''aquest endpoint
Send the request with Accept-Language: <es|en|ca> to receive the message in your preferred language.
Other errors in this category
COMPANY_NOT_FOUND
Company not found
MAX_PROFILES_REACHED
You have reached the maximum number of business profiles ({0}). Upgrade your plan for more
NIF_ALREADY_REGISTERED
The NIF is already registered
PROFILE_NOT_FOUND
Business profile not found
PROFILE_NOT_OWNED
The business profile does not belong to your account