archive contacts via the API
Ability to archive a contact. The user should have a way in Xero to view archived contacts and restore them – this could just be another automatic contact group like customers and suppliers are which shows as a tab in contacts where they can view the archive list and restore the selected contacts. Archived contacts should not appear in any of their custom ‘contact groups’ but the links should not be removed so if they are restored they return to the original groups.
Today’s API release provides the ability to archive contacts via the API. http://developer.xero.com/documentation/api/v2-release-notes/#2.50
We still have some work to do on contacts, including allowing developers a way to see merged contacts: http://xero.uservoice.com/forums/5528-xero-core-api/suggestions/89557-when-contacts-are-merged-show-this-status-for-the
And also to merge contacts via the API: http://xero.uservoice.com/forums/5528-xero-core-api/suggestions/5885401-merge-contacts-via-the-api
Please show your support on these requests if they are important to you.
-
Mohan commented
How do I delete a contact via the Xero API?
I'm trying to set ContactStatus = "ARCHIVED" but I get an validation error
"Contact status is invalid"
-
David Coster commented
So further reading has made me aware that the "Contact Status" holds the archive information. So my request becomes to allow PUT/POST to set a "DELETED" status for a contact.
BTW, pity I couldn't see how to edit my original comment in this forum...
-
David Coster commented
I am integrating CRM software with Xero and would like to be able to Archive contacts in Xero via the API when they are retired/archived/deleted in the CRM software. I assume this would be done by having an Archived flag on the Contact and being able to change this flag to make the conatct archived.
It is also very important to be able to restore the contact via the API - reset the flag to un-archived.