Create Voucher Object
Sets a value in the voucher.
Resource URIs
GET/POST Parameters
- accessDays
- Optional. If specified, this value will be set as the number of days of access in the voucher.
- otp
- Optional. If specified, this value will be set as the voucher in the voucher. If not specified, a random voucher will be generated.
- sendEmail
- Optional. Defaults to 1. If 1, the user will be emailed the voucher code (if an email is populated).
- sendSms
- Optional. Defaults to 1. If 1, the user will be sent the voucher code (if an SMS is populated) via SMS.
Examples
http://test.company.net/admin/api/zAdBCLcgrwca/object/otp/xyz/ create?name=bob&email=bob@test.com&sendEmail=1