promotionRule: The discount rule for this promotion. Its shape is selected by the parent promotion's promotionClass (product, order, or shipping) and holds the discount, tiers, BOGO, thresholds, max-applications, and class-specific flags.
property
qualifyingProducts: The products a customer must purchase for the promotion to apply.
property
discountedProducts: The products that receive the discount. Valid only for a product-class promotion; supplying it for an order or shipping promotion is rejected with a 400.
property
excludedProducts: The products excluded from both qualifying for and receiving the discount. Valid only for an order-class promotion; supplying it for a product or shipping promotion is rejected with a 400.
property
paymentMethodQualifiers: The payment methods the promotion is restricted to.
title: A short, human-readable summary of the problem type. It will not change from occurrence to occurrence of the problem, except for purposes of localization
Max Length: 256
property
type: A URI reference [RFC3986] that identifies the problem type. This specification encourages that, when dereferenced, it provide human-readable documentation for the problem type (e.g., using HTML [W3C.REC-html5-20141028]). When this member is not present, its value is assumed to be "about:blank". It accepts relative URIs; this means that they must be resolved relative to the document's base URI, as per [RFC3986], Section 5.
Max Length: 2048
property
detail: A human-readable explanation specific to this occurrence of the problem.
property
instance: A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced. It accepts relative URIs; this means that they must be resolved relative to the document's base URI, as per [RFC3986], Section 5.
Money:{ currencyMnemonic?: string; value?: number } & {}
property
currencyMnemonic: A three letter uppercase currency code conforming to the ISO 4217 standard, or the string N/A indicating that a currency is not applicable.
Pattern: /^([A-Z][A-Z][A-Z]|N/A)$/
property
value: The amount of money for the given currency.
promotionClass: The promotion class discriminator. Always order for an order promotion rule.
property
discount: The discount applied by this rule.
property
tiers: The tiered discounts, applied by threshold. Empty or absent for a non-tiered rule.
property
discountOnlyQualifyingProducts: Determines if only the qualifying products are discounted.
property
excludeDiscountedProducts: Determines if products that already received a product-level discount are excluded.
property
disableGlobalExcludedProducts: Determines if this rule ignores the site-level global product exclusions. Distinct from the promotion-level disableGloballyExcluded flag.
property
enableUpsells: Determines if the promotion is returned as an approaching promotion to encourage upsell.
property
upsellThreshold: The amount by which the merchandise total may fall short of the purchase condition and still upsell.
OrderPromotionRulePromotionClassEnum
OrderPromotionRulePromotionClassEnum:"order"
PaginatedResultBase
PaginatedResultBase:{ limit: number; offset: number; total: number } & {}
property
offset: The zero-based index of the first hit/data to include in the result.
property
limit: Maximum records to retrieve per request. The limit with its constraints (minimum, maximum, default) is defined by the request parameter limit of the endpoint returning this schema.
property
total: The total number of hits that match the search's criteria. This can be greater than the number of results returned as search results are pagenated.
sorts: The sorting that was applied to the result.
property
hits: The sorted array of search hits. Can be empty.
property
offset: The zero-based index of the first hit/data to include in the result.
property
limit: Maximum records to retrieve per request. The limit with its constraints (minimum, maximum, default) is defined by the request parameter limit of the endpoint returning this schema.
property
total: The total number of hits that match the search's criteria. This can be greater than the number of results returned as search results are pagenated.
promotionClass: The promotion class discriminator. Always product for a product promotion rule.
property
discount: The discount applied by this rule.
property
tiers: The tiered discounts, applied by threshold. Empty or absent for a non-tiered rule.
property
bogo: The buy-one-get-one discount. Present only for a buy-X-get-Y product promotion.
property
maxApplications: The maximum number of times the discount can be applied.
property
identicalProducts: Determines if the qualifying and discounted products must all be identical.
property
prorate: Determines if the discount is prorated across the eligible items.
property
disableGlobalExcludedProducts: Determines if this rule ignores the site-level global product exclusions. Distinct from the promotion-level disableGloballyExcluded flag.
archived: Determines if this promotion is archived. This attribute is allowed to be updated when using the Open Commerce API to update multiple promotions at once.
property
assignmentInformation: Information about the assignments and assignment schedules of this promotion.
property
creationDate: Returns the value of attribute 'creationDate'.
property
currencyCode: The ISO 4217 mnemonic code of the currency this promotion is restricted to. If not populated, then there is no currency restriction on the promotion.
Max Length: 3
property
disableGloballyExcluded: Determines if this promotion ignores the global product exclusions for promotions.
property
enabled: Determines if this promotion is enabled. This attribute is allowed to be updated when using the Open Commerce API to update multiple promotions at once.
property
exclusivity: Determines if the promotion can be combined with other promotions of the same promotion class or if it cannot be combined with any other promotions. This attribute is allowed to be updated when using the Open Commerce API to update multiple promotions at once.
property
id: The ID for the promotion.
property
lastModified: Returns the value of attribute 'lastModified'.
property
name: The user supplied name of this promotion, which can be localized.
property
promotionClass: The class of the promotion. If the promotion class is modified, then the promotion rule and all of its values, such as whether or not to disable global product exclusions, are reset.
property
tags: Returns the list of tags assigned to this promotion. If used to set the tags on a promotion, the promotion will only have the tags passed in the input. Any existing tags are removed.
abtestId: If there is only one assignment, and that assignment is an A/B test segment, the ID of the A/B test the segment belongs to. Otherwise, empty.
property
abtestSegmentId: If there is only one assignment, and that assignment is an A/B test segment, the ID of the A/B test segment. Otherwise, empty.
property
active: True if the individual assignment or the multiple assignments are currently active.
property
activeAbtestAssignments: A list of currently active A/B tests this is assigned to.
property
activeCampaignAssignments: A list of currently active campaigns this is assigned to.
property
campaignId: If there is only one assignment, and that assignment is a campaign, the ID of the campaign. Otherwise, empty.
property
enabled:
property
endDate: The end date of the container of the assignment (a Campaign or ABTest). If scheduleType is scheduleType : "multiple" or scheduleType : "none", then then result is null. Also, a null date returns null.
property
schedule: The schedule of the assignment (a Campaign or ABTest). If scheduleType is scheduleType : "multiple" or scheduleType : "none", then then result is null.
property
scheduleType: If there is only one active assignment, or no active assignments and one upcoming assignment, this is that type of assignment (scheduleType : "campaign" or scheduleType : "abtest"). If there are no assignments, it is scheduleType : "none", otherwise, scheduleType : "multiple".
property
startDate: The start date of the container of the assignment (a Campaign or ABTest). If scheduleType is scheduleType : "multiple" or scheduleType : "none", then then result is null. Also, a null date returns null.
property
upcomingAbtestAssignments: A list of upcoming A/B tests this is assigned to.
property
upcomingCampaignAssignments: A list of upcoming campaigns this is assigned to.
exclusivity: Determines if the promotion can be combined with other promotions of the same promotion class, cannot be combined with any other promotion, or has no exclusivity restriction.
property
exclusivityGroup: The ID of the exclusivity group this promotion belongs to. Only meaningful when exclusivity restricts combination to promotions within the same group.
Max Length: 256
property
combinablePromotions: The set of promotion or promotion-group IDs this promotion can be combined with.
property
mutuallyExclusivePromotions: The set of promotion or promotion-group IDs this promotion cannot be combined with.
hits: The sorted array of promotion search hits. Can be empty.
property
query:
property
sorts: The sorting that was applied to the result.
property
offset: The zero-based index of the first hit/data to include in the result.
property
limit: Maximum records to retrieve per request. The limit with its constraints (minimum, maximum, default) is defined by the request parameter limit of the endpoint returning this schema.
property
total: The total number of hits that match the search's criteria. This can be greater than the number of results returned as search results are pagenated.
matchAllQuery: Matches all documents (namespace and document type). This query comes in handy if you just want to filter a search result or really do not have any constraints.
filterMode: Compare mode: overlap, containing, or contained.
property
fromField: The field name of the field that starts the first range.
Max Length: 260
property
fromInclusive: A flag indicating if the lower bound of the second range is inclusive. To make the lower bound exclusive, set to false.
property
fromValue: The lower bound of the second range. If not specified, the range is open-ended with respect to the lower bound. You can't leave both the lower and upper bounds open-ended.
property
toField: The field name of the field that ends the first range.
Max Length: 260
property
toInclusive: A flag indicating if the upper bound of the second range is inclusive. To make the lower bound exclusive, set to false.
property
toValue: The upper bound of the second range. If not specified, the range is open-ended with respect to the upper bound. You can't leave both the upper and lower bounds open-ended.
limit: Maximum records to retrieve per request. The limit with its constraints (minimum, maximum, default) is defined by the request parameter limit of the endpoint returning this schema.
property
total: The total number of hits that match the search's criteria. This can be greater than the number of results returned as search results are pagenated.
limit: Maximum records to retrieve per request, not to exceed 200.
property
query:
property
sorts: The list of sort clauses configured for the search request. Sort clauses are optional. See the description of the search endpoint for details on the default sorting behavior that is used when explicit sorts are not passed.
property
offset: The zero-based index of the first hit/data to include in the result.
promotionClass: The promotion class discriminator. Always shipping for a shipping promotion rule.
property
discount: The discount applied by this rule.
property
tiers: The tiered discounts, applied by threshold. Empty or absent for a non-tiered rule.
property
shippingMethodQualifiers: The shipping methods the promotion applies to. Shipping-class only.
property
prohibitNonqualifyingProducts: Determines if the shipment must contain only qualifying products for the discount to apply.
property
disableGlobalExcludedProducts: Determines if this rule ignores the site-level global product exclusions. Distinct from the promotion-level disableGloballyExcluded flag.
property
maxApplications: The maximum number of times the discount can be applied.
threshold: The threshold at which this tier's discount applies.
property
conditionType: The kind of threshold. All tiers in the same rule MUST send the same value. Valid values depend on the promotion class - product: product_quantity, product_amount; order: order_total, product_quantity, product_combination; shipping: shipment_total, product_quantity, product_combination.
threshold: The quantity of eligible products required.
discount: The discount applied to the bonus product; typically fixed_price, percentage, or amount.
eligibleQuantity: The number of eligible products that earn the bonus.
requireExactEligibleQuantity: Determines if exactly the eligible quantity is required, rather than at least.