JSON API » plans » plans/get

Gets the fields of a rate plan.

Input parameters

Does not require authentication.

NameTypeDescriptionRequiredDefault value
auth_usernameStringAuthentication username.NoNone.
auth_passwordStringAuthentication password.NoNone.
idIntegerID of rate plan to get.NoID of rate plan authentication user is on.

If no authentication is provided, id must be specified.

Responses

CodeDescription
200Success.
401The authentication details provided are invalid.
404The rate plan does not exist, or you do not have permission to view it.

Data returned

Fields of rate plan.

Example: With required parameters

http://enswitch.example.com/api/json/plans/get/?id=123

{ "responses":[ { "code":"200", "key":"", "message":"OK" } ], "data":{ "id":123, "name":"example", ... } }

Change history

VersionChanges
3.14inconnect, incost, inmessage, outconnect, outcost, and outmessage return fields renamed to inconnect_markup, incost_markup, inmessage_markup, outconnect_markup, outcost_markup, and outmessage_markup.
3.13Function added.