XML API


Single SMS

XML API for single SMS :

URL : https://smppsmshub.in/RestAPI/MT.svc/mt

<SmsQueue><Account><User>abc</User><Password>123</Password><SenderId>WEBSMS</SenderId><Channel></Channel><DCS>0</DCS><FlashSms>0</FlashSms><Route></Route></Account><Messages><Message><Number>9198981XXXXX</Number><Text>Messge from xml</Text></Message></Messages></SmsQueue>


Response :
{"ErrorCode":"000","ErrorMessage":"Done","JobId":"20047","MessageData":[{"Number":"91989xxxxxxx","MessageId":"mvHdpSyS7UOs9hjxixQLvw"},{"Number":"917405080952","MessageId":"PfivClgH20iG6G5R3usHwA"}]}
XML API for Mutiple SMS :

URL : https://smppsmshub.in/RestAPI/MT.svc/mt

<SmsQueue><Account><User>abc</User><Password>123</Password><SenderId>WEBSMS</SenderId><Channel>1</Channel><DCS>0</DCS><FlashSms>0</FlashSms><Route>1</Route></Account><Messages><Message><Number>9198981XXXXX</Number><Text>Messge from xml</Text></Message><Message><Number>9198981XXXXX</Number><Text>Messge from xml</Text></Message></Messages></SmsQueue>


Response :
{"ErrorCode":"000","ErrorMessage":"Done","JobId":"20047","MessageData":[{"Number":"91989xxxxxxx","MessageId":"mvHdpSyS7UOs9hjxixQLvw"},{"Number":"917405080952","MessageId":"PfivClgH20iG6G5R3usHwA"}]}
HTTP Api for Check Delivery:
URL : http://smppsmshub.in/api/mt/SendSMS?

DATA :
<SmsQueue><Account><User>ru1</User><Password>ru1</Password><SenderId>WEBSMS</SenderId><Channel>Promo</Channel><Route>##</Route><DCS>0</DCS><FlashSms>0</FlashSms><GroupId>0</GroupId></Account><Messages><Message><Number>91999xxxxxxx</Number><Text>This is test message</Text></Message></Messages></SmsQueue>

Response :
<SmsRespons><ErrorCode>000</ErrorCode><ErrorMessage>Done</ErrorMessage><JobId>20042</JobId><MessageData><Messages><Number>91999xxxxxxx</Number><MessageId>qY100LoTRUOoHU2gzFcrWA</MessageId></Messages></MessageData></SmsRespons>
XML API for Check Balance
URL :https://smppsmshub.in/RestAPI/MT.svc/balance?user=demo&password=aa

Response :
<BalanceResponse><ErrorCode>0</ErrorCode><ErrorMessage>Success</ErrorMessage><Balance>P:9464#T:557</Balance></BalanceResponse>
XML API for Check Delivery:
URL :https://smppsmshub.in/RestAPI/MT.svc/report/2364581

Response :
<DeliveryReportResponse><ErrorCode>0</ErrorCode><ErrorMessage>Success</ErrorMessage><Messag /><DeliveryReports><DeliveryReport><MessageId>6lSvghsdghr5Uiw32Hus7DJRg</MessageId><DeliveryStatus>Delivered</DeliveryStatus><DeliveryDate>2016-10-21T00:02:52.247</DeliveryDate></DeliveryReport><DeliveryReport><MessageId>6lSvghsdghr5Uiw32Hus7DJRg</MessageId><DeliveryStatus>Delivered</DeliveryStatus><DeliveryDate>2016-10-21T00:02:57.483</DeliveryDate></DeliveryReport></DeliveryReports></DeliveryReportResponse>
Parameter Information :
Parameter Name Description
Account Parameters
User Your Login UserName
Password Your Login Password
APIKEY Instead of the UserName&PassWord You Can Use the API key for authentication of account
Message Parameters
SenderId Approved SenderId(6 characters string only),E.g WEBWEB.
Channel Message Channel Promotional or Transactional
Route Pass The RouteId In This Parameter To Route The Message. Click Here For More Information Regarding Your RouteId.
SchedTime Set The DateTime To Schedule Messages.(2015/12/31 22:35:00 PM YYYY/MM/DDHH:MM:SS AM/PM )
GroupId Group Id FRom My Groups Page.
DCS Data Coding Value (Default is 0 for Normal Message, Set 8 For Unicode Sms)
Flashsms Flash MNessage immediate display (Default is 0 for normal sms, Set 1 For Immediate Display)
Number Recipient Mobile Number (Pass With Comma Seprated If Need To Send On More Then One Number)
Text Your SMS COntent.
Type the above number: