Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save matthewarkin/72e170f9922e3d71ed84 to your computer and use it in GitHub Desktop.
Save matthewarkin/72e170f9922e3d71ed84 to your computer and use it in GitHub Desktop.
#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 \
-d currency=usd \
-d destination=[acct_xxxxxxxxxxxxxx] \ #the connected account ID
-d description="test transfer"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment