import Conductor from 'conductor-node';
const conductor = new Conductor({
apiKey: 'sk_conductor_...',
});
const transfer = await conductor.qbd.transfers.create({
amount: '1000.00',
sourceAccountId: '80000001-1234567890',
targetAccountId: '80000001-1234567890',
transactionDate: '2021-10-01',
conductorEndUserId: 'end_usr_1234567abcdefg',
});
console.log(transfer.id);
{
"id": "123ABC-1234567890",
"objectType": "qbd_transfer",
"createdAt": "2021-10-01T12:34:56-05:00",
"updatedAt": "2021-10-01T15:45:30-05:00",
"revisionNumber": "1721172183",
"transactionDate": "2021-10-01",
"sourceAccount": {
"id": "80000001-1234567890",
"fullName": "Checking"
},
"sourceAccountBalance": "1000.00",
"targetAccount": {
"id": "80000001-1234567890",
"fullName": "Savings"
},
"targetAccountBalance": "5000.00",
"class": {
"id": "80000001-1234567890",
"fullName": "Inter Departmental"
},
"amount": "1000.00",
"memo": "Monthly transfer to savings"
}
Creates a new transfer.
import Conductor from 'conductor-node';
const conductor = new Conductor({
apiKey: 'sk_conductor_...',
});
const transfer = await conductor.qbd.transfers.create({
amount: '1000.00',
sourceAccountId: '80000001-1234567890',
targetAccountId: '80000001-1234567890',
transactionDate: '2021-10-01',
conductorEndUserId: 'end_usr_1234567abcdefg',
});
console.log(transfer.id);
{
"id": "123ABC-1234567890",
"objectType": "qbd_transfer",
"createdAt": "2021-10-01T12:34:56-05:00",
"updatedAt": "2021-10-01T15:45:30-05:00",
"revisionNumber": "1721172183",
"transactionDate": "2021-10-01",
"sourceAccount": {
"id": "80000001-1234567890",
"fullName": "Checking"
},
"sourceAccountBalance": "1000.00",
"targetAccount": {
"id": "80000001-1234567890",
"fullName": "Savings"
},
"targetAccountBalance": "5000.00",
"class": {
"id": "80000001-1234567890",
"fullName": "Inter Departmental"
},
"amount": "1000.00",
"memo": "Monthly transfer to savings"
}
Your Conductor secret key using Bearer auth (e.g., "Authorization: Bearer {{YOUR_SECRET_KEY}}"
).
The ID of the EndUser to receive this request (e.g., "Conductor-End-User-Id: {{END_USER_ID}}"
).
"end_usr_1234567abcdefg"
Returns the newly created transfer.
The response is of type object
.