← Back to Marketplace

Stripe

Bearer

Payments, subscriptions, and invoicing. The backbone of internet commerce.

https://api.stripe.com
OVERVIEW

Stripe's API handles everything from one-time charges to complex subscription billing, marketplace payouts, and invoicing. It's the most widely used payment API by startups and enterprises alike.

The API uses form-encoded request bodies for write operations (not JSON). All responses are JSON. Test mode keys (sk_test_) let you test the full integration without real charges. The API is versioned. Each account is pinned to the version at creation time.

GET YOUR API KEY

Authentication setup

  1. Go to dashboard.stripe.com and sign in
  2. Navigate to Developers → API keys
  3. Copy the Secret key. Starts with sk_test_ (test) or sk_live_ (live)
  4. Use test mode keys for development. No real charges
Token format sk_test_... or sk_live_...
Auth type bearer
QUICK CONNECT

Create a connection in one request.

CONNECT STRIPE
POST /connections Authorization: Bearer $TOKEN Content-Type: application/json { "name": "Stripe", "base_url": "https://api.stripe.com", "auth_type": "bearer", "auth_config": {"token": "sk_test_..."} } → {"id": "cn_xxxxxxxx", "name": "Stripe"}
KEY ENDPOINTS

What you can call via proxy.

MethodPathDescription
POST /v1/payment_intents Create a payment intent (recommended flow)
GET /v1/payment_intents List payment intents
POST /v1/customers Create a customer
GET /v1/customers List customers
POST /v1/subscriptions Create a subscription
GET /v1/invoices List invoices
POST /v1/refunds Refund a payment
GET /v1/balance Get current account balance
EXAMPLE

List Customers

PROXY CALL
GET /proxy/cn_xxxxxxxx/v1/customers?limit=3 Authorization: Bearer $TOKEN { "object": "list", "data": [ {"id": "cus_abc123", "name": "Jane Doe", "email": "jane@example.com"}, {"id": "cus_def456", "name": "John Smith", "email": "john@example.com"}, {"id": "cus_ghi789", "name": "Alice Chen", "email": "alice@example.com"} ], "has_more": true }
USE CASES

What people build with Stripe.

Payment Processing

Accept one-time payments with Payment Intents. Supports cards, wallets, and bank transfers.

Subscription Billing

Create recurring billing with trials, metered usage, and automatic invoicing.

Marketplace Payouts

Split payments between sellers and platform with Stripe Connect.

Invoice Management

Generate, send, and track invoices. Automatic reminders and payment links.

# Stripe > Payments, subscriptions, and invoicing. The backbone of internet commerce. ## Overview Stripe's API handles everything from one-time charges to complex subscription billing, marketplace payouts, and invoicing. It's the most widely used payment API by startups and enterprises alike. The API uses form-encoded request bodies for write operations (not JSON). All responses are JSON. Test mode keys (<code>sk_test_</code>) let you test the full integration without real charges. The API is versioned. Each account is pinned to the version at creation time. - **Base URL:** https://api.stripe.com - **Auth type:** bearer - **Token format:** sk_test_... or sk_live_... ## Get Your API Key 1. Go to dashboard.stripe.com and sign in 2. Navigate to Developers → API keys 3. Copy the Secret key. Starts with sk_test_ (test) or sk_live_ (live) 4. Use test mode keys for development. No real charges ## Quick Connect bashcurl -X POST https://api.liteio.dev/connections \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{ "name": "Stripe", "base_url": "https://api.stripe.com", "auth_type": "bearer", "auth_config": {"token": "sk_test_..."} }' ## Key Endpoints MethodPathDescription POST/v1/payment_intentsCreate a payment intent (recommended flow) GET/v1/payment_intentsList payment intents POST/v1/customersCreate a customer GET/v1/customersList customers POST/v1/subscriptionsCreate a subscription GET/v1/invoicesList invoices POST/v1/refundsRefund a payment GET/v1/balanceGet current account balance ## Example: List Customers bashcurl https://api.liteio.dev/proxy/cn_xxx/v1/customers?limit=3 \ -H "Authorization: Bearer $TOKEN" ## Use Cases - **Payment Processing**: Accept one-time payments with Payment Intents. Supports cards, wallets, and bank transfers. - **Subscription Billing**: Create recurring billing with trials, metered usage, and automatic invoicing. - **Marketplace Payouts**: Split payments between sellers and platform with Stripe Connect. - **Invoice Management**: Generate, send, and track invoices. Automatic reminders and payment links. ## Links - Back to Marketplace - Developer Guide - Get API Key