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

Promotion Execution Input

プロモーション割引が関連付けられたカートとその品目。

このリクエストボディは、バージョン 56.0 以降では使用できません。バージョン 56.0 以降では、Promotion Evaluation Input を使用してください。

重要

ルート XML タグ
<salesTransaction>
JSON の例 (トランザクション全体に適用される割引率)
1{
2   "effectiveAccountId":"001RM000004ywq7YAA",
3   "salesTransaction":{
4      "attributes":{
5         "type":"WebCart"
6      },
7      "Id":"0a6RM00000009XAYAY",
8      "CurrencyIsoCode":"USD",
9      "WebCartAdjustmentGroups":{
10         "records":[
11            {
12               "attributes":{
13                  "type":"WebCartAdjustmentGroup"
14               },
15               "AdjustmentSource":"Promotion",
16               "AdjustmentType":"AdjustmentPercentage",
17               "AdjustmentValue":-20,
18               "PriceAdjustmentCauseId":"0c8RM0000004CrMYAU",
19               "Priority":2
20            }
21         ]
22      },
23      "CartItems":{
24         "records":[
25            {
26               "attributes":{
27                  "type":"CartItem"
28               },
29               "Id":"0a9RM0000004OseYAE",
30               "Product2Id":"01tRM000000QVWKYA4",
31               "Quantity":15,
32               "SalesPrice":45.00,
33                "CartItemPriceAdjustments":{
34                  "records":[
35                     {
36                        "attributes":{
37                           "type":"CartItemPriceAdjustment"
38                        },
39                        "AdjustmentSource":"Promotion",
40                        "AdjustmentType":"AdjustmentPercentage",
41                        "AdjustmentValue":"-10.0",
42                        "PriceAdjustmentCauseId":"0c8RM00000000xUYAQ",
43                        "Priority":1
44                     }
45                  ]
46               }
47            },
48            {
49               "attributes":{
50                  "type":"CartItem"
51               },
52               "Id":"0a9RM0000004OsfYAE",
53               "Product2Id":"01tRM000000QVW7YAO",
54               "Quantity":5,
55               "SalesPrice":99.50
56            }
57         ]
58      }
59   }
60}
JSON の例 (1 つの品目に適用される特定の調整金額)
1{
2   "effectiveAccountId":"001RM000004ywq7YAA",
3   "salesTransaction":{
4      "attributes":{
5         "type":"WebCart"
6      },
7      "Id":"0a6RM00000009XAYAY",
8      "CurrencyIsoCode":"USD",
9      "WebCartAdjustmentGroups":{
10         "records":[
11            {
12               "attributes":{
13                  "type":"WebCartAdjustmentGroup"
14               },
15               "AdjustmentSource":"Promotion",
16               "AdjustmentType":"AdjustmentPercentage",
17               "AdjustmentValue":-20,
18               "PriceAdjustmentCauseId":"0c8RM0000004CrMYAU",
19               "Priority":2
20            }
21         ]
22      },
23      "CartItems":{
24         "records":[
25            {
26               "attributes":{
27                  "type":"CartItem"
28               },
29               "Id":"0a9RM0000004OseYAE",
30               "Product2Id":"01tRM000000QVWKYA4",
31               "Quantity":15,
32               "SalesPrice":45.00,
33                "CartItemPriceAdjustments":{
34                  "records":[
35                     {
36                        "attributes":{
37                           "type":"CartItemPriceAdjustment"
38                        },
39                        "AdjustmentSource":"Promotion",
40                        "AdjustmentType":"AdjustmentAmount",
41                        "AdjustmentAmountScope":"Unit",
42                        "AdjustmentValue":"-10.0",
43                        "PriceAdjustmentCauseId":"0c8RM00000000xUYAQ",
44                        "Priority":1
45                     }
46                  ]
47               }
48            },
49            {
50               "attributes":{
51                  "type":"CartItem"
52               },
53               "Id":"0a9RM0000004OsfYAE",
54               "Product2Id":"01tRM000000QVW7YAO",
55               "Quantity":5,
56               "SalesPrice":99.50
57            }
58         ]
59      }
60   }
61}
プロパティ
名前 説明 必須か省略可能 使用可能なバージョン
effective​AccountId String 要求が行われた取引先の ID。 必須 53.0
sales​Transaction Map<String, Object> カート、その品目、およびその価格調整の対応付け。例に示されている項目は必須です。項目の追加は許可されますが、追加した項目は無視されます。

CartItem.SalesPrice 項目は、すべての価格調整 (階層割引) が適用された後の単価を渡すために使用されます。この項目の値は、CartItem.UnitAdjustedPrice 項目 (無視された項目) の値に対応します。

メモ

エラーメッセージの SalesPrice 項目は、StartingUnitPrice と呼ばれます。

メモ

必須 53.0