You can use the administration interface to set stock levels and stock thresholds, but you must use one of the following methods to set backorder and preorder levels and thresholds:

Before you set backorder and preorder inventory data, you must enable backorders and preorders with the updateInventoryConfiguration endpoint. See Enable preorder and backorder functionality for more information.

Use the getInventory endpoint to retrieve inventory information for a specific product or SKU. For details about using this endpoint, see Access inventory data.

Use the updateInventory endpoint to modify the inventory of a specific SKU. In the request body, specify new values for the properties you want to update.

The following sample request sets the backorder level for SKU to 200. The backorder threshold is 15, at which point the item will show as out of stock on the store. The item will be available to ship on November 1, 2017.

PUT /ccadmin/v1/inventories/xsku5014 HTTP 1.1
Authorization: Bearer <access_token>

{
  "backorderThreshold": 15,
  "backorderLevel": 200
}

The following example shows a sample response:

{
  "preorderThreshold": 0,
  "backorderLevel": 200,
  "displayName": null,
  "availabilityDate": null,
  "availabilityStatusMsg": "backorderable",
  "stockThreshold": 5,
  "stockLevel": 0,
  "availableToPromise": null,
  "skuNumber": "xsku5014",
  "preorderLevel": 0,
  "locationId": null,
  "translations": null,
  "inventoryId": null,
  "backorderThreshold": 15,
  "links": [
    {
      "rel": "self",
       "href": "https://myserver.example.com:7002/ccadmin/v1/inventories/xsku5014
  ],
  "availabilityStatus": 1003,
  "skuId": "xsku5014",
}

Copyright © 1997, 2017 Oracle and/or its affiliates. All rights reserved. Legal Notices