Interact with your Stripe account directly via the Stripe API (api.stripe.com).
```
STRIPE_SECRET_KEY=sk_live_...
```
Use sk_test_... for test mode.
python3 /mnt/skills/user/stripe/scripts/stripe_query.py charges --limit 10
python3 /mnt/skills/user/stripe/scripts/stripe_query.py customers --limit 20
python3 /mnt/skills/user/stripe/scripts/stripe_query.py customers --email user@example.com
python3 /mnt/skills/user/stripe/scripts/stripe_query.py subscriptions --limit 20
python3 /mnt/skills/user/stripe/scripts/stripe_query.py subscriptions --status active --limit 20
python3 /mnt/skills/user/stripe/scripts/stripe_query.py invoices --limit 20
python3 /mnt/skills/user/stripe/scripts/stripe_query.py payment_intents --limit 20
python3 /mnt/skills/user/stripe/scripts/stripe_query.py products --limit 20
python3 /mnt/skills/user/stripe/scripts/stripe_query.py prices --limit 20
python3 /mnt/skills/user/stripe/scripts/stripe_query.py refunds --limit 20
python3 /mnt/skills/user/stripe/scripts/stripe_query.py get charges ch_abc123
python3 /mnt/skills/user/stripe/scripts/stripe_query.py get customers cus_abc123
python3 /mnt/skills/user/stripe/scripts/stripe_query.py get subscriptions sub_abc123
python3 /mnt/skills/user/stripe/scripts/stripe_query.py create refunds --charge ch_abc123
python3 /mnt/skills/user/stripe/scripts/stripe_query.py create refunds --charge ch_abc123 --amount 1000
python3 /mnt/skills/user/stripe/scripts/stripe_query.py update customers cus_abc123 --email new@example.com --name "New Name"
Formatted table for lists, JSON for single objects. Use --json flag for raw JSON on any command.
共 1 个版本