transferVoxnumbers

Request Method: PUT

Description: This function will move the VoxNumbers in the payload from an origin account to a destination account.

URL: https://api.iovox.com:444/Voxnumbers?v=3&method=transferVoxnumbers

Note: This function will not transfer a VoxNumber which is still assigned to a link

The following parameters can be sent in the querystring

ParameterDescriptionDefault ValueData TypeMandatory
vAPI version to use INTEGERYES

Payload

<?xml version="1.0" encoding="utf-8"?>
<request>
    <origin_partner_name>Account A</origin_partner_name>
    <destination_partner_name>Account B</destination_partner_name>
    <voxnumbers>
        <voxnumber>442035514820</voxnumber>
        ...
    </voxnumbers>
</request>

Parameters

ParameterDescriptionDefault ValueData TypeMandatory
origin_partner_nameThe origin partner account from where the VoxNumber is allocated STRINGYES
destination_partner_nameThe destination partner account where we want to place the VoxNumber STRINGYES
voxnumbers > voxnumberOne or multiple VoxNumbers we want to transfer from the origin partner account to the destination partner account INTEGERYES

Result

Error Result

HTTP CodeError StringResolution
400API Version EmptyAdd a value for the v parameter in the query string
400API Version InvalidCorrect v parameter
400XML EmptyCorrect XML payload
400XML Parse Error

Correct XML payload

400Origin Partner Name is emptyAdd Origin Partner Name
400Origin Partner Name does not existCorrect the Origin Partner Name
400Destination Partner Name is emptyAdd Destination Partner Name
400Destination Partner Name does not existCorrect the Destination Partner Name
400voxnumbers is emptyCorrect VoxNumber(s)
400voxnumber x of y is emptyAdd a VoxNumber
400voxnumber x of y does not existCorrect VoxNumber
400voxnumber x of y is not in a international formatCorrect VoxNumber
400voxnumber x of y is not availableDettach the VoxNumber from link in order to transfer VoxNumber

Success Result

HTTP/1.1 204 No Content