# createSalesItem

## Overview

Adopts an item for selling by creating its selling record (SalesItem). Only adopted items can be added to sales order lines. Returns the SalesItem ID.

## Modules Commands Used

- [sales] CreateSalesItem

## Exception Handling

| Error Code | Description |
| --- | --- |
| SALES_ITEM_NOT_FOUND | The referenced item does not exist |
| SALES_DUPLICATE_SALES_ITEM | The item already has a selling record |
