import Conductor from 'conductor-node';
const conductor = new Conductor({
apiKey: process.env['CONDUCTOR_SECRET_KEY'], // This is the default and can be omitted
});
const dateDrivenTerm = await conductor.qbd.dateDrivenTerms.create({
dueDayOfMonth: 15,
name: '2% 5th Net 25th',
conductorEndUserId: 'end_usr_1234567abcdefg',
});
console.log(dateDrivenTerm.id);import os
from conductor import Conductor
conductor = Conductor(
api_key=os.environ.get("CONDUCTOR_SECRET_KEY"), # This is the default and can be omitted
)
date_driven_term = conductor.qbd.date_driven_terms.create(
due_day_of_month=15,
name="2% 5th Net 25th",
conductor_end_user_id="end_usr_1234567abcdefg",
)
print(date_driven_term.id)curl --request POST \
--url https://api.conductor.is/v1/quickbooks-desktop/date-driven-terms \
--header 'Authorization: Bearer <token>' \
--header 'Conductor-End-User-Id: <conductor-end-user-id>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "2% 5th Net 25th",
"dueDayOfMonth": 15,
"isActive": true,
"gracePeriodDays": 2,
"discountDayOfMonth": 5,
"discountPercentage": "10"
}
'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.conductor.is/v1/quickbooks-desktop/date-driven-terms",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '2% 5th Net 25th',
'dueDayOfMonth' => 15,
'isActive' => true,
'gracePeriodDays' => 2,
'discountDayOfMonth' => 5,
'discountPercentage' => '10'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Conductor-End-User-Id: <conductor-end-user-id>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.conductor.is/v1/quickbooks-desktop/date-driven-terms"
payload := strings.NewReader("{\n \"name\": \"2% 5th Net 25th\",\n \"dueDayOfMonth\": 15,\n \"isActive\": true,\n \"gracePeriodDays\": 2,\n \"discountDayOfMonth\": 5,\n \"discountPercentage\": \"10\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Conductor-End-User-Id", "<conductor-end-user-id>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.conductor.is/v1/quickbooks-desktop/date-driven-terms")
.header("Conductor-End-User-Id", "<conductor-end-user-id>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"2% 5th Net 25th\",\n \"dueDayOfMonth\": 15,\n \"isActive\": true,\n \"gracePeriodDays\": 2,\n \"discountDayOfMonth\": 5,\n \"discountPercentage\": \"10\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.conductor.is/v1/quickbooks-desktop/date-driven-terms")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Conductor-End-User-Id"] = '<conductor-end-user-id>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"2% 5th Net 25th\",\n \"dueDayOfMonth\": 15,\n \"isActive\": true,\n \"gracePeriodDays\": 2,\n \"discountDayOfMonth\": 5,\n \"discountPercentage\": \"10\"\n}"
response = http.request(request)
puts response.read_body{
"id": "80000001-1234567890",
"objectType": "qbd_date_driven_term",
"createdAt": "2025-01-01T12:34:56.000Z",
"updatedAt": "2025-02-01T12:34:56.000Z",
"revisionNumber": "1721172183",
"name": "2% 5th Net 25th",
"isActive": true,
"dueDayOfMonth": 15,
"gracePeriodDays": 2,
"discountDayOfMonth": 5,
"discountPercentage": "10"
}Create a date-driven term
Creates a date-driven term that sets the payment due on a specific day of the month and can optionally grant an early-payment discount before discountDayOfMonth. Use it when you need due dates tied to calendar days instead of a fixed number of days after the transaction.
import Conductor from 'conductor-node';
const conductor = new Conductor({
apiKey: process.env['CONDUCTOR_SECRET_KEY'], // This is the default and can be omitted
});
const dateDrivenTerm = await conductor.qbd.dateDrivenTerms.create({
dueDayOfMonth: 15,
name: '2% 5th Net 25th',
conductorEndUserId: 'end_usr_1234567abcdefg',
});
console.log(dateDrivenTerm.id);import os
from conductor import Conductor
conductor = Conductor(
api_key=os.environ.get("CONDUCTOR_SECRET_KEY"), # This is the default and can be omitted
)
date_driven_term = conductor.qbd.date_driven_terms.create(
due_day_of_month=15,
name="2% 5th Net 25th",
conductor_end_user_id="end_usr_1234567abcdefg",
)
print(date_driven_term.id)curl --request POST \
--url https://api.conductor.is/v1/quickbooks-desktop/date-driven-terms \
--header 'Authorization: Bearer <token>' \
--header 'Conductor-End-User-Id: <conductor-end-user-id>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "2% 5th Net 25th",
"dueDayOfMonth": 15,
"isActive": true,
"gracePeriodDays": 2,
"discountDayOfMonth": 5,
"discountPercentage": "10"
}
'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.conductor.is/v1/quickbooks-desktop/date-driven-terms",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '2% 5th Net 25th',
'dueDayOfMonth' => 15,
'isActive' => true,
'gracePeriodDays' => 2,
'discountDayOfMonth' => 5,
'discountPercentage' => '10'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Conductor-End-User-Id: <conductor-end-user-id>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.conductor.is/v1/quickbooks-desktop/date-driven-terms"
payload := strings.NewReader("{\n \"name\": \"2% 5th Net 25th\",\n \"dueDayOfMonth\": 15,\n \"isActive\": true,\n \"gracePeriodDays\": 2,\n \"discountDayOfMonth\": 5,\n \"discountPercentage\": \"10\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Conductor-End-User-Id", "<conductor-end-user-id>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.conductor.is/v1/quickbooks-desktop/date-driven-terms")
.header("Conductor-End-User-Id", "<conductor-end-user-id>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"2% 5th Net 25th\",\n \"dueDayOfMonth\": 15,\n \"isActive\": true,\n \"gracePeriodDays\": 2,\n \"discountDayOfMonth\": 5,\n \"discountPercentage\": \"10\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.conductor.is/v1/quickbooks-desktop/date-driven-terms")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Conductor-End-User-Id"] = '<conductor-end-user-id>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"2% 5th Net 25th\",\n \"dueDayOfMonth\": 15,\n \"isActive\": true,\n \"gracePeriodDays\": 2,\n \"discountDayOfMonth\": 5,\n \"discountPercentage\": \"10\"\n}"
response = http.request(request)
puts response.read_body{
"id": "80000001-1234567890",
"objectType": "qbd_date_driven_term",
"createdAt": "2025-01-01T12:34:56.000Z",
"updatedAt": "2025-02-01T12:34:56.000Z",
"revisionNumber": "1721172183",
"name": "2% 5th Net 25th",
"isActive": true,
"dueDayOfMonth": 15,
"gracePeriodDays": 2,
"discountDayOfMonth": 5,
"discountPercentage": "10"
}Authorizations
Headers
Body
The case-insensitive unique name of this date-driven term, unique across all date-driven terms.
NOTE: Date-driven terms do not have a fullName field because they are not hierarchical objects, which is why name is unique for them but not for objects that have parents.
Maximum length: 31 characters.
31"2% 5th Net 25th"
The number of days before dueDayOfMonth when an invoice or bill issued within this threshold is considered due the following month. For example, with dueDayOfMonth set to 15 and gracePeriodDays set to 2, an invoice issued on the 13th would be due on the 15th of the next month, while an invoice issued on the 12th would be due on the 15th of the current month.
2
Response
Returns the newly created date-driven term.
The current QuickBooks-assigned revision number of this date-driven term object, which changes each time the object is modified. When updating this object, you must provide the most recent revisionNumber to ensure you're working with the latest data; otherwise, the update will return an error.
"1721172183"
The case-insensitive unique name of this date-driven term, unique across all date-driven terms.
NOTE: Date-driven terms do not have a fullName field because they are not hierarchical objects, which is why name is unique for them but not for objects that have parents.
"2% 5th Net 25th"
The number of days before dueDayOfMonth when an invoice or bill issued within this threshold is considered due the following month. For example, with dueDayOfMonth set to 15 and gracePeriodDays set to 2, an invoice issued on the 13th would be due on the 15th of the next month, while an invoice issued on the 12th would be due on the 15th of the current month.
2

