Skip to content

Latest commit

 

History

History
26 lines (23 loc) · 3.62 KB

ApplicableTo.md

File metadata and controls

26 lines (23 loc) · 3.62 KB

# ApplicableTo

Properties

Name Type Description Notes
object string This object stores information about the resource to which the discount is applicable. [optional]
id string Unique product collection, product, or SKU identifier assigned by Voucherify. [optional]
sourceId string The source identifier from your inventory system. [optional]
productId string Parent product's unique ID assigned by Voucherify. [optional]
productSourceId string Parent product's source ID from your inventory system. [optional]
strict bool [optional]
price float New fixed price of an item. Value is multiplied by 100 to precisely represent 2 decimal places. For example, a $10 price is written as 1000. In case of the fixed price being calculated by the formula, i.e. the price_formula parameter is present in the fixed price definition, this value becomes the fallback value. Such that in a case where the formula cannot be calculated due to missing metadata, for example, this value will be used as the fixed price. [optional]
priceFormula float Formula used to calculate the discounted price of an item. [optional]
effect string [optional]
quantityLimit int The maximum number of units allowed to be discounted per order line item. [optional]
aggregatedQuantityLimit int The maximum number of units allowed to be discounted combined across all matched order line items. [optional]
amountLimit int Upper limit allowed to be applied as a discount per order line item. Value is multiplied by 100 to precisely represent 2 decimal places. For example, a $6 maximum discount is written as 600. [optional]
aggregatedAmountLimit int Maximum discount amount per order. Value is multiplied by 100 to precisely represent 2 decimal places. For example, a $6 maximum discount on the entire order is written as 600. This value is definable for the following discount effects: - `APPLY_TO_ITEMS` (each item subtotal is discounted equally) - `APPLY_TO_ITEMS_BY_QUANTITY` (each unit of matched products has the same discount value) [optional]
orderItemIndices int[] Lists which order lines are (not) covered by the discount. The order in the array is determined by the sequence of applied discounts, while the numbers correspond to the order lines sent in the `order` object in the request. The first order line is assigned `0`, the second order line is assigned `1`, and so on. [optional]
orderItemUnits \OpenAPI\Client\Model\ApplicableToOrderItemUnitsItem[] Lists which units within order lines are covered by the discount. The order line items are listed according to sequence of applied discounts while the `index` corresponds to the order line sent in the `order` object in the request. [optional]
repeat int Determines the recurrence of the discount, e.g. `"repeat": 3` means that the discount is applied to every third item. [optional]
skipInitially int Determines how many items are skipped before the discount is applied. [optional]
target string Determines to which kinds of objects the discount is applicable. `ITEM` includes products and SKUs. `UNIT` means particular units within an order line. [optional]

[Back to Model list] [Back to API list] [Back to README]