const idempotency_key = 'random string';
const account_id = 'BxBXxLj1m4HMXBm9WZZmCWVbPjX16EHwv99vp';
const transfer_type = 'credit';
const network = 'ach';
const amount = '10.00';
const iso_currency_code = 'USD';
const description = 'payment';
const user = { legal_name: 'Firstname Lastname' };
const metadata = {
key1: 'value1',
key2: 'value2',
};
const ach_class = 'ppd';
const custom_tag = 'my_custom_tag';
const origination_account_id = '11111111-1111-1111-1111-111111111111';
const response = await client
.bankTransferCreate({
idempotency_key: idempotency_key,
access_token: access_token,
account_id: account_id,
type: transfer_type,
network: network,
amount: amount,
iso_currency_code: iso_currency_code,
description: description,
user: user,
metadata: metadata,
ach_class: ach_class,
custom_tag: custom_tag,
origination_account_id: origination_account_id,
})
.catch((err) => {
// handle error
});
const bank_transfer = response.bank_transfer;
const account_id = 'BxBXxLj1m4HMXBm9WZZmCWVbPjX16EHwv99vp';
const transfer_type = 'credit';
const network = 'ach';
const amount = '10.00';
const iso_currency_code = 'USD';
const description = 'payment';
const user = { legal_name: 'Firstname Lastname' };
const metadata = {
key1: 'value1',
key2: 'value2',
};
const ach_class = 'ppd';
const custom_tag = 'my_custom_tag';
const origination_account_id = '11111111-1111-1111-1111-111111111111';
const response = await client
.bankTransferCreate({
idempotency_key: idempotency_key,
access_token: access_token,
account_id: account_id,
type: transfer_type,
network: network,
amount: amount,
iso_currency_code: iso_currency_code,
description: description,
user: user,
metadata: metadata,
ach_class: ach_class,
custom_tag: custom_tag,
origination_account_id: origination_account_id,
})
.catch((err) => {
// handle error
});
const bank_transfer = response.bank_transfer;