Skip to content

Instantly share code, notes, and snippets.

@wbronitsky
Created March 9, 2016 18:41
Show Gist options
  • Save wbronitsky/f99dc5cfdcde7f46fba3 to your computer and use it in GitHub Desktop.
Save wbronitsky/f99dc5cfdcde7f46fba3 to your computer and use it in GitHub Desktop.
Example of usage=source
curl https://api.stripe.com/v1/tokens \
-u YOUR_API_KEY: \
-d bank_account[country]=US \
-d bank_account[currency]=usd \
-d bank_account[account_holder_type]=individual \
-d bank_account[routing_number]=110000000 \
-d bank_account[account_number]=000123456789 \
-d usage=source
Returns:
{
"error": {
"type": "invalid_request_error",
"message": "You must provide the full name of the bank account holder.",
"param": "bank_account[name]",
"type": "invalid_request_error"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment