Zoho Books API unlocks the potential to automate and streamline accounting tasks by integrating with Pipedream's serverless platform. With this powerful combo, you can automate invoicing, manage your accounts, reconcile bank transactions, and handle contacts and items without manual input. By setting up event-driven workflows, you can ensure data consistency across platforms, trigger notifications, and generate reports, all while saving time and reducing human error.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
zoho_books: {
type: "app",
app: "zoho_books",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.zoho_books.$auth.api_domain}/books/v3/users/me`,
headers: {
"Authorization": `Zoho-oauthtoken ${this.zoho_books.$auth.oauth_access_token}`,
},
params: {
organization_id: `${this.zoho_books.$auth.organization_id}`,
},
})
},
})
Invoice Automation: Create or update invoices in Zoho Books whenever a new order is placed on your e-commerce platform like Shopify. This can trigger an email to the customer with the invoice attached, streamlining the billing process.
Expense Tracking: Connect Zoho Books to your expense management app like Expensify. Whenever a new expense report is approved in Expensify, create a corresponding expense record in Zoho Books, keeping your accounts up to date.
Customer Synchronization: Sync new customer data from a CRM like Salesforce to Zoho Books. When a new contact is added in Salesforce, automatically create or update the customer information in Zoho Books, ensuring accurate and consistent customer data across business tools.
Once you've connected your account, you can run your workflow and fetch data from the API. You can change any of the code associated with this step, changing the API endpoint you'd like to retrieve data from, or modifying the results in any way.
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 Books uses OAuth authentication. When you connect your Zoho Books account, Pipedream will open a popup window where you can sign into Zoho Books 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 Books API.
Pipedream requests the following authorization scopes when you connect your account:
ZohoBooks.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
?
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}
&
redirect_uri={{oauth.redirect_uri}}
content-type: application/x-www-form-urlencoded
accept: application/json