Marking a Contact as Active

Zoho Books API v3: Marking a Contact as Active

Zoho Books API v3: Marking a Contact as Active

When a contact is inactive in Zoho Books, they are hidden from the primary list and cannot be selected for new Invoices, Sales Orders, or Bills. The Mark as Active API is a specific "action" endpoint that restores the contact's visibility and usability across the organization.

At Kalki LLP, we recommend using this specific action endpoint rather than a general PUT update, as it triggers the necessary background validation required to re-enable the contact.


1. The Action Request (POST)

To activate a contact, you must perform a POST request to the specialized /active sub-resource.

Endpoint: POST /contacts/{contact_id}/active?organization_id={organization_id}

Request Requirements:

  • Method: POST (Even though no body is required, the method must be POST).

  • URL: Requires the unique contact_id.

  • Body: Empty (No JSON payload is needed).


2. API Response

A successful activation will return a code: 0 and a success message.

Sample JSON Response:

JSON
{
"code": 0,
"message": "The contact has been marked as active."
}

3. Implementation in Deluge (Kalki LLP Automation)

This is a common requirement in "Sync" scripts—for example, if a customer who was previously deactivated in your CRM becomes an "Active" lead again.

Code snippet
// Define the Contact ID to activate
contactID = "460000000026049";
orgID = "123456789";

// Construct the URL
urlPath = "https://www.zohoapis.in/books/v3/contacts/" + contactID + "/active?organization_id=" + orgID;

// Execute the POST request
response = invokeurl
[
url :urlPath
type :POST
connection :"kalki_connection"
];

if(response.get("code") == 0)
{
info "Kalki Success: Customer " + contactID + " is now active in Zoho Books.";
}
else
{
info "Activation failed: " + response.get("message");
}

4. Error Logs & Troubleshooting

Error CodeMeaningFix for Kalki LLP Developers
2Invalid IDThe contact_id provided does not exist in the database.
57UnauthorizedYour OAuth token lacks the ZohoBooks.contacts.UPDATE scope.
Method Not AllowedWrong MethodYou attempted a GET or PUT instead of a POST.
3031Already ActiveThe contact is already in an active state.

5. Why Use "Active/Inactive" Instead of Deleting?

For kalkillp.com clients, we always suggest deactivating instead of deleting for two reasons:

  1. Audit Trail: Deleting a contact with existing transactions is restricted in Zoho Books. Making them inactive preserves the financial history while cleaning up the UI.

  2. API Performance: It is much faster to "toggle" a status via this endpoint than to manage the lifecycle of deleting and recreating records.


Streamline Your Contact Lifecycle

Manual status updates can lead to billing delays and "missing" customer records. Kalki LLP can help you automate the active/inactive status of your vendors and customers based on their real-time engagement in your CRM or external platforms.

    • Related Articles

    • Zoho Books API v3: Marking a Contact as Inactive

      Zoho Books API v3: Marking a Contact as Inactive In Zoho Books, you cannot delete a contact that has associated transactions (Invoices, Bills, or Payments). Instead, the best practice is to mark them as Inactive. This hides the contact from search ...
    • Zoho Books vs Tally: Which is Right for Your Business in 2025?

      Overview: Why Compare Zoho Books and Tally in 2025? In 2025, modern businesses are moving fast—and their accounting software needs to keep up. Two widely used solutions in India are Tally and Zoho Books, but they differ significantly in approach, ...
    • Trigger Assignment and Workflow Rules in Zoho CRM via Deluge & API

      How to Trigger Workflow Rules in Zoho CRM Using Deluge When working with Zoho CRM automation, records created, updated, or deleted via Deluge do not trigger workflow or assignment rules automatically. This is expected behavior. Zoho CRM separates ...
    • Zoho Books API v3: Updating Contact Information

      Zoho Books API v3: Updating Contact Information Business relationships are dynamic—addresses change, contact persons move, and tax statuses get updated. The Update a Contact API allows you to programmatically modify any attribute of an existing ...
    • Zoho Books API v3: Creating a Contact (Customers & Vendors)

      Zoho Books API v3: Creating a Contact (Customers & Vendors) The Contacts API is one of the most frequently used endpoints for automation. Whether you are syncing new sign-ups from your website or importing vendors from a procurement system, ...