Knowladge Base

3B GET A LIST OF AREAS YOU CAN BACK ORDER FROM

Get a list of Areas you can order by country code.

 

Example URL:

http://newapi.didx.net/DidxApis/api/GetAreasForBackOrder.php?UserID=700290&Pass=XXXX&Country=7

 

Example Code in PHP:

<?php

$curl_handle = curl_init();

$url = "http://newapi.didx.net/DidxApis/api/GetAreasForBackOrder.php?UserID=700290&Pass=XXXX&Country=7";

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. Country
    4. Page

 

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

-11 – Invalid area or country code

1 – Successfully placed back order.