diff --git a/commerce_winbiz.module b/commerce_winbiz.module
index c812169..11bfd57 100644
--- a/commerce_winbiz.module
+++ b/commerce_winbiz.module
@@ -230,7 +230,7 @@ function commerce_winbiz_export_orders($oid_from, $oid_to) {
 function commerce_winbiz_write_order_data($order, &$data) {
   // Order Header
   $data[1] = $order->order_id . '<NEW>';
-  $data[2] = WINBIZ_DEFAULT_TYPE;
+  $data[2] = variable_get('commerce_winbiz_document_type', WINBIZ_DEFAULT_TYPE);
   $orderdate = (!empty($order->data['commerce_winbiz_checkout_complete_timestamp'])) ? $order->data['commerce_winbiz_checkout_complete_timestamp'] : $order->created;
   $data[3] = strftime('%Y%m%d', $orderdate);
   $data[4] = strftime('%H:%M', $orderdate);
@@ -503,3 +503,14 @@ function commerce_winbiz_get_payment_method_code($payment_method_id) {
     return $payment_method_id;
   }
 }
+
+/**
+ * Getter for available document types.
+ */
+function commerce_winbiz_get_document_types() {
+  return variable_get('commerce_winbiz_document_types', array(
+    10 => t('Offer'),
+    12 => t('Order'),
+    WINBIZ_DEFAULT_TYPE => t('Order confirmation'),
+  ));
+}
diff --git a/commerce_winbiz.pages.inc b/commerce_winbiz.pages.inc
index 032e6d4..43aa70d 100644
--- a/commerce_winbiz.pages.inc
+++ b/commerce_winbiz.pages.inc
@@ -171,6 +171,14 @@ function commerce_winbiz_admin_settings_form($form, &$form_state) {
     '#default_value' => variable_get('commerce_winbiz_tax_inclusion', 1),
   );
 
+  $form['commerce_winbiz_document_type'] = array(
+    '#type' => 'select',
+    '#title' => t('Exported document type'),
+    '#description' => t('Determines what kind of document type will be used to create the imported document. Note that you have to set the document type in your WinBIZ website configuration to "By default" in order to make this work.'),
+    '#options' => commerce_winbiz_get_document_types(),
+    '#default_value' => variable_get('commerce_winbiz_document_type', WINBIZ_DEFAULT_TYPE),
+  );
+
   $form['commerce_winbiz_article_update'] = array(
     '#type' => 'checkbox',
     '#title' => t('Update articles'),
