Release Notes

Release Notes (Version 1.3)

Release date: 12 May-2018

We have added a new endpoint to get the statistics for the coupons and remove the statistics retrieval.

Now the coupons statistics can be retrieved by hitting the following endpoint

GET https://api.vauchar.com/coupons/<coupon_id>/stats

The output for this endpoint can be seen on our API doc by going here.

Why we have made this changes?
We always want to provide the detailed statistics for every redemptions made using the coupon. So making a dedicated endpoint to get the statistics for the coupon will enable us with the ability to give more details for redemptions made for the coupons. Very soon, we will be providing you with day to day analysis and interactive graphs for your redemptions, which help you track the redemptions in more detail. 

 

Release Notes (Version 1.2)

Release date: 12 May-2018

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.

Pages