❗️ 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 redeem a promotion, you create a redemption object passing a context.
You can retrieve a list of active promotions through the Validate Promotions endpoint. That validation method will return a list of active promotion tiers identified by thier IDs.
📘 Redemption rollback
Do you need to undo a redemption? You can do it with redemption rollback.
The access token received from the authorization server in the OAuth 2.0 flow.
ID of the promotion tier to be redeemed.
"promo_2EnAik6Jt7dKTOMkRTIgEjZH"
Provide the redemption context in the request body.
Redeem a promotion tier.
Customer's information.
Order information.
A set of key/value pairs that you can send in the request body to check against promotion tiers 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 a redemption object if the redeem operation succeeded.
This is an object representing a promotion tier redemption.
Unique redemption ID.
"r_0bc92f81a6801f9bca"
The type of the object represented by the JSON. This object stores information about the redemption.
Timestamp in ISO 8601 format indicating when the redemption occured.
"2022-10-03T12:24:58.008Z"
Unique customer ID of the redeeming customer.
"cust_i8t5Tt6eiKG5K79KQlJ0Vs64"
Hashed customer source ID.
"track_fxEMFiLowFHg=="
The metadata object stores all custom attributes in the form of key/value pairs assigned to the redemption.
Redemption result.
SUCCESS, FAILURE Defines the details of the order that is related to the redemption.
Defines the details of the channel through which the redemption was issued.
Defines the customer that is related to the redemption.
Defines the related object.
promotion_tier Unique related object ID assigned by Voucherify, i.e. promo_NzjTc3ZXTe7md5SziK3uYtei for a promotion tier.
Contains details of the promotion tier and the parent campaign.