Problem Updating Product Stock
(Doc ID 2503002.1)
Last updated on JANUARY 16, 2020
Applies to:
Oracle Commerce Cloud Service - Version N/A and laterInformation in this document applies to any platform.
Symptoms
On : NA version, Store Administration
While updating the product stock/quantity using the admin API it's throwing a 400 bad request error.
ERROR
-----------------------
{"errorCode":"13036","message":"Attempt to set property named childSKUs (sku name) with value = [{quantity=<quantity>, repositoryId=<id>}] (class=class atg.cloud.rest.JSONList). This property failed due to a property type specific test. Enable loggingDebug for details.","status":"400"}
STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Login to the ccdebug.
2. Switch to Admin.
3. Provide the URI "/ccadminui/v1/products/{id}".
4. Update the Input as "{"properties":{"childSKUs":[{"quantity":<quantity>,"repositoryId":"<id>"}]}}".
5. Click on Submit.
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |
References |