Fetching Transaction Data

Requests for Transaction information are submitted to the Clearent Payment Gateway using the HTTP GET method, with a URL in the following form: https://gateway-sb.clearent.net/rest/v2/transactions

Once the GET is executed the Transaction Object from above will be returned. In order to limit or filter the results and to organize their presentation, certain fields can be specified as part of the query string appended to the URL, as in the following examples:

GET /rest/v2/transactions?last-four=4375&page-size=10
GET /rest/v2/transactions?id=1057
GET /rest/v2/transactions?result=Approved
GET /rest/v2/transactions?display-message=Transaction%20Approved

The supported fields are listed below.

Name Format Description Default
Id N See ‘Responses: Formats and Fields’ above for details.
amount N See ‘Requests: Formats and Fields’ above for details.
type A See ‘Requests: Formats and Fields’ above for details.
result A See ‘Responses: Formats and Fields’ above for details.
last-four N Last four digits of the card number submitted.
authorization-code A/N See ‘Requests: Formats and Fields’ above for details.
invoice A/N See ‘Requests: Formats and Fields’ above for details.
order-id A/N See ‘Requests: Formats and Fields’ above for details.
page-size N Limits the number of transactions returned by this method. Maximum is 100. 25
page N Specifies which page of results is returned. Page index starts at ‘1’. For example: if page=2 and page-size=50, then this method will return transactions 51 – 100 (or the maximum batches available). If no transactions exist in this range, then a blank list is returned. 1
descending A Specifies which direction to sort the batch list by. Valid values are true and false. True
start-date A/N Filters the transactions list by the created date / time. Setting start-date will return transactions that were processed after this date / time. Setting both start-date and end-date creates a range. See the “Valid Date / Time Formats” list below.
end-date A/N Filters the transactions list by the created date / time. Setting start-date will return transactions that were processed after this date / time. Setting both start-date and end-date creates a range. See the “Valid Date / Time Formats” list below.

Valid formats for the ‘start-date’ and ‘end-date’ fields include the following:

  • MM-dd-yyyy hh:mm a
  • MM-dd-yy HH:mm
  • MM-dd-yy HH:mm z
  • yyyy-MM-dd HH:mm
  • yyyy-MM-dd HH:mm z