QuerySMSList
Query details about SMS sent with the given account. Useful for delivery notifications or accountings.
Required Parameters
Section titled “Required Parameters”The following parameters are standard parameters for this command.
Command
command = QuerySMSListaccountid =(TEXT)Response
code =(INT)description =(TEXT)property[smsid][0] = 1234567property[status][0] = SEND|DELIVERED|BUFFERED|FAILED|EXPIRED|REJECTED|ERROR|UNKNOWNproperty[recipient][0] = 0049123456xxxproperty[date][0] = 2009-06-02 08:32:37property[count][0] =(INT)property[first][0] =(INT)property[last][0] =(INT)property[limit][0] =(INT)property[total][0] =(INT)Attributes
Section titled “Attributes”| ACCOUNTID | ID of the account to be queried |
|---|---|
| SMSID | Unique ID of this transaction |
| STATUS | the following states may occur: |
| SEND: SMS delivery in progress | |
| DELIVERED: Message successfully delivered | |
| BUFFERED: Message buffered, usually because it failed first time and is now being retried | |
| FAILED: The message failed to deliver | |
| EXPIRED: Message expired, could not be delivered within the validity period | |
| REJECTED: Message rejected by SMSC | |
| ERROR: Internal error, message could not be processed this time | |
| UNKNOWN: SMS - server has returned a non standard status code or no response within 24 hours | |
| RECIPIENT | The recipient of the SMS, last 3 characters anonymised |
| DATE | Date the SMS was sent |
Optional
Section titled “Optional”The following parameters are optional for this command.
Command
command = QuerySMSListaccountid =(TEXT)wide =(0|1)recipient =(TEXT)mindate =(DATE)maxdate =(DATE)smsid =(TEXT)first =(INT)limit =(INT)Response
code =(INT)description =(TEXT)property[smsid][0] = 1234567property[status][0] = SEND|DELIVERED|BUFFERED|FAILED|EXPIRED|REJECTED|ERROR|UNKNOWNproperty[recipient][0] = 0049123456xxxproperty[date][0] = 2009-06-02 08:32:37property[count][0] =(INT)property[first][0] =(INT)property[last][0] =(INT)property[limit][0] =(INT)property[total][0] =(INT)Attributes
Section titled “Attributes”| WIDE | Show more or less details (optional) |
|---|---|
| RECIPIENT | Show only this recipient of sms, wildcard allowed (i.e. *1234*, optional) |
| MINDATE | Show only SMS sent since this date (optional) |
| MAXDATE | Show only SMS sent before this date (optional) |
| SMSID | Show only SMS matching with this ID, wildcard allowed (i.e. *123*, optional) |
| FIRST | First result to display (optional) |
| LIMIT | Limits the number of results to given number (optional) |
SMS commands