Newer Version Available
Order Summary Graphs Input
- Root XML tag
- <orderSummaryGraphs>
- JSON example
-
1{ 2 "orderSummaryGraphs": [ 3{ 4 "orderSummaryGraphId": "${ID}", 5 "purchaseSupportDetails": [ 6 { 7 "attributes": { 8 "attributes": { 9 "type": "Account" 10 }, 11 "Name": "FTest Suite", 12 "FirstName": "FTest", 13 "LastName": "Suite", 14 "Phone": "(111)-111-1111", 15 "isPersonAccount": true 16 }, 17 "referenceId": "refAccount" 18 }, 19 { 20 "referenceId": "refProduct2_1", 21 "attributes": { 22 "attributes": { 23 "type": "Product2" 24 }, 25 "Description": "WOMEN'S TORPEDO JACKET 1", 26 "Name": "WOMEN'S TORPEDO JACKET 1", 27 "StockKeepingUnit": "${ProductCode1}", 28 "ProductCode": "${ProductCode1}", 29 "IsActive": true 30 } 31 }, 32 { 33 "referenceId": "refProduct2_2", 34 "attributes": { 35 "attributes": { 36 "type": "Product2" 37 }, 38 "Description": "Apple Watch", 39 "Name": "Apple Watch", 40 "StockKeepingUnit": "${ProductCode2}", 41 "ProductCode": "${ProductCode2}", 42 "IsActive": true 43 } 44 }, 45 { 46 "referenceId": "refPricebookEntry_1", 47 "attributes": { 48 "attributes": { 49 "type": "PricebookEntry" 50 }, 51 "Pricebook2Id": "${StandardPricebookId}", 52 "UnitPrice": 200, 53 "IsActive": true, 54 "Product2Id": "@{refProduct2_1.id}", 55 "CurrencyIsoCode": "USD" 56 } 57 }, 58 { 59 "referenceId": "refPricebookEntry_2", 60 "attributes": { 61 "attributes": { 62 "type": "PricebookEntry" 63 }, 64 "Pricebook2Id": "${StandardPricebookId}", 65 "UnitPrice": 800, 66 "IsActive": true, 67 "Product2Id": "@{refProduct2_2.id}", 68 "CurrencyIsoCode": "USD" 69 } 70 }, 71 { 72 "referenceId": "refSalesChannel", 73 "attributes": { 74 "attributes": { 75 "type": "SalesChannel" 76 }, 77 "Description": "NTO", 78 "SalesChannelName": "${SalesChannelName}" 79 } 80 }, 81 { 82 "referenceId": "refPromotion_1", 83 "attributes": { 84 "attributes": { 85 "type": "Promotion" 86 }, 87 "Name": "${PromotionName1}", 88 "DisplayName": "${PromotionName1}", 89 "Description": "${PromotionName1}", 90 "StartDate": "2022-05-24", 91 "StartDateTime": "2021-09-06T23:58:59Z", 92 "EndDateTime": "2025-09-06T23:58:59Z", 93 "IsAutomatic": true, 94 "IsCommercePromotion": true, 95 "IsActive": true 96 } 97 }, 98 { 99 "referenceId": "refPromotion_2", 100 "attributes": { 101 "attributes": { 102 "type": "Promotion" 103 }, 104 "Name": "${PromotionName2}", 105 "DisplayName": "${PromotionName2}", 106 "Description": "${PromotionName2}", 107 "StartDate": "2022-05-24", 108 "StartDateTime": "2021-09-06T23:58:59Z", 109 "EndDateTime": "2025-09-06T23:58:59Z", 110 "IsCommercePromotion": true, 111 "IsActive": true 112 } 113 }, 114 { 115 "referenceId": "refWebStore", 116 "attributes": { 117 "attributes": { 118 "type": "WebStore" 119 }, 120 "Name": "NTO USD", 121 "Type": "B2CE", 122 "ExternalReference": "${WebStoreExternalReference}", 123 "DefaultTaxLocaleType": "Net" 124 } 125 }, 126 { 127 "referenceId": "refOrderDeliveryMethod", 128 "attributes": { 129 "attributes": { 130 "type": "OrderDeliveryMethod" 131 }, 132 "Name": "Overnight", 133 "Description": "FedEx", 134 "ReferenceNumber": "${OrderDeliveryMethodReferenceNumber}", 135 "ProductId": "@{refProduct2_2.id}", 136 "IsActive": true 137 } 138 } 139 ], 140 "purchaseDetails": [ 141 { 142 "attributes": { 143 "attributes": { 144 "type": "OrderSummary" 145 }, 146 "OrderNumber": "${NUMBER}", 147 "OrderLifeCycleType": "MANAGED", 148 "BillingEmailAddress": "${EMAIL}", 149 "BillingPhoneNumber": "${PHONE}", 150 "OrderedDate": "${DATE}", 151 "Description": "${TEXT}", 152 "SalesChannelId": "@{refSalesChannel.id}", 153 "SalesStoreId": "@{refWebStore.id}", 154 "AccountId": "@{refAccount.id}", 155 "ExternalReferenceIdentifier":"${ExternalReferenceIdentifier}", 156 "Pricebook2Id": "${StandardPricebookId}", 157 "${CustomAttribute.for[OrderSummary]}": "${TEXT}", 158 "CurrencyIsoCode": "USD" 159 }, 160 "referenceId": "refOrderSummary" 161 }, 162 { 163 "attributes": { 164 "attributes": { 165 "type": "CardPaymentMethod" 166 }, 167 "${CustomAttribute.for[CardPaymentMethod]}": "${TEXT}", 168 "GatewayToken": "dcdn23wj3vkb8sf1kho", 169 "PaymentGatewayId": "${PaymentGatewayId}", 170 "Status": "Active", 171 "PaymentMethodStreet": "11122 HARBOUR SPRINGS CIR", 172 "PaymentMethodCity": "BOCA RATON", 173 "PaymentMethodPostalCode": "33428", 174 "PaymentMethodState": "FL", 175 "PaymentMethodCountry": "us", 176 "InputCardNumber": "************1234", 177 "CardType": "Visa", 178 "CardHolderName": "Me and Me", 179 "ExpiryYear": "2021", 180 "ExpiryMonth": "1", 181 "CardCategory": "CreditCard", 182 "AccountId": "@{refAccount.id}", 183 "ProcessingMode": "External" 184 }, 185 "referenceId": "refCardPaymentMethod" 186 }, 187 { 188 "attributes": { 189 "attributes": { 190 "type": "OrderPaymentSummary" 191 }, 192 "${CustomAttribute.for[OrderPaymentSummary]}": "${TEXT}", 193 "OrderSummaryId": "@{refOrderSummary.id}", 194 "OwnerId": "${OwnerId}" 195 }, 196 "referenceId": "refOrderPaymentSummary" 197 }, 198 { 199 "attributes": { 200 "attributes": { 201 "type": "PaymentAuthorization" 202 }, 203 "${CustomAttribute.for[PaymentAuthorization]}": "${TEXT}", 204 "PaymentGatewayId": "${PaymentGatewayId}", 205 "Amount": 326.79, 206 "ProcessingMode": "External", 207 "Status": "Processed", 208 "GatewayRefNumber": "0000010112", 209 "AccountId": "@{refAccount.id}", 210 "PaymentMethodId": "@{refCardPaymentMethod.id}", 211 "OrderPaymentSummaryId": "@{refOrderPaymentSummary.id}" 212 }, 213 "referenceId": "refPayment" 214 }, 215 { 216 "attributes": { 217 "attributes": { 218 "type": "PaymentGatewayLog" 219 }, 220 "PaymentGatewayId": "${PaymentGatewayId}", 221 "InteractionStatus": "Success", 222 "InteractionType": "Authorization", 223 "ReferencedEntityId": "@{refPayment.id}" 224 }, 225 "referenceId": "refPaymentGatewayLog" 226 }, 227 { 228 "attributes": { 229 "attributes": { 230 "type": "OrderDeliveryGroupSummary" 231 }, 232 "${CustomAttribute.for[OrderDeliveryGroupSummary]}": "${TEXT}", 233 "EmailAddress": "me@salesforce.com", 234 "DeliverToCity": "BOCA RATON", 235 "DeliverToCountry": "us", 236 "DeliverToName": "Me and Me", 237 "DeliverToPostalCode": "33428", 238 "DeliverToState": "FL", 239 "DeliverToStreet": "11122 HARBOUR SPRINGS CIR", 240 "PhoneNumber": "3333333333", 241 "OrderDeliveryMethodId": "@{refOrderDeliveryMethod.id}", 242 "OrderSummaryId": "@{refOrderSummary.id}" 243 }, 244 "referenceId": "refOrderDeliveryGroup" 245 }, 246 { 247 "attributes": { 248 "attributes": { 249 "type": "OrderItemSummary" 250 }, 251 "${CustomAttribute.for[OrderItemSummary,Order]}": "${TEXT}", 252 "Description": "WOMEN'S TORPEDO JACKET 1", 253 "Type": "Order Product", 254 "Quantity": 1, 255 "TotalLineAmount": 200, 256 "LineNumber": 1, 257 "UnitPrice": 200, 258 "ListPrice": 200, 259 "OrderSummaryId": "@{refOrderSummary.id}", 260 "OrderDeliveryGroupSummaryId": "@{refOrderDeliveryGroup.id}", 261 "Product2Id": "@{refProduct2_1.id}", 262 "PricebookEntryId": "@{refPricebookEntry_1.id}" 263 }, 264 "referenceId": "refOrderItem_1" 265 }, 266 { 267 "attributes": { 268 "attributes": { 269 "type": "OrderItemSummary" 270 }, 271 "${CustomAttribute.for[OrderItemSummary,Order]}": "${TEXT}", 272 "Description": "WOMEN'S TORPEDO JACKET 2", 273 "Type": "Order Product", 274 "Quantity": 1, 275 "TotalLineAmount": 800, 276 "LineNumber": 1, 277 "UnitPrice": 800, 278 "ListPrice": 800, 279 "OrderSummaryId": "@{refOrderSummary.id}", 280 "OrderDeliveryGroupSummaryId": "@{refOrderDeliveryGroup.id}", 281 "Product2Id": "@{refProduct2_2.id}", 282 "PricebookEntryId": "@{refPricebookEntry_2.id}" 283 }, 284 "referenceId": "refOrderItem_2" 285 }, 286 { 287 "attributes": { 288 "attributes": { 289 "type": "OrderItemTaxLineItemSummary" 290 }, 291 "${CustomAttribute.for[OrderItemTaxLineItemSummary]}": "${TEXT}", 292 "Name": "2072100 - Tax", 293 "Type": "Estimated", 294 "Amount": 10, 295 "Rate": 0.05, 296 "TaxEffectiveDate": "2018-09-18T17:15:58.000Z", 297 "OrderItemSummaryId": "@{refOrderItem_1.id}", 298 "OrderSummaryId": "@{refOrderSummary.id}" 299 }, 300 "referenceId": "refrefOrderItem_1_OrderItemTaxLineItem_1" 301 }, 302 { 303 "attributes": { 304 "attributes": { 305 "type": "OrderItemTaxLineItemSummary" 306 }, 307 "${CustomAttribute.for[OrderItemTaxLineItemSummary]}": "${TEXT}", 308 "Name": "2072100 - Tax", 309 "Type": "Estimated", 310 "Amount": 40, 311 "Rate": 0.05, 312 "TaxEffectiveDate": "2018-09-18T17:15:58.000Z", 313 "OrderItemSummaryId": "@{refOrderItem_2.id}", 314 "OrderSummaryId": "@{refOrderSummary.id}" 315 }, 316 "referenceId": "refrefOrderItem_2_OrderItemTaxLineItem_2" 317 }, 318 { 319 "attributes": { 320 "attributes": { 321 "type": "OrderAdjustmentGroupSummary" 322 }, 323 "Name": "20%offOrderAmountOver100", 324 "Description": "20%offOrderAmountOver100", 325 "Type": "Header", 326 "OrderSummaryId": "@{refOrderSummary.id}", 327 "AdjustmentCauseId": "@{refPromotion_1.id}" 328 }, 329 "referenceId": "refOrderAdjustmentGroupSummary_1" 330 }, 331 { 332 "attributes": { 333 "attributes": { 334 "type": "OrderAdjustmentGroupSummary" 335 }, 336 "Name": "50offOrderAmountOver100", 337 "Description": "50offOrderAmountOver100", 338 "Type": "Header", 339 "OrderSummaryId": "@{refOrderSummary.id}", 340 "AdjustmentCauseId": "@{refPromotion_2.id}" 341 }, 342 "referenceId": "refOrderAdjustmentGroupSummary_2" 343 }, 344 { 345 "attributes": { 346 "attributes": { 347 "type": "OrderItemAdjustmentLineSummary" 348 }, 349 "${CustomAttribute.for[OrderItemAdjustmentLineSummary]}": "${TEXT}", 350 "Name": "2072100 - 20%offOrderAmountOver100", 351 "Amount": -15.84, 352 "OrderItemSummaryId": "@{refOrderItem_1.id}", 353 "OrderSummaryId": "@{refOrderSummary.id}", 354 "OrderAdjustmentGroupSummaryId": "@{refOrderAdjustmentGroupSummary_1.id}" 355 }, 356 "referenceId": "refrefOrderItem_1_OrderItemAdjustmentLineItem_1" 357 }, 358 { 359 "attributes": { 360 "attributes": { 361 "type": "OrderItemAdjustmentLineSummary" 362 }, 363 "${CustomAttribute.for[OrderItemAdjustmentLineSummary]}": "${TEXT}", 364 "Name": "2072100 - 20%offOrderAmountOver100", 365 "Amount": -15.84, 366 "OrderItemSummaryId": "@{refOrderItem_1.id}", 367 "OrderSummaryId": "@{refOrderSummary.id}", 368 "OrderAdjustmentGroupSummaryId": "@{refOrderAdjustmentGroupSummary_2.id}" 369 }, 370 "referenceId": "refrefOrderItem_1_OrderItemAdjustmentLineItem_2" 371 }, 372 { 373 "attributes": { 374 "attributes": { 375 "type": "OrderItemAdjustmentLineSummary" 376 }, 377 "${CustomAttribute.for[OrderItemAdjustmentLineSummary]}": "${TEXT}", 378 "Name": "2072100 - 20%offOrderAmountOver100", 379 "Amount": -15.84, 380 "OrderItemSummaryId": "@{refOrderItem_2.id}", 381 "OrderSummaryId": "@{refOrderSummary.id}", 382 "OrderAdjustmentGroupSummaryId": "@{refOrderAdjustmentGroupSummary_1.id}" 383 }, 384 "referenceId": "refrefOrderItem_2_OrderItemAdjustmentLineItem_1" 385 }, 386 { 387 "attributes": { 388 "attributes": { 389 "type": "OrderItemAdjustmentLineSummary" 390 }, 391 "${CustomAttribute.for[OrderItemAdjustmentLineSummary]}": "${TEXT}", 392 "Name": "2072100 - 20%offOrderAmountOver100", 393 "Amount": -15.84, 394 "OrderItemSummaryId": "@{refOrderItem_2.id}", 395 "OrderSummaryId": "@{refOrderSummary.id}", 396 "OrderAdjustmentGroupSummaryId": "@{refOrderAdjustmentGroupSummary_2.id}" 397 }, 398 "referenceId": "refrefOrderItem_2_OrderItemAdjustmentLineItem_2" 399 }, 400 { 401 "attributes": { 402 "attributes": { 403 "type": "OrderItemTaxLineItemSummary" 404 }, 405 "${CustomAttribute.for[OrderItemTaxLineItemSummary]}": "${TEXT}", 406 "Name": "2072100 - Adjustment Tax", 407 "Type": "Estimated", 408 "Amount": -0.79, 409 "Rate": 0.05, 410 "TaxEffectiveDate": "2021-02-12T23:53:01.471Z", 411 "OrderItemSummaryId": "@{refOrderItem_1.id}", 412 "OrderItemAdjustmentLineSummaryId": "@{refrefOrderItem_1_OrderItemAdjustmentLineItem_1.id}", 413 "OrderSummaryId": "@{refOrderSummary.id}" 414 }, 415 "referenceId": "refrefOrderItem_1_OrderItemAdjustmentLineItem_1_OrderItemTaxLineItem_1" 416 }, 417 { 418 "attributes": { 419 "attributes": { 420 "type": "OrderItemTaxLineItemSummary" 421 }, 422 "${CustomAttribute.for[OrderItemTaxLineItemSummary]}": "${TEXT}", 423 "Name": "2072100 - Adjustment Tax", 424 "Type": "Estimated", 425 "Amount": -0.79, 426 "Rate": 0.05, 427 "TaxEffectiveDate": "2021-02-12T23:53:01.471Z", 428 "OrderItemSummaryId": "@{refOrderItem_1.id}", 429 "OrderItemAdjustmentLineSummaryId": "@{refrefOrderItem_1_OrderItemAdjustmentLineItem_2.id}", 430 "OrderSummaryId": "@{refOrderSummary.id}" 431 }, 432 "referenceId": "refrefOrderItem_1_OrderItemAdjustmentLineItem_2_OrderItemTaxLineItem_2" 433 }, 434 { 435 "attributes": { 436 "attributes": { 437 "type": "OrderItemTaxLineItemSummary" 438 }, 439 "${CustomAttribute.for[OrderItemTaxLineItemSummary]}": "${TEXT}", 440 "Name": "2072100 - Adjustment Tax", 441 "Type": "Estimated", 442 "Amount": -0.79, 443 "Rate": 0.05, 444 "TaxEffectiveDate": "2021-02-12T23:53:01.471Z", 445 "OrderItemSummaryId": "@{refOrderItem_2.id}", 446 "OrderItemAdjustmentLineSummaryId": "@{refrefOrderItem_2_OrderItemAdjustmentLineItem_1.id}", 447 "OrderSummaryId": "@{refOrderSummary.id}" 448 }, 449 "referenceId": "refrefOrderItem_2_OrderItemAdjustmentLineItem_1_OrderItemTaxLineItem_1" 450 }, 451 { 452 "attributes": { 453 "attributes": { 454 "type": "OrderItemTaxLineItemSummary" 455 }, 456 "${CustomAttribute.for[OrderItemTaxLineItemSummary]}": "${TEXT}", 457 "Name": "2072100 - Adjustment Tax", 458 "Type": "Estimated", 459 "Amount": -0.79, 460 "Rate": 0.05, 461 "TaxEffectiveDate": "2021-02-12T23:53:01.471Z", 462 "OrderItemSummaryId": "@{refOrderItem_2.id}", 463 "OrderItemAdjustmentLineSummaryId": "@{refrefOrderItem_2_OrderItemAdjustmentLineItem_2.id}", 464 "OrderSummaryId": "@{refOrderSummary.id}" 465 }, 466 "referenceId": "refrefOrderItem_2_OrderItemAdjustmentLineItem_2_OrderItemTaxLineItem_2" 467 }, 468 { 469 "attributes": { 470 "attributes": { 471 "type": "OrderItemSummary" 472 }, 473 "${CustomAttribute.for[OrderItemSummary,Order]}": "${TEXT}", 474 "Description": "Shipping", 475 "Type": "Delivery Charge", 476 "Quantity": 1, 477 "TotalLineAmount": 200, 478 "LineNumber": 1, 479 "UnitPrice": 200, 480 "ListPrice": 200, 481 "OrderSummaryId": "@{refOrderSummary.id}", 482 "OrderDeliveryGroupSummaryId": "@{refOrderDeliveryGroup.id}", 483 "Product2Id": "@{refProduct2_1.id}", 484 "PricebookEntryId": "@{refPricebookEntry_1.id}" 485 }, 486 "referenceId": "refShipping" 487 }, 488 { 489 "attributes": { 490 "attributes": { 491 "type": "OrderItemTaxLineItemSummary" 492 }, 493 "${CustomAttribute.for[OrderItemTaxLineItemSummary]}": "${TEXT}", 494 "Name": "DeliveryCharge - Tax", 495 "Type": "Estimated", 496 "Amount": 10, 497 "Rate": 0.05, 498 "TaxEffectiveDate": "2018-09-18T17:15:58.000Z", 499 "OrderItemSummaryId": "@{refShipping.id}", 500 "OrderSummaryId": "@{refOrderSummary.id}" 501 }, 502 "referenceId": "refShipping_OrderItemTaxLineItem" 503 } 504 ] 505} 506 ] 507} - Properties
-
Name Type Description Required or Optional Available Version orderSummaryGraphs Order Summary Graph Input[] List of graphs containing order summary data. Required 57.0