Get Started with Revenue Management Developer Resources
Revenue Management Settings
Run Salesforce Headless Pricing Action
Run Salesforce Pricing Action
Previous Versions
Invoke the Pricing Connect API by providing the context, pricing procedure, and price waterfall details.
This action is available in API version 60.0 and later. You can use this action with Flows only. To use this action with an API tool such as Postman, see Run Salesforce Headless Pricing Action.
The Run Salesforce Pricing action is available in Developer, Enterprise, and Unlimited Editions where Salesforce Pricing is enabled.
URI: /services/data/v68.0/actions/standard/runSalesforcePricing
Formats: JSON, XML
HTTP Methods: POST
Authentication: Authorization: Bearer TOKEN
Where TOKEN is a placeholder for your OAuth access token.
| Input | Type | Description |
|---|---|---|
contextInstanceId | string | Required. ID of the context data that’s used to build the pricing procedure. Get the context instance ID by invoking the Context Service API. See Context Service (POST). |
discoveryProcedure | string | Name of the discovery procedure that’s used to execute the discovery process of the pricing data. |
effectiveDate | string | Date when the pricing rules, as specified in the pricing procedure, are applied. The effectiveDate parameter determines which pricing procedure to execute when multiple active versions of pricing procedures are available with different date ranges. |
isDeveloperName | boolean | Indicates whether the input value in a procedure must use the API name of the pricing (true) or the field name (false). |
isSkipWaterfall | boolean | Indicates whether the price waterfall data must be generated (true) or not (false). |
pricingProcedureName | string | Required. Name of the pricing procedure record that’s used to execute the pricing process. |
skipDiscovery | boolean | Indicates whether to skip executing the discovery procedure (true) or not (false). |
| Output | Type | Description |
|---|---|---|
executionId | string | ID of the executed pricing data. |
POST
This sample request is for the Run Salesforce Pricing action.
1{
2 "inputs": [
3 {
4 "contextInstanceId": "32f2c894-ba5e-41c0-91e4-2ab5826f579b",
5 "pricingProcedureName": "PricingAction",
6 "isSkipWaterfall": false,
7 "skipDiscovery": false,
8 "isDeveloperName": true,
9 "effectiveDate": "2023-11-16T12:20:00.000Z",
10 "discoveryProcedure": "ES1"
11 }
12 ]
13}This sample response is for the Run Salesforce Pricing action.
1{
2 "actionName": "runSalesforcePricing",
3 "errors": null,
4 "isSuccess": true,
5 "outputValues": {
6 "executionId": "2QTurzG2NRQ5bgrjvvqyh"
7 },
8 "version": 1
9}