Newer Version Available

This content describes an older version of this product. View Latest

OmnichannelInventoryService Class

Route orders to inventory locations in Order Management.

Namespace

ConnectApi

OmnichannelInventoryService Methods

The following are methods for OmnichannelInventoryService. All methods are static.

createReservation(createReservationInputRepresentation)

Create an inventory reservation in Omnichannel Inventory.

API Version

51.0

Requires Chatter

No

Signature

public static ConnectApi.OCICreateReservationOutputRepresentation createReservation(ConnectApi.OCICreateReservationInputRepresentation createReservationInputRepresentation)

Parameters

createReservationInputRepresentation
Type: ConnectApi.OCICreateReservationInputRepresentation
Data to reserve inventory at one or more Omnichannel Inventory locations or location groups.

fulfillReservation(fulfillReservationInputRepresentation)

Fulfill one or more inventory reservations.

API Version

51.0

Requires Chatter

No

Signature

public static ConnectApi.OCIFulfillReservationOutputRepresentation fulfillReservation(ConnectApi.OCIFulfillReservationInputRepresentation fulfillReservationInputRepresentation)

Parameters

fulfillReservationInputRepresentation
Type: ConnectApi.OCIFulfillReservationInputRepresentation
Wraps a list of inventory reservations to fulfill.

getInventoryAvailability(inventoryAvailabilityInputRepresentation)

Retrieve inventory availability data for one or more products at one or more inventory locations or location groups.

API Version

51.0

Requires Chatter

No

Signature

public static ConnectApi.OCIGetInventoryAvailabilityOutputRepresentation getInventoryAvailability(ConnectApi.OCIGetInventoryAvailabilityInputRepresentation inventoryAvailabilityInputRepresentation)

Parameters

inventoryAvailabilityInputRepresentation
Type: ConnectApi.OCIGetInventoryAvailabilityInputRepresentation
Details of a request to retrieve inventory availability.

getInventoryAvailabilityUploadStatus(uploadId)

Retrieve the status of an inventory availability upload job.

API Version

51.0

Requires Chatter

No

Signature

public static ConnectApi.OCIUploadInventoryAvailabilityStatusOutputRepresentation getInventoryAvailabilityUploadStatus(String uploadId)

Parameters

uploadId
Type: String
The uploadId of the upload job.

getPublishLocationStructureStatus(uploadId)

Retrieve the status of a publish location structure job.

API Version

51.0

Requires Chatter

No

Signature

public static ConnectApi.OCIPublishLocationStructureStatusOutputRepresentation getPublishLocationStructureStatus(String uploadId)

Parameters

uploadId
Type: String
The uploadId of the publish job.

publishLocationStructure()

Asynchronously publish information about your inventory locations and location groups to Omnichannel Inventory. The publish includes records whose IsEnabled and ShouldSyncWithOci fields are both true. This method returns an ID that you can use to retrieve the status of the publish job.

API Version

51.0

Requires Chatter

No

Signature

public static ConnectApi.OCIPublishLocationStructureOutputRepresentation publishLocationStructure()

releaseReservation(releaseReservationInputRepresentation)

Release one or more existing inventory reservations to free up that inventory.

API Version

51.0

Requires Chatter

No

Signature

public static ConnectApi.OCIReleaseReservationOutputRepresentation releaseReservation(ConnectApi.OCIReleaseReservationInputRepresentation releaseReservationInputRepresentation)

Parameters

releaseReservationInputRepresentation
Type: ConnectApi.OCIReleaseReservationInputRepresentation
Details of one or more inventory reservations to release.

submitInventoryAvailabilityUpload(fileUpload)

Upload an inventory availability data file to Omnichannel Inventory.

API Version

51.0

Requires Chatter

No

Signature

public static ConnectApi.OCIUploadInventoryAvailabilityOutputRepresentation submitInventoryAvailabilityUpload(ConnectApi.BinaryInput fileUpload)

Parameters

fileUpload
Type: ConnectApi.BinaryInput
JSON file containing inventory availability data.

Usage

Use this JSON format for the data file:

Don’t separate location and inventory record entries with commas.

Note

1{
2  "location":"Warehouse-A",  // location identifier
3  "mode":"UPDATE"  // must be UPDATE (other operations might be available in future releases)
4}
5{
6  "recordId":"0a87539d-f3dd-47bc-91c7-9c752e39dbe0",  // unique identifier for the inventory record
7  "onHand":10,
8  "sku":"12389156",
9  "effectiveDate":"2020-12-08T14:05:22.790896-07:00",
10  "futures":[  // list of future restocks
11    {
12    "quantity":1,
13    "expectedDate":"2021-04-18T14:05:22.781-07:00"
14    },
15    {
16    "quantity":5,
17    "expectedDate":"2021-05-18T14:05:22.781-07:00"
18    }
19  ],
20  "safetyStockCount":0
21}
22{
23  "recordId":"0a87539d-f3dd-47bc-91c7-9c752e312345",
24  "onHand":10,
25  "sku":"9485728",
26  "effectiveDate":"2020-12-08T14:05:22.790896-07:00",
27  "futures":[
28    {
29    "quantity":10,
30    "expectedDate":"2021-04-18T14:05:22.781-07:00"
31    }
32  ],
33  "safetyStockCount":0
34}
35{
36  "location":"Warehouse-B",
37  "mode":"UPDATE"
38}
39{
40  "recordId":"0a87539d-f3dd-47bc-91c7-9c75abc123de",
41  "onHand":10,
42  "sku":"12389156",
43  "effectiveDate":"2020-12-08T14:05:22.790896-07:00",
44  "futures":[
45    {
46    "quantity":1,
47    "expectedDate":"2021-04-18T14:05:22.781-07:00"
48    }
49  ],
50  "safetyStockCount":0
51}
52{
53  "recordId":"0a87539d-f3dd-47bc-91c7-9c75abc98765",
54  "onHand":10,
55  "sku":"9386720",
56  "effectiveDate":"2020-12-08T14:05:22.790896-07:00",
57  "futures":[
58    {
59    "quantity":5,
60    "expectedDate":"2021-04-18T14:05:22.781-07:00"
61    }
62  ],
63  "safetyStockCount":0
64}

transferReservation(transferReservationInputRepresentation)

Transfer one or more inventory reservations between locations or location groups. This API doesn’t change physical quantities, but reduces the reserved quantity at the source and increases it at the destination.

API Version

51.0

Requires Chatter

No

Signature

public static ConnectApi.OCITransferReservationOutputRepresentation transferReservation(ConnectApi.OCITransferReservationInputRepresentation transferReservationInputRepresentation)

Parameters

transferReservationInputRepresentation
Type: ConnectApi.OCITransferReservationInputRepresentation
Wraps a list of inventory reservation transfers and specifies whether a single failure cancels the entire list.