# deactivateProduct

## Overview

Transitions an active product to archived status, preventing it from being used in new transactions.

## Modules Commands Used

- `product-management.DeactivateProduct` — validates the current status and applies the active-to-archived state transition

## Exception Handling

| Error Code | Description |
| --- | --- |
| PRODUCT_NOT_FOUND | No product exists with the given ID |
| INVALID_STATE_TRANSITION | The product is not in a status that allows deactivation |
