'Statement of Accounts does not exist' error received, when creating PO using api in Zoho Inventory
Here is request json --
- JSONString = {
- "date": "2019-09-24",
- "purchaseorder_number": "PO-6-1",
- "delivery_date": null,
- "delivery_org_address_id": 36221200000056XXX,
- "vendor_id": 362212000000564XXX,
- "attention": "Testing",
- "line_items": [{
- "unit": "Pieces",
- "account_id": 36221200000003XXX,
- "quantity": 1,
- "item_id": 362212000000049XXX,
- "tax_type": "",
- "tax_name": "",
- "name": "One HD",
- "purchase_rate": 85,
- "tax_percentage": 0,
- "item_total": 85.00,
- "tax_id": "",
- "warehouse_id": 362212000000564XXX
- }]
- }
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.