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