Retrieve pricing details for a price field for the specified cart and line item. Supported by Pricing ElementServiceImplementation.
GET /v2/assets/{ID}/pricing?accountId={account_ID}
Remote Method
getAssetPriceDetail
Handlers
REST endpoint: APIAssetsPricingV2.cls
Implementation: CpqAssetsAccountsActionV2.cls
Apex Remote Service
CpqAppHandler
Apex Remote Input Map
{
"methodName": "getAssetPriceDetail",
"id": "02i46000000htMrAAI",
"accountId": "0014600000qExFDAA0",
"effectiveAssetsDateFilter": "2017-11-06T00:00:00Z"
}
Package
Communication (vlocity_cmt)
API Parameters and Response Format
For API parameter names and descriptions, see Cart-Based API Swagger Reference.
Resource Information
| Response Format | JSON |
|---|---|
| Resource URL | /services/apexrest/{namespace}/v2/assets/{ID}/pricing?accountId={account_ID} |
Example Request
GET
/services/apexrest/vlocity_cmt/v2/assets/02i46000000htMrAAI/pricing?accountId=0014600000qExFDAA0&effectiveAssetsDateFilter=2017-11-06T00:00:00Z
Example Response
{
"totalSize": 1,
"messages": [],
"records": [
{
"messages": [],
"displaySequence": -1,
"id": "02i46000000htMrAAI",
"vlocity_cmt__OneTimeCharge__c": {
"pricedetail": [
{
"actions": {},
"DetailType": "PRICE",
"Description": "Product B Base $100 Charge",
"StartValue": 100,
"EndValue": 100,
"AdjustmentType": "None",
"AdjustmentMethod": null,
"AdjustmentValue": 0
}
]
},
"vlocity_cmt__OneTimeCalculatedPrice__c": {
"pricedetail": [
{
"actions": {},
"DetailType": null,
"Description": "One Time Charge (100.00) - One Time Manual Discount (0.00%)",
"StartValue": null,
"EndValue": null,
"AdjustmentType": null,
"AdjustmentMethod": null,
"AdjustmentValue": null
}
]
},
"vlocity_cmt__OneTimeTotal__c": {
"pricedetail": [
{
"actions": {},
"DetailType": null,
"Description": "[One Time Calculated Price (100.00) + Rollup One Time Total (0.00)] x Quantity (1.00)",
"StartValue": null,
"EndValue": null,
"AdjustmentType": null,
"AdjustmentMethod": null,
"AdjustmentValue": null
}
]
},
"vlocity_cmt__RecurringCharge__c": {
"pricedetail": [
{
"actions": {},
"DetailType": "PRICE",
"Description": "$10 MRC",
"StartValue": 10,
"EndValue": 10,
"AdjustmentType": "None",
"AdjustmentMethod": null,
"AdjustmentValue": 0
},
{
"actions": {},
"DetailType": "ADJUSTMENT",
"Description": "Markup applied by Agent",
"StartValue": 10,
"EndValue": 15,
"AdjustmentType": "Markup",
"AdjustmentMethod": "Percent",
"AdjustmentValue": 50
}
]
},
"vlocity_cmt__RecurringCalculatedPrice__c": {
"pricedetail": [
{
"actions": {},
"DetailType": null,
"Description": "Recurring Charge (15.0000) - Recurring Manual Discount (0.00%)",
"StartValue": null,
"EndValue": null,
"AdjustmentType": null,
"AdjustmentMethod": null,
"AdjustmentValue": null
}
]
},
"vlocity_cmt__RecurringTotal__c": {
"pricedetail": [
{
"actions": {},
"DetailType": null,
"Description": "[Recurring Calculated Price (15.00) + Rollup Recurring Total (0.00)] x Quantity (1.00)",
"StartValue": null,
"EndValue": null,
"AdjustmentType": null,
"AdjustmentMethod": null,
"AdjustmentValue": null
}
]
}
}
]
}