Skip to content

Instantly share code, notes, and snippets.

@atwj
Last active March 23, 2022 01:45
Show Gist options
  • Select an option

  • Save atwj/b1eb264f986eb0dca1efd8f1d13c67e9 to your computer and use it in GitHub Desktop.

Select an option

Save atwj/b1eb264f986eb0dca1efd8f1d13c67e9 to your computer and use it in GitHub Desktop.
Stripe Connect Account Creation and Connect Onboarding
curl https://api.stripe.com/v1/accounts \
-u sk_test_: \
-d country=SG \
-d type=custom \
-d "capabilities[card_payments][requested]"=true \
-d "capabilities[transfers][requested]"=true
// Get account ID (acct_xxxxxx) from prior call
curl https://api.stripe.com/v1/account_links \
-u sk_test_: \
-d account=acct_ID \
-d refresh_url="https://example.com/reauth" \
-d return_url="https://example.com/return" \
-d type=account_onboarding \
-d collect=eventually_due
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment