Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
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"}}]}}