Order Summary Graph Input

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