You can generate a voucher via our Classroom Distributor API via this URL
The request in JSON format looks like this:
“numberOfDays”: <The licence duration for the voucher in days>,
“distributorId”: <Your distributor serial identification>,
“apiKey”: <Your API key>
The resulting URL would look like https://api.jollyclassroom.com/classroom.DistributorApi/CreateVoucher?numberOfDays=<The licence duration for the voucher in days>&distributorId=<Your distributor serial identification>&apiKey=<Your API key>
The answer of the request would look as follows:
"id": <Your voucher code>,
"code": <Your voucher code>,
"subscriptionDays": <The licence duration for the voucher in days>,
"customerCurrency": <Your currency>
"state": <The state of your voucher (pending or redeemed)
Side note: The voucher code can be either id or properties > code values.
Feel free to test our API here.
Please sign in to leave a comment.