Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > API Endpoints >

Adding Overpayment throw an error

Started by David Cummin -   in API Endpoints

Hi Xero Dev team.

We have a product that have 100 of our customer using Xero and do financial synchronization to Xero. They all working fine.

Except only 1 customer. Their account always have a problem when try to create Overpayment from our system. So I think this was something gone wrong in their Xero account.

Their OrganizationID is 1dd39752-b3dd-4171-87f3-2588f3ba44ac
And their Organization APIKey is M1SZ9FZKPNMMB9QI5YSGW8IZIOC4RN

The request made to Xero is like this
This code is provided by the developer community - Xero does not warrant it in any way


But we got the validation error 'Account code '610' has been archived, or has been deleted. Each line item must reference a valid account.'

However, getting and account code 610 directly is working fine.
This code is provided by the developer community - Xero does not warrant it in any way


Could you guys made us some advice?
This can occur if there was another account 610 that was previously archived.

The solution is to do the following whilst logged in to the organisation in question:
1) Temporarily re-number the existing account 610
2) Un-archive the account which was previously numbered 610
3) Re-number account 610 to something else, and archive it
4) Change the original (un-archived) account back to 610

If you can raise a case we'll be happy to contact the customer on your behalf and guide them through this.

Regards

Robin
 

Robin Blackstone (Community Manager)  

Hi Robin.

I have done point 1 but cannot find any archived accounts on the Xero account. What should I do in this situation?
 

Gregory Lobo  

Hi Robin/Xero,

Do you have any update on this?
 

Gregory Lobo