Hi all. I have been using the REST API to integrat...
# suitetalkapi
m
Hi all. I have been using the REST API to integrate with another platform. Things are working well however I haven't yet sorted out how to remove an Address from an existing Customer record. I can create an address during a customer-create POST, and I can add an address during a PATCH. I am hoping I can remove an address by structuring the payload correctly in a PATCH to the /customer/id endpoint, however I suspect I will have to GET the AddressBook(List), iterate, and delete an address record there. Any tips would be appreciated, thanks.
b
The addressbook is a keyd sublist with the addressId as the key
follow the directions for replacing a sublist, which is essentially what you expect you need to do.
m
Thanks!