Place Back Order for the DIDs you need.
3A GET A LIST OF COUNTRIES YOU BACK ORDER FROM
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:
-
- UserID
- Pass
- BackOrderList_ID
- Quantity
- UserData
- NotifyURL
Returned Fields:
-
- ReturnValue? – contains User data
- DID – DID number which is being added to account as back order
- 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.