diff --git a/commerce_order_type.admin.inc b/commerce_order_type.admin.inc
new file mode 100644
index 0000000..bfebe88
--- /dev/null
+++ b/commerce_order_type.admin.inc
@@ -0,0 +1,97 @@
+<?php
+/**
+ * @file Admin interface stuff for the commerce
+ */
+
+/**
+ * @class
+ */
+class CommerceOrderTypeUIController extends EntityDefaultUIController {
+
+  /**
+   * Overrides hook_menu() defaults.
+   */
+  public function hook_menu() {
+    $items = parent::hook_menu();
+    $items[$this->path]['description'] = 'Manage order types, including fields.';
+
+    return $items;
+  }
+}
+
+/**
+ * Order type create/edit form.
+ */
+function commerce_order_type_form($form, &$form_state, $order_type, $op = 'edit') {
+
+  if ($op == 'clone') {
+    $order_type->name .= ' (cloned)';
+    $order_type->type = '';
+  }
+
+  $form['name'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Order type name'),
+    '#default_value' => $order_type->name,
+    '#description' => t('The human-readable name of this order type. It is recommended that this name begin with a capital letter and contain only letters, numbers, and spaces. This name must be unique.'),
+    '#required' => TRUE,
+    '#size' => 32,
+  );
+
+  $form['type'] = array(
+    '#type' => 'machine_name',
+    '#default_value' => $order_type->type,
+    '#maxlength' => 32,
+    '#disabled' => $order_type->isLocked() && $op != 'clone',
+    '#machine_name' => array(
+      'exists' => 'commerce_order_types_order_types',
+      'source' => array('name'),
+    ),
+    '#description' => t('The machine-readable name of this order type. This name must contain only lowercase letters, numbers, and underscores, it must be unique.'),
+  );
+
+  $form['help'] = array(
+    '#type' => 'textarea',
+    '#title' => t('Order creation help text'),
+    '#description' => t('Supply an optional help message to be displayed above the order add form.'),
+    '#default_value' => $order_type->help,
+    '#rows' => 5,
+  );
+
+  $form['actions'] = array('#type' => 'actions');
+  $form['actions']['submit'] = array(
+    '#type' => 'submit',
+    '#value' => t('Save order type'),
+    '#weight' => 40,
+  );
+
+  if (!$order_type->isLocked() && $op != 'add' && $op != 'clone') {
+    $form['actions']['delete'] = array(
+      '#type' => 'submit',
+      '#value' => t('Delete order type'),
+      '#weight' => 45,
+      '#limit_validation_errors' => array(),
+      '#submit' => array('commerce_order_type_form_submit_delete'),
+    );
+  }
+
+  return $form;
+}
+
+/**
+ * Form API submit callback for the type form.
+ */
+function commerce_order_type_form_submit(&$form, &$form_state) {
+  $order_type = entity_ui_form_submit_build_entity($form, $form_state);
+
+  // Save and go back.
+  $order_type->save();
+  $form_state['redirect'] = 'admin/commerce/config/order-types';
+}
+
+/**
+ * Form API submit callback for the delete button.
+ */
+function commerce_order_type_form_submit_delete(&$form, &$form_state) {
+  $form_state['redirect'] = 'admin/commerce/config/order-types/' . $form_state['order_type']->type . '/delete';
+}
diff --git a/commerce_order_type.entity.inc b/commerce_order_type.entity.inc
new file mode 100644
index 0000000..ab340a3
--- /dev/null
+++ b/commerce_order_type.entity.inc
@@ -0,0 +1,75 @@
+<?php
+/**
+ * @file Entity class for the commerce_order_type entity.
+ */
+
+/**
+ * @class CommerceOrderType
+ */
+class CommerceOrderType extends Entity {
+
+  /**
+   * The internal, numeric, id for this type.
+   *
+   * @var integer
+   */
+  public $id;
+
+  /**
+   * The machine name for this type.
+   *
+   * @var string
+   */
+  public $type;
+
+  /**
+   * The human-readable name for this type.
+   *
+   * @var string
+   */
+  public $name;
+
+  /**
+   * A brief description of this type.
+   *
+   * @var string
+   */
+  public $help;
+
+  /**
+   * Additional data relating to this type.
+   *
+   * @var array
+   */
+  public $data;
+
+  /**
+   * The exportable entity status of the entity.
+   *
+   * @var integar
+   */
+  public $status;
+
+  /**
+   * The name of the providing module for this type.
+   *
+   * @var string.
+   */
+  public $module;
+
+  /**
+   * Creates a new commerce order type.
+   */
+  public function __construct(array $values = array()) {
+    parent::__construct($values, 'commerce_order_type');
+  }
+
+  /**
+   * Returns whether the order type is locked, thus may not be deleted or
+   * renamed.
+   */
+  public function isLocked() {
+    return isset($this->status) && empty($this->is_new) && (($this->status & ENTITY_IN_CODE) || ($this->status & ENTITY_FIXED));
+  }
+
+}
diff --git a/commerce_order_types.info b/commerce_order_types.info
index 36ebbe6..3731920 100644
--- a/commerce_order_types.info
+++ b/commerce_order_types.info
@@ -4,3 +4,6 @@ package = Commerce (contrib)
 dependencies[] = commerce_order
 core = 7.x
 configure = admin/commerce/config/order-types
