-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Getting success message after sending invalid SKU for the inventory/source-items API #38154
Copy link
Copy link
Open
magento/inventory
#3448Labels
Area: APIsComponent: StockIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.A defect with this priority could have functionality issues which are not to expectations.Progress: dev in progressReported on 2.3.0Indicates original Magento version for the Issue report.Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchThe issue has been reproduced on latest 2.4-develop branch
Metadata
Metadata
Assignees
Labels
Area: APIsComponent: StockIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.A defect with this priority could have functionality issues which are not to expectations.Progress: dev in progressReported on 2.3.0Indicates original Magento version for the Issue report.Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchThe issue has been reproduced on latest 2.4-develop branch
Type
Projects
Status
Ready for Development
Preconditions and environment
curl --location 'http://php72.webgility.com/magento230_test/rest/V1/inventory/source-items'
--header 'Authorization: Bearer mbngyhiyvqpbaqq2b1d87onkf686nojp'
--header 'Content-Type: application/json'
--header 'Cookie: PHPSESSID=k60cb85fp23no9aeuqef9v10bd'
--data '{
"sourceItems": [
{
"sku": "dgdfgdxfgdfgd",
"source_code": "default",
"quantity": 0,
"status": 1
}
]
}
Also, the SKU used in the above request is not added to the store.
Steps to reproduce
• enter the data in the request body
• send incorrect SKU
Observe that API is giving 200 status code even the SKU is not existing on the particular store.
Expected result
It should give the error message for the incorrect SKU.
Actual result
API is sending 200 status code .
Additional information
No response
Release note
No response
Triage and priority