Stripe Payment Methods API

The Payment Methods API from Stripe — 4 operation(s) for payment methods.

Business capability
Payments & Card Management BC-1340

Operations 6

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v1/payment_methods List payment methods · Get payment methods #
Ask an LLM
“How do I list the payment methods on my account, like cards or bank accounts?”
“Can I filter payment methods by type or by customer?”
Tell an agent
List payment methods of type {type}.
List payment methods for customer {customer}.
POST /v1/payment_methods Create a payment method · Post payment methods #
Ask an LLM
“How do I create a card or bank account payment method from my server?”
“Can I include the customer's billing details when creating a payment method?”
Tell an agent
Create a {type} payment method with billing details {billing_details}.
Create a card payment method from {card}.
GET /v1/payment_methods/{payment_method} Look up a payment method · Get payment methods payment method #
Ask an LLM
“How do I see the details of a single saved payment method, like its brand and expiry?”
“What billing details are stored on a payment method?”
Tell an agent
Get payment method {payment_method}.
Show me the card details on payment method {payment_method}.
POST /v1/payment_methods/{payment_method} Update a payment method · Post payment methods payment method #
Ask an LLM
“How do I update the billing address or card expiry on a saved payment method?”
“Does a payment method have to be attached to a customer before I can update it?”
Tell an agent
Update billing details on payment method {payment_method} to {billing_details}.
Update the card expiry on payment method {payment_method} to {card}.
POST /v1/payment_methods/{payment_method}/attach Save a payment method to a customer · Post payment methods payment method attach #
Ask an LLM
“How do I attach a card to a customer so I can charge it again later?”
“Is attaching directly better than saving a payment method with a SetupIntent?”
Tell an agent
Attach payment method {payment_method} to customer {customer}.
Save {payment_method} on file for customer {customer}.
POST /v1/payment_methods/{payment_method}/detach Remove a payment method from a customer · Post payment methods payment method detach #
Ask an LLM
“How do I remove a saved card from a customer?”
“Can a detached payment method be reattached or used again?”
Tell an agent destructive · confirm first
Detach payment method {payment_method}.
Remove saved payment method {payment_method} from its customer.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/stripe-payment-methods-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

stripe-payment-methods-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Stripe Payment Method Payment Methods API
  description: Needs description.
  contact:
    email: dev-platform@stripe.com
    name: Stripe Dev Platform Team
    url: https://stripe.com
  termsOfService: https://stripe.com/us/terms/
  version: '2023-10-16'
  x-stripeSpecFilename: spec3
servers:
- url: https://api.stripe.com/
security:
- basicAuth: []
- bearerAuth: []
tags:


# --- truncated at 32 KB (43 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/stripe/refs/heads/main/openapi/stripe-payment-methods-api-openapi.yml