#Add / Sell New DID Number
https://apiv2.telecomsxchange.com/sellers/did/addThis API endpoint allows authenticated sellers to sell a new DID/Phone number on the exchange.
Prerequisites:
- Point your voice DID(s) via SIP protocol to sip01.telecomsxchange.com
- Point your SMS DID(s) via SMPP v.5.x or v.3.x to smpp01.telecomsxchange.com port:2776
Body parameters
application/x-www-form-urlencodednumberintegerrequiredUnique DID Number ( Virtual Phone Number ) being sold for the first time
Example
19542405099price_1numberrequiredIncoming Voice call price in USD per minute
Example
0.001interval_1integerrequiredBilling Interval - Seconds or Minutes (60 for minutes and 1 for seconds)
Example
60monthly_feeintegerrequiredMonthly reccuring DID charge
Example
10setup_feenumberrequiredOne time setup fee - charges once on purchase
Example
1.00did_typestringrequiredthe phone number type (national, mobile, toll free or grey)
Example
mobilevoiceintegerrequiredVoice enabled (1 for yes and 0 for no)
Example
1smsintegerrequiredSMS enabled ( (1 for yes and 0 for no)
Example
0
curl --digest \
-u "$TCXC_USERNAME:$TCXC_API_KEY" \
-X POST \
"https://apiv2.telecomsxchange.com/sellers/did/add" \
-d "number=19542405099" \
-d "price_1=0.001" \
-d "interval_1=60" \
-d "monthly_fee=10" \
-d "setup_fee=1.00" \
-d "did_type=mobile" \
-d "voice=1" \
-d "sms=0" \
-d "fax=0" \
-d "video=0" \
-d "smpp_price=0.00" \
-d "capacity=5" \
-d "status=blocked"