Skip to content

Latest commit

 

History

History
154 lines (114 loc) · 7.15 KB

BankInfoApi.md

File metadata and controls

154 lines (114 loc) · 7.15 KB

MergeHrisApi.BankInfoApi

All URIs are relative to https://api.merge.dev/api/hris/v1

Method HTTP request Description
bankInfoList GET /bank-info
bankInfoRetrieve GET /bank-info/{id}

bankInfoList

PaginatedBankInfoList bankInfoList(x_account_token, opts)

Returns a list of `BankInfo` objects.

Example

import MergeHrisApi from 'merge_hris_api';
let defaultClient = MergeHrisApi.ApiClient.instance;
// Configure API key authorization: tokenAuth
let tokenAuth = defaultClient.authentications['tokenAuth'];
tokenAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tokenAuth.apiKeyPrefix = 'Token';

let apiInstance = new MergeHrisApi.BankInfoApi();
let x_account_token = "x_account_token_example"; // String | Token identifying the end user.
let opts = {
  'account_type': "account_type_example", // String | If provided, will only return BankInfo's with this account type. Options: ('SAVINGS', 'CHECKING')
  'bank_name': "bank_name_example", // String | If provided, will only return BankInfo's with this bank name.
  'created_after': new Date("2013-10-20T19:20:30+01:00"), // Date | If provided, will only return objects created after this datetime.
  'created_before': new Date("2013-10-20T19:20:30+01:00"), // Date | If provided, will only return objects created before this datetime.
  'cursor': cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw, // String | The pagination cursor value.
  'employee_id': "employee_id_example", // String | If provided, will only return bank accounts for this employee.
  'expand': employee, // String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
  'include_deleted_data': true, // Boolean | Whether to include data that was marked as deleted by third party webhooks.
  'include_remote_data': true, // Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
  'modified_after': new Date("2013-10-20T19:20:30+01:00"), // Date | If provided, will only return objects modified after this datetime.
  'modified_before': new Date("2013-10-20T19:20:30+01:00"), // Date | If provided, will only return objects modified before this datetime.
  'order_by': "order_by_example", // String | Overrides the default ordering for this endpoint.
  'page_size': 56, // Number | Number of results to return per page.
  'remote_fields': account_type, // String | Which fields should be returned in non-normalized form.
  'remote_id': "remote_id_example" // String | The API provider's ID for the given object.
};
apiInstance.bankInfoList(x_account_token, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
x_account_token String Token identifying the end user.
account_type String If provided, will only return BankInfo's with this account type. Options: ('SAVINGS', 'CHECKING') [optional]
bank_name String If provided, will only return BankInfo's with this bank name. [optional]
created_after Date If provided, will only return objects created after this datetime. [optional]
created_before Date If provided, will only return objects created before this datetime. [optional]
cursor String The pagination cursor value. [optional]
employee_id String If provided, will only return bank accounts for this employee. [optional]
expand String Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. [optional]
include_deleted_data Boolean Whether to include data that was marked as deleted by third party webhooks. [optional]
include_remote_data Boolean Whether to include the original data Merge fetched from the third-party to produce these models. [optional]
modified_after Date If provided, will only return objects modified after this datetime. [optional]
modified_before Date If provided, will only return objects modified before this datetime. [optional]
order_by String Overrides the default ordering for this endpoint. [optional]
page_size Number Number of results to return per page. [optional]
remote_fields String Which fields should be returned in non-normalized form. [optional]
remote_id String The API provider's ID for the given object. [optional]

Return type

PaginatedBankInfoList

Authorization

tokenAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

bankInfoRetrieve

BankInfo bankInfoRetrieve(x_account_token, id, opts)

Returns a `BankInfo` object with the given `id`.

Example

import MergeHrisApi from 'merge_hris_api';
let defaultClient = MergeHrisApi.ApiClient.instance;
// Configure API key authorization: tokenAuth
let tokenAuth = defaultClient.authentications['tokenAuth'];
tokenAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tokenAuth.apiKeyPrefix = 'Token';

let apiInstance = new MergeHrisApi.BankInfoApi();
let x_account_token = "x_account_token_example"; // String | Token identifying the end user.
let id = null; // String | 
let opts = {
  'expand': employee, // String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
  'include_remote_data': true, // Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
  'remote_fields': account_type // String | Which fields should be returned in non-normalized form.
};
apiInstance.bankInfoRetrieve(x_account_token, id, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
x_account_token String Token identifying the end user.
id String
expand String Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. [optional]
include_remote_data Boolean Whether to include the original data Merge fetched from the third-party to produce these models. [optional]
remote_fields String Which fields should be returned in non-normalized form. [optional]

Return type

BankInfo

Authorization

tokenAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json