My Oracle Support Banner

Inventory Creation Using REST API not Updating Parameter Values Passed in INPUT (Doc ID 2519239.1)

Last updated on NOVEMBER 20, 2019

Applies to:

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

Symptoms

On : NA version, Design Studio

ISSUE STATEMENT

New Inventory Creation using REST API not reflecting all the parameter values while checking in admin console.

STEPS

Lab System: <>/ccdebug/

1. Navigate to Admin

2. Enter Login Credentials

3. URI = /ccadminui/v1/inventories

4. Select POST

5. Enter the following in input which is an example from Bookshelf,

{

"preorderThreshold":0,

"backorderLevel":0,

"preorderLevel":0,

"locationId":"loc1",

"availabilityDate":null,

"backorderThreshold":0,

"id":"sku_ora_123",

"stockThreshold":"10",

"type":"variant",

"stockLevel":"120"

}

6. Submit

7. Result is as below,

{

"displayName": null,

"skuNumber": null,

"links": [

{

"rel": "self",

"href": "<OCC Admin URL>>/ccadminui/v1/inventories"

}

],

"locationInventoryInfo": [

{

"preorderThreshold": 0,

"backorderLevel": 0,

"displayName": null,

"availabilityDate": null,

"availabilityStatusMsg": "inStock",

"stockThreshold": 10,

"stockLevel": 120,

"availableToPromise": null,

"skuNumber": null,

"preorderLevel": 0,

"locationId": "loc1",

"translations": null,

"inventoryId": null,

"backorderThreshold": 0,

"availabilityStatus": 1000

}

],

"skuId": "sku_ora_123"

}

8. Now Select GET

9. URI = /ccadminui/v1/inventories/sku_ora_123

10. Remove the data from Input and Submit

Findings:

Error thrown as below,

ERROR:

{

"errorCode": "25126",

"message": "No inventory record found for sku sku_ora_123.",

"status": "400"

}

Which seems no inventory record with the parameter values passed not created.

 

Changes

 

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
Changes
Cause
Solution


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