I'm creating a partial shipment for a bundle product using this api
POST /rest/V1/order/{orderId}/ship
And this is the body
{
"items": [
{
"order_item_id": 87,
"qty": 0
},
{
"order_item_id": 88,
"qty": 1
},
{
"order_item_id": 89,
"qty": 1
},
{
"order_item_id": 90,
"qty": 1
}
],
"tracks": [
{
"track_number": "TRK-0063-01",
"carrier_code": "custom",
"title": ""
}
],
"arguments": {
"extension_attributes": {
"source_code": "default"
}
}
}
where the first item (order_item_id = 87) is the bundle product. But I'm getting an error from the api
{
"message": "Shipment Document Validation Error(s):\nCannot create shipment as bundle product \"\" has shipment type \"Separately\". Bundle product options should be shipped instead."
}
My main questions regarding this are:
- Is the issue that the "Ship Bundle Items" option is set to "Separately"? If so then what should the request body be for this case.
- Is there some other API that should be used for bundle products with the "Separately" option?