SMS Delivery Receipt Postback Page

SMS Delivery Receipt POST
If you assign a PostbackURL to your account DIDs, the PostBack will allow you to capture the data in the fields listed below. Please note that data is posted to the headers.

PostBackURL data is posted behind the scenes, and is not visible on your webpage. Code samples are provided below on how to grab this data to store in a database. CDYNE recommends that the data returned to be stored within your systems for reporting and reference information.

DeliveryReceipt
DeliveryReceipt=1 is posted when a Delivery Receipt is received.

MessageID
A unique identifier that matches the initial MessageID from your Outgoing SMS.

ReferenceID
This is populated if you set a ReferenceID in your outgoing request.

FromPhoneNumber
This is the number that sent your outgoing message.

ToPhoneNumber
This is the number you sent the SMS to.

DeliveryReceiptMessage
This is the Delivery Receipt.

Unused. MessageID is passed as a seperate field of the Delivery Receipt POST.
 * ID

Unused.
 * Sub-ID

Value '1' indicates the message has been delivered, '0' indicates still pending.
 * Dlvrd

Submission data and time.
 * Submit Date

Date and time the status has changed, or message delivery time when Stat is set to 'DELIVRD'.
 * Done Date

Current status of the message.
 * Stat

Additional error code. See the next section "Common Delivery Receipt Status Codes" below for more details on this field of the delivery receipt.
 * Status Code

 1 ENROUTE Has been forwarded to carrier

2	DELIVERED

Carrier reports delivered to device

3	EXPIRED

Expired

4	DELETED

Deleted

5	UNDELIVERABLE

Undeliverable because of error at carrier, no balance on mobile account, destination address not opted in, or device out of coverage

6	ACCEPTED

Accepted

6	UNKNOWN

Status unknown because of error at carrier, or error at aggregator, or unknown delivery receipt status received

8	REJECTED

Rejected because of error at carrier, source address blacklisted, destination address blacklisted, destination address not opted in, no balance on mobile account, or device out of coverage

9	NO ROUTE

Failed because of error at carrier, destination address not supported, source address invalid, destination address invalid, destination address not opted in, no balance on mobile account, or	device out of coverage

BackupMessageID
This is the new MessageID of a backup DID message being sent when a short code message fails. Parameter is only present when a short code message is being sent via a DID as a backup.

Example Packet
POST /cdynepostback.aspx HTTP/1.1 User-Agent: CDYNE SMSv2 Content-Type: application/x-www-form-urlencoded Host: cdyne.com Content-Length: 289 Expect: 100-continue Connection: Keep-Alive DeliveryReceipt=1&MessageID=f880e00b-3a14-484c-80e7-ca6aa29a2f7a&ReferenceID=&FromPhoneNumber=74121&ToPhoneNumber=17572373369&DeliveryReceiptMessage=sm: msg: id:18579674100201040 sub:001 dlvrd:001 submit date:1209281334 done date:1209281334 stat:DELIVERED err:1 text:&Code=1