Body
Required
-
Allowed duration actual value
-
Price in decimal
-
Max devices allowed in this package
-
Download speed , 0 for unlimited ( only if speed_limit is True)
-
Total allowed data in MB, 0 for unlimited ( only if data_limit is True)
-
Internal comments
-
Set speed to be unlimited in voucher
-
Set data to be unlimited in voucher
-
Type for time duration (1,'Minutes'),(2,'Hours'),(3,'Days')
-
Upload speed , 0 for unlimited ( only if speed_limit is True)
PUT
/ext/{siteid}/api/v1/voucher/{voucherid}
curl \
--request PUT 'http://api.example.com/ext/{siteid}/api/v1/voucher/{voucherid}' \
--header "Authentication-Token: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"duration_val":42,"price":42.0,"num_devices":42,"speed_dl":42,"bytes_t":42,"notes":"string","unlimited_speed":true,"unlimited_data":true,"duration_type":42,"speed_ul":42}'
Request examples
{
"duration_val": 42,
"price": 42.0,
"num_devices": 42,
"speed_dl": 42,
"bytes_t": 42,
"notes": "string",
"unlimited_speed": true,
"unlimited_data": true,
"duration_type": 42,
"speed_ul": 42
}