Release Notes (Version 1.2)
Its very often the case with businesses who want to gain new customers and give discounts only to new users, and in some cases reward only the existing customers for their loyalty. So, to handle these situations we we have updated our API and added a new field for the coupons entity.
The details of the field is as follows
Field Name
Allowed Users
Accepted Values
All Users (0)
Only New Users (1)
Only Existing Users (2)
All the validation of this field will be taken care by our API as per the following logic.
CASE 1
When the coupon is selected as "Only New Users (1)"
This will give the validation error from the API if the user has ever used any coupon on your platform before.
Validation Error Code
1006
Validation Error Message
Coupon allowed only for new users
CASE 2
When the coupon is selected as "Only Existing Users (2)"
This will give the validation error from the API if the user has not used any coupon on your platform before.
Validation Error Code
1007
Validation Error Message
Coupon allowed only for existing users
You need to pass the "user_id" parameter in the validation request to API to get these validation work
Please note that all the details related to field and validation is applicable only on "coupons" entity and there will be no changes in the "voucher" entity.
These changes are already live on our systems. We have set the default value as "All Users (0)" for all the existing coupons. To make any changes related to this, you can do so from your dashboard.