0
我正在使用帶有JSON輸出的Magento REST API。我看到一個奇怪的現象是api/rest/orders中的響應。在節點「order_items」中,我有一個訂單項目的列表。 item_id屬性與註冊的product_id不匹配。下面是一個例子:Magento REST API:在api/rest/orders中order_items中的item_id不是product_id
"order_items": [
{
"item_id": "30",
"parent_item_id": null,
"sku": "1043",
"name": "Product name",
"qty_canceled": "0.0000",
"qty_invoiced": "1.0000",
"qty_ordered": "1.0000",
"qty_refunded": "0.0000",
"qty_shipped": "1.0000",
"price": "19.9000",
"base_price": "19.9000",
"original_price": "19.9000",
"base_original_price": "19.9000",
"tax_percent": "0.0000",
"tax_amount": "0.0000",
"base_tax_amount": "0.0000",
"discount_amount": "0.0000",
"base_discount_amount": "0.0000",
"row_total": "19.9000",
"base_row_total": "19.9000",
"price_incl_tax": "19.9000",
"base_price_incl_tax": "19.9000",
"row_total_incl_tax": "19.9000",
"base_row_total_incl_tax": "19.9000"
}
]
沒有註冊的ID爲「30」的產品。
item_id號碼從哪裏來?