This request will close a number (remove it from the customers, and mark it as closed for the next 6 months).
Only numbers that are not in use by a SIP account, MVNO account or hosted PBX can be closed.
| URL | https://api.telecomx.dk/number/NUMBER_ID/close | |
|---|---|---|
| Method | GET | |
| Access level | OWNER RESELLER (if the customer belongs to the reseller) ADMIN |
|
| Param | NUMBER_ID | The number (E.164 format) to close |
Please note that if a number belongs to a number series, the whole series will be closed.
GET https://api.telecomx.dk/number/+4570305050/close
| Json object | ||
|---|---|---|
| success | Boolean | True on success |
{ success: true }
| Error code | Message | Description |
|---|---|---|
| 404 | not_found | Number not found |
| 409 | id | The number is in use |
| 409 | id | The number is in porting |
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | Range is invalid |
| 404 | not_found | Number not found |
| 500 | internal_error | <unspecified> |