-
Notifications
You must be signed in to change notification settings - Fork 380
Resource commands
tomer-stripe edited this page Nov 1, 2019
·
9 revisions
You can easily make API requests using the CLI:
$ stripe charges retrieve ch_123
$ stripe charges create --amount=100 --currency=usd --source=tok_visa
$ stripe charges update ch_123 -d "metadata[key]=value"
The Stripe CLI has commands available to interact with all Stripe API resources. For example, with charges you could write:
$ stripe charges create --amount=100 --currency=usd --source=tok_visa
All commands support making live requests with the --live
flag.
To see what actions you can make, use the help
command on any resource:
$ stripe charges --help
For a full list of available resources, type stripe resources
or or see this list:
3d_secure
account_links
accounts
apple_pay_domains
application_fees
balance
balance_transactions
bank_accounts
capabilities
cards
charges
checkout
country_specs
coupons
credit_notes
customer_balance_transactions
customers
disputes
ephemeral_keys
events
exchange_rates
external_accounts
fee_refunds
file_links
files
invoiceitems
invoices
issuing
line_items
login_links
order_returns
orders
payment_intents
payment_methods
payment_sources
payouts
persons
plans
products
radar
refunds
reporting
reviews
scheduled_query_runs
setup_intents
skus
sources
subscription_items
subscription_schedules
subscriptions
tax_ids
tax_rates
terminal
tokens
topups
transfer_reversals
transfers
usage_records
webhook_endpoints