I am trying to transfer money to a Managed Account, but I am getting the error: "Must provide source or customer.". Here is the request body and headers sending to the API.
var transferBody= {
"amount": "1000",
"currency": "usd",
"destination": "default_for_currency",
}
let apiTransferRequest = {
method: 'post',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/x-www-form-urlencoded',
'Authorization': 'Bearer ' + secret_key,
'stripe_account': 'acct_198vxeLmTNKjRg7x'
},
body: transferBody
}
Shouldn't providing 'stripe_account' in the headers make myself act on behalf of the Managed Account, so in turn should act as the source?
From what I understand, providing 'stripe_account' in the headers and using 'destination' parameter set to 'default_for_currency', makes the Managed Account to transfer funds from its own Stripe Managed Account balance to its default debit card.
I am following this example, under Standard transfers https://stripe.com/docs/connect/bank-transfers , and I'm using React Native so this would be the only approach to using Stripe.js as far as I know of. I'm following http://blog.bigbinary.com/2015/11/03/using-stripe-api-in-react-native-with-fetch.html
Thank you in advance and will accept/upvote the answer.