update_customer_payment_method
Update billing address for a customer's payment method. Provide customer ID, payment method ID, and address details (country, street, city, state, zip).
Instructions
Update a payment method's billing address (gateway-agnostic). PUT /customers/{customerId}/paymentmethods/{paymentMethodId}. Required: customerId, paymentMethodId, billingAddress (countryCode, street1, city, state, zip). Optional: street2. No payment or gateway-specific fields.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"customerId": "<customerId>",
"paymentMethodId": "<paymentMethodId>",
"billingAddress": "<billingAddress>"
},
"name": "update_customer_payment_method"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customerId | Yes | Customer ID (required) | |
| paymentMethodId | Yes | Payment method ID (required) | |
| billingAddress | Yes | Billing address (required): countryCode, street1, city, state, zip; street2 optional |