我已经打过电话[POST] /carts/mine/items
,用正确的承载标题和正文:如何将项目通过API上Magento2
{
"cart_item": 1,
"sku": "MY_SKU",
"qty": 1
}
,我得到了如下因素响应:
{
"message": "Invalid value of \"%value\" provided for the %fieldName field.",
"parameters": {
"fieldName": "qty",
"value": null
}
}
有两件事,我不明白把什么放在cart_item(但它是必需的),我不知道它为什么告诉我qty为null?
如何传递多个一个API调用项目? –