Newer Version Available
Promotion Execution 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} - プロパティ
-
名前 型 説明 必須か省略可能 使用可能なバージョン effectiveAccountId String 要求が行われた取引先の ID。 必須 53.0 salesTransaction Map<String, Object> カート、カート品目、およびその価格調整の対応付け。例に示されている項目は必須です。項目の追加は許可されますが、追加した項目は無視されます。 必須 53.0