My Oracle Support Banner

Problem Updating Product Stock (Doc ID 2503002.1)

Last updated on JANUARY 16, 2020

Applies to:

Oracle Commerce Cloud Service - Version N/A and later
Information in this document applies to any platform.


On :  NA version, Store Administration

While updating the product stock/quantity using the admin API it's throwing a 400 bad request error.



{"errorCode":"13036","message":"Attempt to set property named childSKUs (sku name) with value = [{quantity=<quantity>, repositoryId=<id>}] (class=class This property failed due to a property type specific test. Enable loggingDebug for details.","status":"400"}




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.



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

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.