title: Error to integrate with QuickBooks
body: <p>I'm doing an integration with PHP my system, so I can launch sales in QuickBooks. To integrate'm using the API provided this link <a href="https://github.com/consolibyte/quickbooks-php" rel="nofollow">https://github.com/consolibyte/quickbooks-php</a>.</p>
  
  <p>Set everything as instructed, but the moment you throw a sale, I get the following error: </p>
  
  <pre><code>2020: [Required param missing, need to supply the required value for the API, Required parameter Line.DetailType is missing in the request]
  </code></pre>
  
  <p>The class that generates invoices is currently as follows:</p>
  
  <pre><code>&lt;?php
  
  require_once dirname(__FILE__) . '/config.php';
  require_once dirname(__FILE__) . '/views/header.tpl.php';
  
  ?&gt;
  
  &lt;pre&gt;
  
      &lt;?php
  
      $InvoiceService = new QuickBooks_IPP_Service_Invoice();
      $Invoice        = new QuickBooks_IPP_Object_Invoice();
  
      $Invoice-&gt;setDocNumber('WEB' . mt_rand(0, 10000));
      $Invoice-&gt;setTxnDate('2015-12-10');
  
      $Line = new QuickBooks_IPP_Object_Line();
      $Line-&gt;setDetailType('Example');
      $Line-&gt;setAmount(12.95 * 2);
      $Line-&gt;setDescription('Example');
  
      $SalesItemLineDetail = new QuickBooks_IPP_Object_SalesItemLineDetail();
      $SalesItemLineDetail-&gt;setItemRef('8');
      $SalesItemLineDetail-&gt;setUnitPrice(12.95);
      $SalesItemLineDetail-&gt;setQty(2);
  
      $Line-&gt;addSalesItemLineDetail($SalesItemLineDetail);
  
      $Invoice-&gt;addLine($Line);
  
      $Invoice-&gt;setCustomerRef('67');
  
      if ($resp = $InvoiceService-&gt;add($Context, $realm, $Invoice))
      {
          print('Our new Invoice ID is: [' . $resp . ']');
      }
      else
      {        
          print($InvoiceService-&gt;lastError());
      }
  
      ?&gt;
  
  &lt;/pre&gt;
  
  &lt;?php
  
  require_once dirname(__FILE__) . '/views/footer.tpl.php';
  </code></pre>
  
  <p>Someone has gone through this problem?</p>
  
  <p>I really need help because they do not understand much about QuickBooks.</p>
  
  <p>Thanks,</p>