curl -X GET -H "API-Key: [[apiKey]]" "http:///transactions/history?checkNumber=&holdState=&start=&limit=&sortBy=&filter=&q=&account="
import { HistoryApi } from "@apiture/transactions-client-sdk";
const historyApi = new HistoryApi(configuration);
// Configure OAuth2 access token for authorization: accessToken
var accessToken = "YOUR ACCESS TOKEN";
historyApi.setAccessToken(accessToken)
// Configure API key authorization: apiKey
var apiKey = "YOUR API KEY";
historyApi.setApiKey(apiKey);
var api = new Transactions.HistoryApi.getHistory()
var opts = {
'checkNumber': checkNumber_example, // {String} Specify one or more check numbers or check number ranges. This is a comma-separated or `|` separated list of number or ranges. Ranges have the form `number-number`. For example, the value `201,202,210-213` matches the transactions where the check number is 201, 202, 210, 211, 212, or 213; this may also be expressed as `201|202|210-213`.
'holdState': holdState_example, // {String} Subset the transactions collection to those whose `holdState` matches this value. Use `|` to separate multiple values. For example, `?holdState=active` will match only items whose `holdState` is `active`; `?holdState=active|expired` will match items whose `holdState` is `active` or `expired`. This is combined with an implicit `and` with other filters if they are used. See [filtering](https://developer.apiture.com/docs/concepts/filtering).
'start': 789, // {Long} The zero-based index of the first transaction in this page. The default, 0, represents the first page of the collection.
'limit': 56, // {Integer} The maximum number of transaction representations to return in this page.
'sortBy': sortBy_example, // {String} Optional sort criteria. See [sort criteria format](https://developer.apiture.com/docs/concepts/sorting), such as `?sortBy=field1,-field2`.
'filter': filter_example, // {String} Optional filter criteria. See [filtering](https://developer.apiture.com/docs/concepts/filtering).
'q': q_example, // {String} Optional search string. See [searching](https://developer.apiture.com/docs/concepts/searching).
'account': account_example // {String} A list of server-supplied values which identify the account instances, i.e. ?account=acct1|acct2|acct3.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
historyApi.getHistory(opts, callback);