GetMessageStatus

The GetMessageStatus method uses the MessageID parameter to return the status of a message (sent, queued, or error description).

HTTP Method
HTTP Method: GET

Url: http://sms2.cdyne.com/sms.svc/GetMessageStatus?MessageID={MESSAGEID}

Url: https://sms2.cdyne.com/sms.svc/GetMessageStatus?MessageID={MESSAGEID}

XML Response
The following is an example response Xml body:

 true 1627aea5-8e0a-4371-9022-9b504344e724 true String content NoError   String content 1627aea5-8e0a-4371-9022-9b504344e724</IncomingMessageID> <MatchedMessageID>1627aea5-8e0a-4371-9022-9b504344e724</MatchedMessageID> <Message>String content</Message> <ResponseReceiveDate>1999-05-31T11:20:00</ResponseReceiveDate> <ToPhoneNumber>String content</ToPhoneNumber> </SMSIncomingMessage> <SMSIncomingMessage> String content</FromPhoneNumber> <IncomingMessageID>1627aea5-8e0a-4371-9022-9b504344e724</IncomingMessageID> <MatchedMessageID>1627aea5-8e0a-4371-9022-9b504344e724</MatchedMessageID> <Message>String content</Message> <ResponseReceiveDate>1999-05-31T11:20:00</ResponseReceiveDate> <ToPhoneNumber>String content</ToPhoneNumber> </SMSIncomingMessage> </SMSIncomingMessages> <Sent>true</Sent> <SentDateTime>1999-05-31T11:20:00</SentDateTime> </SMSResponse>

Json Response
The following is an example response Json body:

{	"Cancelled":true, "MessageID":"1627aea5-8e0a-4371-9022-9b504344e724", "Queued":true, "ReferenceID":"String content", "SMSError":0, "SMSIncomingMessages":[{ "FromPhoneNumber":"String content", "IncomingMessageID":"1627aea5-8e0a-4371-9022-9b504344e724", "MatchedMessageID":"1627aea5-8e0a-4371-9022-9b504344e724", "Message":"String content", "ResponseReceiveDate":"\/Date(928164000000-0400)\/", "ToPhoneNumber":"String content" }],	"Sent":true, "SentDateTime":"\/Date(928164000000-0400)\/" }

C#
Add a service reference to http://sms2.cdyne.com/sms.svc?wsdl

Get Message Status

Send Message Then Get Message Status

VB.NET
Add a service reference to http://sms2.cdyne.com/sms.svc?wsdl

Get Message Status

Send Message Then Get Message Status

PHP

 * Returns the status of a single SMS message using the Message ID from the SMSResponse object.

PHP with cURL

 * Returns the status of a single SMS message using the Message ID from the SMSResponse object.