User Tools

Site Tools


api:number:close

API : Number close

Introduction

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.

Request

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.

Query example

GET https://api.telecomx.dk/number/+4570305050/close

Response

Json object
success Boolean True on success

Example

{
  success: true
}

Errors

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>
api/number/close.txt · Last modified: 2015/08/23 08:51 by Per Møller

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki