Closed
Description
Preconditions
- Magento v2.1.4
Steps to reproduce
- Create an order containing a bundle of multiple simple products.
- Call the REST salesShipOrderV1 API (POST /V1/order/{orderId}/ship) and send a shipment for the individual items. Example:
{
"appendComment": 1,
"notify": 1,
"comment": {
"comment": "Your order has been shipped, login to view tracking information.",
"is_visible_on_front": 1
},
"items": [
{
"order_item_id": 516,
"qty": 1
},
{
"order_item_id": 517,
"qty": 1
}
],
"tracks": [
{
"title": "Netherlands Post Ground Parcel",
"carrier_code": "custom",
"track_number": "3SCEMW182389201"
}
]
}
Expected result
- Order gets mark completed
Actual result
{
"status": 400,
"headers": {},
"body": {
"message": "Shipment Document Validation Error(s):\nYou can't create a shipment without products."
}
}
Additional info
Reproduced it via Swagger.
Applied admin token and used the POST/V1/order/{orderId}/ship
Used the following query body
{
"items": [
{
"extension_attributes": {},
"order_item_id": 6,
"qty": 1
}
],
"notify": true,
"appendComment": true,
"comment": {
"extension_attributes": {},
"comment": "Your order has been shipped, login to view tracking information.",
"is_visible_on_front": 1
},
"tracks": [
{
"extension_attributes": {},
"track_number": "3SCEMW182389201",
"title": "Netherlands Post Ground Parcel",
"carrier_code": "fixed"
}
],
"packages": [
{
"extension_attributes": {}
}
],
"arguments": {
"extension_attributes": {}
}
}
Where :
Metadata
Metadata
Assignees
Labels
Issue recommended for the contribution dayUSE ONLY for FRAMEWORK RELATED BUG! E.g If bug related to Catalog WEB API use just CatalogGate 2 Passed. Manual verification of the issue description passedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentOnce P0 defects have been fixed, a defect having this priority is the next candidate for fixing.The issue has been reproduced on latest 2.1 releaseThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.3 releaseThe issue has been reproduced on latest 2.4-develop branchAffects critical data or functionality and forces users to employ a workaround.Issue related to Developer Experience and needs help with Triage to Confirm or Reject it
Type
Projects
Status
Done