Create Ramp Deal (POST)

Create a ramp deal for a customer on a product. Sales reps can use ramp deals to provide yearly deals to a customer, resulting in long-term revenue and customer relationship. A customer can create, update, or view multiple segments of periods for their subscription term with different attributes for each segment.

This API request creates segments based on the specified input properties such as term, segment type, and trial details. The API response includes the context ID and the updated context object for the sales transaction. You must call the Place Sales Transaction API by specifying this context ID to apply the ramp deal updates. See Place Sales Transaction API .

This API is applicable when you’re working with line ramps. To work with ramp deals for groups, you must use the Place Sales Transaction API and specify the groupRampActions property.

Note

Resource 

1/connect/revenue-management/sales-transaction-contexts/{resourceId}/actions/ramp-deal-create

Resource Example 

1https://{yourInstance}.salesforce.com/services/data/v68.0/connect/revenue-management/sales-transaction-contexts/{0QLxx0000004CfIGAU}/actions/ramp-deal-create

Available Version 

62.0

HTTP Methods 

POST

Path Parameter for POST 

NameTypeDescriptionRequired or OptionalAvailable Version
resourceIdStringID of the quote line item, order item, or context.Required62.0

Request Body for POST 

JSON Example

1{
2  "transactionId": "0Q0xx0000004C92CAE",
3  "transactionLineId": "0QLxx0000004C9VGAU",
4  "subscriptionTerm": 14,
5  "subscriptionTermUnit": "MONTHS",
6  "trialTerm": 45,
7  "trialTermUnit": "DAYS",
8  "segmentType": "YEARLY",
9  "executionSettings": {
10       "executePricing": true,
11       "executeConfigRules": false
12   }
13}

Properties

NameTypeDescriptionRequired or OptionalAvailable Version
execution​SettingsExecution Settings Input[]Settings to run the pricing or configuration rules.Optional62.0
segment​TypeStringType of segment that the user wants to create. Valid values are FREE_TRIAL, CUSTOM, or YEARLY.Required62.0
subscription​TermIntegerSubscription length of the term-defined product.Required62.0
subscription​TermUnitStringUnit of time for the subscription length. Valid value is MONTHS.Required62.0
transaction​IdStringID of the sales transaction that’s configured, such as quote or order.Required62.0
transaction​LineIdStringQuote line item ID or order item ID that the price ramp is created for.Required62.0
trialTermIntegerLength of the trial period, if any.Optional62.0
trialTerm​UnitStringUnit of time for the trial period. Valid value is DAYS.Optional. Required if trialTerm property is specified.62.0

Response Body for POST 

Ramp Deal Service