
Stripe API
Stripe API
Payment and commerce infrastructure API covering card payments, subscriptions, marketplaces, and disputes.
Best-in-class developer documentation
Per-transaction fees can be heavy for small-ticket payments
Sign up at stripe.com and grab a test/live secret key from the Dashboard. All requests authenticate via the Authorization header with your secret key. Build and verify everything in test mode, then switch to live.
Uptime · 30-day window
About this API
Stripe is payment and commerce infrastructure built for software businesses. It wraps card acquiring, recurring billing, dispute management, compliance, and marketplace split payouts into a single REST API, so developers can accept online payments without integrating bank-by-bank.
What sets Stripe apart is the developer experience: versioned APIs, SDKs in every major language, field-level documentation, and a thorough test mode (with dozens of simulated cards covering 3DS, declines, disputes, and more). Its product surface — Connect, Billing, Tax, Identity, Issuing — shares the same API shape, so an app can grow from a single-merchant integration to a marketplace or global operation without rewriting integration logic.
Pricing is per-transaction; there is no monthly fee but small-ticket payments carry a relatively high effective rate. Some advanced products (card issuing, banking) are gated by country. Check supported-region pages before committing to a launch market.
What you can build
- 1Accept card and wallet payments
- 2Build subscriptions and usage-based billing
- 3Run a marketplace with split payouts via Connect
- 4Handle refunds, disputes, and reconciliation
- 5Embed Stripe Checkout or Elements
Strengths & limitations
Strengths
- Best-in-class developer documentation
- SDKs in all major languages
- Idempotency keys make retries safe
- Comprehensive test mode with simulated card scenarios
Limitations
- Per-transaction fees can be heavy for small-ticket payments
- Country and currency support varies — check supported regions
- Some advanced features (Issuing, Atlas) are region-gated
Example request
curl https://stripe.com/<endpoint> \
-H "Authorization: Bearer $API_KEY"
# Some providers use X-Api-Key instead — verify in the docs.Getting started
Sign up at stripe.com and grab a test/live secret key from the Dashboard. All requests authenticate via the Authorization header with your secret key. Build and verify everything in test mode, then switch to live.
FAQ
Is there a cost to use the API?+
API calls themselves are free; you only pay fees on actual transactions — about 2.9% + $0.30 per card charge, with surcharges for cross-border and currency conversion.
How should I store the secret key?+
Keep it only in server-side environment variables — never bundle it in frontend code or commit it. Use restricted keys to scope permissions.
Which countries does Stripe support?+
Acquired currencies and merchant payout countries differ; check stripe.com/global for the current matrix.
Is there a test environment?+
Yes — a full test mode with dozens of simulated cards covering declines, 3DS, disputes, and more. Test and live keys are fully isolated.
Does the API have versioning?+
Every request runs against your account API version. Upgrade in the Dashboard or pin per-request via the Stripe-Version header.
Technical details
- Auth type
- api_key
- Pricing
- paid
- Protocols
- REST
- SDKs
- python, javascript, typescript, ruby, java, go, php, csharp
- Response time
- 333 ms
- Last health check
- 5/12/2026, 7:38:28 AM
Endpoints
Parsed from the OpenAPI spec. Showing 12 of 442 non-deprecated endpoints.
/v1/account/v1/account_links/v1/accounts/v1/accounts/v1/accounts/{account}/v1/accounts/{account}/v1/accounts/{account}/v1/accounts/{account}/bank_accounts/v1/accounts/{account}/bank_accounts/{id}/v1/accounts/{account}/bank_accounts/{id}/v1/accounts/{account}/bank_accounts/{id}/v1/accounts/{account}/capabilities430 more endpoints not shown. See the OpenAPI spec for the full list.
Alternatives to consider
Different providers solving similar problems. Picked by category, auth, pricing, and tag overlap.