Reporting

Each message sent to a user gets a reportid. When the message is delivered and when it is read, notifications are sent to the service using this reportid. The service must be authorized to receive reports; contact the bipussu super admin for permission. Reports differ by synchronous/asynchronous sends:

Synchronous reporting

The report is in the response. Supported when sending to all followers in sendmsgserv (receiver: 1).

Request/Response
{  
    "txnid": "Broadcast-1Content",  
    "resultcode": 0,  
    "list": [{  
        "resultcode": 0,  
        "receiver": "9053XXXXXXXX",  
        "reportid": "6a7Q8-1502",  
        "numberofmessage": 1,  
        "totalnumberofmessage": 1  
    }]  
}  
Fields
FieldValueDescription
*txnidstringRequest id value
*resultcodestringSend result
*listobjectUser list
*resultcodelongResult for this message
*receiverstringRecipient result. 0: Success, others: Failure
*reportidstringIf resultcode is 0, the id of the message sent to the user. Delivered/read info will be sent later using this id
*numberofmessageintMessage index
*totalnumberofmessageintOrder among messages sent to the user. If multiple messages are sent, this indicates the sequence.

Asynchronous reporting

The report is not in the immediate response. After sending, a response is posted to the service callback URL + /report.

Callback Payload
{  
    "reqid": 12,
    "txnid": "Broadcast-1Content",
    "resultcode": 0,
    "list": [
        {  
            "receiver": "9053XXXXXXXX",
            "resultcode": 0,
            "reportid": "6a7Q8-1502",
            "numberofmessage": 1,
            "totalnumberofmessage": 1 
        }, {  
            "receiver": "9053XXXXXXXX",
            "resultcode": 312,
            "reportid": null, 
            "numberofmessage": null,
            "totalnumberofmessage": 1
        }  
    ]  
}  
Fields
FieldValueDescription
*reqidstringId of the report delivery
*txnidstringRequest id value
*resultcodestringSend result
*listobjectUser list
*resultcodelongResult for this message
*receiverstringRecipient result. 0: Success, others: Failure
*reportidstringIf resultcode is 0, the id of the message sent to the user. Delivered/read info will be sent later using this id
*numberofmessageintMessage index
*totalnumberofmessageintOrder among messages sent to the user.

Tracking reportid

When the user receives the message, delivered and read notifications are sent to your callback URL with the same reportid. Match the reportid returned when sending with the reportid coming to the callback URL to track delivered/read status. See User Actions for details.