Skip to content
Create account
or
Sign in
The Stripe Docs logo
/
Ask AI
Create account
Sign in
Get started
Payments
Revenue
Platforms and marketplaces
Money management
Developer resources
Overview
Versioning
Changelog
Upgrade your API version
Upgrade your SDK version
Essentials
SDKs
API
    Overview
    API v2
    Rate limits
    Authentication
    API keys
    Specify request context
    Domains and IP addresses
    Make requests
    Expand responses
    Pagination
    Search objects
    Localize content
    Testing and data
    Metadata
    Test your application
    Error handling
    Handle errors
    Error codes
Testing
Stripe CLI
Sample projects
Tools
Stripe Dashboard
Workbench
Developers Dashboard
Stripe Shell
Stripe for Visual Studio Code
Features
Workflows
Event Destinations
Stripe health alertsFile uploads
AI solutions
Agent toolkit
Model Context ProtocolBuild agentic AI SaaS Billing workflows
Security and privacy
Security
Stripebot web crawler
Privacy
Extend Stripe
Build Stripe apps
Use apps from Stripe
Partners
Partner ecosystem
Partner certification
HomeDeveloper resourcesAPI

Stripe's APIs

Learn about Stripe's APIs.

Stripe provides a unified set of REST APIs, comprised of two namespaces, for accepting payments, managing billing and subscriptions, sending payouts, and building financial workflows. You can authenticate requests, shape responses, localize data, test integrations, and handle errors consistently across Stripe products.

Overview

Compare the API v1 and v2 namespaces

Learn about Stripe’s API v2, its response model, and how it compares to API v1.

Manage null API v2 responses

Request dependent values in a single response.

Rate limits

Understand throttling and throughput behavior.

Authentication and security

API keys

Authenticate requests with secret and restricted keys.

Manage secret API keys

Best practices for creating, rotating, and securing keys.

Specify request context

Pass account and idempotency context with requests.

Domains and IP addresses

Allowlist domains and IP ranges used by Stripe.

Make requests

Expand responses

Return nested objects in a single request.

Pagination

Iterate through large lists of resources.

Search objects

Look up objects in your Stripe data.

Testing and data

Metadata

Attach custom key-value pairs to objects.

Use cases

Common patterns for modeling data with metadata.

Automated testing

Test your application’s behavior and ability to handle errors.

Error handling

Error handling

Interpret errors and display them to users.

Advanced error handling

Work with low-level error details.

Error codes

Browse common error types and parameters.

Was this page helpful?
YesNo
  • Need help? Contact Support.
  • Join our early access programme.
  • Check out our changelog.
  • Questions? Contact Sales.
  • LLM? Read llms.txt.
  • Powered by Markdoc