Skip to main content
Soft-deletes a company record by setting the deleted_at timestamp and is_deleted flag. The record remains in the database but is marked as deleted for data retention. Allows for potential recovery while marking the record as deleted.

Endpoint

Authentication

This endpoint requires authentication. Include a valid bearer token in the Authorization header. Permission Required: company:delete

Path Parameters

Response

Success Response (200 OK)

Returns an empty data object indicating successful deletion.

Error Responses

401 Unauthorized - Missing or invalid authentication token 403 Forbidden - Insufficient permissions 404 Not Found - Record not found, inactive, or already deleted

Notes

  • This is a soft delete operation. The record is not permanently removed from the database.
  • The record is marked as deleted by setting deleted_at timestamp and is_deleted = true.
  • Soft-deleted records are excluded from normal queries (findAll, findOne).
  • To permanently delete a record, use the /api/v3/product/company/{documentId}/purge endpoint.
  • Only active records (is_actived = true) that are not already deleted (is_deleted = false) can be soft-deleted.

Examples

Basic Request