import Conductor from 'conductor-node';
const conductor = new Conductor({
apiKey: 'My API Key',
});
const billCheckPayment = await conductor.qbd.billCheckPayments.create({
applyToTransactions: [{ transactionId: '123ABC-1234567890' }],
bankAccountId: '80000001-1234567890',
transactionDate: '2021-10-01',
vendorId: '80000001-1234567890',
conductorEndUserId: 'end_usr_1234567abcdefg',
});
console.log(billCheckPayment.id);
{
"id": "123ABC-1234567890",
"objectType": "qbd_bill_check_payment",
"createdAt": "2021-10-01T12:34:56-05:00",
"updatedAt": "2021-10-01T15:45:30-05:00",
"revisionNumber": "1721172183",
"vendor": {
"id": "80000001-1234567890",
"fullName": "Suppliers:ABC Office Supplies"
},
"payablesAccount": {
"id": "80000001-1234567890",
"fullName": "Accounts-Payable"
},
"transactionDate": "2021-10-01",
"bankAccount": {
"id": "80000001-1234567890",
"fullName": "Checking"
},
"amount": "1000.00",
"currency": {
"id": "80000001-1234567890",
"fullName": "USD"
},
"exchangeRate": 1.2345,
"amountInHomeCurrency": "1234.56",
"refNumber": "CHECK-1234",
"memo": "Payment for office supplies - Invoice INV-1234",
"address": {
"line1": "Conductor Labs Inc.",
"line2": "540 Market St.",
"line3": "Suite 100",
"line4": "",
"line5": "",
"city": "San Francisco",
"state": "CA",
"postalCode": "94110",
"country": "United States",
"note": "Conductor HQ"
},
"isQueuedForPrint": true,
"externalId": "12345678-abcd-1234-abcd-1234567890ab",
"appliedToTransactions": [
{
"transactionId": "123ABC-1234567890",
"transactionType": "invoice",
"transactionDate": "2021-10-01",
"refNumber": "PAYMENT-1234",
"balanceRemaining": "100.00",
"amount": "1000.00",
"discountAmount": "50.00",
"discountAccount": {
"id": "80000001-1234567890",
"fullName": "Discount Account"
},
"discountClass": {
"id": "80000001-1234567890",
"fullName": "Discounts"
},
"linkedTransactions": [
{
"id": "123ABC-1234567890",
"objectType": "qbd_linked_transaction",
"transactionType": "invoice",
"transactionDate": "2021-10-01",
"refNumber": "LINK-1234",
"linkType": "amount",
"amount": "1000.00"
}
]
}
],
"customFields": [
{
"ownerId": "0",
"name": "Customer Rating",
"type": "string_1024_type",
"value": "Premium"
}
]
}
Creates a new bill check payment.
import Conductor from 'conductor-node';
const conductor = new Conductor({
apiKey: 'My API Key',
});
const billCheckPayment = await conductor.qbd.billCheckPayments.create({
applyToTransactions: [{ transactionId: '123ABC-1234567890' }],
bankAccountId: '80000001-1234567890',
transactionDate: '2021-10-01',
vendorId: '80000001-1234567890',
conductorEndUserId: 'end_usr_1234567abcdefg',
});
console.log(billCheckPayment.id);
{
"id": "123ABC-1234567890",
"objectType": "qbd_bill_check_payment",
"createdAt": "2021-10-01T12:34:56-05:00",
"updatedAt": "2021-10-01T15:45:30-05:00",
"revisionNumber": "1721172183",
"vendor": {
"id": "80000001-1234567890",
"fullName": "Suppliers:ABC Office Supplies"
},
"payablesAccount": {
"id": "80000001-1234567890",
"fullName": "Accounts-Payable"
},
"transactionDate": "2021-10-01",
"bankAccount": {
"id": "80000001-1234567890",
"fullName": "Checking"
},
"amount": "1000.00",
"currency": {
"id": "80000001-1234567890",
"fullName": "USD"
},
"exchangeRate": 1.2345,
"amountInHomeCurrency": "1234.56",
"refNumber": "CHECK-1234",
"memo": "Payment for office supplies - Invoice INV-1234",
"address": {
"line1": "Conductor Labs Inc.",
"line2": "540 Market St.",
"line3": "Suite 100",
"line4": "",
"line5": "",
"city": "San Francisco",
"state": "CA",
"postalCode": "94110",
"country": "United States",
"note": "Conductor HQ"
},
"isQueuedForPrint": true,
"externalId": "12345678-abcd-1234-abcd-1234567890ab",
"appliedToTransactions": [
{
"transactionId": "123ABC-1234567890",
"transactionType": "invoice",
"transactionDate": "2021-10-01",
"refNumber": "PAYMENT-1234",
"balanceRemaining": "100.00",
"amount": "1000.00",
"discountAmount": "50.00",
"discountAccount": {
"id": "80000001-1234567890",
"fullName": "Discount Account"
},
"discountClass": {
"id": "80000001-1234567890",
"fullName": "Discounts"
},
"linkedTransactions": [
{
"id": "123ABC-1234567890",
"objectType": "qbd_linked_transaction",
"transactionType": "invoice",
"transactionDate": "2021-10-01",
"refNumber": "LINK-1234",
"linkType": "amount",
"amount": "1000.00"
}
]
}
],
"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 bill check payment.
The response is of type object
.