Using the API, how can I update which address is currently used as the primary address? e.g. mailing, home, billing, ... It would also make sense if the person object included which address is currently set as the primary address. This is helpful to know which address to update.
Submitted
Official response from Kev O'ConnorIt isn't possible to change which address is the primary address via the API. If it is not set manually in the control panel, the primary address is set automatically to the first present address in this hierarchy:
1. home
2. registered
3. billing
4. work
5. mailing
6. user-submitted
7. Twitter
If you wish a different address to be the primary for a group of records, you would need to run a batch update in the control panel.
Share this post
Showing 6 reactions
Sign in with
For the order of email addresses, we use the API to rewrite them in the specific order we want, and I’d consider posting a Python code snippet here if that would help someone out.
Thanks,
Charles