Tip #1 - 30 Days Money Back Guarantee

Tip #1 - 30 Days Money Back Guarantee

Hello everyone,

As discussed previously in this thread, we are going to come up with a custom function every week to address specific business scenarios. To start off, this week we will be looking into one of the most famous requirements - 30 Days Money Back Guarantee.

Business Scenario:

Most business organizations have cancellation policies and the most common one is the money back guarantee. It is a simple guarantee that if a customer is not satisfied with a product and cancels the subscription within the specified period, he/she will be provided with a refund.

Let's assume that we have to handle the above scenario in Zoho Subscriptions manually. We have to go to that particular subscription, and then check the activation date and the cancellation date to make sure the cancellation is done within 30 days. Then, we can initiate a refund.

This might seem pretty easy if you have to handle refunds for a couple of customers every now and then. However, as the business grows exponentially and quite a handful of customers starts requesting for refunds more frequently, the manual approach will cause a bottleneck. Also, refunding all these payments manually may cause a significant amount of time which can be put into developing your business.

Now, wouldn't it be easier if this entire process could be automated and you could stop worrying about it? This is where the custom functions save your day. With a one-time effort of setting up a custom function, you can completely automate the above scenario.

Logic Explanation:

You can refer the code through this GitHub link. The code is written in Deluge script, which is easily understandable to non-programmers.

In this code, whenever a subscription is cancelled, we initially check if the cancellation date is within 30days from the activation date. If the subscription is cancelled within 30 days, we then retrieve the details of the last sent Invoice and check for the status of the invoice.

1) If the invoice is already fully paid, we check for the mode of payment. If the invoice is paid online, a credit note is raised for the paid amount and it is refunded. If the invoice is paid offline, we simply raise a credit note for the paid amount.

2) If the invoice is not yet paid and is still overdue, we simply mark that invoice as void.

If an error occurs in any of the API requests, an email will be sent to the admin email address with the request URL and the reason for the error.

Getting started with the Custom Functions:

1. Go to Settings -> Automation -> Custom Functions.

2. Create a new Custom function. Provide a name for the function. For example: "Auto refund cancellation".

3. Choose the module as 'Subscriptions' and the Predefined event as 'Cancel Subscription'.

4. Copy the code which was given above.

5. Please paste your authtoken in the authtoken variable. (Refer this documentation to know how to generate your authtoken)

6. Also, in the dayToConsider variable, replace your own value for the days (within which the amount can be refunded).

7. Save the Custom function and you are good to go.

Found this useful? Try it out and let us know how it works! If you have questions, do not hesitate to ask!

