JSON API » plans » plans/classes/prices

Gets prices for customer to purchase number.

Input parameters

Does not require authentication.

NameTypeDescriptionRequiredDefault value
classIntegerID of number class.Yes
planIntegerID of rate plan.Yes
currencyStringCurrency to return prices in.NoSystem currency.

Responses

CodeDescription
200Success.
400Invalid input parameters specified. Check the key and message fields for more details.

Data returned

Cost when purchasing the number (signup) and each billing period (fee).

Example: With required parameters

http://enswitch.example.com/api/json/plans/classes/prices/?class=1;plan=2

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

Change history

VersionChanges
3.13Function added.