Skip to content

Instantly share code, notes, and snippets.

#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"}
#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 \
#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 \