This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Updating Connected Account Details: bank_account | |
#Trying to update the bank_account details of a connected account using a dictionary. | |
#How do I format the dictionary? | |
curl https://api.stripe.com/v1/accounts/[ACCOUNT_ID] \ | |
-u [LIVE SECRET KEY]: \ | |
-d bank_account={"country":"US", "currency":"usd", "account_number":"xxxxxxxxx"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Retrieve account details request - getting a "Invalid API Key provided: acct_************xxxx" error | |
curl https://api.stripe.com/v1/account \ | |
-u [LIVE SECRET KEY]: \ | |
-H Stripe-Account:[acct_xxxxxxxxxxxxxx] #the connected account ID | |
#Transfering $ to a connected account - getting a "Cannot transfer to an unconnected destination account." error | |
curl https://api.stripe.com/v1/transfers \ | |
-u [LIVE SECRET KEY]: \ | |
-d amount=xxxx \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Retrieve account details request - getting a "Invalid API Key provided: acct_************xxxx" error | |
curl https://api.stripe.com/v1/account \ | |
-u [LIVE SECRET KEY]: \ | |
-u [acct_xxxxxxxxxxxxxx] #the connected account ID | |
#Transfering $ to a connected account - getting a "Cannot transfer to an unconnected destination account." error | |
curl https://api.stripe.com/v1/transfers \ | |
-u [LIVE SECRET KEY]: \ | |
-d amount=xxxx \ |