❗️ Deprecated
This endpoint represents the deprecated version of the API responsible for promotion tier redemption, and we do not recommend using it. The new Stackable Discounts API introduces additional features and improvements while maintaining backward compatibility, including applying a combination of coupon codes and promotion tiers. Developers are encouraged to migrate to the latest version to take advantage of the latest enhancements and bug fixes. No updates will be provided to the deprecated endpoint.
To verify whether the promotion tier discount can be applied to an order. This method is designed for server side integration which means that it is accessible only through private keys.
The access token received from the authorization server in the OAuth 2.0 flow.
Unique promotion tier ID.
Provide the customer and order context.
Request schema model for validating a promotion using POST v1/promotions/tiers/{tierId}/validation.
Customer's information.
Order information.
A set of key/value pairs that you can send in the request body to check against vouchers requiring redemption metadata validation rules to be satisfied. The validation runs against rules that are defined through the Create Validation Rules endpoint or via the Dashboard; in the Advanced Rule Builder → Advanced → Redemption metadata satisfy or Basic Builder → Attributes match → REDEMPTION METADATA. Read more.
Returns validation result in valid key of the promotion tier object. Returns true if the promotion tier rules and validation rules are satisfied given the request body parameters. Returns false if the data provided in the payload does not meet validation rules or promotion tier requirements.
Response schema model for validating a promotion using POST v1/promotions/tiers/{tierId}/validation.
Indicates whether the promotion is valid within the context of the parameters provided in the request body and filters in the query parameters.
Contains list of items that qualify in the scope of the discount. These are definitions of included products, SKUs, and product collections. These can be discounted.
Contains list of items that do not qualify in the scope of the discount. These are definitions of excluded products, SKUs, and product collections. These CANNOT be discounted.
Hashed customer source ID.
This is an object representing an order with calculated discounts applied using the voucher code.
Unique promotion tier ID.
"promo_4TqHr24boFISDrcOHSlfAxwm"
Custom promotion tier name.
Text to be displayed to your customers on your website.
"Get 45% off items"
Contains information about the discount to be applied to the order.
Activation timestamp defines when the promotion tier starts to be active in ISO 8601 format. Campaign is inactive before this date.
"2022-11-02T00:00:00.000Z"
Activation timestamp defines when the promotion tier expires in ISO 8601 format. Promotion tier is inactive after this date.
"2022-11-04T00:00:00.000Z"
The promotions hierarchy defines the order in which the discounts from different tiers will be applied to a customer's order. If a customer qualifies for discounts from more than one tier, discounts will be applied in the order defined in the hierarchy.
The calculated discount amount based on the discount type and effect.
The effective discount amount that would be applied to the order.
The metadata object stores all custom attributes assigned to the promotion tier. A set of key/value pairs that you can attach to a promotion tier object. It can be useful for storing additional information about the promotion tier in a structured format.
The type of the object represented by JSON. This object stores information about the promotion tier.