title: Transfer amount into customer's bank account using Stripe Payout API
body: <p>I am working on an implementation of REST API for a mobile application which encapsulates feature of redemption of earned points in form of money equivalent to points using Stripe as a payment gateway .
  To accomplish it I have used Stripe payout API to transfer amount directly into destination bank account.</p>
  
  <p>Following is code snippet of call to payout API of Stripe </p>
  
  <pre><code>$payout=\Stripe\Payout::create(array(
    "amount" =&gt; 400,
    "currency" =&gt; "usd",
    "destination"=&gt;$ID,/* ID of customer bank account ba_1CIZEOCHXaXPEwZByNehIJrY  */
    "source_type"=&gt;'bank_account'
  ));
  </code></pre>
  
  <p>Upon execution of above code snippet I receive error message as response to call of payout API</p>
  
  <blockquote>
    <p>The bank account ba_1CIZEOCHXaXPEwZByNehIJrY is not attached to this
    Stripe account. External accounts can only be attached to Standard
    accounts via the dashboard.</p>
  </blockquote>
  
  <p>According to above error message it seems that same bank account needs to be attached to both customer and connected stripe account but I am unable to find appropriate solution to attach customer's bank account to  merchant as an external account.</p>
  
  <p>Please suggest me an appropriate solution to it.</p>