Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
REST API: PATCH request on Customer object results in *MORE* addresses being added
Hi,
We are trying to do a PATCH request to update an existing customer, and it is working correctly (response code is 204), but every time we do it, NetSuite is adding new AddressBook entries instead of updating the existing entries - the result is the customer ends up with more and more AddressBook entries.
Here is the JSON data we are sending:
{"email":"3m@3m.com","firstName":"Prasanna M Mehta","lastName":"","isinactive":false,"mobilePhone":"526 8426 1095","url":"https:\/\/gooe.c.com","companyname":"3MM2-TaralTest","subsidiary":{"id":"1"},"addressbook":{"items":[{"addressbookaddress":{"id":244887,"addressee":"Default Shipping","addr1":"Main Warehouse Another status 12345","addr2":"3000 Industrial Pkwy"}},{"addressbookaddress":{"id":245124,"addressee":"Secondary Office","addr1":"123 Main St","addr2":"Suite 400"}},{"addressbookaddress":{"id":245125,"addressee":"Default Billing","addr1":"Corporate Headquarters","addr2":"500 Broadway"}}]}}