Create Voucher(s)
POST
/ext/{siteid}/api/v1/voucher/
Body Required
-
num_devices integer Required
Max devices allowed in this package
-
batchid integer
Optional Batch ID
-
duration_type integer
Type for time duration (1,'Minutes'),(2,'Hours'),(3,'Days')
-
notes string
Internal comments
-
unlimited_data boolean
Set data to be unlimited in voucher
-
duration_val integer
Allowed duration actual value
-
speed_ul integer
Upload speed , 0 for unlimited ( only if speed_limit is True)
-
unlimited_speed boolean
Set speed to be unlimited in voucher
-
price number
Price in decimal
-
num_to_create integer Required
Number of vouchers to create
-
speed_dl integer
Download speed , 0 for unlimited ( only if speed_limit is True)
-
bytes_t integer
Total allowed data in MB, 0 for unlimited ( only if data_limit is True)
POST /ext/{siteid}/api/v1/voucher/
curl \
-X POST https://api.spotipo.com/ext/{siteid}/api/v1/voucher/ \
-H "Authentication-Token: $API_KEY" \
-d '{"notes":"string","unlimited_data":true,"duration_val":42,"speed_ul":42,"unlimited_speed":true,"price":42.0,"num_to_create":42,"speed_dl":42,"batchid":42,"duration_type":42,"bytes_t":42,"num_devices":42}'
Request example
{
"notes": "string",
"unlimited_data": true,
"duration_val": 42,
"speed_ul": 42,
"unlimited_speed": true,
"price": 42.0,
"num_to_create": 42,
"speed_dl": 42,
"batchid": 42,
"duration_type": 42,
"bytes_t": 42,
"num_devices": 42
}