Get Asset Pricing

Retrieve pricing details for a price field for the specified cart and line item. Supported by Pricing ElementServiceImplementation.

1GET /v2/assets/{ID}/pricing?accountId={account_ID}

Remote Method 

1getAssetPriceDetail

Handlers 

1REST endpoint: APIAssetsPricingV2.cls
2Implementation: CpqAssetsAccountsActionV2.cls

Apex Remote Service 

1CpqAppHandler

Apex Remote Input Map 

1{
2   "methodName": "getAssetPriceDetail",
3   "id": "02i46000000htMrAAI",
4   "accountId": "0014600000qExFDAA0",
5   "effectiveAssetsDateFilter": "2017-11-06T00:00:00Z"
6}

Package 

Communication (vlocity_cmt)

API Parameters and Response Format 

For API parameter names and descriptions, see Cart-Based API Swagger Reference.

Resource Information 

Response FormatJSON
Resource URL/services/apexrest/{namespace}/v2/assets/{ID}/pricing?accountId={account_ID}

Example Request 

1GET
2/services/apexrest/vlocity_cmt/v2/assets/02i46000000htMrAAI/pricing?accountId=0014600000qExFDAA0&effectiveAssetsDateFilter=2017-11-06T00:00:00Z

Example Response 

1{
2  "totalSize": 1,
3  "messages": [],
4  "records": [
5    {
6      "messages": [],
7      "displaySequence": -1,
8      "id": "02i46000000htMrAAI",
9      "vlocity_cmt__OneTimeCharge__c": {
10        "pricedetail": [
11          {
12            "actions": {},
13            "DetailType": "PRICE",
14            "Description": "Product B Base $100 Charge",
15            "StartValue": 100,
16            "EndValue": 100,
17            "AdjustmentType": "None",
18            "AdjustmentMethod": null,
19            "AdjustmentValue": 0
20          }
21        ]
22      },
23      "vlocity_cmt__OneTimeCalculatedPrice__c": {
24        "pricedetail": [
25          {
26            "actions": {},
27            "DetailType": null,
28            "Description": "One Time Charge (100.00) - One Time Manual Discount (0.00%)",
29            "StartValue": null,
30            "EndValue": null,
31            "AdjustmentType": null,
32            "AdjustmentMethod": null,
33            "AdjustmentValue": null
34          }
35        ]
36      },
37      "vlocity_cmt__OneTimeTotal__c": {
38        "pricedetail": [
39          {
40            "actions": {},
41            "DetailType": null,
42            "Description": "[One Time Calculated Price (100.00) + Rollup One Time Total (0.00)] x Quantity (1.00)",
43            "StartValue": null,
44            "EndValue": null,
45            "AdjustmentType": null,
46            "AdjustmentMethod": null,
47            "AdjustmentValue": null
48          }
49        ]
50      },
51      "vlocity_cmt__RecurringCharge__c": {
52        "pricedetail": [
53          {
54            "actions": {},
55            "DetailType": "PRICE",
56            "Description": "$10 MRC",
57            "StartValue": 10,
58            "EndValue": 10,
59            "AdjustmentType": "None",
60            "AdjustmentMethod": null,
61            "AdjustmentValue": 0
62          },
63          {
64            "actions": {},
65            "DetailType": "ADJUSTMENT",
66            "Description": "Markup applied by Agent",
67            "StartValue": 10,
68            "EndValue": 15,
69            "AdjustmentType": "Markup",
70            "AdjustmentMethod": "Percent",
71            "AdjustmentValue": 50
72          }
73        ]
74      },
75      "vlocity_cmt__RecurringCalculatedPrice__c": {
76        "pricedetail": [
77          {
78            "actions": {},
79            "DetailType": null,
80            "Description": "Recurring Charge (15.0000) - Recurring Manual Discount (0.00%)",
81            "StartValue": null,
82            "EndValue": null,
83            "AdjustmentType": null,
84            "AdjustmentMethod": null,
85            "AdjustmentValue": null
86          }
87        ]
88      },
89      "vlocity_cmt__RecurringTotal__c": {
90        "pricedetail": [
91          {
92            "actions": {},
93            "DetailType": null,
94            "Description": "[Recurring Calculated Price (15.00) + Rollup Recurring Total (0.00)] x Quantity (1.00)",
95            "StartValue": null,
96            "EndValue": null,
97            "AdjustmentType": null,
98            "AdjustmentMethod": null,
99            "AdjustmentValue": null
100          }
101        ]
102      }
103    }
104  ]
105}