title: How to provide external account parameter while creating managed account in stripe using php?
body: <p>I am using stripe php library.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>$account = \Stripe\Account::create(
      array(
          "country" =&gt; "US",
          "managed" =&gt; true,
          "legal_entity" =&gt; array(
              'address' =&gt; array(
                  'city' =&gt; 'Maxico',
                  'country' =&gt; 'US',
                  "line1" =&gt; 'H65',
                  "line2" =&gt; 'standfort street',
                  "postal_code" =&gt; '90046',
                  "state" =&gt; 'CA'
              ),
              'business_name' =&gt; 'test business name',
              'business_tax_id' =&gt; '000000000',
              'dob' =&gt; array(
                  'day' =&gt; '10',
                  'month' =&gt; '01',
                  'year' =&gt; '1988'
              ),
              'first_name' =&gt; 'Test',
              'last_name' =&gt; 'Tester',
              'personal_id_number' =&gt; '000000000',
              'ssn_last_4' =&gt; '0000',
              'type' =&gt; 'sole_prop'
          ),
          'tos_acceptance' =&gt; array(
              'date' =&gt; time(),
              'ip' =&gt; $_SERVER['REMOTE_ADDR']
          ),
          'external_account' =&gt; array(
              "country" =&gt; "US",
              "currency" =&gt; "usd",
              "account_holder_name" =&gt; 'Jane Austen',
              "account_holder_type" =&gt; 'individual',
              "routing_number" =&gt; "111000025",
              "account_number" =&gt; "000123456789"
          )
      )
  );
  </code></pre>
  
  <p>This is the error I am getting:</p>
  
  <blockquote>
    <p>The external_account hash must include an 'object' key indicating what type of external_account to create.</p>
  </blockquote>
  
  <p>Any suggestion will be appreciated.</p>