SaaS & Business APIs
Stripe

Stripe CLI

Payments, subscriptions, refunds and products via Stripe SDK

✓ 19 tests passed
Install
$ pip install cli-anything-stripe
About

Full Stripe payment automation via the official Python SDK. Manage customers, create PaymentIntents, handle subscriptions and process refunds. Supports both test and live modes with structured JSON output.

PaymentsStripe SDKE-Commerce
Requirements
STRIPE_SECRET_KEY (sk_test_... or sk_live_...)
Command Reference
Command Arguments Description
detect Verify API key and show account
schema Output full capability schema (no key needed)
customer list --limit N --email E List customers
customer create --email E --name N --phone P Create customer
customer get CUSTOMER_ID Get customer details
payment list --limit N --customer C List PaymentIntents
payment create --amount N --currency usd --customer C Create PaymentIntent
subscription list --customer C --status active List subscriptions
subscription cancel SUB_ID --at-period-end Cancel subscription
refund create PAYMENT_INTENT_ID --amount N Create refund
product list --limit N List products
product create --name N --price P --currency usd Create product with price
Usage Examples
# Install
$ pip install cli-anything-stripe

# Health check
$ stripe-cli detect

# Get capabilities schema (Agent-ready, no token needed)
$ stripe-cli schema

# Run with JSON output (for AI Agent integration)
$ stripe-cli --json detect

# Example JSON response:
{"id":"cus_abc123","email":"[email protected]","name":"Alice","subscriptions":1}
Agent Integration
# Python — call from AI Agent
import subprocess, json

result = subprocess.run(
    ["stripe-cli", "--json", "detect"],
    capture_output=True, text=True
)
data = json.loads(result.stdout)
print(data)

# Discover all commands without credentials:
schema = subprocess.run(
    ["stripe-cli", "schema"],
    capture_output=True, text=True
)
capabilities = json.loads(schema.stdout)