Skip to main content
POST
JavaScript

Authorizations

Authorization
string
header
required

Your Conductor secret key using Bearer auth (e.g., "Authorization: Bearer {{YOUR_SECRET_KEY}}").

Headers

Conductor-End-User-Id
string
required

The ID of the End-User to receive this request.

Example:

"end_usr_1234567abcdefg"

Body

application/json
name
string
required

The name of the custom field, unique among the custom fields of its owner. For a public custom field, this is the label QuickBooks shows.

Maximum string length: 31
Example:

"Customer Rating"

objectTypes
enum<string>[]
required

The types of records the custom field applies to. A public custom field takes either "item" or any of "customer", "vendor", and "employee", and QuickBooks adds transaction types itself, which the returned definition's objectTypes lists: a customer, vendor, or employee custom field applies to those transactions themselves, and an item custom field to their lines. A private custom field takes any of these types.

Minimum array length: 1
Available options:
account,
ar_refund_credit_card,
bill,
bill_payment_check,
bill_payment_credit_card,
build_assembly,
charge,
check,
company,
credit_card_charge,
credit_card_credit,
credit_memo,
customer,
deposit,
employee,
estimate,
inventory_adjustment,
invoice,
item,
item_receipt,
journal_entry,
other_name,
purchase_order,
receive_payment,
sales_order,
sales_receipt,
sales_tax_payment_check,
vendor,
vendor_credit
Example:
ownerId
string
default:0

The owner of the custom field. Defaults to "0", the owner of public custom fields, which QuickBooks users define and see. Any other owner is an application's GUID in braces, such as "{6B063959-81B0-4622-85D6-F548C8CCB517}", whose private custom fields appear only in requests that name it.

Example:

"0"

type
enum<string>
default:string_255_type

The data type of the custom field's values. Defaults to "string_255_type", the only type QuickBooks accepts for a public custom field.

Available options:
amount_type,
date_time_type,
integer_type,
percent_type,
price_type,
quantity_type,
string_1024_type,
string_255_type
Example:

"string_255_type"

Response

200 - application/json

Returns the newly created custom field definition.

id
string
required

The identifier of this custom field definition, which is its name, so it changes when the definition is renamed.

Example:

"Customer Rating"

objectType
string
required

The type of object. This value is always "qbd_custom_field_definition".

Allowed value: "qbd_custom_field_definition"
Example:

"qbd_custom_field_definition"

ownerId
string
required

The owner of this custom field: "0" for a public custom field, which QuickBooks users define and see, or an application's GUID in braces for a private custom field, which appears only in requests that name that owner.

Example:

"0"

name
string
required

The name of this custom field, unique among the custom fields of its owner. For a public custom field, this is the label QuickBooks shows.

Example:

"Customer Rating"

type
enum<string>
required

The data type of this custom field's values. Public custom fields are always string_255_type.

Available options:
amount_type,
date_time_type,
integer_type,
percent_type,
price_type,
quantity_type,
string_1024_type,
string_255_type
Example:

"string_255_type"

objectTypes
enum<string>[]
required

The types of records this custom field applies to. For a public custom field, this includes the transaction types QuickBooks adds itself: a customer, vendor, or employee custom field applies to the listed transactions themselves, and an item custom field to their lines.

Available options:
account,
ar_refund_credit_card,
bill,
bill_payment_check,
bill_payment_credit_card,
build_assembly,
charge,
check,
company,
credit_card_charge,
credit_card_credit,
credit_memo,
customer,
deposit,
employee,
estimate,
inventory_adjustment,
invoice,
item,
item_receipt,
journal_entry,
other_name,
purchase_order,
receive_payment,
sales_order,
sales_receipt,
sales_tax_payment_check,
vendor,
vendor_credit
Example:
isRequiredForListObjects
boolean | null
required

Indicates whether QuickBooks requires a value for this custom field on list objects, such as customers and items. QuickBooks does not report this for private custom fields.

Example:

false

isRequiredForTransactions
boolean | null
required

Indicates whether QuickBooks requires a value for this custom field on transactions. QuickBooks does not report this for private custom fields.

Example:

false

format
string | null
required

The format QuickBooks applies to this custom field's values, as QuickBooks names it. QuickBooks does not report this for private custom fields.

Example:

"Any text"