Issue with delete contact in Xero using c#
Closed this issue · 3 comments
Hello,
I'm facing a problem in deleting a contact record. I use updatecreate along with the ContactID and change the status to "DELETED". But this change is not recorded in the demo company file I am using.
my_func(Guid del)
{
Contact delete_contact = my_repository.Contacts.Where(c => c.ContactID == del).First();
delete_contact.ContactStatus = "DELETED";
my_repository.UpdateOrCreate(delete_contact);
}
Thank you
Hiya,
You might want to check out the API reference at http://blog.xero.com/developer/api/ It has a section all about contacts and their status types (http://blog.xero.com/developer/api/types/#ContactStatuses).
The status 'deleted' is only supported in the get method so you won't be able to delete a contact through the API.
Thank you i'll look it up :-)
On 2/27/2013 12:41 PM, TDaphneB wrote:
Hiya,
You might want to check out the API reference at
http://blog.xero.com/developer/api/ It has a section all about
contacts and their status types
(http://blog.xero.com/developer/api/types/#ContactStatuses).The status 'deleted' is only supported in the get method so you won't
be able to delete a contact through the API.—
Reply to this email directly or view it on GitHub
#27 (comment).Thank you Daphne sorry if i bothered you with d same question twice.