Get a list of transactions for a client.

We created a new viewing experience for our SMS API documentation. It's now all in one central location. Click here to check it out!




client_idOnly retrieve records for a particular clientYES
startA timestamp to start the report fromNO
endA timestamp to end the report atNO
pagePage number, for paginationNO
maxMaximum results returned per pageNO


curl \
  -u 2e24c1cbdd987221e165d543f34b84bf:secret \
  -d client_id=335553 \
  -d 'start=2012-01-01 00:00:00'

JSON Response

  transactions_total: 7843,
  transactions: [
        id: 2423,
        description: "Message Send",
        amount: -0.173,
        balance_standing: 4.114,
        created: "2010-01-21 02:25:54",
        message_id: 28391,
        message_status: "Sent",
        message_cost: 0.173,
        message_revenue: 0.081
  page: {
    count: 79,
    number: 1

XML Response

    <description>Message Send</description>
    <created>2010-01-21 02:25:54</created>

PHP Example

 include '../../APIClient2.php';

 $api = new transmitsmsAPI('API_KEY', 'API_SECRET');
 $offset = 0;
 $limit = 10;

 $result = $api->getTransactions(1847,'2012-01-01 00:00:00');

 if ($result->error->code == 'SUCCESS') {
   echo "There are {$result->transactions_total} transactions for this client, 
     showing page {$result->page->number} of {$result->page->count} <hr>";

   foreach ($result->transactionsas$transaction) {
     echo "{$transaction->description} at {$transaction->created} - {$transaction->amount}<br>";

 } else {
   echo "Error: {$result->error->description}";