Adding Additional Addresses to a Contact

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 essential for businesses managing complex logistics or multi-site service contracts.

At Kalki LLP, we implement this endpoint for clients who need to sync "Site Locations" from their CRM or Project Management tools directly into Zoho Books for accurate dispatching.


1. The Request Structure (POST)

To add a new address, you must perform a POST request targeting the specific contact ID.

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

Key Address Parameters (JSON Body)

ParameterTypeDescription
attentionStringThe person or department at this specific location.
addressStringStreet 1 details (Max 500 chars).
street2StringStreet 2 or building details.
cityStringCity name.
stateStringState or Province.
zipStringPostal or ZIP code.
countryStringCountry name.
phoneStringContact number for this specific site.
faxStringFax number for the location.

2. API Payload Example (JSON)

Each address added via this API is assigned a unique address_id by Zoho Books upon successful creation.

JSON
{
"attention": "Warehouse Manager - North",
"address": "Plot No. 45, Industrial Area Phase II",
"street2": "Near Metro Station",
"city": "Gurugram",
"state": "Haryana",
"zip": "122002",
"country": "India",
"phone": "+91-124-XXXXXXX"
}

3. Implementation in Deluge (Kalki LLP Automation)

Use the invokeUrl task to add secondary addresses dynamically based on external triggers (like a new "Shipping Branch" added in your ERP).

Code snippet
// Target Contact and Org IDs
contactID = "460000000026049";
orgID = "123456789";

// Construct the address map
addrMap = Map();
addrMap.put("attention", "Kalki Site B");
addrMap.put("address", "Sector 44, Tech Center");
addrMap.put("city", "Gurugram");
addrMap.put("state", "Haryana");
addrMap.put("country", "India");

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

if(response.get("code") == 0)
{
newAddrID = response.get("address_info").get("address_id");
info "Kalki Success: New address added with ID: " + newAddrID;
}
else
{
info "Address addition failed: " + response.get("message");
}

4. Error Logs & Troubleshooting

Error CodeMeaningFix for Kalki LLP Developers
2Invalid IDThe contact_id in the URL does not exist.
57UnauthorizedYour OAuth token lacks the ZohoBooks.contacts.CREATE or UPDATE scope.
1005Validation FailedA mandatory field (like address or city) is missing or exceeds character limits.
6024Invalid OrgThe organization_id does not match the account context.

5. Strategic Advantage: Managing Multi-Site Operations

For kalkillp.com clients, managing additional addresses programmatically provides:

  1. Logistical Precision: Ensuring that goods are shipped to the correct branch without manual data entry.

  2. Tax Compliance: Storing various GST-registered addresses for a single customer to ensure correct tax calculation on interstate transactions.

  3. CRM Sync: Keeping your Zoho CRM "Accounts" (with multiple shipping addresses) perfectly mirrored in Zoho Books.


Optimize Your Distribution Network with Kalki LLP

Does your business deal with customers who have dozens of delivery points? Kalki LLP specializes in building robust address-management engines that handle high-volume location data, ensuring your logistics and accounting stay perfectly aligned.

    • Related Articles

    • 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 ...
    • 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, ...
    • 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 ...
    • 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: 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, ...