| name | stripe |
| description | Manage Stripe payments — customers, charges, subscriptions, invoices, and refunds. |
| metadata | {"thinkfleetbot":{"emoji":"💳","requires":{"bins":["curl","jq"],"env":["STRIPE_SECRET_KEY"]}}} |
Stripe
Manage customers, payments, subscriptions, and invoices via the Stripe API.
Environment Variables
STRIPE_SECRET_KEY - Stripe secret key (starts with sk_)
List customers
curl -s -u "$STRIPE_SECRET_KEY:" \
"https://api.stripe.com/v1/customers?limit=10" | jq '.data[] | {id, email, name}'
Create payment intent
curl -s -X POST -u "$STRIPE_SECRET_KEY:" \
"https://api.stripe.com/v1/payment_intents" \
-d "amount=2000" -d "currency=usd" | jq '{id, amount, currency, status}'
List charges
curl -s -u "$STRIPE_SECRET_KEY:" \
"https://api.stripe.com/v1/charges?limit=10" | jq '.data[] | {id, amount, currency, status}'
List subscriptions
curl -s -u "$STRIPE_SECRET_KEY:" \
"https://api.stripe.com/v1/subscriptions?limit=10" | jq '.data[] | {id, customer, status, current_period_end}'
List invoices
curl -s -u "$STRIPE_SECRET_KEY:" \
"https://api.stripe.com/v1/invoices?limit=10" | jq '.data[] | {id, customer, total, status}'
Issue refund
curl -s -X POST -u "$STRIPE_SECRET_KEY:" \
"https://api.stripe.com/v1/refunds" \
-d "charge=ch_xxx" | jq '{id, amount, status}'
Notes
- Amounts are in cents (2000 = $20.00).
- Always confirm before creating charges or refunds.
- Use test keys (
sk_test_) for development.