我需要将已发货订单表从SQL Server2016导出到BigCommerce OrderShipments表。
BC API需要将订单行项目作为数组对象。
我已经将SQL表的items列数据类型设置为nvarchar(max)。
这是我的SQL已发货订单表中的最后一个items数组。
[
{“order_product_id”:16,“product_id”:1920,“quantity”:1},
{“order_product_id”:17,“product_id”:1921,“quantity”:1}
]此操作失败,并显示错误
这个数组文本正确吗,有什么建议吗?
谢谢
发布于 2020-03-06 06:09:28
product_id字段看起来是只读的,您是否尝试删除此字段?你也可以分享你在发出这个请求后看到的错误吗?我已经包含了我在下面的沙箱上工作的一个示例请求。
作为POST请求发送到/v2/orders/{order_id}/shipments:
{
"order_address_id":"1",
"shipping_provider":"",
"items": [
{
"order_product_id": 1,
"quantity":1
},
{
"order_product_id": 2,
"quantity":1
}
]
}https://stackoverflow.com/questions/60425791
复制相似问题