---
updatedAt: 2025-11-03T17:26:03.000Z
agentTools:
  projectIndex: https://docs.gupshup.io/llms.txt
---

# Real Time Delivery Reports

Let's say you have given [www.example.com/RealTimeDLR/readurl](http://google.com) as the callback URL for a given user account.\
Gupshup, can send an HTTP POST or GET request.

## Get Request

You can set a callback URL for each group and APIs to receive real-time delivery reports.

1. Log in to [Gupshup Enterprise SMS](https://enterprise.smsgupshup.com).
2. Click on Settings in the menu bar.
3. Under Advanced Account Settings, you can see Realtime Delivery URL.

![621](https://files.readme.io/f09b087-image4.png "image4.png")

Let's say you have given [www.example.com/RealTimeDLR/readurl](http://google.com) as the callback URL, the format of the URL called by GupShup is as follows:

```text
http://example.com/RealTimeDLR/readurl?externalId=%0&deliveredTS=%1&status=%2&cause=%3&phoneNo=%4
&errCode=%6& noOfFrags=%7&mask=%8
```

> 📘 Mask parameter is optional and can be forwarded as per request.

## Post Request

The HTTP POST request contains a JSON array of one or more events to the call back URL. A Mmximum of 20 events can be sent in a batch to the callback URL.

> 📘 Please raise a request to support team (<enterprise-support@smsgupshup.com>) to set post\
> request URL.

The below response shows a JSON array with two event objects. You will receive a maximum of 20 such events in a batch.

```text
[response=
[
{
"externalId": 3562707498794989059-328736121207676738,
"eventType": “DELIVERED",
"eventTs": 1526347800000,
"destAddr”: 919892488888,
“srcAddr”: TESTIN,
“cause”: ”SUCCESS”,
“errCode”: 000,
“channel”: “SMS,
“noOfFrags”:1
},
{
"externalId": 3798318073013708082-252169030017029882,
"eventType": “FAILED",
"eventTs": 1526347800000,
"destAddr”: 91989237777,
“srcAddr”: ABCDEF,“cause”: ” UNKNOWN_SUBSCRIBER”,
“errCode”: 003,
“channel”: “SMS”,
“noOfFrags”:1
}
]]
```

The following is the explanation of various parameters:

* externalId - Unique ID for each message.
* deliveredTS - Time of delivery of message as LONG number.
* status - Final status of the message, possible values are SUCCESS, FAILURE or UNKNOWN.
* phoneNo - Phone number of the receiver.
* cause - This is the response you will get depending on the status. Various statuses and their explanation are below.
* Errorcode – Error code assigned to a different failure cause.
* No of frags – one message (fragment) is of 160 characters. Number of charactert states the total count of\
  fragments.
* Mask – Sender ID sent with the sms.

## Error Codes

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th>
        Error Code
      </th>

      <th>
        Error Name
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        1
      </td>

      <td>
        ABSENT\_SUBSCRIBER
      </td>

      <td>
        When the service provider fails to reach the member/subscriber, this\
        value is passed.
      </td>
    </tr>

    <tr>
      <td>
        2
      </td>

      <td>
        CALL\_BARRED
      </td>

      <td>
        Subscribers have some kind of call barring activity on the number due to which messages from unknown sources are blocked.
      </td>
    </tr>

    <tr>
      <td>
        3
      </td>

      <td>
        UNKNOWN\_SUBSCRIBER
      </td>

      <td>
        Unknown/invalid number.
      </td>
    </tr>

    <tr>
      <td>
        4
      </td>

      <td>
        SERVICE\_DOWN
      </td>

      <td>
        Operator service is temporarily down.
      </td>
    </tr>

    <tr>
      <td>
        5
      </td>

      <td>
        SYSTEM\_FAILURE
      </td>

      <td>
        Failure due to a problem in the Operator’s systems (Originating or\
        Destination Operator).
      </td>
    </tr>

    <tr>
      <td>
        6
      </td>

      <td>
        DND\_FAIL
      </td>

      <td>
        The number is either in DND or Blocked due to being in DND or a complaint.
      </td>
    </tr>

    <tr>
      <td>
        7
      </td>

      <td>
        BLOCKED
      </td>

      <td>

      </td>
    </tr>

    <tr>
      <td>
        8
      </td>

      <td>
        DND\_TIMEOUT
      </td>

      <td>
        The latest DND status is not available in time for the message to be sent. (Max 1 day).
      </td>
    </tr>

    <tr>
      <td>
        9
      </td>

      <td>
        OUTSIDE\_WORKING\_HOURS
      </td>

      <td>
        Message sending is outside mentioned working hours.
      </td>
    </tr>

    <tr>
      <td>
        00a, 14, 15, 16, 17, 18, 19, 01a, 01b, 01c, 20, 24
      </td>

      <td>
        OTHER
      </td>

      <td>
        Messages that are sent but can not be delivered for reasons that don’t fall under any mentioned category.
      </td>
    </tr>

    <tr>
      <td>
        00b
      </td>

      <td>
        BLOCKED\_MASK
      </td>

      <td>
        Mask is blocked by SMS GupShup.
      </td>
    </tr>

    <tr>
      <td>
        00c
      </td>

      <td>
        SMSCTIMEDOUT
      </td>

      <td>

      </td>
    </tr>

    <tr>
      <td>
        00d
      </td>

      <td>
        CANCEL\_CAUSEID
      </td>

      <td>

      </td>
    </tr>

    <tr>
      <td>
        00e
      </td>

      <td>
        CANCEL\_SCHEDULE
      </td>

      <td>

      </td>
    </tr>

    <tr>
      <td>
        10
      </td>

      <td>
        DEFERRED
      </td>

      <td>

      </td>
    </tr>

    <tr>
      <td>
        11
      </td>

      <td>
        INBOXFULL
      </td>

      <td>

      </td>
    </tr>

    <tr>
      <td>
        12
      </td>

      <td>
        CONGESTION
      </td>

      <td>

      </td>
    </tr>

    <tr>
      <td>
        13
      </td>

      <td>
        NO\_ACK\_FROM\_OPERATOR
      </td>

      <td>

      </td>
    </tr>

    <tr>
      <td>
        22
      </td>

      <td>
        BLOCKED\_FOR\_USER
      </td>

      <td>

      </td>
    </tr>

    <tr>
      <td>
        23
      </td>

      <td>
        UNKNOWN\_SUBSCRIBER
      </td>

      <td>

      </td>
    </tr>

    <tr>
      <td>
        038
      </td>

      <td>
        MSG\_DOES\_NOT\_MATCH\_TEMPLATE
      </td>

      <td>
        The template passed in the message content does not match with dltTemplateId uploaded offline in the system.
      </td>
    </tr>
  </tbody>
</Table>