Retrieves total number of SMS sent in a give timeframe.




Parameter

Description

Required

client_idThe ID of the client

This parameter is only used by resellers who want to get the sms sent of their client
NO
startA date to start the report from

Must be in ISO8601 format YYYY-MM-DD HH:MM:SS utilising UTC Timezone. Eg. 2020-04-27 06:00:00

start and end date must be within 7 days

If start and end date not supplied will get everything from last 24 hrs only.
NO
endA date to end the report at

Must be in ISO8601 format YYYY-MM-DD HH:MM:SS utilising UTC Timezone. Eg. 2020-04-27 06:00:00

start and end date must be within 7 days

If start and end date not supplied will get everything from last 24 hrs only.
NO



Example


curl --location --request POST 'https://api.transmitsms.com/get-sms-sent-count.json' \
--data-urlencode 'start=2020-07-23' \
--data-urlencode 'end=2020-07-30'


curl --location --request POST 'https://api.transmitsms.com/get-sms-sent-count.json' \
--form 'start=2020-08-01' \
--form 'end=2020-08-08' \
--form 'client_id=100136'



JSON Response

{
  "count": 6,
  "error": {
    "code": "SUCCESS",
    "description": "OK"
  }
}



XML Response

<?xml version="1.0"?>
<response>
    <count>1</count>
    <error>
        <code>SUCCESS</code>
        <description>OK</description>
    </error>
</response>