List
GET  /accounts/:account_id/transactions

Sample Code

Sample Response

{
   "transactions":[
      {
         "amount":"100.0",
         "type":"transfer",
         "url":"/transactions/1495",
         "updated_at":"2011-02-17T18:25:34Z",
         "account":{
            "url":"/accounts/62",
            "id":"62"
         },
         "balance":"100.0",
         "id":"1495"
      },
      {
         "amount":"-100.0",
         "type":"transfer",
         "url":"/transactions/1498",
         "updated_at":"2011-02-18T15:18:42Z",
         "account":{
            "url":"/accounts/62",
            "id":"62"
         },
         "balance":"0.0",
         "id":"1498"
      }
   ],
   "current_page":1,
   "per_page":2,
   "total_entries":1097
}

Parameters

Name Value Description
account_id

ID of the account that the transaction belongs to.

updated_at

An ISO 8601 date time when the performer was last updated. Use in combination with the conditionals like `.gte` to get updated since.

type

Type of transaction.

amount

Amount on the transaction.

order_id

ID of the order that the transaction belongs to.

Show
GET  /accounts/:account_id/transactions/:transaction_id

Sample Code

Sample Response

{
   "amount":"-100.0",
   "type":"sale",
   "url":"/transactions/1498",
   "updated_at":"2011-07-18T17:03:32Z",
   "account":{
      "url":"/accounts/33",
      "id":"62"
   },
   "balance":"0.0",
   "id":"1498"
}

Parameters

Name Value Description
account_id

ID of the account that the transaction belongs to.

transaction_id

ID of the transaction.

page

Number of pages that you want to return

per_page

Number of results returned per page