curl -X GET -H "API-Key: [[apiKey]]" "http:///accounts/externalAccounts?start=&limit=&sortBy=&state=&type=&name=&filter=&q=&unmasked=&embed="
import { ExternalAccountApi } from "@apiture/accounts-client-sdk";
const externalAccountApi = new ExternalAccountApi(configuration);
// Configure OAuth2 access token for authorization: accessToken
var accessToken = "YOUR ACCESS TOKEN";
externalAccountApi.setAccessToken(accessToken)
// Configure API key authorization: apiKey
var apiKey = "YOUR API KEY";
externalAccountApi.setApiKey(apiKey);
var api = new Accounts.ExternalAccountApi.getExternalAccounts()
var opts = {
'start': 789, // {Long} The zero-based index of the first external account item to include in this page. The default 0 denotes the beginning of the collection.
'limit': 56, // {Integer} The maximum number of external account 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`.
'state': state_example, // {String} Subset the accounts or external accounts collection to those whose `state` matches this value. Use `|` to separate multiple values. For example, `?state=pending` matches only items whose `state` is `pending`; `?state=removed|inactive` matches items whose `state` is `removed` or `inactive`. This is combined with an implicit `and` with other filters if they are used. See [filtering](https://developer.apiture.com/docs/concepts/filtering).
'type': type_example, // {String} Subset the accounts or external accounts collection to those with this exact `type` value. Use `|` to separate multiple values. For example, `?type=Personal%20Savings` matches only items whose `type` is `Personal Savings`; `?type=Personal%20Savings|Investment%20Account` matches items whose `type` is `Personal Savings` or `Investment Account`. This is combined with an implicit `and` with other filters if they are used. See [filtering](https://developer.apiture.com/docs/concepts/filtering).
'name': name_example, // {String} Subset the accounts or external accounts collection to those with this `name` value. Use `|` to separate multiple values. For example, `?name=Bartell` matches only items whose `name` is `Bartell`; `?name=Bartell|kirsten` matches items whose `name` is `Bartell` or `kirsten`. This is combined with an implicit `and` with other filters if they are used. See [filtering](https://developer.apiture.com/docs/concepts/filtering).
'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).
'unmasked': true, // {Boolean} When requesting an account, the full account number is not included in the response by default, for security reasons. Include this query parameter, with a value of `true`, to request that the response body includes the full account number. Such requests are auditable.
'embed': // {array[String]} If set, each external account in the `_embedded.items` array will include additional embedded objects. The `embed` query parameter specifies which related resources to include in the `_embedded` object in each account in response. `embed` supports the following values: - `owners`: for external accounts, include the account owners in the `_embedded.accountOwners` object. (See the `externalAccountEmbeddedObjects` schema.)
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
externalAccountApi.getExternalAccounts(opts, callback);