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"

Path Parameters

id
string
required

The id of the custom field definition, which is its name. QuickBooks matches the name without regard to letter case. For a private definition, also send its ownerId; without it, the request acts on the public definition with this name.

Maximum string length: 31
Example:

"Customer Rating"

Body

application/json
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"

name
string

The new name of the custom field. Its values stay with it, and the definition's id becomes the new name.

Maximum string length: 31
Example:

"Customer Tier"

addObjectTypes
enum<string>[]

The types of records to also apply the custom field to. A public custom field takes only "customer", "vendor", "employee", or "item", and QuickBooks adds the matching transaction types itself.

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:
removeObjectTypes
enum<string>[]

The types of records to stop applying the custom field to. A public custom field takes only "customer", "vendor", "employee", or "item", and QuickBooks removes the matching transaction types itself. Removing a type hides the custom field's values on its records without erasing them, and adding the type back with addObjectTypes restores them unchanged.

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:

Response

200 - application/json

Returns the updated 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"