Newer Version Available

This content describes an older version of this product. View Latest

ESM_getCartItemsByView API

Retrieve quote line items for a given Quote ID as per the option selected in the Displaying list.

URI

1/services/apexrest/vlocity_cmt/v1/integrationprocedure/ESM_getCartItemsByView/

HTTP Method

POST

Request

1{
2  "cartId": "0Q0Hp000003kFIDKA2",
3  "pageSize": "10",
4  "include": "count,defaultFields,productRelationships,modifiedInfo,errorInfo",
5  "offset": "0",
6  "searchByFields": "Product2.Name,vlocity_eagle__QuoteMemberId__r.Name,vlocity_eagle__QuoteMemberId__r.vlocity_eagle__StreetAddress__c,vlocity_eagle__QuoteMemberId__r.vlocity_eagle__State__c,vlocity_eagle__QuoteMemberId__r.vlocity_eagle__City__c,vlocity_eagle__QuoteGroupId__r.Name,vlocity_eagle__Action__c,vlocity_eagle__BillingAccountId__r.Name",
7  "searchText": "wan",
8  "sortByField": ""
9}

Response

1{
2  "attributeInfo": {
3    "attributeCodeNameMap": {
4      "VEPC_ATTR_SDWAN_NETWORK_TOPOLOGY": "SD WAN Network Topology",
5      "VEPC_ATTR_SDWAN_BANDWIDTH": "SD WAN Bandwidth",
6      "VEPC_ATTR_CONTRACT_TERM": "Contract Term"
7    },
8    "errorCode": "INVOKE-200",
9    "error": "OK"
10  },
11  "response": {
12    "TotalCount": 1,
13    "pageSize": 1,
14    "results": [
15      {
16        "attributes": {
17          "type": "QuoteLineItem",
18          "url": "/services/data/v62.0/sobjects/QuoteLineItem/0QLHp000004V2PYOA0"
19        },
20        "vlocity_eagle__BillingAccountId__c": "001Hp00002pyMD0IAM",
21        "vlocity_eagle__AttributeSelectedValues__c": "{\"VEPC_ATTR_CONTRACT_TERM\":\"Month-to-Month\",\"VEPC_ATTR_SDWAN_NETWORK_TOPOLOGY\":\"Independent Branch Locations\",\"VEPC_ATTR_SDWAN_BANDWIDTH\":\"50 Mbps\"}",
22        "vlocity_eagle__IsValidated__c": false,
23        "vlocity_eagle__Action__c": "Add",
24        "vlocity_eagle__AssetReferenceId__c": "33a87909-3079-f768-6832-81dadbf11802",
25        "vlocity_eagle__OneTimeTotal__c": 500,
26        "vlocity_eagle__RecurringTotal__c": 50,
27        "vlocity_eagle__RootItemId__c": "33a87909-3079-f768-6832-81dadbf11802",
28        "Id": "0QLHp000004V2PYOA0",
29        "Product2Id": "01tHp00000BapTAIAZ",
30        "Quantity": 1,
31        "vlocity_eagle__BillingAccountId__r": {
32          "attributes": {
33            "type": "Account",
34            "url": "/services/data/v62.0/sobjects/Account/001Hp00002pyMD0IAM"
35          },
36          "Name": "Acme",
37          "BillingAddress": {
38            "city": "New York",
39            "country": "USA",
40            "geocodeAccuracy": null,
41            "latitude": null,
42            "longitude": null,
43            "postalCode": "31349",
44            "state": "NY",
45            "street": "10 Main Rd."
46          },
47          "Id": "001Hp00002pyMD0IAM",
48          "RecordTypeId": "012Hp000002BM54IAG"
49        },
50        "Product2": {
51          "attributes": {
52            "type": "Product2",
53            "url": "/services/data/v62.0/sobjects/Product2/01tHp00000BapTAIAZ"
54          },
55          "Name": "Meraki MX SD-WAN",
56          "Id": "01tHp00000BapTAIAZ",
57          "RecordTypeId": "012Hp000002JOd1IAG"
58        }
59      }
60    ],
61    "assetIdToQuoteMap": {},
62    "assetIdToOrderMap": {},
63    "assetIdToAssetMap": {},
64    "ProductRelationship": [],
65    "ModifiedRoots": [
66      {
67        "attributes": {
68          "type": "AggregateResult"
69        },
70        "vlocity_eagle__RootItemId__c": "33a87909-3079-f768-6832-81dadbf11802"
71      }
72    ],
73    "itemIdToErrorMessages": {
74      "0QLHp000004V2PYOA0": {},
75      "0QLHp000004V2PaOAK": {},
76      "0QLHp000004V2PZOA0": {}
77    },
78    "itemIdErrorMap": {
79      "0QLHp000004V2PYOA0": false,
80      "0QLHp000004V2PaOAK": false,
81      "0QLHp000004V2PZOA0": false
82    },
83    "errorCode": "INVOKE-200",
84    "error": "OK"
85  }
86}