JSON API » plans » plans/classes/list

Gets the fields of all number classes in a given rate plan.

Input parameters

No authentication is required.

NameTypeDescriptionRequiredDefault value
planIntegerID of rate plan to get number classes for.Yes

Responses

CodeDescription
200Success.
400The rate plan does not exist.

Data returned

An array of fields, corresponding to the rows of the plan_classes table in the database.

Example: With required parameters

http://enswitch.example.com/api/json/plans/classes/list/?plan=123

{ "responses":[ { "code":"200", "key":"", "message":"OK" } ], "data":[ { "id":1, "plan":123, ... }, { "id":2, "plan":123, ... } ] }

Change history

VersionChanges
3.13Function added.