ライフサイクル管理される納入商品の変更
Connect REST API を使用して新しいライフサイクルイベント後に納入商品を修正する例を確認します。
例
10 月 1 日に、顧客が 10 月から 12 月までライセンスの件数を 10 件増やすことを希望したとします。顧客は、次の注文商品を作成する修正注文を行います。
- 注文商品
- ID: 1237
- 販売日: 10/01/20 2:00:00pm PST
- 開始日: 10/01/20 9:00:00am PST
- 終了日: 12/31/20 8:59:59am PST
- 金額: $600
- 数量: 10
Change Asset リソースをコールして、納入商品アクション取得元、納入商品アクション、2 つの納入商品状態期間を渡すインテグレーションを構築します。最初の納入商品状態期間は 7 月 1 日から 9 月 30 日まででライセンス数量が 20 の期間を表します。2 つ目の納入商品状態期間は 10 月 1 日から 12 月 31 日まででライセンス数量が 25 の期間を表します。納入商品アクションによって、行われる変更の種類、変更が行われる時期、数量、金額、または月間経常収益の変更に関する情報が提供されます。
- エンドポイント
- /services/data/v50.0/asset-management/assets/02iB00000007bZ6IAI/actions/change
- 入力
-
1{ 2"assetStatePeriods":[ { 3 "startDate":"2020-07-01T09:00:00+08:00", 4 "endDate":"2020-09-30T08:59:59+08:00", 5 "quantity":20.0, 6 "mrr":200.00, 7 "amount":600.00 8 }, 9 { 10 "startDate":"2020-10-01T09:00:00+08:00", 11 "endDate":"2020-12-31T08:59:59+08:00", 12 "quantity":25.0, 13 "mrr":250.00, 14 "amount":750.00 15 }], 16 17"assetAction":{ 18 "category":"Upsells", 19 "actionDate":"2020-10-01T14:00:00+08:00", 20 "quantityChange":5.0, 21 "mrrChange":50.00, 22 "amount":150.00 23 }, 24 25"assetActionSources":[{ 26 "transactionDate":"2020-10-01T14:00:00+08:00", 27 "startDate":"2020-10-01T09:00:00+08:00", 28 "endDate":"2020-12-31T08:59:59+08:00", 29 "quantity":5.0, 30 "productAmount":150.00, 31 "referenceEntityItem":"1WLB00000003geJOAQ" 32 }] 33} - 出力
