MSI and Posting a Shipment via API
- Dominant language
- PHP
- Stars
- 357
- Forks
- 262
- PR merge metrics
- No merged PRs in 30d
Description
### Preconditions (*)
- Version 2.3.2
- Manage Stock = Yes
- Product Inventory level is 0 for a product that is on an order in the Processing status
### Steps to reproduce (*)
- Post a Shipment via the API (`order/{id}/ship`) to the order mentioned in the pre-requisites
### Expected result (*)
- the shipment gets created in Magento
### Actual result (*)
- API responds with: `"message": "Could not save a shipment, see error log for details"`
- if you try to create a shipment via the UI, you get the below error

Contributor guide
Research direction
Reproduce the failure against version 2.3.2 using the documented order/{id}/ship API endpoint, with Manage Stock enabled and zero inventory for a product on a Processing order. Compare the API and UI error paths and inspect the error log; done means the shipment is created successfully through the API under these conditions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100