Let us know so we can improve!
The online Trailblazer Community is now read-only. [Read the FAQ] [Get Help]
Defines the business logic for an item-level price adjustment, for example, a discount on an order item. This object interface is available in API version 55.0 and later.
describeSObjects(), query(), retrieve()
This object interface is available with Subscription Management or B2B Commerce.
Type: picklist
Properties: Filter, Group, Nillable, Restricted picklist, Sort
Description: Used with AdjustmentValue to determine the amount of the adjustment.
Possible values:
Total—The adjustment applies to the line item’s total and isn’t multiplied by the quantity, prorated for the duration of the subscription.
For example, let’s say a sales transaction item quantity is 10 and the TotalLineAmount is 1000. If the price adjustment item has an AdjustmentValue of -10, an AdjustmentType of AdjustmentAmount, and an AdjustmentAmountScope of Total, the $10 discount is applied to the total line amount. The TotalAmount of the price adjustment item is $1000 + (-$10) = $990.
Unit—The adjustment is multiplied by the line item’s quantity.
For example, let’s say a sales transaction item quantity is 5 and the TotalLineAmount is 1000. If the price adjustment item has an AdjustmentValue of -10, an AdjustmentType of AdjustmentAmount, and an AdjustmentAmountScope of Unit, the $10 discount is applied to each line amount. The TotalAmount of the price adjustment item is $1000 + (-$10 x 5) = $950.
Type: picklist
Properties: Filter, Group, Restricted picklist, Sort
Description: Indicates the source of the adjustment.
Possible values:
Discretionary—The adjustment is entered manually; for example, by a sales rep.Promotion—The adjustment is a promotion.Rule—Reserved for future use.System—The adjustment is determined by the pricing configuration for the product; for example, as part of a discount schedule.Type: picklist
Properties: Filter, Group, Restricted picklist, Sort
Description: Indicates whether the adjustment is a percentage, an amount, or an override.
Possible values:
AdjustmentAmountAdjustmentPercentageOverrideAmountAdjustmentAmountScope to determine the amount of the adjustment.Type: int
Properties: Filter, Group, Nillable, Sort
Description: A positive integer indicating the order in which this price adjustment item is applied, relative to other price adjustment items. A Priority of 1 indicates this price adjustment item is applied first.
Price adjustments with a null priority are applied after price adjustments with a specified priority. If two or more price adjustments have a null priority, percentage adjustments are applied before amount adjustments. Applying a percentage adjustment before an amount adjustment results in a larger total adjustment.
The value of Priority must be unique among price adjustment items related to the same price adjustment group. For example, you can’t have two price adjustment items with a priority of 1.
For example, let’s say that two price adjustment items apply to the same item to be priced. The first price adjustment, Spring_Promotion, defines a 10% discount and has Priority of 1. The second price adjustment, Early_Renewal_Discount, defines a $2,000 discount and has a Priority of 2. In this case, the Spring_Promotion price adjustment is applied before the Early_Renewal_Discount price adjustment.
Type: currency
Properties: Filter, Sort
Description: The total amount of the adjustment that applies to the item to be priced, inclusive of quantity, prorated for the duration of the subscription.
For example, let’s say the price adjustment item has an AdjustmentAmountScope of Unit, an AdjustmentType of AdjustmentAmount, and an AdjustmentValue of -10. This configuration indicates a $10 per-unit discount. If the subscription is priced for 12 months and the pricing term is 1, the PricingTermCount on the sales transaction item is 12. If the quantity is 5, the value of TotalAmount is 5 x 12 x -10 = -600