Create Customer
chargebee.create_customer
ActionCRM & salesconnection required
Calls the Chargebee API with the connection's credentials.
Create a customer, optionally with a billing address.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- API key
- Providers
- Chargebee
- Secret shape
- the site API key: the raw string, {"api_key": "…"}, or the HTTP Basic pair {"username": "<api key>", "password": ""}
- Config it needs
- site, base_url
- Resolved by
- config.connection_id, else node.connection_id
Configuration
9 fields, none required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
customer_id The id to give the new customer. Leave empty and Chargebee generates one. | string | No | — | ≤ 50 characters | — |
first_name The customer's first name. | string | No | — | — | — |
last_name The customer's last name. | string | No | — | — | — |
email The customer's email address; Chargebee sends billing mail here. | string | No | — | email format | — |
phone The customer's phone number. | string | No | — | — | — |
company The company the customer belongs to. | string | No | — | — | — |
billing_address The billing address as a JSON object with Chargebee's own keys (first_name, line1, city, state, zip, country). | object | No | — | — | — |
extra Any other parameter documented for this endpoint, merged into the request body. Nested objects and arrays are form-encoded the way Chargebee documents them, e.g. {"billing_address": {"city": "Walnut"}}. | object | No | — | — | {"billing_address":{"city":"Walnut"}} |
idempotency_key A unique value sent as 'chargebee-idempotency-key' so a retry inside Chargebee's 30-minute window replays the first response instead of charging or creating twice. | string | No | — | ≤ 100 characters | — |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"extra": {
"billing_address": {
"city": "Walnut"
}
}
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
customer The customer resource exactly as Chargebee returned it. | object | — |
card The customer's card, present only when one is on file. | object | — |
{
"card": {},
"customer": {}
}Notes
- The Chargebee site and API key come from the connection; every path below is relative to https://<site>.chargebee.com/api/v2.
- POST /customers
See Create Customer run in a workflow.
In a technical demo we add the Chargebee connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.