magento / magento/inventory

MSI and Posting a Shipment via API

Open
#2,847 7 comments 0 reactions 0 assignees View on GitHub
needs update
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
![image](https://user-images.githubusercontent.com/5115308/75312311-b6588200-5816-11ea-94c6-66f912c6c3ff.png)

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.