Files
2026-04-11 09:45:12 -05:00

6.6 KiB

Stripe Routing Reference

App name: stripe Base URL proxied: api.stripe.com

API Path Pattern

/stripe/v1/{endpoint}

Common Endpoints

Customers

List Customers

GET /stripe/v1/customers?limit=10

Get Customer

GET /stripe/v1/customers/{customerId}

Create Customer

POST /stripe/v1/customers
Content-Type: application/x-www-form-urlencoded

email=customer@example.com&name=John%20Doe&description=New%20customer

Update Customer

POST /stripe/v1/customers/{customerId}
Content-Type: application/x-www-form-urlencoded

email=newemail@example.com

Products

List Products

GET /stripe/v1/products?limit=10&active=true

Create Product

POST /stripe/v1/products
Content-Type: application/x-www-form-urlencoded

name=Premium%20Plan&description=Monthly%20subscription

Prices

List Prices

GET /stripe/v1/prices?limit=10&active=true

Create Price

POST /stripe/v1/prices
Content-Type: application/x-www-form-urlencoded

unit_amount=1999&currency=usd&product=prod_XXX&recurring[interval]=month

Subscriptions

List Subscriptions

GET /stripe/v1/subscriptions?limit=10&status=active

Get Subscription

GET /stripe/v1/subscriptions/{subscriptionId}

Create Subscription

POST /stripe/v1/subscriptions
Content-Type: application/x-www-form-urlencoded

customer=cus_XXX&items[0][price]=price_XXX

Cancel Subscription

DELETE /stripe/v1/subscriptions/{subscriptionId}

Invoices

List Invoices

GET /stripe/v1/invoices?limit=10&customer=cus_XXX

Get Invoice

GET /stripe/v1/invoices/{invoiceId}

Charges

List Charges

GET /stripe/v1/charges?limit=10

Payment Intents

Create Payment Intent

POST /stripe/v1/payment_intents
Content-Type: application/x-www-form-urlencoded

amount=1999&currency=usd&customer=cus_XXX

Balance

Get Balance

GET /stripe/v1/balance

Events

List Events

GET /stripe/v1/events?limit=10&type=customer.created

Notes

  • Stripe API uses form-urlencoded data for POST requests
  • IDs are prefixed: cus_ (customer), sub_ (subscription), prod_ (product), price_ (price), in_ (invoice), pi_ (payment intent)
  • Amounts are in cents (1999 = $19.99)
  • Use expand[] parameter to include related objects; for list endpoints use expand[]=data.{field} (e.g., expand[]=data.customer)
  • List endpoints support pagination with starting_after and ending_before
  • Delete returns {id, deleted: true} on success
  • Products with prices cannot be deleted, only archived (active=false)

Resources