Send one message to one or many numbers, immediately or scheduled. Provide a source of replies by either setting senderid (non-priority) or priority=true with one of repliesperuserid or manageownreplies+virtualname. Also available over GET for testing (~5 numbers). Returns an XML batch-send result; check <status code> is 0 (or 1 for partial success).
Client batch reference (max 80 alphanumeric). Reusable across sends.
Message text. Single SMS max 160 chars; longer messages split into segments (see concat/maxparts). URL-encode non-GSM characters.
One or many numbers, comma-separated, each optionally prefixed with an identifier (use a | when the identifier contains digits).
Source/from address (max 11 alphanumeric) for non-priority sends. A numeric, reply-capable senderid must start 27. Must not be used with priority.
Prioritise the batch. Requires repliesperuserid or manageownreplies.
One reply path per userid. Mutually exclusive with manageownreplies.
Multiple reply paths via virtual names. Requires virtualname.
Client-chosen virtual name (max 50), required with manageownreplies.
Concatenate long messages into one handset SMS (153 chars/part, max 9).
Send Unicode (UCS-2). 70 chars/SMS, 67/part concatenated.
Request Delivery Receipt for each SMS. Required to later pull receipts or use delivery emails/summaries.
Don't save message (not stored in the database). Not usable with futuredatetime.
Hold the batch until this time (YYYY-MM-DD hh:mm:ss).
Cancel (and refund) if not sent by this time (YYYY-MM-DD hh:mm:ss).
From address used for all system-originated emails for this batch.
First send-confirmation email address.
Enable delivery-receipt emails (master switch; requires rdr).
First delivery-receipt email address.
Notified if the batch fails before send-out.
URL the gateway POSTs receipts to (requires rdr). Not yet supported.
- Mock serverhttps://docs.ecommunicate.co.za/_mock/apis/biz-sms/smsbatch/sms
- Production (HTTPS also available on port 8443)https://messaging.ecommunicate.biz/smsbatch/sms
curl -i -X POST \
https://docs.ecommunicate.co.za/_mock/apis/biz-sms/smsbatch/sms \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'X-API-Key: YOUR_API_KEY_HERE' \
--data-urlencode specversion=2.61 \
--data-urlencode batchref=Finance-2026-05 \
--data-urlencode batchid=1 \
--data-urlencode senderid=eCommunicate \
--data-urlencode 'message=Your statement is ready' \
--data-urlencode 'cell=27821234567, Jane Doe | 27821234568' \
--data-urlencode rdr=true<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ecomm:response xmlns:ecomm="http://messaging.ecommunicate.biz/sms/response">
<ecomm:result>
<ecomm:status code="1">partial-success</ecomm:status>
<ecomm:explanation>Some sms sent. There were invalid numbers in the batch.</ecomm:explanation>
<ecomm:completiontime>2026-01-17T23:03:17.356+02:00</ecomm:completiontime>
<ecomm:userid>your-userid</ecomm:userid>
<ecomm:clientref>your-client-ref</ecomm:clientref>
</ecomm:result>
<ecomm:batchsend status="">
<ecomm:batch>
<ecomm:batchref>Finance-2026-05</ecomm:batchref>
<ecomm:batchid>1</ecomm:batchid>
</ecomm:batch>
<ecomm:totalnumbers>2</ecomm:totalnumbers>
<ecomm:correctnumbers>1</ecomm:correctnumbers>
<ecomm:incorrectformat quantity="1">
<ecomm:numbers>
<ecomm:number>084300123</ecomm:number>
<ecomm:reason>Number Length Error</eco…