JSON API » customs » customs/list

Gets array of fields of all custom settings in given rate plan.

Input parameters

Requires authentication and the commerce role privilege.

NameTypeDescriptionRequiredDefault value
auth_usernameStringAuthentication username.Yes
auth_passwordStringAuthentication password.Yes
planIntegerID of rate plan to get custom settings for.Yes, unless available is specified.
availableInteger1 to return the names of all possible custom settings, 0 to use rate plan.No0

Specify plan or available, not both.

Responses

CodeDescription
200Success.
400Invalid rate plan specified.
401The authentication details provided are invalid.
402Your role does not allow this.

Data returned

An array of fields, corresponding to the rows of the customs_* tables in the database.

Example: With rate plan

http://enswitch.example.com/api/json/customs/list/?auth_username=user;auth_password=password;plan=123

{ "responses":[ { "code":"200", "key":"", "message":"OK" } ], "data":[ { "plan":1, "name":"footer_text", ... }, { "plan":2, "name":"footer_url", ... } ] }

Change history

VersionChanges
3.13Function added.