Skip to content

Adding Shipment Record via API generates garbled Shipment Details View #5007

Closed
@ipekerti

Description

@ipekerti

On M2 Community v2.0.6

Steps to reproduce

  1. Successfully POSTed a shipment record to an order via API, supplying minimal shipment data

POST: https://m2dev.mydomain.com/index.php/rest/V1/shipment/

{
"entity": {
"order_id": "3"
,"items": [{
"order_item_id": "1"
,"qty": "2"
,"description": "test-20160612-2"
,"sku": "SPCTOOL"
}]
}
}

Expected result (REST response):

{"created_at":"2016-06-12 22:07:10","entity_id":17,"increment_id":"SHI-000000003","order_id":3,"packages":[],"updated_at":"2016-06-12 22:07:10","items":[{"entity_id":17,"order_item_id":1,"parent_id":17,"qty":1,"sku":"SPCTOOL"}],"tracks":[],"comments":null}

However, when viewing (drilling down to) the shipment detail record via the admin site as an admin user, the detail display gets garbled. It seems that it's missing some sort of header for the display not to render properly.

This does not happen if the shipment record was added manually via the admin control panel.

Would anyone have any idea what might be causing this? Am I missing some shipment elements to pass in the API call? According to the docs, I'm already passing more than the required data elements.

Thanks!
ipekerti

shipment-view
shipment-detail-garbled.pdf
shipment-detail-ok-when-added-manually.pdf

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions