User Tools

Site Tools


api:number:combine

API : Number Combine

Introduction

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, 100, 200, 300, 400, 500, 1000.

Request

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 comnbine (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

Query example

GET https://api.telecomx.dk/number/+4570305050/combine?lastNumber=+4570305059&wholesale=900&price=1000

Response

Json object
success Boolean True on success

Example

{
  success: true
}

Errors

Error code Message Description
400 bad_request Number not found in request URI
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
api/number/combine.txt · Last modified: 2023/10/30 20:46 by Per Møller

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki