The Chargebee API provides a suite of powerful endpoints that facilitate automation around subscription billing, invoicing, and customer management. By leveraging this API on Pipedream, you can build complex, event-driven workflows that react to subscription changes, automate billing operations, sync customer data across platforms, and trigger personalized communication, all without managing servers.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
chargebee: {
type: "app",
app: "chargebee",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.chargebee.$auth.sub_url}.chargebee.com/api/v2/subscriptions`,
auth: {
username: `${this.chargebee.$auth.api_key}`,
password: ``,
},
})
},
})
Automated Dunning Management: Set up a workflow to monitor for failed payments. When a payment fails, trigger a sequence of emails to the customer with updated payment links, escalating to account suspension if the user does not update their payment method within a given timeframe.
Subscription Lifecycle Events: Create a workflow that listens for subscription lifecycle events such as sign-ups, upgrades, and renewals. As events occur, sync this data with a CRM like Salesforce, log it to Google Sheets for reporting, or kick off a custom onboarding process using Slack notifications.
Real-Time Analytics Sync: Configure a workflow to capture real-time data on successful transactions. Aggregate this payment data and push it to a data warehouse such as Snowflake or BigQuery, where you can join it with other datasets and perform in-depth analytics.
Emit new event when a customer card has expired. See the Documentation. Please make sure once you deploy this source, you copy/paste the webhook URL to create it in your Chargebee Webhook settings.
Emit new event when a customer is changed. See the Documentation. Please make sure once you deploy this source, you copy/paste the webhook URL to create it in your Chargebee Webhook settings.
Emit new event when a new customer is created. See the Documentation. Please make sure once you deploy this source, you copy/paste the webhook URL to create it in your Chargebee Webhook settings.
Emit new event when the selected event is triggered. See the Documentation. Please make sure once you deploy this source, you copy/paste the webhook URL to create it in your Chargebee Webhook settings.
Emit new event when a new invoice is created. See the Documentation. Please make sure once you deploy this source, you copy/paste the webhook URL to create it in your Chargebee Webhook settings.
Chargebee uses API keys for authentication. When you connect your Chargebee account, Pipedream securely stores the keys so you can easily authenticate to Chargebee APIs in both code and no-code steps.
The API key could be got from Your API Keys page under integration tab in the web client console.
You sub_url is here https://[sub_url].chargebee.com/