Home / Servers / Stripe API / post_payment_methods_payment_method_detach

Detach a PaymentMethod from a Customer

An MCP tool from the Stripe API server, hosted on mcp.hjlabs.in.

Detach a PaymentMethod from a Customer Detaches a PaymentMethod object from a Customer. Detachment is permanent and irreversible — once detached, a PaymentMethod can no longer be used for payments or re-attached to a Customer. [POST /v1/payment_methods/{payment_method}/detach]

Name on the gateway: stripe_api__post_payment_methods_payment_method_detach · may change things.

Parameters

NameTypeDescription
payment_method requiredstringpayment_method parameter
expandarraySpecifies which fields in the response should be expanded.

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "stripe_api__post_payment_methods_payment_method_detach",
  "arguments": {
    "payment_method": "…"
  }
}

Or connect the Stripe API server directly, which lists 606 tools including this one:

Run in your terminal
claude mcp add --transport http hj-stripe-api https://mcp.hjlabs.in/mcp/stripe-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the detach a paymentmethod from a customer tool with payment_method set to ….

More from Stripe API