# confirmSalesOrder

## Overview

Confirms a SUBMITTED sales order (受注), transitioning status to CONFIRMED so it becomes eligible for fulfilment. Refuses if the customer became inactive or a line is missing a final price. Thin wrapper over the native `sales` confirm command.

Input: `id`.

## Modules Commands Used

- [sales] ConfirmSalesOrder

## 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 confirmed |
| SALES_CUSTOMER_NOT_ACTIVE | The customer has become inactive |
| SALES_MISSING_FINAL_PRICE | One or more lines are missing a final price |
