"code": 29009, "message": "非采购商品无法创建采购订单。"

问题描述 投票:0回答:1

https://www.zohoapis.com/inventory/v1/purchaseorders?organization_id=######

{
    "purchaseorder_number": "BBBBBBA",
    "date": "2015-05-28",
    "vendor_id": 3125431000005946221,
    "line_items": [
        {
            "SKU": "BDC9999978",
            "name":"One Playa Del Carmen"
        //   "item_id": 3125431000002004431
           
        }
    ]


}

我可以添加“SKU”我发现这个问题:

 "code": 29009,
    "message": "Purchase order cannot be created for a non-purchase item."
php laravel-8 zoho zohobooks
1个回答
0
投票

在您的代码中,需要进行两项调整:

  1. 添加正确的项目 ID。
  2. 在API URL下添加查询参数(ignore_auto_number_ Generation)。

一旦做出这些调整。它会完美地工作。

运行代码

单击此处查看输出。

© www.soinside.com 2019 - 2024. All rights reserved.