Home / Servers / Stripe API / post_payment_methods_payment_method_attach

Attach a PaymentMethod to a Customer

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

Attach a PaymentMethod to a Customer Attaches a PaymentMethod object to a Customer. To attach a new PaymentMethod to a customer for future payments, we recommend you use a SetupIntent or a PaymentIntent with setup_future_usage . These… [POST /v1/payment_methods/{payment_method}/attach]

Name on the gateway: stripe_api__post_payment_methods_payment_method_attach · may change things.

Parameters

NameTypeDescription
payment_method requiredstringpayment_method parameter
customerstringThe ID of the customer to which to attach the PaymentMethod.
customer_accountstringThe ID of the Account representing the customer to which to attach the…
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_attach",
  "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 attach a paymentmethod to a customer tool with payment_method set to ….

More from Stripe API