Editing Additional Contact Addresses

Zoho Books API v3: Editing Additional Contact Addresses

Zoho Books API v3: Editing Additional Contact Addresses

The Edit Additional Address API is used to modify supplemental locations (like branch offices or specific delivery sites) that have been previously added to a contact. Unlike updating the primary address, which is done via the main Contact PUT request, secondary addresses must be updated through their own specific endpoint.

At Kalki LLP, we implement this for clients who maintain "Site Registries" in external ERPs, ensuring that any change to a site's contact person or street address is instantly reflected in Zoho Books for accurate logistics.


1. The Update Request (PUT)

To update a secondary address, you must perform a PUT request using both the contact_id and the unique address_id.

Endpoint: PUT /contacts/{contact_id}/address/{address_id}?organization_id={organization_id}

Key Address Parameters

ParameterTypeDescription
attentionStringUpdated contact person or department name.
addressStringUpdated Street 1 details.
cityStringUpdated City.
stateStringUpdated State/Province.
zipStringUpdated Postal Code.
phoneStringUpdated site-specific phone number.

2. API Payload Example (JSON)

You only need to send the fields that require modification.

JSON
{
"attention": "Operations Lead - North Wing",
"address": "Unit 202, Tech Park B",
"city": "Gurugram",
"phone": "+91-124-555-0199"
}

3. Implementation in Deluge (Kalki LLP Sync Logic)

If you are syncing an address update from a CRM "Account" to Zoho Books, use this invokeUrl structure.

Code snippet
// Target IDs
contactID = "460000000026049";
addressID = "460000000026155";
orgID = "123456789";

// Construct the update map
updateMap = Map();
updateMap.put("attention", "Site Manager Updated");
updateMap.put("address", "Sector 45, New Block");

// Execute the PUT request
response = invokeurl
[
url :"https://www.zohoapis.in/books/v3/contacts/" + contactID + "/address/" + addressID + "?organization_id=" + orgID
type :PUT
parameters :updateMap.toString()
connection :"kalki_books_connection"
];

if(response.get("code") == 0)
{
info "Kalki Success: Address " + addressID + " has been updated.";
}
else
{
info "Kalki Error: Update failed. " + response.get("message");
}

4. Error Logs & Troubleshooting

Error CodeMeaningFix for Kalki LLP Developers
2Invalid IDEither the contact_id or the address_id does not exist.
57UnauthorizedYour OAuth token lacks the ZohoBooks.contacts.UPDATE scope.
1005Validation ErrorA field (like zip or state) format does not match Zoho’s requirements.
6024Wrong OrgThe organization_id does not match the account context.

5. Pro-Tip: Finding the Address ID

To update an additional address, you must first know its address_id. For kalkillp.com clients, we recommend one of two strategies:

  1. Storage: Store the address_id in your external database during the "Add Address" step.

  2. Lookup: Call the Get Contact Addresses API first to list all sites and filter for the one you need to modify.


Keep Your Logistics Data Precise

Incorrect delivery addresses lead to returned shipments and wasted operational costs. Kalki LLP specializes in building high-fidelity address sync engines that ensure your Zoho Books data is always a perfect mirror of your actual business locations.

    • Related Articles

    • Zoho Books API v3: Adding Additional Addresses to a Contact

      Zoho Books API v3: Adding Additional Addresses to a Contact The Add Additional Address API allows you to store supplemental location data for a customer or vendor. These addresses are distinct from the primary billing/shipping fields and are ...
    • 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: Retrieving Detailed Contact Information

      Zoho Books API v3: Retrieving Detailed Contact Information The Get a Contact API is the standard method for fetching the "Single Source of Truth" for a specific entity in your ledger. It returns a comprehensive JSON object that includes everything ...