この文章は Salesforce 機械翻訳システムを使用して翻訳されました。詳細はこちらをご参照ください。
英語に切り替える

Newer Version Available

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

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 行に入力する必要があります。

メモ

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{"location":"Warehouse-B","mode":"UPDATE"}
36{"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}
37{"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 つの失敗によりリスト全体をキャンセルするかどうかを指定します。