Knowladge Base

3D OFFER DID FOR SALE

This method allow seller to offer DID to sale over DIDx.net

 

Example URL:

http://newapi.didx.net/DidxApis/api/OfferDIDToSale.php?UserID=700290&Password=XXXX&DIDNumber=123456789

 

Example Code in PHP:

<?php

$curl_handle = curl_init();

$url = "http://newapi.didx.net/DidxApis/api/OfferDIDToSale.php?UserID=700290&Password=XXXX&DIDNumber=123456789";

curl_setopt($curl_handle, CURLOPT_URL, $url);

curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, true);

$curl_data = curl_exec($curl_handle);

curl_close($curl_handle);

$response_data = json_decode($curl_data);

print_r($response_data);

die();

?>

 

Input Fields:

    1. UserID
    2. Pass
    3. DIDNumber
    4. CountryCode
    5. AreaCode
    6. SetupCost
    7. MonthlyCost
    8. FreeMinutes
    9. PerMinCHargesAfterFreeMinutes
    10. Channels
    11. Codec
    12. AllowForCallingCard
    13. NetworkOrReseller

 

Returned Fields:

None

Error Codes:

In case of any incorrect information provided by the user or in case of no matching data, an error code will be returned. Error codes correspond to the following messages:

-1 : Invalid login info.

-9 : Invalid US number

-30: Invalid account type

-10: Number already exist in the system

-11: Invalid area or country code

-12: Invalid area or country code

-13: one of the arguments sent as blank

-14: Restricted area codes

-15: Invalid billing values

-30: Invalid account type