JSON API » plans » plans/classes/prices
Gets prices for customer to purchase number.
Input parameters
Does not require authentication.
Name | Type | Description | Required | Default value |
---|---|---|---|---|
class | Integer | ID of number class. | Yes | |
plan | Integer | ID of rate plan. | Yes | |
currency | String | Currency to return prices in. | No | System currency. |
Responses
Code | Description |
---|---|
200 | Success. |
400 | Invalid 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
Version | Changes |
---|---|
3.13 | Function added. |