Skip to content

Batches

Manage scheduled (delayed) batches.

Manage delayed batches

Request

Delete an unsent delayed (futuredatetime) batch. Best-effort, not guaranteed. Requires deletebatch=true with the original batchref and batchid, and version=2.55.

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"
versionstringrequired

Set to 2.55.

Example:"2.55"
deletebatchstring

Delete a delayed (futuredatetime) batch.

Value:"true"
Example:"true"
batchrefstringrequired

Original batchref.

Example:"Finance-2026-05"
batchidstringrequired

Original batchid.

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

Responses

XML delete-batch result (100 deleted, 105 not found).

Bodyapplication/xml
string
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>The request was processed correctly</ecomm:explanation>
        <ecomm:completiontime>2026-01-18T21:58:23.869+02:00</ecomm:completiontime>
    </ecomm:result>
    <ecomm:deletebatch>
        <ecomm:batch>
            <ecomm:batchref>Finance-2026-05</ecomm:batchref>
            <ecomm:batchid>1</ecomm:batchid>
        </ecomm:batch>
        <ecomm:result>
            <ecomm:status code="100">success</ecomm:status>
            <ecomm:explanation>The delayed batch was successfully deleted</ecomm:explanation>
        </ecomm:result>
    </ecomm:deletebatch>
</ecomm:response>