Swap Group Input

Input representation of the details of the swap groupings for swap operations.

JSON Example 

1{
2  "swapGroups": {
3    "groups": [
4      {
5        "referenceId": "SWAP-001",
6        "outGroup": {
7          "swapAssets": [
8            {
9              "assetId": "02ixx0000004HOAAA2",
10              "quantity": 1
11            }
12          ]
13        },
14        "inGroup": {
15          "graphId": "swapRequest",
16          "records": [
17            {
18              "referenceId": "refQuoteLine0",
19              "record": {
20                "attributes": {
21                  "type": "QuoteLineItem",
22                  "method": "POST"
23                },
24                "Product2Id": "01txx0000006iVlAAI",
25                "PricebookEntryId": "01uxx0000008ym4AAA",
26                "UnitPrice": 1049,
27                "Quantity": "1",
28                "StartDate": "2022-09-22"
29              }
30            }
31          ]
32        }
33      }
34    ]
35  }
36}

Properties 

NameTypeDescriptionRequired or OptionalAvailable Version
inGroupObjectProducts to include in the swap. These objects are supported. QuoteLineItem or OrderItem.Required66.0
outGroupSwap Group[]Assets to exclude from the swap. You can’t use string values for properties, such as quantity and price.Required66.0
referenceIdStringReference ID of the operation.Required66.0