> ## Documentation Index
> Fetch the complete documentation index at: https://docs.conductor.is/llms.txt
> Use this file to discover all available pages before exploring further.

# List all custom field definitions

> Returns the company file's custom field definitions: each custom field's name, the type of its values, and the types of records it applies to. A record's `customFields` include only the custom fields that have a value on that record, so use this list to find every custom field you can set.



## OpenAPI

````yaml GET /quickbooks-desktop/custom-field-definitions
openapi: 3.1.0
info:
  title: Conductor API
  version: 0.0.1
servers:
  - url: https://api.conductor.is/v1
security:
  - BearerAuth: []
paths:
  /quickbooks-desktop/custom-field-definitions:
    get:
      summary: List all custom field definitions
      description: >-
        Returns the company file's custom field definitions: each custom field's
        name, the type of its values, and the types of records it applies to. A
        record's `customFields` include only the custom fields that have a value
        on that record, so use this list to find every custom field you can set.
      parameters:
        - in: header
          name: Conductor-End-User-Id
          schema:
            type: string
            description: The ID of the End-User to receive this request.
            example: end_usr_1234567abcdefg
            x-stainless-naming:
              typescript:
                method_argument: conductorEndUserId
              mcp:
                method_argument: conductorEndUserId
          required: true
          description: The ID of the End-User to receive this request.
        - in: query
          name: ownerIds
          schema:
            description: >-
              The owners whose custom field definitions to return. Defaults to
              `["0"]`, the owner of public custom fields, which QuickBooks users
              define and see. To get an application's private custom fields, add
              its owner ID, a GUID in braces. Only the owners you list are
              returned, so keep `"0"` in the list to also get the public ones.
            example:
              - '0'
            minItems: 1
            type: array
            items:
              type: string
          description: >-
            The owners whose custom field definitions to return. Defaults to
            `["0"]`, the owner of public custom fields, which QuickBooks users
            define and see. To get an application's private custom fields, add
            its owner ID, a GUID in braces. Only the owners you list are
            returned, so keep `"0"` in the list to also get the public ones.
      responses:
        '200':
          description: Returns a list of custom field definitions.
          headers:
            Conductor-Request-Id:
              required: true
              description: The unique identifier for this API request.
              schema:
                type: string
                description: The unique identifier for this API request.
                example: req_1234567abcdefg
          content:
            application/json:
              schema:
                type: object
                properties:
                  objectType:
                    description: The type of object. This value is always `"list"`.
                    example: list
                    type: string
                    const: list
                  url:
                    type: string
                    description: The endpoint URL where this list can be accessed.
                    example: /v1/quickbooks-desktop/custom-field-definitions
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/qbd_custom_field_definition'
                    description: The array of custom field definitions.
                required:
                  - objectType
                  - url
                  - data
                additionalProperties: false
      security:
        - BearerAuth: []
      x-codeSamples:
        - lang: JavaScript
          source: >-
            import Conductor from 'conductor-node';


            const conductor = new Conductor({
              apiKey: process.env['CONDUCTOR_SECRET_KEY'], // This is the default and can be omitted
            });


            const customFieldDefinitions = await
            conductor.qbd.customFieldDefinitions.list({
              conductorEndUserId: 'end_usr_1234567abcdefg',
            });


            console.log(customFieldDefinitions.data);
        - lang: Python
          source: >-
            import os

            from conductor import Conductor


            conductor = Conductor(
                api_key=os.environ.get("CONDUCTOR_SECRET_KEY"),  # This is the default and can be omitted
            )

            custom_field_definitions =
            conductor.qbd.custom_field_definitions.list(
                conductor_end_user_id="end_usr_1234567abcdefg",
            )

            print(custom_field_definitions.data)
components:
  schemas:
    qbd_custom_field_definition:
      type: object
      properties:
        id:
          type: string
          description: >-
            The identifier of this custom field definition, which is its `name`,
            so it changes when the definition is renamed.
          example: Customer Rating
        objectType:
          description: >-
            The type of object. This value is always
            `"qbd_custom_field_definition"`.
          example: qbd_custom_field_definition
          type: string
          const: qbd_custom_field_definition
        ownerId:
          type: string
          description: >-
            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:
          type: string
          description: >-
            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:
          type: string
          enum:
            - amount_type
            - date_time_type
            - integer_type
            - percent_type
            - price_type
            - quantity_type
            - string_1024_type
            - string_255_type
          description: >-
            The data type of this custom field's values. Public custom fields
            are always `string_255_type`.
          example: string_255_type
        objectTypes:
          type: array
          items:
            type: string
            enum:
              - 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
          description: >-
            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.
          example:
            - customer
            - invoice
            - sales_order
        isRequiredForListObjects:
          anyOf:
            - type: boolean
            - type: 'null'
          description: >-
            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:
          anyOf:
            - type: boolean
            - type: 'null'
          description: >-
            Indicates whether QuickBooks requires a value for this custom field
            on transactions. QuickBooks does not report this for private custom
            fields.
          example: false
        format:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            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
      required:
        - id
        - objectType
        - ownerId
        - name
        - type
        - objectTypes
        - isRequiredForListObjects
        - isRequiredForTransactions
        - format
      additionalProperties: false
      title: The Custom Field Definition object
      x-conductor-object-type: other
      summary: >-
        A custom field definition describes a custom field: its owner, its name,
        the type of its values, and the types of records it applies to. The
        values themselves are in each record's `customFields`. QuickBooks calls
        custom fields data extensions.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Your Conductor secret key using Bearer auth (e.g., `"Authorization:
        Bearer {{YOUR_SECRET_KEY}}"`).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.