This request will combine a series of numbers into a range.
The size of the combined range must be one of 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 200, 300, 400, 500, 600, 700, 800, 900 or 1000.
| URL | https://api.telecomx.dk/number/NUMBER_ID/combine | |
|---|---|---|
| Method | GET | |
| Access level | RESELLER_ADMIN with PORTING feature, or ADMIN. | |
| Param | NUMBER_ID | The first number (E.164 format) to combine |
| Query | lastNumber | The last number to combine (E.164 format) |
| wholesale | The resellers price for one of the ranges after the combine | |
| price | The customers price for one of the ranges after the combine | |
GET https://api.telecomx.dk/number/+4570305050/combine?lastNumber=+4570305059&wholesale=900&price=1000
| Json object | ||
|---|---|---|
| success | Boolean | True on success |
{ "success": true }
| Error code | Message | Description |
|---|---|---|
| 422 | id | Number is invalid (not E.164 format) |
| 422 | lastNumber | Last number is not a valid E.164 number |
| 422 | wholesale | Wholesale is invalid |
| 422 | price | Price is invalid |
| 422 | combine | The size of the range is invalid |
| 409 | combine | Numbers could not be combined because they do not share state, type, voiceAccount, customer and rangeOwner |
| 403 | access_denied | Insufficient access level |
| 404 | not_found | Number not found |
| 500 | internal_error | <Unspecified> |