Home / Servers / Stripe API / post_customers_customer_sources_id

Update a card

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

Update a card Update a specified source for a given customer. [POST /v1/customers/{customer}/sources/{id}]

Name on the gateway: stripe_api__post_customers_customer_sources_id · may change things.

Parameters

NameTypeDescription
customer requiredstringcustomer parameter
id requiredstringid parameter
account_holder_namestringThe name of the person or business that owns the bank account.
account_holder_typecompany | individualThe type of entity that holds the account. This can be either individual or…
address_citystringCity/District/Suburb/Town/Village.
address_countrystringBilling address country, if provided when creating card.
address_line1stringAddress line 1 (Street address/PO Box/Company name).
address_line2stringAddress line 2 (Apartment/Suite/Unit/Building).
address_statestringState/County/Province/Region.
address_zipstringZIP or postal code.
exp_monthstringTwo digit number representing the card’s expiration month.
exp_yearstringFour digit number representing the card’s expiration year.
expandarraySpecifies which fields in the response should be expanded.
metadataobjectSet of key-value pairs that you can attach to an object. This can be useful…
namestringCardholder name.
ownerobjectowner

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_customers_customer_sources_id",
  "arguments": {
    "customer": "…",
    "id": "…"
  }
}

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 update a card tool with customer set to ….

More from Stripe API