Customer Payments in Zoho Cliq
For businesses that depend on cash flow, payment updates are essential for operational decision-making and go beyond simple accounting entries. The sales team needs to be notified when invoices are cleared so that upcoming orders can be released. In contrast, the finance team requires real-time updates to manage accounts effectively.
Manually checking Zoho Books for customer payments or sending updates via email can delay the process. Teams can stay coordinated, reduce manual tracking, and respond promptly by creating a custom automation that sends instant notifications to Zoho Cliq whenever a payment is recorded in Zoho Books.
This guide assists you in setting up a custom workflow to automate real-time payment alerts into a Zoho Cliq channel from Zoho Books.
Step 1: Access Zoho Books
Step 2: Create a custom function
- Navigate to: Settings → Automation → Workflow Actions → Functions → New
- Fill in the following details:
- Function Name: Enter a relevant name (e.g., NotifyPayment)
- Description: Briefly describe the function's purpose.
- Module: Select "Customer Payment"
- Click "Proceed."
- Paste the attached Deluge script in the function editor, then click "Save."
- paymentStatus = customer_payment.get("payment_status");
- if(paymentStatus = "paid")
- {
- customerName = customer_payment.get("customer_name");
- paymentMode = customer_payment.get("payment_mode");
- invoiceNumber = customer_payment.get("invoices").get(0).get("invoice_number");
- amount = customer_payment.get("invoices").get(0).get("amount_applied_formatted");
- orgID = organization.get("organization_id");
- data_center_extension = organization.get("data_center_extension");
- paymentUrl = "https://books.zoho" + data_center_extension + "/app/" + orgID + "#/paymentsreceived/" + customer_payment.get("payment_id");
- messageContent = {"text":"### New payment has been received from _" + customerName + "_","slides":{{"type":"label","data":{{"Invoice Number":invoiceNumber},{"Amount":amount},{"Payment Mode":paymentMode}}}},"buttons":{{"label":"View payment","type":"+","action":{"type":"open.url","data":{"web":paymentUrl}}}},"card":{"theme":"modern-inline"}};
- messageStatus = zoho.cliq.postToChannel("CHANNEL_UNIQUE_NAME",messageContent,"CONNECTION_LINK_NAME");
- info messageStatus;
- }
Step 3: Configuring workflow rule
- Create a Workflow Rule by navigating to: Settings → Automation → Workflow Rules → New
- Fill in the required information:
- Workflow Name: e.g., CustomerPaymentAlert
- Description: e.g., Notify Zoho Cliq on customer payment
- Module: Select "Customer Payment"
- Set Workflow Trigger
- Choose "When to execute" as "On a record being created," then click "Next."
- Set Criteria
- Select "No" for the condition (this will run for all records), then click "Done."
- Configure Action
- Under Immediate Actions, select:
- Action Type: Custom Function
- Choose function: Search and select the function you created earlier.
🎬 Workflow Demo
Watch how it works and a quick walkthrough of customer payments in Zoho Cliq.
Business Benefits and Use Cases
- Receive instant alerts when a payment is logged, enabling quicker reconciliation and accurate cash flow tracking.
- All payment alerts are logged in Cliq, allowing teams to revisit notification history for transparency and compliance checks.
- When customers clear pending invoices, the sales team can trigger the next set of orders or service delivery without waiting for manual updates.
Automating Zoho Books payment updates directly into your communication platform, such as Cliq, can significantly reduce delays. Sales representatives can instantly confirm cleared invoices, while managers gain transparency regarding the company's cash flow without requesting updates. This process helps avoid miscommunication and ensures that your workforce remains as agile as your business.
We're here to help, so don't hesitate to reach out to support@zohocliq.com with any questions or if you need assistance in crafting more tailored workflows.