Creator Help

Update Records in Zoho Subscriptions


Using zoho.subscriptions.update() Deluge task in Zoho Creator, you can update records in supported modules of Zoho Subscriptions. You can make use of different workflow options in Zoho Creator to automate this process . Update customer details and subscription details of customers as and when you need to, using this task. For example, you can execute "form actions" in Zoho Creator to update a customer's contact information or modify his subscription details. 

 Supported Modules

  • Customers
  • Subscriptions


<response> = zoho.subscriptions.update(<module>, <orgID>, <ID>, <params>);

<response> is the map variable returned as response. It contains the details of the updated record. 
<module> is the name of the Zoho Subscriptions Module from where the record needs to be fetched. For example, "Customers" refers to the Customers module.
<orgID> refers to your organization ID as specified in Zoho Subscriptions. To know your organization ID, click on <YourOrganizationName> > Manage Organizations, from the top-right corner of your Zoho Subscriptions Home page. Click here to learn more about Org ID.
<ID> refers to the ID of the record that needs to be updated
<params> is the map variable that holds the key,value pairs. The map key is the label name as specified in the Zoho Subscriptions module and the map value is the field value as submitted in the ZC form. For example, "display_name" : input.Customer_Name . Here, "display_name" is the label name as specified in the Zoho Subscriptions module and "input.Customer_Name" refers to the value specified in the Contact_Name field in the Zoho Creator form.


  • All the parameters listed above are mandatory. 


1) Update transaction details in Zoho Subscriptions using Zoho Creator form

In this example, we will update subscription details by adding code to a Zoho Creator form and submitting the form. The form consists of a field "Plan Code". Upon submission of the form, the subscription details of the specified record gets updated using the data submitted.

  • Add the following scipt in the "on Success" section of your Zoho Creator form

params = map();
para = map();
para.put("plan_code", input.Plan_Code);
params.put("plan", para);
response = zoho.subscriptions.update("subscriptions", "12345678", "3808000000040107", params);

  • Submitting the form updates the subscription plan according to the submitted value.

"input.Plan_Code" refers to Zoho Creator form field.

 Response Format

Following is the response format returned by Zoho Subscriptions to Zoho Creator:

"message":"Subscription has been updated successfully.",
"payment_terms_label":"Due on Receipt",

If for some reason, the execution fails, the error response will be in the following format:

Error Response for - No records updated

{"message":"The actions is not allowed for this profile as there are no changes made in the plan or addons.","code":26005}

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: