User Tools

Site Tools


api:number:split

API : Number Split

Introduction

This request will split a range of numbers into smaller ranges.

Request

URL https://api.telecomx.dk/number/NUMBER_ID/split
Method GET
Access level RESELLER_ADMIN with PORTING feature or ADMIN.
Param NUMBER_ID Id of the number (E.164 format)
Query chunkSize How many numbers should be in each range after the split: 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 200, 300, 400, 500, 600, 700, 800, 900, 1000
wholesale The resellers price for one of the ranges after the split
price The customers price for one of the ranges after the split

Query example

GET https://api.telecomx.dk/number/+4570305050/split?chunkSize=10&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 chunkSize Chunk size is invalid
422 wholesale Wholesale is invalid
422 price Price is invalid
409 range Number is not part of a range - splitting is not possible
409 split Numbers could not be split because they do not share state, type, voiceAccount, customer and rangeOwner
422 chunkSize Range is too small for the requested chunk size
422 chunkSize The chunk size does not allow for an even split of the range
403 access_denied Insufficient access level
404 not_found Number not found
api/number/split.txt · Last modified: 2023/10/30 20:46 by Per Møller

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki