OmnichannelInventoryService クラス

Order Management (注文管理) の在庫のロケーションに注文を転送します。

名前空間

ConnectApi

OmnichannelInventoryService のメソッド

OmnichannelInventoryService のメソッドは次のとおりです。すべてのメソッドが静的です。

createReservation(createReservationInputRepresentation)

オムニチャネル在庫の在庫予約を作成します。

API バージョン

51.0

Chatter が必要かどうか

いいえ

署名

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

パラメーター

createReservationInputRepresentation
型: ConnectApi.OCICreateReservationInputRepresentation
1 つ以上のオムニチャネル在庫のロケーションまたはロケーショングループの在庫を予約するためのデータ。

fulfillReservation(fulfillReservationInputRepresentation)

1 つ以上の在庫予約を履行します。

API バージョン

51.0

Chatter が必要かどうか

いいえ

署名

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

パラメーター

fulfillReservationInputRepresentation
型: ConnectApi.OCIFulfillReservationInputRepresentation
履行する在庫予約のリストをラップします。

getInventoryAvailability(inventoryAvailabilityInputRepresentation)

1 つ以上の在庫ロケーションまたはロケーショングループの 1 つ以上の商品の在庫状況データを取得します。

API バージョン

51.0

Chatter が必要かどうか

いいえ

署名

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

パラメーター

inventoryAvailabilityInputRepresentation
型: ConnectApi.OCIGetInventoryAvailabilityInputRepresentation
在庫状況を取得する要求の詳細。

getInventoryAvailabilityUploadStatus(uploadId)

在庫状況アップロードジョブの状況を取得します。

API バージョン

51.0

Chatter が必要かどうか

いいえ

署名

public static ConnectApi.OCIUploadInventoryAvailabilityStatusOutputRepresentation getInventoryAvailabilityUploadStatus(String uploadId)

パラメーター

uploadId
型: String
アップロードジョブのアップロード ID。

getPublishLocationStructureStatus(uploadId)

ロケーション構造の公開ジョブの状況を取得します。

API バージョン

51.0

Chatter が必要かどうか

いいえ

署名

public static ConnectApi.OCIPublishLocationStructureStatusOutputRepresentation getPublishLocationStructureStatus(String uploadId)

パラメーター

uploadId
型: String
公開ジョブのアップロード ID。

publishLocationStructure()

在庫ロケーションおよびロケーショングループに関する情報をオムニチャネル在庫に非同期で公開します。公開には IsEnabled 項目と ShouldSyncWithOci 項目の両方が true のレコードが含まれます。このメソッドは公開ジョブの状況を取得するために使用できる ID を返します。

API バージョン

51.0

Chatter が必要かどうか

いいえ

署名

public static ConnectApi.OCIPublishLocationStructureOutputRepresentation publishLocationStructure()

releaseReservation(releaseReservationInputRepresentation)

1 つ以上の既存の在庫予約をリリースして、在庫を解放します。

API バージョン

51.0

Chatter が必要かどうか

いいえ

署名

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

パラメーター

releaseReservationInputRepresentation
型: ConnectApi.OCIReleaseReservationInputRepresentation
リリースする 1 つ以上の在庫予約の詳細。

submitInventoryAvailabilityUpload(fileUpload)

在庫状況データファイルをオムニチャネル在庫にアップロードします。

API バージョン

51.0

Chatter が必要かどうか

いいえ

署名

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

パラメーター

fileUpload
型: ConnectApi.BinaryInput
在庫状況データを含む JSON ファイル。

使用方法

在庫状況データファイルを作成するには、データの形式をロケーションと個々の在庫レコードを表す一連の JSON エントリとして設定します。

在庫のインポートデータに関する考慮事項:

  • 最上位のエントリをカンマではなく改行で区切ります。各エントリを 1 行に入力します。
  • システムが location エントリを読み取ると、後続の在庫エントリは別の location エントリを読み取るまで、その location に割り当てられます。
  • 各 location エントリで、"mode":"UPDATE" を指定します。
  • 各在庫レコードエントリには一意の recordId が必要です。ベストプラクティスは UUID を使用することです。レコード ID によって重複データのインポートが防止されます。
  • 各在庫レコードエントリには effectiveDate が必要です。
  • 各 futures エントリにはゼロ以外の quantity と将来の expectedDate が必要です。
  • システムで作成または更新されるのはデータに含まれているエントリのみです。データに含まれていないエントリは削除されません。ただし、含まれているエントリに空の値が指定されている場合、その値は削除されます。

ファイルサイズ制限は 10 MB であり、ファイルは JSON 形式にする必要があります。データセットが大きい場合は、ヘッドレス Commerce API を使用するか、データを複数のファイルに分割することができます。ヘッドレス Commerce API では、最大 100 MB までの GZIP または JSON ファイルを使用できます。

メモ

次の例はデータ形式を示しています。

わかりやすくするために、この例では最初のいくつかのエントリを複数の行に分けて表示しています。インポートファイルでは、各ロケーションおよび在庫レコードのエントリを 1 行に入力する必要があります。

メモ

{
  "location":"Warehouse-A",  // location identifier
  "mode":"UPDATE"  // must be UPDATE (other operations might be available in future releases)
}
{
  "recordId":"0a87539d-f3dd-47bc-91c7-9c752e39dbe0",  // unique identifier for the inventory record
  "onHand":10,
  "sku":"12389156",
  "effectiveDate":"2020-12-08T14:05:22.790896-07:00",
  "futures":[  // list of future restocks
    {
    "quantity":1,
    "expectedDate":"2021-04-18T14:05:22.781-07:00"
    },
    {
    "quantity":5,
    "expectedDate":"2021-05-18T14:05:22.781-07:00"
    }
  ],
  "safetyStockCount":0
}
{
  "recordId":"0a87539d-f3dd-47bc-91c7-9c752e312345",
  "onHand":10,
  "sku":"9485728",
  "effectiveDate":"2020-12-08T14:05:22.790896-07:00",
  "futures":[
    {
    "quantity":10,
    "expectedDate":"2021-04-18T14:05:22.781-07:00"
    }
  ],
  "safetyStockCount":0
}
{"location":"Warehouse-B","mode":"UPDATE"}
{"recordId":"0a87539d-f3dd-47bc-91c7-9c75abc123de","onHand":10,"sku":"12389156","effectiveDate":"2020-12-08T14:05:22.790896-07:00","futures":[{"quantity":1,"expectedDate":"2021-04-18T14:05:22.781-07:00"}],"safetyStockCount":0}
{"recordId":"0a87539d-f3dd-47bc-91c7-9c75abc98765","onHand":10,"sku":"93867201","effectiveDate":"2020-12-08T14:05:22.790896-07:00","futures":[{"quantity":5,"expectedDate":"2021-04-18T14:05:22.781-07:00"}],"safetyStockCount":0}

transferReservation(transferReservationInputRepresentation)

ロケーションまたはロケーショングループ間で 1 つ以上の在庫予約を移行します。この API では、物理的な数量の変更は行われませんが、移行元の予約済み数量が減り、移行先の予約済み数量が増えます。

API バージョン

51.0

Chatter が必要かどうか

いいえ

署名

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

パラメーター

transferReservationInputRepresentation
型: ConnectApi.OCITransferReservationInputRepresentation
在庫予約移行のリストをラップし、1 つの失敗によりリスト全体をキャンセルするかどうかを指定します。