# rejectSalesOrder

## Overview

Rejects a SUBMITTED sales order (受注), transitioning status back to DRAFT with a rejection reason. Allows the Sales Rep to revise and resubmit. Thin wrapper over the native `sales` reject command.

Input: `id`, `rejectionReason`.

## Modules Commands Used

- [sales] RejectSalesOrder

## Exception Handling

| Error Code | Description |
| --- | --- |
| SALES_SALES_ORDER_NOT_FOUND | The specified sales order does not exist |
| SALES_INVALID_ORDER_STATUS | The sales order is not in SUBMITTED status and cannot be rejected |
| SALES_REJECTION_REASON_REQUIRED | A rejection reason must be provided |
