Skip to content

Stripe - Update Customer

This module allows you to modify existing customer data in Stripe: contact information, address, default payment method, and metadata.

  • Secret Key: Stripe secret key
ParameterTypeRequiredDescription
credentials_idcredentialYesStripe credentials
customer_idstringYesCustomer ID (cus_xxx)
emailstringNoNew email
namestringNoNew name
phonestringNoNew phone
descriptionstringNoNew description
default_payment_methodstringNoNew default payment method
address_line1stringNoNew address
address_citystringNoNew city
address_postal_codestringNoNew postal code
address_countrystringNoNew country
metadatastringNoNew metadata (JSON)
{
"success": true,
"customer": {...},
"customer_id": "cus_NffrFeUfNV2Hib",
"fields_updated": ["email", "phone"],
"message": "Cliente cus_NffrFeUfNV2Hib actualizado correctamente"
}
{
"customer_id": "cus_NffrFeUfNV2Hib",
"email": "nuevo@email.com",
"phone": "+1 555 123 4567"
}
{
"customer_id": "cus_NffrFeUfNV2Hib",
"default_payment_method": "pm_1234567890"
}
{
"customer_id": "cus_NffrFeUfNV2Hib",
"metadata": "{\"plan\": \"premium\", \"upgraded_at\": \"2024-01-15\"}"
}
  • Only the provided fields are updated
  • Metadata is merged with existing metadata
  • The payment method must be associated with the customer
  • StripeGetCustomers - Get and search existing customers
  • StripeCreateCustomer - Create new customers
  • StripeCreateSubscription - Create subscriptions for the customer
  • StripeCreatePaymentIntent - Create payments for the customer