Creates a plan with the given configuration.
Name of the plan which can be any thing you like.
The number of occurrences for the plan. Required if recurring is true.
Recurring periodicity type. Possible values are 0=Daily, 1=Weekly, 2=Monthly. Required if recurring is true.
Along with recurring_periodicity_type will determine the frequency at which the subscriber will receive its packages. For example recurring_periodicity_frequency=0 and recurring_periodicity_frequency=2, the subscriber is going to receive a package every 2 days. Required if recurring is true.
First threshold for throttling, in percentage of the total volume of the package. Required if throttling is true.
Limit to apply when the subscriber is crossing the first threshold. It's units is Kbit/sec. Required if throttling is true.
Second threshold for throttling, in percentage of the total volume of the package. Required if throttling is true.
Limit to apply when the subscriber is crossing the second threshold. It's units is Kbit/sec. Required if throttling_threshold2_perc is present in request.
Third threshold for throttling, in percentage of the total volume of the package. Required if throttling is true.
- With recurring and throttling enabled
- Minimal example with recurring and throttling disabled
- With only throttling enabled
- With only recurring enabled
curl -i -X POST \
'https://api.tellisim.com/v3/plans?key=YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"coverage_id": "819b05c4-f154-4df9-8fd1-16be3e82f5c6",
"data_MBs": 1024,
"name": "test1 recurring and throttling package",
"period_days": 1,
"recurring": true,
"throttling": true,
"nb_occurrence": 2,
"recurring_periodicity_type": "0",
"recurring_periodicity_frequency": 2,
"throttling_threshold1_perc": 50,
"throttling_threshold1_limit": "10240",
"throttling_threshold2_perc": 75,
"throttling_threshold2_limit": "5120",
"throttling_threshold3_perc": 90,
"throttling_threshold3_limit": "1024"
}'Plan created successfully
A message providing additional information about the error (if any)
{ "error": false, "message": "plan created successfully", "plan_id": "39c3ae26-22a5-49cb-93ca-2fe65b3a5c69" }