Stripe - Update Customer
Description
Section titled “Description”This module allows you to modify existing customer data in Stripe: contact information, address, default payment method, and metadata.
Configuration
Section titled “Configuration”Required Credentials
Section titled “Required Credentials”- Secret Key: Stripe secret key
Parameters
Section titled “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
| credentials_id | credential | Yes | Stripe credentials |
| customer_id | string | Yes | Customer ID (cus_xxx) |
| string | No | New email | |
| name | string | No | New name |
| phone | string | No | New phone |
| description | string | No | New description |
| default_payment_method | string | No | New default payment method |
| address_line1 | string | No | New address |
| address_city | string | No | New city |
| address_postal_code | string | No | New postal code |
| address_country | string | No | New country |
| metadata | string | No | New metadata (JSON) |
Output
Section titled “Output”{ "success": true, "customer": {...}, "customer_id": "cus_NffrFeUfNV2Hib", "fields_updated": ["email", "phone"], "message": "Cliente cus_NffrFeUfNV2Hib actualizado correctamente"}Usage Example
Section titled “Usage Example”Update email and phone
Section titled “Update email and phone”{ "customer_id": "cus_NffrFeUfNV2Hib", "email": "nuevo@email.com", "phone": "+1 555 123 4567"}Change default payment method
Section titled “Change default payment method”{ "customer_id": "cus_NffrFeUfNV2Hib", "default_payment_method": "pm_1234567890"}Update metadata
Section titled “Update metadata”{ "customer_id": "cus_NffrFeUfNV2Hib", "metadata": "{\"plan\": \"premium\", \"upgraded_at\": \"2024-01-15\"}"}API Used
Section titled “API Used”- Endpoint:
POST /v1/customers/{id} - Documentation: Stripe Update Customer
- Only the provided fields are updated
- Metadata is merged with existing metadata
- The payment method must be associated with the customer
Related Nodes
Section titled “Related Nodes”- StripeGetCustomers - Get and search existing customers
- StripeCreateCustomer - Create new customers
- StripeCreateSubscription - Create subscriptions for the customer
- StripeCreatePaymentIntent - Create payments for the customer