Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
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"}}]}}