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

Keep exploring