Zoho Books Auto Apply Retainer
For this custom function to work, you will need the following:
- A connection to the Zoho Books API named “zoho_books”.
- At least one Retainer Invoice.
- An Invoice to apply it to.
Zoho Books Connection
Create API Credentials: Gives you a Client ID and Client Secret to use in the next step.
- Go to the Zoho API Console
- Click Add Client and select Server-based Applications
- Fill in the following fields:
- Client Name ->
Zoho Books API
- Homepage URL ->
https://books.zoho.com
- Authorized Redirect URIs ->
https://deluge.zoho.com/delugeauth/callback
- Client Name ->
- Click Update
- Notice the Client ID and Client Secret here. You will need these in the next step, so keep this tab open.
Want to learn even more?
Sign up for one of our Zoho courses!
0 Lessons
Should I Use Zoho Meeting, or Another Webinar/Web Conferencing Tool?
0% Complete
0/0 Steps
Create Custom Connection
- Go to Zoho Books
- Click Settings, select the Automation tab, then choose Custom Functions.
- Select + New Custom Function and give it a random name and module. We will only use this function for a simple test.
- Choose Connections on the right hand side, then Go To Connections.
- Click Add Connection. Choose Custom Service.
- Fill in the following fields (This has to be very exact):
- Service Name ->
Zoho Books
- Service LinkName ->
zoho_books
- Authentication Type ->
oAuth2
- Param Type ->
Header
- Grant Type ->
Authorization Code
- Client ID ->
[YOUR_CLIENT_ID]
- Client Secret ->
[YOUR_CLIENT_SECRET]
- Authorize URL ->
https://accounts.zoho.com/oauth/v2/auth?
- Access Token URL ->
https://accounts.zoho.com/oauth/v2/token?
- Refresh Token URL ->
https://accounts.zoho.com/oauth/v2/token?
- Connection Name ->
Zoho Books
- Connection LinkName ->
zoho_books
- Scope ->
ZohoBooks.fullaccess.all
(Note: Be sure to click the ‘+’ for the scope) - Use credentials of login user ->
UNCHECKED
- Service Name ->
- Click Create and Connect. If asked to authenticate, enter your login details.
Click here to copy these scripts. For more Zoho-wizardry, check out our GitHub page.
Want this functionality, but don't want to do it yourself?
Click here to speak to us!
Need help with your Zoho system?
Hire a full time Zoho System Admin from our poolof highly qualified program graduates!

Related Resources
This set up allows you to insert subform rows and add to picklist dynamically with...
Deluge script for sorting lists containing maps by the specific key (by date-time/alphabetical...
When scripting, ask yourself this question - will this value ever be null? If it's...
This script allows you to create a HTML table in Deluge with dynamic rows, then merge...
When a Zoho CRM record is created/updated/deleted via Deluge, the system does not...
Click Here to Apply Description Location Bastrop/Smithville area Role Entry level...
Click Here to Apply Description Location New Braunfels area Role The Partner Account...
This tutorial will illustrate how to create a custom function (using Deluge scripting)...
This tutorial demonstrates the integration between Shopify and Zoho Inventory. Use...
This tutorial provides a Creator script that loads related records from Zoho CRM...