Feature request from arunkasyakar, posted on GitHub Dec 04, 2015
i am trying to add shipment information for an order but i am getting internal error
URL(POST): http://MYHOST/rest/default/V1/shipment/
payload:
{
"entity": {
"billingAddressId": 24,
"customerId": 8,
"emailSent": 0,
"orderId": 12,
"packages": [
{
"extensionAttributes": {}
}
],
"shippingAddressId": 23,
"storeId": 1,
"items": [
{
"orderItemId": 20,
"qty": 1,
"extensionAttributes": {}
}
],
"extensionAttributes": {}
}
}
response:
{
"messages": {
"error": [
{
"code": 500,
"message": "Server internal error. See details in report api/266657385283"
}
]
}
}
api/266657385283:
s:200:"Fatal Error: 'Cannot instantiate interface Magento\Sales\Api\Data\ShipmentPackageInterface' in '/var/www/html/MYPROJECT/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php' on line 73";