Pricing Procedure v. 1.0
The Pricing Procedure object defines the method and succession of discount calculations for each order. The procedure is specified in JSON format in the Pricing Procedure field or by using the Procedure Builder.
| Since CT Orders 2.0, the pricing procedure v. 2.0 is available. |
Syntax Sample
JSON Key Description
| Key | Type | Required | Comment | ||
|---|---|---|---|---|---|
isIgnoresNull |
Boolean |
No |
If true that between the Calculated Type records will be selected minimum discount except for 0 discounts.
|
||
items |
Array |
Yes |
An array of calculated discounts. At least one item must be provided. |
||
calculationType |
String |
No |
The value from the External ID field of the Calculation Type record. |
||
procedure |
Object |
Yes |
Pricing Procedure. |
||
round |
Enum |
No |
The condition for rounding. If set, values will be rounded according to the selected value. Available values:
Otherwise, the value will be rounded after all discounts are calculated according to the number of digits in the Unit Price field on the Order Line Item record. |
||
roundTo |
Integer |
No |
The precision for rounding in the number of decimals (digits after the comma).
|
||
type |
Enum |
Yes |
Available values:
|
Type Values Description
| Operator | Description | Example | ||
|---|---|---|---|---|
MAX |
The discount with maximum discount or markup is applied depending on a selected Calculation Method of Calculation Type.
Important notes:
|
|||
MIN |
The discount with minimum discount or markup is applied depending on a selected Calculation Method of Calculation Type.
|
|||
MULT |
Sequential application of discounts.
|
Given: Product List Price = 100$ Discount A = 10% Discount B = 10% Discount С = 20% Then: Operation: 100 (A) → 90 (B) → 81 © → 64.8$ |
||
SUM |
Simultaneous application of a total sum of all discounts. The operator can be used for Calculation Type with Unit of Measure = Percent and any Calculation Method. |
Given: Product List Price = 100$ Discount A = 10% Discount B = 10% Discount С = 20% Then: Operation: SUM discounts = 40% Apply discount: 100 → 60$ |