Creates a new financial account.
import Conductor from 'conductor-node';
const conductor = new Conductor({
apiKey: process.env['CONDUCTOR_SECRET_KEY'], // This is the default and can be omitted
});
const account = await conductor.qbd.accounts.create({
accountType: 'bank',
name: 'Accounts-Payable',
conductorEndUserId: 'end_usr_1234567abcdefg',
});
console.log(account.id);
{
"id": "80000001-1234567890",
"objectType": "qbd_account",
"createdAt": "2021-10-01T12:34:56-05:00",
"updatedAt": "2021-10-01T15:45:30-05:00",
"revisionNumber": "1721172183",
"name": "Accounts-Payable",
"fullName": "Corporate:Accounts-Payable",
"isActive": true,
"parent": {
"id": "80000001-1234567890",
"fullName": "Corporate"
},
"sublevel": 1,
"accountType": "bank",
"specialAccountType": "undeposited_funds",
"isTaxAccount": true,
"accountNumber": "1010",
"bankAccountNumber": "123456789",
"description": "Accounts-payable are the amounts owed to suppliers for goods and services purchased on credit.",
"balance": "1000.00",
"totalBalance": "5000.00",
"salesTaxCode": {
"id": "80000001-1234567890",
"fullName": "Non"
},
"taxLineDetails": {
"taxLineId": 123,
"taxLineName": "State Sales Tax"
},
"cashFlowClassification": "operating",
"currency": {
"id": "80000001-1234567890",
"fullName": "USD"
},
"customFields": [
{
"ownerId": "0",
"name": "Customer Rating",
"type": "string_1024_type",
"value": "Premium"
}
]
}
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 account.
The response is of type object
.
import Conductor from 'conductor-node';
const conductor = new Conductor({
apiKey: process.env['CONDUCTOR_SECRET_KEY'], // This is the default and can be omitted
});
const account = await conductor.qbd.accounts.create({
accountType: 'bank',
name: 'Accounts-Payable',
conductorEndUserId: 'end_usr_1234567abcdefg',
});
console.log(account.id);
{
"id": "80000001-1234567890",
"objectType": "qbd_account",
"createdAt": "2021-10-01T12:34:56-05:00",
"updatedAt": "2021-10-01T15:45:30-05:00",
"revisionNumber": "1721172183",
"name": "Accounts-Payable",
"fullName": "Corporate:Accounts-Payable",
"isActive": true,
"parent": {
"id": "80000001-1234567890",
"fullName": "Corporate"
},
"sublevel": 1,
"accountType": "bank",
"specialAccountType": "undeposited_funds",
"isTaxAccount": true,
"accountNumber": "1010",
"bankAccountNumber": "123456789",
"description": "Accounts-payable are the amounts owed to suppliers for goods and services purchased on credit.",
"balance": "1000.00",
"totalBalance": "5000.00",
"salesTaxCode": {
"id": "80000001-1234567890",
"fullName": "Non"
},
"taxLineDetails": {
"taxLineId": 123,
"taxLineName": "State Sales Tax"
},
"cashFlowClassification": "operating",
"currency": {
"id": "80000001-1234567890",
"fullName": "USD"
},
"customFields": [
{
"ownerId": "0",
"name": "Customer Rating",
"type": "string_1024_type",
"value": "Premium"
}
]
}
Creates a new financial account.
import Conductor from 'conductor-node';
const conductor = new Conductor({
apiKey: process.env['CONDUCTOR_SECRET_KEY'], // This is the default and can be omitted
});
const account = await conductor.qbd.accounts.create({
accountType: 'bank',
name: 'Accounts-Payable',
conductorEndUserId: 'end_usr_1234567abcdefg',
});
console.log(account.id);
{
"id": "80000001-1234567890",
"objectType": "qbd_account",
"createdAt": "2021-10-01T12:34:56-05:00",
"updatedAt": "2021-10-01T15:45:30-05:00",
"revisionNumber": "1721172183",
"name": "Accounts-Payable",
"fullName": "Corporate:Accounts-Payable",
"isActive": true,
"parent": {
"id": "80000001-1234567890",
"fullName": "Corporate"
},
"sublevel": 1,
"accountType": "bank",
"specialAccountType": "undeposited_funds",
"isTaxAccount": true,
"accountNumber": "1010",
"bankAccountNumber": "123456789",
"description": "Accounts-payable are the amounts owed to suppliers for goods and services purchased on credit.",
"balance": "1000.00",
"totalBalance": "5000.00",
"salesTaxCode": {
"id": "80000001-1234567890",
"fullName": "Non"
},
"taxLineDetails": {
"taxLineId": 123,
"taxLineName": "State Sales Tax"
},
"cashFlowClassification": "operating",
"currency": {
"id": "80000001-1234567890",
"fullName": "USD"
},
"customFields": [
{
"ownerId": "0",
"name": "Customer Rating",
"type": "string_1024_type",
"value": "Premium"
}
]
}
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 account.
The response is of type object
.
import Conductor from 'conductor-node';
const conductor = new Conductor({
apiKey: process.env['CONDUCTOR_SECRET_KEY'], // This is the default and can be omitted
});
const account = await conductor.qbd.accounts.create({
accountType: 'bank',
name: 'Accounts-Payable',
conductorEndUserId: 'end_usr_1234567abcdefg',
});
console.log(account.id);
{
"id": "80000001-1234567890",
"objectType": "qbd_account",
"createdAt": "2021-10-01T12:34:56-05:00",
"updatedAt": "2021-10-01T15:45:30-05:00",
"revisionNumber": "1721172183",
"name": "Accounts-Payable",
"fullName": "Corporate:Accounts-Payable",
"isActive": true,
"parent": {
"id": "80000001-1234567890",
"fullName": "Corporate"
},
"sublevel": 1,
"accountType": "bank",
"specialAccountType": "undeposited_funds",
"isTaxAccount": true,
"accountNumber": "1010",
"bankAccountNumber": "123456789",
"description": "Accounts-payable are the amounts owed to suppliers for goods and services purchased on credit.",
"balance": "1000.00",
"totalBalance": "5000.00",
"salesTaxCode": {
"id": "80000001-1234567890",
"fullName": "Non"
},
"taxLineDetails": {
"taxLineId": 123,
"taxLineName": "State Sales Tax"
},
"cashFlowClassification": "operating",
"currency": {
"id": "80000001-1234567890",
"fullName": "USD"
},
"customFields": [
{
"ownerId": "0",
"name": "Customer Rating",
"type": "string_1024_type",
"value": "Premium"
}
]
}