Skip to content

Stripe - Create Customer

This module allows you to register new customers in Stripe with their contact information, address, and optionally an associated payment method.

  • Secret Key: Stripe secret key
ParameterTypeRequiredDescription
credentials_idcredentialYesStripe credentials
emailstringNoCustomer email
namestringNoFull name
phonestringNoPhone number
descriptionstringNoInternal description
payment_methodstringNoPayment method ID (pm_xxx)
address_line1stringNoAddress line 1
address_citystringNoCity
address_statestringNoState/Province
address_postal_codestringNoPostal code
address_countrystringNoCountry code (US, MX, ES)
metadatastringNoJSON with custom metadata
{
"success": true,
"customer": {...},
"customer_id": "cus_NffrFeUfNV2Hib",
"email": "cliente@email.com",
"message": "Cliente cus_NffrFeUfNV2Hib creado correctamente"
}
{
"email": "juan@email.com",
"name": "Juan Pérez"
}
{
"email": "maria@email.com",
"name": "María García",
"phone": "+52 55 1234 5678",
"address_line1": "Av. Reforma 123",
"address_city": "Ciudad de México",
"address_state": "CDMX",
"address_postal_code": "06600",
"address_country": "MX"
}
{
"email": "empresa@cliente.com",
"name": "Empresa ABC",
"metadata": "{\"company_id\": \"12345\", \"plan\": \"enterprise\"}"
}
  • Email is not required but recommended for receipts
  • Metadata allows storing custom information
  • Country codes must be ISO 3166-1 alpha-2
  • StripeGetCustomers - Get and search existing customers
  • StripeUpdateCustomer - Update an existing customer’s data
  • StripeCreateSubscription - Create subscriptions for the customer
  • StripeCreatePaymentIntent - Create payments for the customer
  • StripeCreateInvoice - Create invoices for the customer