Error received is --
code:1002,"message":"Statement of Accounts does not exist.
I tried changing the account id from purchase_account_id to inventory_account_id, but got no success,also it would be helpful if one could elaborate on the variable account id.