+
+files[] = commerce_order_type.entity.inc
+files[] = commerce_order_type.admin.inc
diff --git a/commerce_order_types.install b/commerce_order_types.install
index 274fa14..9bdfaa9 100644
--- a/commerce_order_types.install
+++ b/commerce_order_types.install
@@ -8,9 +8,14 @@
  * Implements hook_schema().
  */
 function commerce_order_types_schema() {
-  $schema['commerce_order_types_order_types'] = array(
+  $schema['commerce_order_types'] = array(
     'description' => 'Stores information about Commerce Order item types created via UI.',
     'fields' => array(
+      'id' => array(
+        'type' => 'serial',
+        'not null' => TRUE,
+        'description' => 'Primary Key: Unique order type id.',
+      ),
       'type' => array(
         'description' => 'The machine-readable name of this type.',
         'type' => 'varchar',
@@ -31,9 +36,63 @@ function commerce_order_types_schema() {
         'not null' => FALSE,
         'size' => 'medium',
       ),
+      'data' => array(
+        'type' => 'text',
+        'not null' => FALSE,
+        'size' => 'big',
+        'serialize' => TRUE,
+        'description' => 'A serialized array of additional data related to this order type.',
+      ),
+    ) + entity_exportable_schema_fields(),
+    'primary key' => array('id'),
+    'unique keys' => array(
+      'type' => array('type'),
     ),
-    'primary key' => array('type'),
   );
 
   return $schema;
 }
+
+/**
+ * Rename commerce_order_types_order_types_table
+ */
+function commerce_order_types_update_7001() {
+  db_rename_table('commerce_order_types_order_types', 'commerce_order_types');
+
+  // Add our primary key.
+  db_drop_primary_key('commerce_order_types');
+  $spec = array(
+    'type' => 'serial',
+    'not null' => TRUE,
+    'description' => 'Primary Key: Unique order type id.',
+  );
+  $keys = array(
+    'primary key' => array('id'),
+  );
+  db_add_field('commerce_order_types', 'id', $spec, $keys);
+
+  // Add our unique keys.
+  db_add_unique_key('commerce_order_types', 'type', array('type'));
+
+  // Get an array of all the field definitions.
+  $fields = array(
+    'data' => array(
+      'type' => 'text',
+      'not null' => FALSE,
+      'size' => 'big',
+      'serialize' => TRUE,
+      'description' => 'A serialized array of additional data related to this order type.',
+    ),
+  ) + entity_exportable_schema_fields();
+
+  // Add all our fields to the table.
+  foreach ($fields as $field => $spec) {
+    db_add_field('commerce_order_types', $field, $spec);
+  }
+
+  // We have changed the name of the table, so let's clear the schema cache.
+  drupal_get_complete_schema(TRUE);
+
+  // The exportable entity changes also need to clear the caches.
+  drupal_flush_all_caches();
+}
diff --git a/commerce_order_types.module b/commerce_order_types.module
index ebc180a..70e479c 100644
--- a/commerce_order_types.module
+++ b/commerce_order_types.module
@@ -7,85 +7,6 @@
  */
 
 /**
- * Implements hook_menu().
- */
-function commerce_order_types_menu() {
-  $items = array();
-
-  $items['admin/commerce/config/order-types'] = array(
-    'title' => 'Order Types',
-    'description' => 'Manage and create order types',
-    'page callback' => 'commerce_order_types_order_types_overview',
-    'access arguments' => array('administer order types'),
-  );
-
-  $items['admin/commerce/config/order-types/add'] = array(
-    'title' => 'Add order type',
-    'description' => 'Add additional commerce order types',
-    'page callback' => 'drupal_get_form',
-    'page arguments' => array('commerce_order_types_order_type_form', array()),
-    'access arguments' => array('administer order types'),
-    'type' => MENU_LOCAL_ACTION,
-  );
-
-  foreach (commerce_order_types_order_types(TRUE) as $type => $order_type) {
-    if (isset($order_type['module']) && $order_type['module'] == 'commerce_order_types') {
-      // Convert underscores to hyphens for the menu item argument.
-      $type_arg = strtr($type, '_', '-');
-
-      $items['admin/commerce/config/order-types/' . $type_arg . '/edit'] = array(
-        'title' => 'Edit',
-        'access arguments' => array('administer order types'),
-        'type' => MENU_DEFAULT_LOCAL_TASK,
-      );
-      $items['admin/commerce/config/order-types/' . $type_arg . '/delete'] = array(
-        'title' => 'Delete',
-        'page callback' => 'commerce_order_types_order_type_delete_form_wrapper',
-        'page arguments' => array($type),
-        'access arguments' => array('administer order types'),
-        'type' => MENU_LOCAL_TASK,
-        'weight' => 10,
-      );
-    }
-  }
-  return $items;
-}
-
-/**
- * Implements hook_menu_alter().
- */
-function commerce_order_types_menu_alter(&$items) {
-  foreach (commerce_order_types_order_types() as $type => $order_type) {
-    if (isset($order_type['module']) && $order_type['module'] == 'commerce_order_types') {
-      // Convert underscores to hyphens for the menu item argument.
-      $type_arg = strtr($type, '_', '-');
-      // Add the order admin screens.
-      if (module_exists('commerce_order_ui')) {
-        $items['admin/commerce/orders/add/' . $type_arg] = array(
-          'title' => $order_type['name'],
-          'page callback' => 'commerce_order_ui_order_form_wrapper',
-          'page arguments' => array(commerce_order_new(0, NULL, $type)),
-          'access callback' => 'commerce_order_access',
-          'access arguments' => array('create'),
-          'file' => 'includes/commerce_order_ui.orders.inc',
-          'file path' => drupal_get_path('module', 'commerce_order_ui'),
-        );
-      }
-
-      $items['admin/commerce/config/order-types/' . $type_arg] = array(
-        'title' => $order_type['name'],
-        'page callback' => 'commerce_order_types_order_type_form_wrapper',
-        'page arguments' => array($type),
-        'access arguments' => array('administer order types'),
-      );
-
-      $items['admin/commerce/config/order-types/' . $type_arg . '/fields']['context'] = MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE;
-      $items['admin/commerce/config/order-types/' . $type_arg . '/display']['context'] = MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE;
-    }
-  }
-}
-
-/**
  * Implements hook_menu_local_tasks_alter().
  */
 function commerce_order_types_menu_local_tasks_alter(&$data, $router_item, $root_path) {
@@ -105,15 +26,48 @@ function commerce_order_types_menu_local_tasks_alter(&$data, $router_item, $root
 }
 
 /**
+ * Implements hook_entity_info().
+ */
+function commerce_order_types_entity_info() {
+  $info['commerce_order_type'] = array(
+    'label' => t('Commerce Order type'),
+    'plural label' => t('Commerce Order types'),
+    'description' => t('Types of commerce order.'),
+    'entity class' => 'CommerceOrderType',
+    'controller class' => 'EntityAPIControllerExportable',
+    'base table' => 'commerce_order_types',
+    'fieldable' => FALSE,
+    'bundle of' => 'commerce_order',
+    'exportable' => TRUE,
+    'entity keys' => array(
+      'id' => 'id',
+      'name' => 'type',
+      'label' => 'name',
+    ),
+    'access callback' => 'commerce_order_type_access',
+    'module' => 'commerce_order_types',
+    // Enable the entity API's admin UI.
+    'admin ui' => array(
+      'path' => 'admin/commerce/config/order-types',
+      'file' => 'commerce_order_type.admin.inc',
+      'controller class' => 'CommerceOrderTypeUIController',
+    ),
+  );
+
+  return $info;
+}
+
+/**
  * Implements hook_entity_info_alter().
  */
 function commerce_order_types_entity_info_alter(&$entity_info) {
-  foreach (commerce_order_types_order_types() as $type => $order_type) {
-    $type_arg = strtr($type, '_', '-');
-    $entity_info['commerce_order']['bundles'][$type] = array(
-      'label' => $order_type['name'],
+  foreach (entity_load('commerce_order_type') as $order_type) {
+    $entity_info['commerce_order']['bundles'][$order_type->type] = array(
+      'label' => $order_type->name,
       'admin' => array(
-        'path' => 'admin/commerce/config/order-types/' . $type_arg,
+        'path' => 'admin/commerce/config/order-types/manage/%commerce_order_type',
+        'real path' => 'admin/commerce/config/order-types/manage/' .  $order_type->type,
+        'bundle argument' => 5,
         'access arguments' => array('administer order types'),
       ),
     );
@@ -127,8 +81,8 @@ function commerce_order_types_help($path, $arg) {
   // Display the order type's help on the order add page.
   if (strpos($path, 'admin/commerce/orders/add') === 0) {
     $type = $arg[4];
-    $order_type = commerce_order_types_order_type_load($type);
-    $help = $order_type['help'];
+    $order_type = commerce_order_types_order_types($type);
+    $help = $order_type->help;
 
     if (!empty($help)) {
       return '<p>' . filter_xss_admin($help) . '</p>';
@@ -150,62 +104,54 @@ function commerce_order_types_permission() {
 }
 
 /**
- * Implements hook_form_FORM_ID_alter().
+ * Implements hook_module_implements_alter().
+ *
+ * Make sure our entity info hook runs after commerce_order.
  */
-function commerce_order_types_form_commerce_order_settings_form_alter(&$form, &$form_state) {
-  // Change the description of the order settings form for accuracy.
-  $form['commerce_order_help_text']['#description'] = t('Supply an optional help message to be displayed above the order add form on all order types.');
+function commerce_order_types_module_implements_alter(&$implementations, $hook) {
+  if ($hook == 'entity_info_alter') {
+    $group = $implementations['commerce_order_types'];
+    unset($implementations['commerce_order_types']);
+    $implementations['commerce_order_types'] = $group;
+  }
 }
 
 /**
- * Menu callback.
- *
- * Displays the order type admin overview page.
+ * Access callback for commerce order types.
  */
-function commerce_order_types_order_types_overview() {
-  $types = commerce_order_types_order_types();
-  $field_ui = module_exists('field_ui');
-  $header = array(t('Name'), array(
-      'data' => t('Operations'),
-      'colspan' => $field_ui ? '4' : '2',
-    ));
-  $rows = array();
-
-  foreach ($types as $type => $order_type) {
-    $row = array();
-    $row[] = check_plain($order_type['name']);
-    $type_arg = strtr($type, '_', '-');
-    $row[] = array('data' => l(t('edit'), 'admin/commerce/config/order-types/' . $type_arg . '/edit'));
-
-    if ($field_ui) {
-      $row[] = array('data' => l(t('manage fields'), 'admin/commerce/config/order-types/' . $type_arg . '/fields'));
-      $row[] = array('data' => l(t('manage display'), 'admin/commerce/config/order-types/' . $type_arg . '/display'));
-    }
-    $row[] = array('data' => l(t('delete'), 'admin/commerce/config/order-types/' . $type_arg . '/delete'));
+function commerce_order_type_access($op, $commerce_order_type, $account = NULL) {
+  return user_access('administer order types', $account);
+}
 
-    $rows[] = $row;
-  }
+/**
+ * Implements hook_default_commerce_order_type().
+ *
+ * Provide a default order type on behalf of commerce_order module.
+ */
+function commerce_order_types_default_commerce_order_type() {
+  $types['commerce_order'] = new CommerceOrderType(array(
+    'type' => 'commerce_order',
+    'name' => 'Order',
+    'help' => 'A standard drupal commerce order',
+    'module' => 'commerce_order',
+  ));
 
-  // Output a render array.
-  $build['order_types'] = array(
-    '#theme' => 'table',
-    '#header' => $header,
-    '#rows' => $rows,
-    '#empty' => t('No custom order types available. <a href="@link">Add order type</a>.', array('@link' => url('admin/commerce/config/order-types/add'))),
-  );
+  return $types;
+}
 
-  return $build;
+/**
+ * Implements hook_form_FORM_ID_alter().
+ */
+function commerce_order_types_form_commerce_order_settings_form_alter(&$form, &$form_state) {
+  // Change the description of the order settings form for accuracy.
+  $form['commerce_order_help_text']['#description'] = t('Supply an optional help message to be displayed above the order add form on all order types.');
 }
 
 /**
  * Return a blank, new commerce order type.
  */
 function commerce_order_types_order_type_new() {
-  return array(
-    'type' => '',
-    'name' => '',
-    'help' => '',
-  );
+  return new CommerceOrderType();
 }
 
 /**
@@ -220,7 +166,7 @@ function commerce_order_types_order_type_form_wrapper($type) {
     $order_type = $type;
   }
   else {
-    $order_type = commerce_order_types_order_type_load($type);
+    $order_type = commerce_order_types_order_types($type);
   }
 
   // Not allow to alter any code provided order type.
@@ -242,7 +188,7 @@ function commerce_order_types_order_type_delete_form_wrapper($type) {
     $order_type = $type;
   }
   else {
-    $order_type = commerce_order_types_order_type_load($type);
+    $order_type = commerce_order_types_order_types($type);
   }
 
   // Not allowed to delete any code provided order type.
@@ -302,102 +248,6 @@ function commerce_order_types_order_type_delete_form_submit($form, &$form_state)
 }
 
 /**
- * Order type create/edit form.
- *
- * @param array $order_type
- *   The order type array to edit or for a create for an empty type
- *     array with properties instantiated but not populated.
- */
-function commerce_order_types_order_type_form($form, &$form_state, $order_type = array()) {
-  if (empty($order_type)) {
-    $order_type = commerce_order_types_order_type_new();
-  }
-
-  $form_state['order_type'] = $order_type;
-
-  $form['order_type'] = array(
-    '#tree' => TRUE,
-  );
-
-  $form['order_type']['name'] = array(
-    '#type' => 'textfield',
-    '#title' => t('Order type name'),
-    '#default_value' => $order_type['name'],
-    '#description' => t('The human-readable name of this order type. It is recommended that this name begin with a capital letter and contain only letters, numbers, and spaces. This name must be unique.'),
-    '#required' => TRUE,
-    '#size' => 32,
-  );
-
-  if (empty($order_type['type'])) {
-    $form['order_type']['type'] = array(
-      '#type' => 'machine_name',
-      '#title' => t('Machine name'),
-      '#default_value' => $order_type['type'],
-      '#maxlength' => 32,
-      '#required' => TRUE,
-      '#machine_name' => array(
-        'exists' => 'commerce_order_types_order_type_load',
-        'source' => array('order_type', 'name'),
-      ),
-      '#description' => t('The machine-readable name of this order type. This name must contain only lowercase letters, numbers, and underscores, it must be unique.'),
-    );
-  }
-
-  $form['order_type']['help'] = array(
-    '#type' => 'textarea',
-    '#title' => t('Order creation help text'),
-    '#description' => t('Supply an optional help message to be displayed above the order add form.'),
-    '#default_value' => $order_type['help'],
-    '#rows' => 5,
-  );
-
-  $form['actions'] = array(
-    '#type' => 'container',
-    '#attributes' => array('class' => array('form-actions')),
-    '#weight' => 40,
-  );
-
-  $form['actions']['submit'] = array(
-    '#type' => 'submit',
-    '#value' => t('Save order type'),
-    '#submit' => array('commerce_order_types_order_type_form_submit'),
-  );
-
-  return $form;
-}
-
-/**
- * Form submit handler: save an order type.
- */
-function commerce_order_types_order_type_form_submit(&$form, &$form_state) {
-  $order_type = $form_state['order_type'];
-  $updated = !empty($order_type['type']);
-
-  // If a type is set, we should still check to see if a row for the type exists
-  // in the database; this is done to accomodate types defined by Features.
-  if ($updated) {
-    $updated = db_query('SELECT 1 FROM {commerce_order_types_order_types} WHERE type = :type', array(':type' => $order_type['type']))->fetchField();
-  }
-
-  foreach ($form_state['values']['order_type'] as $key => $value) {
-    $order_type[$key] = $value;
-  }
-
-  // Write the order type to the database.
-  $order_type['is_new'] = !$updated;
-  commerce_order_types_commerce_order_type_save($order_type);
-
-  // Add default fields to the order type.
-  commerce_order_configure_order_type($order_type['type']);
-
-  drupal_set_message(t('Order type saved.'));
-
-  $form_state['redirect'] = 'admin/commerce/config/order-types';
-
-
-}
-
-/**
  * Checks to see if a given order type already exists.
  *
  * @param string $type
@@ -445,26 +295,18 @@ function commerce_order_types_commerce_order_type_save($order_type, $skip_reset
  *   The machine-readable name of the order type; accepts normal machine names
  *     and URL prepared machine names with underscores replaced by hyphens.
  */
-function commerce_order_types_order_type_load($type) {
+function commerce_order_type_load($type) {
   $type = strtr($type, array('-' => '_'));
-  $order_types = commerce_order_types_order_types();
+  $order_types = commerce_order_types_order_types($type);
   return !empty($order_types[$type]) ? $order_types[$type] : FALSE;
 }
 
 /**
  * Returns an array of commerce order types as defined by this module.
  */
-function commerce_order_types_order_types($reset = FALSE) {
-  $order_types = &drupal_static(__FUNCTION__);
-
-
-  if (!isset($order_types) || $reset) {
-    $order_types = db_query('SELECT * FROM {commerce_order_types_order_types}')->fetchAllAssoc('type', PDO::FETCH_ASSOC);
-    foreach ($order_types as $type => $order_type) {
-      $order_types[$type]['module'] = 'commerce_order_types';
-    }
-  }
-  return $order_types;
+function commerce_order_types_order_types($type = FALSE, $reset = FALSE) {
+  $order_types = entity_load('commerce_order_type');
+  return entity_key_array_by_property($order_types, 'type');
 }
 
 /**
@@ -479,7 +321,7 @@ function commerce_order_types_order_types($reset = FALSE) {
  *     is very costly in terms of performance.
  */
 function commerce_order_types_order_type_delete($type, $skip_reset = FALSE) {
-  $order_type = commerce_order_types_order_type_load($type);
+  $order_type = commerce_order_types_order_types($type);
 
   db_delete('commerce_order_types_order_types')
     ->condition('type', $type)
