API

Transactional SMS :

Single Message

http://control.glomex.in/vendorsms/pushsms.aspx?user=abc&password=xyz&msisdn=919898xxxxxx&sid=SenderId&msg=test%20message&fl=0&gwid=2


Multiple Messages

http://control.glomex.in/vendorsms/pushsms.aspx?user=abc&password=xyz&msisdn=919898xxxxxx,919898xxxxxx&sid=SenderId&msg=test%20message&fl=0&gwid=2


user: Your login username.
password: Your login password.
msisdn: Single mobile number or multiple mobile numbers separated by comma(10 digits or +91).
sid: Approved sender id(Only 6 characters).
msg: Your message content(Minimum 459 characters/3 messages).
fl: if flash message then 1 or else 0
gwid: 2 (its for Transactions route.)
Note: Only 100 mobile numbers are allowed.

Message Response

{"ErrorCode":"000","ErrorMessage":"Success","JobId":"381a8090-b230-42fa-ac04-157cc2142bfa","MessageData":[{"MobileNumber":"919898xxxxxx ","MessageParts":[{"MessageId": "919898xxxxxx -67e3765cdf034f438a432eacb88d0c14","MessagePartId":1,"MessageText":"test message"}]}]}


Multiple Messages

{"ErrorCode":"000","ErrorMessage":"Success","JobId":"733956ef-f6ab-46fc-81cc-bd3be775c1b7","MessageData":[{"MobileNumber":"919898xxxxxx","MessageParts": [{"MessageId":"919898xxxxxx -3af24da377d645b9ab78c0e3ac176e32","MessagePartId":1,"MessageText":"test message"}]},{"MobileNumber":"919898xxxxxx ","MessageParts":[{"MessageId":"919898xxxxxx -f01df98db3ba4b39a8b0254277689939","MessagePartId":1,"MessageText":"test message"}]}]}


Check Delivery API

http://control.glomex.in/vendorsms/CheckBalance.aspx?user=demo&password=demo

Response : #DELIVRD

Credit Blance API

http://control.glomex.in/vendorsms/checkdelivery.aspx?user=demo&password=demo&messageid=messageid

Response : Success#Promotional:0|Transactoinal:95

XML API

URL :

http://control.glomex.in/Rest/Messaging.svc/mtsms?data=

Single Message

<SmsQueue><Account><User>abc</User><Password>123</Password></Account><MessageData><SenderId>SENDERID</SenderId><Gwid>1</Gwid><DataCoding>0</DataCoding></MessageData><Messages><Message><Number>9198981XXXXX</Number><Text>Messge from xml</Text></Message></Messages></SmsQueue>

Multi Message

<SmsQueue><Account><User>abc</User><Password>123</Password></Account><MessageData><SenderId>SENDERID</SenderId><Gwid>1</Gwid><DataCoding>0</DataCoding></MessageData><Messages><Message><Number>9198981XXXXX</Number><Text>First message from xml</Text></Message><Message><Number>9198982XXXXX</Number><Text>Second messge from xml</Text></Message></Messages></SmsQueue>

Response

<Response><ErrorCode>000</ErrorCode><ErrorMessage>Success</ErrorMessage><JobId>5403ff81-f1aa-420a-9430-8d86f4061a79</JobId><MessageData><Messages><MessageParts><MessagePart><MessageId>9198981XXXXX -2c21cdcc976f4fd78a17b571f12fb4f7</MessageId><MessagePartId>1</MessagePartId><MessageText>Second messge from xml</MessageText></MessagePart></MessageParts><MobileNumber>9198981XXXXX</MobileNumber></Messages></MessageData></Response>

Error Message

ErrorCode

Error Message

000

Success (it means message is successfully submitted and you can check message parameter response to check message id and parts)

001

Account details cannot be blank

002

Username or password cannot be blank

003

SenderId cannot be blank

004

Message cannot be blank

005

Message properties cannot be blank

006

ServerError#Error message

007

Invalid username or password

008

Account inactive

009

Account lock

010

Unauthorized API access

011

Unauthorized IP address

012

Message length violation

013

Invalid mobile numbers

014

Account locked due to spam message contact support

015

Invalid SednerId

016

Transactional account not active

017

Invalid groupid

018

Cannot send multi message to group

019

Invalid schedule date

020

Message or mobile number cannot be blank

021

Insufficient credits

022

Invalid jobid

023

Parameter missing

024

Invalid template or template mismatch



Note: Only the above-defined validations are performed at the server side. All other validations for any parameter are required to be handled at the client side explicitly.