I create an account in stripe under test
module by stripe api. And bind a bank account with this account. Go to Stripe dashboard -> connect -> accounts
, I could see the account which I created. Click it and to see the detail, I could see the external accounts:
but when I want to create a payout to this bank account:
curl https://api.stripe.com/v1/payouts \
-u sk_test_*********: \
-d amount=400 \
-d currency=usd \
-d destination=ba_1CrVQnJziGn15h8UAvSlEUfI \
-d source_type=bank_account
It gives me error:
{
"error": {
"code": "resource_missing",
"doc_url": "https://stripe.com/docs/error-codes/resource-missing",
"message": "No such external account: ba_1CrVQnJziGn15h8UAvSlEUfI",
"param": "destination",
"type": "invalid_request_error"
}
}