2017-09-13 26 views
0

我試圖使用xero api刪除帳戶或更新帳戶。 Api給我例外狀態代碼如400Xero SDK - 發生驗證異常,DELETE方法無法在銀行帳戶上使用

驗證異常發生,DELETE方法不能用於銀行 帳戶。

附上是代碼。

//deleting account using unique id 
    xeroClient.deleteAccount("XXXXX-XxxxX-Xxxx-XXXX-XXXXXXX"); 

//setting deleted status via update() 
Account account=new Account(); 

account.setAccountID("XXXXX-XxxxX-Xxxx-XXXX-XXXXXXX"); 

account.setStatus(AccountStatus.DELETED); 

updateList.add(account); 

xeroClient.updateAccount(updateList); 

我可以知道爲什麼例外,同時通過Xero的API

回答

0

按照Xero的Documentation刪除帳戶我得到; 「銀行」式的

帳戶無法更新

這樣看來,你必須通過Web界面做手工。

相關問題