Skip to content

Delivery Receipts

Pull delivery receipts for a sent batch.

Check delivery receipts

Request

Pull delivery receipts for a previously sent batch. The original send must have used rdr=true. Use repeatallreceipts=true to re-fetch receipts you have already retrieved. Until a message reaches a final state it is PENDING and returns no receipt.

Security
ApiKeyAuth
Bodyapplication/x-www-form-urlencodedrequired
specversionstring

Spec version coded against. The gateway keys on major version 2.

Example:"2.61"
commsversionstring

Communication protocol/version (advisory, for support).

Example:"1.0"
appversionstring

Sending-application version (advisory, for support).

Example:"1.0"
batchrefstringrequired

Original batchref (must match the send).

Example:"Finance-2026-05"
batchidstringrequired

Original batchid.

Example:"1"
repeatallreceiptsstring

Re-query all receipts for the batch. Required to re-fetch already-returned receipts.

Value:"true"
Example:"true"
cellstring

Limit the repeat to specific numbers (only valid with repeatallreceipts).

Example:"27821234567"
startdatestring

Receipts on/after this date (yyyy-mm-dd).

Example:"2026-05-01"
enddatestring

Receipts on/before this date. Uses 00:00:00, so use the day after.

Example:"2026-05-08"
curl -i -X POST \
  https://docs.ecommunicate.co.za/_mock/apis/biz-sms/smsbatch/deliveryreceiptscheck \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -H 'X-API-Key: YOUR_API_KEY_HERE' \
  --data-urlencode specversion=2.60 \
  --data-urlencode batchref=Finance-2026-05 \
  --data-urlencode batchid=1

Responses

XML receipts document.

Bodyapplication/xml
string

Namespaced XML. Final states include DELIVRD, UNDELIV, EXPIRED, REJECTD, UNKNOWN, NOTAVAIL.

Response
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ecomm:response xmlns:ecomm="http://messaging.ecommunicate.biz/sms/response">
    <ecomm:result>
        <ecomm:status code="0">success</ecomm:status>
        <ecomm:explanation>Received the request and returning receipts</ecomm:explanation>
        <ecomm:completiontime>2026-02-09T08:53:52.340+02:00</ecomm:completiontime>
        <ecomm:userid>your-userid</ecomm:userid>
        <ecomm:clientref>your-client-ref</ecomm:clientref>
    </ecomm:result>
    <ecomm:receipts status="receipts">
        <ecomm:batchref value="Finance-2026-05">
            <ecomm:batchid status="receipts" value="1">
                <ecomm:receipt errorcode="0" status="DELIVRD" delivtimestamp="2026-01-05T11:20:43+02:00" identifier="Jane Doe">
                    <ecomm:number>27821234567</ecomm:number>
                </ecomm:receipt>
                <ecomm:receipt errorcode="92" status="REJECTD">
                    <ecomm:number>27821234599</ecomm:number>
…