JSON API » plans » plans/fees/get

Gets a fee for a rate plan feature.

Input parameters

Does not require authentication, unless plan is not specified.

NameTypeDescriptionRequiredDefault value
auth_usernameStringAuthentication username.No, unless plan not specified.
auth_passwordStringAuthentication password.No, unless plan not specified.
featureStringFeature to get fees for.Yes
occursStringWhen the fee occurs.Yes
customerIntegerID of customer to create in.NoCustomer of authentication user.
currencyStringCurrency to return fee in.NoSee below.
planIntegerID of rate plan.NoRate plan of authentication user.
taxesInteger1 to include taxes, 0 not to. Only used if authentication is provided.No0

If the currency is not specified, the customer's billing currency is used if authentication is provided, else the system currency.

Responses

CodeDescription
200Success.
400Invalid input parameters specified. Check the key and message fields for more details.
401The authentication details provided are invalid.

Data returned

Fee amount.

Example: With rate plan

http://enswitch.example.com/api/json/plans/fees/get/?plan=123;feature=phone;occurs=signup

{ "responses":[ { "code":"200", "key":"", "message":"OK" } ], "data":{ "fee":"9.99", ... } }

Change history

VersionChanges
3.14taxes input parameter added.
3.13Function added.