'Statement of Accounts does not exist' error received, when creating PO using api in Zoho Inventory

'Statement of Accounts does not exist' error received, when creating PO using api in Zoho Inventory

Here is request json --

  1. JSONString = {
  2. "date": "2019-09-24",
  3. "purchaseorder_number": "PO-6-1",
  4. "delivery_date": null,
  5. "delivery_org_address_id": 36221200000056XXX,
  6. "vendor_id": 362212000000564XXX,
  7. "attention": "Testing",
  8. "line_items": [{
  9. "unit": "Pieces",
  10. "account_id": 36221200000003XXX,
  11. "quantity": 1,
  12. "item_id": 362212000000049XXX,
  13. "tax_type": "",
  14. "tax_name": "",
  15. "name": "One HD",
  16. "purchase_rate": 85,
  17. "tax_percentage": 0,
  18. "item_total": 85.00,
  19. "tax_id": "",
  20. "warehouse_id": 362212000000564XXX
  21. }]
  22. }

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.