Receive Deliveryreports and SMS messages

Modified on Tue, 12 Dec 2017 14:39 by tormar — Categorized as: Uncategorized

Step 1: Configure delivery destination

Go to https://accountweb.pswin.com/, -> Account information Set DR Protocol and Destination to XMLHTTP2, and specify your endpoint where you will receive your delivery report. After 5 minutes, the configuration has been activated.

Step 2: Handle the delivery report

You will then receive the following delivery report when you send a SMS:
<?xml version="1.0"?>
<MSGLST>
  <MSG>
    <ID>1</ID>
    <REF>984342374</REF>
    <RCV>4512345678</RCV>
    <STATE>DELIVRD</STATE>
    <DELIVERYTIME>2006.02.23 15:23:23</DELIVERYTIME>
  </MSG>
</MSGLST>

For more information about the delivery report fields, see here: XML Api documentation

For a complete list of delivery report states, see here: Delivery report statuses