Skip to content

Resource commands

Kenneth Auchenberg edited this page Oct 31, 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"

For a full list of available resources, type stripe resources or the wiki page.

Available commands

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 --livemode flag.

To see what actions you can make, use the help command on any resource:

$ stripe charges --help

Available commands

The full list of available top-level commands is:

  3d_secure
  account_links
  accounts
  apple_pay_domains
  application_fees
  balance
  balance_transactions
  bank_accounts
  bitcoin_receivers
  bitcoin_transactions
  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
  issuer_fraud_records
  issuing
  line_items
  login_links
  order_returns
  orders
  payment_intents
  payment_methods
  payment_sources
  payouts
  persons
  plans
  products
  radar
  recipients
  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