Collect Payment For Customer

chargebee.collect_payment_for_customer
ActionCRM & salesconnection required

Calls the Chargebee API with the connection's credentials.

Charge the customer's payment source and allocate it to their invoices.

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

6 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
customer_id
The Chargebee customer id.
stringYes———
amount
How much to collect, in the currency's smallest unit (cents). Leave empty to collect everything the customer owes.
numberNo—≥ 1—
payment_source_id
The stored payment source to charge. Leave empty to use the customer's primary one.
stringNo—≤ 40 characters—
invoice_allocations
Which invoices the payment settles, as a JSON array of {"invoice_id": "…", "allocation_amount": 1000} objects.
arrayNo—array of object—
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"}}.
objectNo——{"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.
stringNo—≤ 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

FieldTypeExample
customer
The customer, with its balances brought up to date.
object—
transaction
The payment Chargebee attempted; read its 'status' before treating the balance as settled.
object—
{
  "customer": {},
  "transaction": {}
}

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/{customer-id}/collect_payment

See Collect Payment For 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.