Is it possible to place orders for items which are in status other than Published or Unpublished?
createOrder API does not consider items in any status other than Published as valid
for order creation and throws "Item is in invalid status" error when an item in any other status is passed in the input.
'Published' has a CODE_VALUE of 3000 in the YFS_COMMON_CODE table. Even if a new status with CODE_VALUE set to 4000(anything higher than 3000) is created by calling manageCommonCode API, same error gets thrown. The product only considers 3000(Published) as a valid status.
A possible workaround would be to uncheck the Validate Item flag at DOM > Document Specific > Sales Order > Order Validation. The API would then not validate the item status and order would get created successfully. However, with this flag unchecked, orders can also be created for items that are not present in the DB.