Retrieve the available package durations for cloud numbers. If the returned duration list is empty, it means that cloud numbers of the specified region and type are not available for purchase.
POST/api/v1/cloudNumber/package| Parameter | Type | Required | Description |
|---|---|---|---|
| region | string | Yes | Region code in ISO 3166-1 alpha-2 format. Examples: United States = US, Russia = RU, Brazil = BR. A complete list of country codes can be found in the ISO 3166 country code standard. |
| type | integer | No | Number type. 0 = VOIP (Virtual Number), 1 = Non-VOIP (Physical Number). Defaults to Non-VOIP if not specified. |
{
"region": "US",
"type": 0
}
{
"code": 200,
"data": {
"duration": [
"30 days",
"87 days",
"360 days"
]
},
"message": "Success"
}