Cheers,
Sasidaran K,
Zoho Subscriptions.

    Access your files securely from anywhere


            Zoho FSM Video Tutorials


                  All-in-one knowledge management and training platform for your employees and customers.






                                        Zoho Developer Community




                                                              • Desk Community Learning Series


                                                              • Digest


                                                              • Functions


                                                              • Meetups


                                                              • Kbase


                                                              • Resources


                                                              • Glossary


                                                              • Desk Marketplace


                                                              • MVP Corner


                                                              • Word of the Day


                                                              • Ask the Experts



                                                                        • Sticky Posts

                                                                        • Tip #4 : Refer and Earn Workflow system for your Subscription Business

                                                                          Hello everyone, We've been coming up with a tip every week to address specific business scenarios which can be implemented for your business. In continuation to the previous post, this week we will be seeing about how you can implement the Refer and Earn Workflow system to acquire more customers. Why are Referrals important? Customer Acquisition is crucial for any business to sustain itself in a constantly evolving market. It involves persuading new consumers to purchase your products. Customers
                                                                        • Tip #2 - Cancellation of Offline Subscriptions based on the Expected Payment Date

                                                                          Hello everyone, As you all know, we are coming up with a custom function workflow every week to address specific business scenarios. In continuation of this previous blog, this week we will be seeing about Cancellation of Offline Subscriptions based on the Expected Payment Date. Business Scenario: In general, for any business, the customers make payments via online as well as offline. In case of subscription where the automatic collection of charge is enabled (aka online subscription), the customer's
                                                                        • Tip #3 : Send SMS Reminders for your Subscription Business

                                                                          Hello everyone, As you all know, we are coming up with a tip every week to address specific business scenarios. In continuation to the previous blog, this week we will be seeing how you can use SMS reminders for your Subscription Business. Using SMS messages for your Subscription Business: While managing your subscription business, more often than not, you need to keep your customers informed about upcoming renewals, payment reminders and cancellations. By keeping them informed in advance, you can
                                                                        • Tips And Tricks - Announcement

                                                                          Hello everyone, Every business is unique and each of them follows a specific workflow. While managing your customers' subscriptions with Zoho, you might have some needs unique to your business. Custom Functions helps you address such needs. This is a start to a series of posts, where we will be coming up with a custom function workflow every week that addresses specific business scenarios. Watch this space for further updates! Also, if you have any specific business scenario which needs to be addressed,
                                                                        • Tip #6 : Accessing external URLs from Zoho Subscriptions

                                                                          Hello everyone, We have been sharing a tip every week to address specific business scenarios which you can implement for your subscription business. Last week, we shared a tip about implementing the Approval Workflow system. This week, let's look at how you can access external URLs with the help of Custom Link. Business Scenario: Every business functions differently and has its unique requirements. At times, businesses might want to access other websites or applications by appending specific information


                                                                        Manage your brands on social media



                                                                              Zoho TeamInbox Resources



                                                                                  Zoho CRM Plus Resources

                                                                                    Zoho Books Resources


                                                                                      Zoho Billing Resources

                                                                                        Zoho Projects Resources


                                                                                          Zoho Sprints Resources


                                                                                            Qntrl Resources


                                                                                              Zoho Creator Resources



                                                                                                  Zoho CRM Resources

                                                                                                  • CRM Community Learning Series

                                                                                                    CRM Community Learning Series


                                                                                                  • Kaizen

                                                                                                    Kaizen

                                                                                                  • Functions

                                                                                                    Functions

                                                                                                  • Meetups

                                                                                                    Meetups

                                                                                                  • Kbase

                                                                                                    Kbase

                                                                                                  • Resources

                                                                                                    Resources

                                                                                                  • Digest

                                                                                                    Digest

                                                                                                  • CRM Marketplace

                                                                                                    CRM Marketplace

                                                                                                  • MVP Corner

                                                                                                    MVP Corner






                                                                                                      Design. Discuss. Deliver.

                                                                                                      Create visually engaging stories with Zoho Show.

                                                                                                      Get Started Now


                                                                                                        Zoho Show Resources

                                                                                                          Zoho Writer

                                                                                                          Get Started. Write Away!

                                                                                                          Writer is a powerful online word processor, designed for collaborative work.

                                                                                                            Zoho CRM コンテンツ


                                                                                                              Nederlandse Hulpbronnen


                                                                                                                  ご検討中の方




                                                                                                                            • Recent Topics

                                                                                                                            • Looking to Auto-Merge Duplicate Tickets

                                                                                                                              Hi guys, I need the option to auto-merge duplicte tickets and i dont see this option available in automation , Can this be done? And if so how, Cheers
                                                                                                                            • Add bulk ticket merge functionality in Zoho Desk

                                                                                                                              Hi Zoho Team, We would like to request a feature that allows agents to merge multiple tickets in bulk instead of merging them one by one. Current Limitation At the moment, tickets can only be merged individually. This becomes very time-consuming when
                                                                                                                            • Spell Check Icon Disappeared yesterday for Agent Comments

                                                                                                                              We always use "Public Comment" when communicating on tickets with our customers. For years we had the "Spell Check" icon when typing a comment. Yesterday, this icon disappeared for comments and is only avaialable when drafting a response via "Reply."
                                                                                                                            • Spell Checker in Zoho desk

                                                                                                                              Is there a way to set always check spelling before sending? Outlook does this and it is a handy tool to avoid typos
                                                                                                                            • Adding additional records dynamically to a subset of fields

                                                                                                                              I'm trying to create a service ticket layout which will be passed to a Creator application for Field Service Management (FSM) purposes. We need to be able to define a specific subset of service product fields such as "Service Product", "Service Product Serial Number", "Service Product Warranty End Date" and "Service Product Current Warranty Status". We may need to record more than one of these subsets, in case the customer has more than one product which has to be serviced on their site. It seems
                                                                                                                            • When Will Existing Zoho Campaigns 2.0 Orgs Convert to 3.0?

                                                                                                                              Hi Zoho team, I'm very excited to start using Campaigns 3.0, but I don't see any notifications related to moving my org to the new version. What is the roll-out plan for existing users? Thanks
                                                                                                                            • Date Override hangs

                                                                                                                              When trying to add date overrides, the system hangs on save and never goes through.
                                                                                                                            • Date Selection?

                                                                                                                              Is there no way to select a specific date in bookings? For example we have evaluations certain Saturday's a month and would like to be able to book just for those dates. Is there anyway to do this?
                                                                                                                            • Zoho Desk API Custom Module not all data is showing up

                                                                                                                              When i get a record by id for my new module: responseDetailed = invokeurl [ url :"https://desk.zoho.eu/api/v1/cm_tickets_CM/" + record.getJSON("id") type :GET parameters:"" connection:"desk_connection" ]; The response doesnt contain all fields, the field
                                                                                                                            • Unable to receive email from domains related to arib.com. Zoho error in reports mention error 554 5.7.1 rfc not compliant

                                                                                                                              Dear Zoho experts, I am not able to receive email from domain ariba.com and ansmtp.ariba.com. When I check the delivery logs of my Zoho account it shows the status as 'failure' and reason mentioned is 554 5.7.1 This mail is rejected as it is not RFC compliant.
                                                                                                                            • Pausing journey's over holiday's

                                                                                                                              Has anyone found a work around to pausing journey's for a brief time (around holiday's) and turning them back on after? My understanding is freezing the journey only keeps new leads from entering, not pausing the leads already in the journey.  Thank
                                                                                                                            • Trying to show the actual Terms & Conditions on PDF

                                                                                                                              Hi, On Zoho forms I am trying to have the actual terms and conditions that the user needs to accept also show on the pdf that they receive after. Right now it only says "Agreed". Please help.
                                                                                                                            • Using decisions box as condition for a script "on validate"

                                                                                                                              Hello, I have a script on validate to check few thing and cancel submission if need be. The script works perfecly. I add a condition (admin permission) for that script not to be initiated if a decision box is checked (I also tried radio button). I use
                                                                                                                            • How to stop ex-employees of client companies from logging in to a Zoho Creator portal with MFA?

                                                                                                                              Hi everyone, I manage a Zoho Creator portal for our clients and have a security concern about MFA for portal users. I’d like to know if anyone has faced this and how you handled it. Setup Creator plan: Enterprise “Enforce Multi-Factor Authentication (MFA)
                                                                                                                            • [Free webinar] Learning Table Series | Chat with intent: From conversations to intelligent actions

                                                                                                                              Hello everyone, We are excited to invite you to another edition of the Learning Table Series webinar. With AI-powered capabilities, the way users interact with applications is evolving. Instead of navigating multiple screens to find information, users
                                                                                                                            • how do I move email responses to the top of the of the email body?

                                                                                                                              when someone responds to my email, their response is at the very bottom of the email. I have to scroll down to the bottom to see what they wrote. how can I move the response to the top of the email?
                                                                                                                            • OTP New email access

                                                                                                                              adding a new email sends a OTP code to the new email which I can't access. It send an OTP code but I can't access it without getting the new OTP code.
                                                                                                                            • M

                                                                                                                              Hi Zoho Support team, I got notification error in my email account when i sending email to my client (reply). It said that i exceeded limit 1600 send email per day, however i never reach that number. Could you check that ?
                                                                                                                            • How do I reorder the item table columns in my invoice template?

                                                                                                                              There must be a way I just cannot find it. Anyone?
                                                                                                                            • API - Add Tags to Search Articles

                                                                                                                              The ability to "search articles" programmatically via API would be meaningfully enhanced by allowing that search to filter for (or out) certain tags. There are lots of potential use cases here. The one that caused me to write this post is for agentic
                                                                                                                            • [Webinar] AI-powered writing and automation in Zoho Writer

                                                                                                                              Live webinar on November 12, 2026 | Time: 2 PM IST | 2 PM EST Hi, When organizations create documents, they often start from scratch. Then they need to proofread and translate them. Doing all of this manually takes time, and errors and hard-to-read writing
                                                                                                                            • What is "Child Sales Order"

                                                                                                                              When I click system predefine "Created Sales Order" button, sometimes will display "Create Child Sales Order" instead of "Create Sales Order", in "Child Sales Order" Create Page, system will not allow you to save the record. only one solution is refresh
                                                                                                                            • Zoho Tables is now live in Australia & New Zealand!

                                                                                                                              Hey everyone! We’ve got some great news to share — Zoho Tables is now officially available in the Australian Data Center serving users across Australia and New Zealand regions! Yes, it took us a bit longer to get here, but this version of Zoho Tables
                                                                                                                            • Enhancements for Currencies in Zoho CRM: Automatic exchange rate updates, options to update record exchange rates, and more

                                                                                                                              The multi-currency feature helps you track currencies region-wise. This can apply to Sales, CTC, or any other currency-related data. You can record amounts in a customer’s local currency, while the CRM automatically converts them to your home currency
                                                                                                                            • ZoHo Mail & MCP connectors

                                                                                                                              Is ZoHo working an MCP connector for mail?? I find it very useful in Gmail to have Claude summarize messages for me. Thanks Jim P.S. Sorry if this is the incorrect forum. Mods please adjust as necessary.
                                                                                                                            • Optimize your Knowledge Base for better visibility by allowing search engine crawling and indexing

                                                                                                                              All you need to know about no-follow and no-index in KB. What are article crawlability and indexability? Crawlability and indexability are vital for making an article visible and accessible to search engines. When a search engine crawls an article, it
                                                                                                                            • Team ticket accessibility when tickets are set to private

                                                                                                                              Hello! I would like to know if agents would be able to see tickets assigned to their team (but not to any specific user) if ticket sharing was set to Private. Thanks in advance, Luca
                                                                                                                            • Now you can bring your Zoho Tables data to AI Assistants with Zoho MCP!

                                                                                                                              Imagine asking your AI assistant questions about your Zoho Tables data, exploring records, or getting insights — all through natural language. With Zoho MCP (Model Context Protocol), you can connect Zoho Tables to compatible AI assistants and let them
                                                                                                                            • Followed Tickets view

                                                                                                                              Hello, following a ticket makes no sense at all / offers no additional value.... Of course I can install and use the add-on My Followed Tickets for Zoho Desk, but what does it do for me? Not much! It cannot be used across departments! The range of functions
                                                                                                                            • iPhone Duo support for Zoho Desk app?

                                                                                                                              When is iPhone Duo support expected for the Desk app? It’s miserable to use in its current form on the device. Please optimize for the new Duo!
                                                                                                                            • Zia AI capabilities now available in all paid editions

                                                                                                                              Hello everyone, We are expanding the availability of AI-powered features in Desk to the other paid subscriptions from 7th July 2026. Right now, the following AI-based features are available for Enterprise edition users: Intelligence: Sentiment analysis,
                                                                                                                            • Solution to Import OST File into Office 365.

                                                                                                                              In today’s digital workplace, organizations are rapidly moving toward cloud-based email systems for better flexibility, security, and collaboration. Microsoft 365 has become one of the most widely used platforms for business communication. A common requirement
                                                                                                                            • Sales Tax paid upon Delivery and Installation of Job

                                                                                                                              We are new to Zoho Books. We pay sales tax when we deliver and install a job in a customer's home. For instance, if I received an order in September but deliver it in November. How can I get a report of all delivered sales in the month of November so
                                                                                                                            • This user is not allowed to add in Zoho. Please contact support-as@zohocorp.com for further details

                                                                                                                              Hello, Just signed up to ZOHO on a friend's recommendation. Got the TXT part (verified my domain), but whenever I try to add ANY user, I get the error: This user is not allowed to add in Zoho. Please contact support-as@zohocorp.com for further details I have emailed as well and writing here as well because when I searched, I saw many people faced the same issue and instead of email, they got a faster response here. My domain is: raisingreaderspk . com Hope this can be resolved.  Thank you
                                                                                                                            • How do i change my login email address

                                                                                                                              I need help
                                                                                                                            • Discover the Latest Hosted Pages Enhancements

                                                                                                                              We've made several enhancements to Hosted Payment Pages in Zoho Billing, including a redesigned single page checkout, custom field configuration, mobile OTP verification, and the ability to share a single payment page for multiple items. You can also
                                                                                                                            • Découvrez l’API Zoho Social : Créez des workflows personnalisés pour vos réseaux sociaux

                                                                                                                              Chaque entreprise a sa propre façon de gérer ses activités sur les réseaux sociaux. Certaines publient leur contenu depuis un CMS interne, d'autres synchronisent leurs campagnes avec leur CRM. Les agences, quant à elles, gèrent plusieurs dizaines de marques,
                                                                                                                            • New domain

                                                                                                                              I need assistance to add a new domain. I already paid for the monthly upgrade. Please provide instruction on the steps needed to add a new domain to start an updated email address.
                                                                                                                            • Stock management : updates of quantities

                                                                                                                              Hello, We are having many troubles with Zoho CRM on Stock Management. - We changed some names and added some status to the possible Status of SO and PO. - Now, the stock management has gone crazy. If we create a S.O., it increase the quantity in demand
                                                                                                                            • Splitting Expenses?

                                                                                                                              If I have an expense that falls under more than one expense category, is it possible to split it out? What's the timeline for this feature? Is there any way around it at the moment? Thanks!
                                                                                                                            • Next Page