Run Salesforce Headless Pricing Action
This action is available in API version 60.0 and later.
Special Access Rules
The Run Salesforce Headless Pricing action is available in Enterprise, Unlimited, and Developer Editions where Salesforce Pricing is enabled.
Supported REST HTTP Methods
- URI
- /services/data/v64.0/actions/standard/runSalesforceHeadlessPricing
- Formats
- JSON, XML
- HTTP Methods
- POST
- Authentication
- Authorization: Bearer token
Inputs
Input | Details |
---|---|
contextDefinitionId |
|
contextMappingId |
|
discoveryProcedure |
|
displayContext |
|
effectiveDate |
|
isHighVolumeLineItems |
|
isSkipWaterfall |
|
persistContext |
|
pricingData |
|
pricingProcedureId |
|
skipDiscovery |
|
taggedData |
|
useSessionScopedContext |
|
Outputs
Output | Details |
---|---|
contextDetails |
|
executionId |
|
pricingProcessErrors |
|
pricingProcessStatus |
|
pricingResult |
|
Example
- POST
-
This sample request is for the Run Salesforce Headless Pricing action.
{ "inputs": [ { "contextMappingId": "11jSB000002Bn13YAC", "contextDefinitionId": "11OSB0000000WSv2AM", "pricingProcedureId": "9QLSB0000001lT74AI", "discoveryProcedure": "ES1", "displayContext": true, "effectiveDate": "2023-11-16T12:20:00.000Z", "isHighVolumeLineItems": true, "skipDiscovery": true, "taggedData": false, "pricingData": "{\"SalesTransaction\":{\"businessObjectType\":\"SalesTransaction\",\"Pricebook\":\"01sDE0000000LoeYAE\",\"CurrencyIsoCode\":\"USD\",\"SalesTransactionItem\":[{\"businessObjectType\":\"SalesTransactionItem\",\"Product\":\"01tDE000000FU99YAG\",\"ProductSellingModel\":\"0jPDE000000042K2AQ\",\"Quantity\":5,\"StartDate\":\"2023-11-16T12:20:00.000Z\",\"SalesTransactionItemSource\":\"LINE_ITEM1\"}]}}", "isSkipWaterfall": false, "persistContext": true, "useSessionScopedContext": false } ] }
This sample response is for the Run Salesforce Headless Pricing action.
{ "actionName": "runSalesforceHeadlessPricing", "errors": null, "isSuccess": true, "outputValues": { "contextDetails": { "SalesTransaction": [ { "PriceBooks": "01sxx0000005q3VAAQ", "Subtotal": 587.2095, "PriceAdjustmentSchedule": "84Xxx0000004CMxEAM", "EffectiveDate": "2024-02-12T00:00:00.000Z", "SalesTransactionItem": [ { "LineItemQuantity": 5, "ProductSellingModel": "0jPxx000000009hEAA", "DerivedPricingAttribute": false, "Product": "01txx0000006iLwAAI", "LineItem": "LineItem1", "NetUnitPrice": 117.4419, "SalesTrxnAdjustmentGroup": [ { "AdjustmentType": "Percentage", "AdjustmentValue": 10 } ] } ] } ] }, "executionId": "1708488641379821", "pricingProcessStatus": "Completed", "pricingResult": { "StartDate": [ { "value": 1700137200000, "dataPath": [ "CTX_ece1667e-7a09-40ab-9718-23bdc179a0a5", "CTX_d3b9ffd5-2be7-4366-92d8-c2bcf03b69ed" ], "errors": [], "isSuccess": true } ], "NetUnitPrice": [ { "value": 115, "dataPath": [ "CTX_ece1667e-7a09-40ab-9718-23bdc179a0a5", "CTX_d3b9ffd5-2be7-4366-92d8-c2bcf03b69ed" ], "errors": [], "isSuccess": true } ], "ProductSellingModel": [ { "value": "0jPDE000000042K2AQ", "dataPath": [ "CTX_ece1667e-7a09-40ab-9718-23bdc179a0a5", "CTX_d3b9ffd5-2be7-4366-92d8-c2bcf03b69ed" ], "errors": [], "isSuccess": true } ], "Pricebook": [ { "value": "01sDE0000000LoeYAE", "dataPath": [ "CTX_ece1667e-7a09-40ab-9718-23bdc179a0a5" ], "errors": [], "isSuccess": true } ], "NetTotalPrice": [ { "value": 1150, "dataPath": [ "CTX_ece1667e-7a09-40ab-9718-23bdc179a0a5", "CTX_d3b9ffd5-2be7-4366-92d8-c2bcf03b69ed" ], "errors": [], "isSuccess": true } ], "Subtotal": [ { "value": 1150, "dataPath": [ "CTX_ece1667e-7a09-40ab-9718-23bdc179a0a5" ], "errors": [], "isSuccess": true } ], "Quantity": [ { "value": 10, "dataPath": [ "CTX_ece1667e-7a09-40ab-9718-23bdc179a0a5", "CTX_d3b9ffd5-2be7-4366-92d8-c2bcf03b69ed" ], "errors": [], "isSuccess": true } ], "Product": [ { "value": "01tDE000000FU99YAG", "dataPath": [ "CTX_ece1667e-7a09-40ab-9718-23bdc179a0a5", "CTX_d3b9ffd5-2be7-4366-92d8-c2bcf03b69ed" ], "errors": [], "isSuccess": true } ], "CurrencyIsoCode": [ { "value": "USD", "dataPath": [ "CTX_ece1667e-7a09-40ab-9718-23bdc179a0a5" ], "errors": [], "isSuccess": true } ] } }, "version": 1 }