The Chargebee API enables you to do the following:
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: ``,
},
})
},
})
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/