Magento 2 API - Create shipping not updating order status

时间:2016-04-25 09:00:32

标签: magento magento2

I am using the Magento 2 API call for creating shipments (/V1/shipment).

The shipment gets created in magento successfully, but the order status does not get moved to complete as I would expect.

My JSON request is as below:

{
    "entity": {
        "billingAddressId": 4,
        "comments": [],
        "items": [
            {
                "orderItemId": 2,
                "qty": 2
            }
        ],
        "orderId": 2,
        "shippingAddressId": 3,
        "totalQty": 2,
        "tracks": []
    }
}

Thanks

2 个答案:

答案 0 :(得分:0)

根据here

,这似乎已经是Magento中的一个已知错误

答案 1 :(得分:0)

在Magento 2中的装运创建中,将订单状态更新为处理。因此,如果您将州处理的状态设置为已完成,则无论何时通过API创建货件,它还会将订单状态更改为已完成