The Zoho Subscriptions API allows you to manage various aspects of subscription-based billing services. With this API, you can automate tasks such as creating subscriptions, handling customer billing info, and managing invoices. In Pipedream, you can harness this API to build workflows that respond to events in Zoho Subscriptions or to perform actions based on triggers from other apps. This enables seamless automation of billing operations and integration with your broader app ecosystem.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
zoho_subscriptions: {
type: "app",
app: "zoho_subscriptions",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.zoho_subscriptions.$auth.api_domain}/billing/v1/organizations`,
headers: {
"Authorization": `Zoho-oauthtoken ${this.zoho_subscriptions.$auth.oauth_access_token}`,
},
})
},
})
Automate Invoice Reminders: Use Zoho Subscriptions to monitor subscription statuses and send invoice reminders to customers with pending payments. Combine this with an email service like SendGrid to automate the reminder process.
Sync New Subscribers to CRM: When a new subscriber is added in Zoho Subscriptions, automatically add their details to a CRM system, like Salesforce or HubSpot, for sales follow-up and customer relationship management.
Create Slack Notifications for Subscription Changes: Set up a workflow where any update to a subscription in Zoho Subscriptions triggers a notification in a designated Slack channel. This can keep your team informed about new sign-ups, cancellations, or payment issues.
Issues Connecting My Account: IP Allowlist
If your Zoho security policy includes an IP Allowlist, update it to connect your account:
44.223.89.56
- 44.223.89.63
.After connecting your account, make sure to run the workflow within a VPC.
Zoho Billing uses OAuth authentication. When you connect your Zoho Billing account, Pipedream will open a popup window where you can sign into Zoho Billing and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Zoho Billing API.
Pipedream requests the following authorization scopes when you connect your account:
ZohoSubscriptions.fullaccess.all
GET
https://accounts.{{custom_fields.base_api_uri}}/oauth/v2/auth
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
&
prompt=consent
&
access_type=offline
POST
{{custom_fields.accounts_server}}/oauth/v2/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}
POST
{{custom_fields.accounts_server}}/oauth/v2/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}