Skip to content
Chargebee

How to use Chargebee

AccountingPaymentsCost: 1 credit per runTechnical reference

What it is for

Subscription billing and revenue operations platform for managing customers and subscriptions.

Chargebee triggers react instantly to events in the app.

Set up the connection

Authentication type: Custom credentials

  1. 1Sign in to Chargebee and look for the API or integrations section in its settings.
  2. 2Create an API key or token with the permissions you need and copy it.
  3. 3In flooows, add a Chargebee step, click "Connect" and paste it into: Site, API Key.
  4. 4Save the connection: it is stored encrypted and is never shown in plain text.
Connection fieldTypeRequired
SiteTextYes
API KeySecret keyYes

Credentials are stored encrypted in your isolated database, in Spain, and are never shown in plain text.

How to use it in a flow

  • Create Subscription: fill in Customer ID, Item Price ID; use the data selector to map values from earlier steps.
  • Cancel Subscription: fill in Subscription ID; use the data selector to map values from earlier steps.
  • Create Customer: no required fields; use the data selector to map values from earlier steps.

Tips

  • •Test each step before publishing to see the exact output structure.
  • •Enable retries on steps that call external services.

Triggers (8)

Events that can start a flow. Expand each one to see its fields.

Subscription CreatedWebhook (paste the URL in the app)0 fields

No fields to configure.

Subscription CancelledWebhook (paste the URL in the app)0 fields

No fields to configure.

Subscription RenewedWebhook (paste the URL in the app)0 fields

No fields to configure.

Subscription ChangedWebhook (paste the URL in the app)0 fields

No fields to configure.

Payment SucceededWebhook (paste the URL in the app)0 fields

No fields to configure.

Payment FailedWebhook (paste the URL in the app)0 fields

No fields to configure.

Invoice GeneratedWebhook (paste the URL in the app)0 fields

No fields to configure.

Customer CreatedWebhook (paste the URL in the app)0 fields

No fields to configure.

Actions (5)

Operations available as flow steps. Expand each one to see its fields.

Create Subscription14 fields
FieldTypeRequired
Customer IDTextYes
Item Price IDTextYes
QuantityNumberNo
Auto CollectionFixed listNo
Billing CyclesNumberNo
Trial End (Unix Seconds)NumberNo
Start Date (Unix Seconds)NumberNo
Coupon IDTextNo
PO NumberTextNo
Invoice NotesLong textNo
Payment Source IDTextNo
Invoice ImmediatelyYes / NoNo
Net Term DaysNumberNo
MetadataKey / value pairsNo
Cancel Subscription15 fields
FieldTypeRequired
Subscription IDTextYes
Cancel OptionFixed listNo
Cancel At (Unix Seconds)NumberNo
Cancel Reason CodeTextNo
Credit Option for Current Term ChargesFixed listNo
Unbilled Charges OptionFixed listNo
Contract Term Cancel OptionFixed listNo
Account Receivables HandlingFixed listNo
Refundable Credits HandlingFixed listNo
Invoice Date (Unix Seconds)NumberNo
DecommissionYes / NoNo
Termination Fee Item Price IDTextNo
Termination Fee QuantityNumberNo
Termination Fee Unit Price (cents)NumberNo
Termination Fee Service Period (Days)NumberNo
Create Customer23 fields
FieldTypeRequired
Customer IDTextNo
First NameTextNo
Last NameTextNo
EmailTextNo
CompanyTextNo
PhoneTextNo
LocaleTextNo
Preferred Currency CodeTextNo
Auto CollectionFixed listNo
Net Term DaysNumberNo
Allow Direct DebitYes / NoNo
VAT NumberTextNo
TaxabilityFixed listNo
Invoice NotesLong textNo
MetadataKey / value pairsNo
Billing Address: First NameTextNo
Billing Address: Last NameTextNo
Billing Address: Line 1TextNo
Billing Address: Line 2TextNo
Billing Address: CityTextNo
Billing Address: StateTextNo
Billing Address: ZIP / Postal CodeTextNo
Billing Address: CountryTextNo
Get Customer1 fields
FieldTypeRequired
Customer IDTextYes
Custom API Call10 fields
FieldTypeRequired
urlDynamic fieldsYes
MethodFixed listYes
HeadersKey / value pairsNo
Query ParametersKey / value pairsNo
Body TypeList (from your account)No
BodyDynamic fieldsNo
Response is BinaryYes / NoNo
Return Error as OutputYes / NoNo
TimeoutNumberNo
Follow redirectsYes / NoNo

Common errors

Authentication error

The connection expired or the key was revoked: reconnect it from Connections.

Field not found or empty

Re-test the previous step and remap the field in the data selector.

Field types

"List (from your account)" loads options from your connected account; "Dynamic fields" appear depending on earlier choices; in any field you can insert data from previous steps with the data selector (e.g. {{trigger.email}}). More about data between steps