Knowladge Base

3C PLACE BACK ORDERS FOR YOUR DIDs

Place Back Order for the DIDs you need.

 

Example URL:

http://newapi.didx.net/DidxApis/api/PlaceBackOrder.php?UserID=700290&Pass=XXXX&Qty=1

 

Example Code in PHP:

<?php

$curl_handle = curl_init();

$url = "http://newapi.didx.net/DidxApis/api/PlaceBackOrder.php?UserID=700290&Pass=XXXX&Qty=1";

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. BackOrderList_ID
    4. Quantity
    5. UserData
    6. NotifyURL

 

Returned Fields:

    1. ReturnValue? – contains User data.
    2. DID – DID number which is being added to account as back order.
    3. Qty – Total quantity of DIDs in complete back order.

 

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 UserID/Password

-2 – Account is not Active

-3 – Invalid account type.

-4 – Invalid quantity provided.

-5 – Insufficient funds to place back order.

-6 – No backorder record available

1 – Successfully placed back order.