> ## 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.

# Set custom fields on a deposit

> Sets or clears custom field values on a deposit. Each value you send replaces the existing value of its custom field. To clear a custom field's existing value, send an empty string. Custom fields you omit from your request keep their existing values.

If the request fails, QuickBooks may still have saved some of the values you sent, because it saves each value separately. The error names the custom fields QuickBooks did not save. You can safely send the same request again.

**NOTE**: This request has no `revisionNumber` parameter, but it still updates the deposit's `revisionNumber`. Use the `revisionNumber` returned in the response for your next update.



## OpenAPI

````yaml POST /quickbooks-desktop/deposits/{id}/set-custom-fields
openapi: 3.1.0
info:
  title: Conductor API
  version: 0.0.1
servers:
  - url: https://api.conductor.is/v1
security:
  - BearerAuth: []
paths:
  /quickbooks-desktop/deposits/{id}/set-custom-fields:
    post:
      summary: Set custom fields on a deposit
      description: >-
        Sets or clears custom field values on a deposit. Each value you send
        replaces the existing value of its custom field. To clear a custom
        field's existing value, send an empty string. Custom fields you omit
        from your request keep their existing values.


        If the request fails, QuickBooks may still have saved some of the values
        you sent, because it saves each value separately. The error names the
        custom fields QuickBooks did not save. You can safely send the same
        request again.


        **NOTE**: This request has no `revisionNumber` parameter, but it still
        updates the deposit's `revisionNumber`. Use the `revisionNumber`
        returned in the response for your next update.
      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: path
          name: id
          schema:
            type: string
            maxLength: 36
            description: >-
              The QuickBooks-assigned unique identifier of the deposit to set
              custom fields on.
            example: 123ABC-1234567890
          required: true
          description: >-
            The QuickBooks-assigned unique identifier of the deposit to set
            custom fields on.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                customFields:
                  minItems: 1
                  type: array
                  items:
                    type: object
                    properties:
                      ownerId:
                        description: >-
                          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'
                        default: '0'
                        type: string
                      name:
                        type: string
                        maxLength: 31
                        description: >-
                          The name of the custom field, as its definition and a
                          record's `customFields` show it. The custom field must
                          already be defined for this type of record; to list or
                          create definitions, use the custom-field-definitions
                          endpoint. QuickBooks matches the name without regard
                          to letter case.
                        example: Customer Rating
                      value:
                        type: string
                        description: >-
                          The value to set, which replaces the custom field's
                          current value if it has one. Send an empty string
                          (`""`) to clear the custom field. A public custom
                          field's value can have at most 30 characters.
                        example: Gold
                    required:
                      - name
                      - value
                    additionalProperties: false
                  description: >-
                    The custom field values to set or clear on the deposit
                    itself, not on its lines. Custom fields you leave out keep
                    their values.
              required:
                - customFields
              additionalProperties: false
      responses:
        '200':
          description: >-
            Returns the deposit as it is after the change, with its custom
            fields.
          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:
                $ref: '#/components/schemas/qbd_deposit'
      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 deposit = await
            conductor.qbd.deposits.setCustomFields('123ABC-1234567890', {
              customFields: [{ name: 'Customer Rating', value: 'Gold' }],
              conductorEndUserId: 'end_usr_1234567abcdefg',
            });


            console.log(deposit.id);
        - 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
            )
            deposit = conductor.qbd.deposits.set_custom_fields(
                id="123ABC-1234567890",
                custom_fields=[{
                    "name": "Customer Rating",
                    "value": "Gold",
                }],
                conductor_end_user_id="end_usr_1234567abcdefg",
            )
            print(deposit.id)
components:
  schemas:
    qbd_deposit:
      type: object
      properties:
        id:
          type: string
          description: >-
            The unique identifier assigned by QuickBooks to this deposit. This
            ID is unique across all transaction types.
          example: 123ABC-1234567890
        objectType:
          description: The type of object. This value is always `"qbd_deposit"`.
          example: qbd_deposit
          type: string
          const: qbd_deposit
        createdAt:
          type: string
          description: >-
            The date and time when this deposit was created, in ISO 8601 format
            (YYYY-MM-DDThh:mm:ss±hh:mm), which QuickBooks Desktop interprets in
            the local timezone of the end-user's computer.
          example: '2025-01-01T12:34:56.000Z'
        updatedAt:
          type: string
          description: >-
            The date and time when this deposit was last updated, in ISO 8601
            format (YYYY-MM-DDThh:mm:ss±hh:mm), which QuickBooks Desktop
            interprets in the local timezone of the end-user's computer.
          example: '2025-02-01T12:34:56.000Z'
        revisionNumber:
          type: string
          description: >-
            The current QuickBooks-assigned revision number of this deposit
            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.
          example: '1721172183'
        transactionDate:
          type: string
          format: date
          description: The date of this deposit, in ISO 8601 format (YYYY-MM-DD).
          example: '2024-10-01'
        depositToAccount:
          anyOf:
            - type: object
              properties:
                id:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: >-
                    The unique identifier assigned by QuickBooks to this object.
                    This ID is unique across all objects of the same type, but
                    not across different QuickBooks object types.
                  example: 80000001-1234567890
                fullName:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: >-
                    The fully-qualified unique name for this object, formed by
                    combining the names of its parent objects with its own
                    `name`, separated by colons. Not case-sensitive.
                  example: Parent:Child:Grandchild
              required:
                - id
                - fullName
              additionalProperties: false
            - type: 'null'
          description: The account where the funds for this deposit have been deposited.
          example:
            id: 80000001-1234567890
            fullName: Checking
        memo:
          anyOf:
            - type: string
            - type: 'null'
          description: A memo or note for this deposit.
          example: Batch settlement deposit
        totalAmount:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The total monetary amount deposited into this deposit's destination
            account, represented as a decimal string.
          example: '1000.00'
        currency:
          anyOf:
            - type: object
              properties:
                id:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: >-
                    The unique identifier assigned by QuickBooks to this object.
                    This ID is unique across all objects of the same type, but
                    not across different QuickBooks object types.
                  example: 80000001-1234567890
                fullName:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: >-
                    The fully-qualified unique name for this object, formed by
                    combining the names of its parent objects with its own
                    `name`, separated by colons. Not case-sensitive.
                  example: Parent:Child:Grandchild
              required:
                - id
                - fullName
              additionalProperties: false
            - type: 'null'
          description: >-
            The deposit's currency. For built-in currencies, the name and code
            are standard ISO 4217 international values. For user-defined
            currencies, all values are editable.
          example:
            id: 80000001-1234567890
            fullName: USD
        exchangeRate:
          anyOf:
            - type: number
            - type: 'null'
          description: >-
            The market exchange rate between this deposit's currency and the
            home currency in QuickBooks at the time of this transaction.
            Represented as a decimal value (e.g., 1.2345 for 1 EUR = 1.2345 USD
            if USD is the home currency).
          example: 1.2345
        totalAmountInHomeCurrency:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            This deposit's total monetary amount converted to the home currency
            of the QuickBooks company file, represented as a decimal string.
          example: '1234.56'
        cashBack:
          anyOf:
            - $ref: '#/components/schemas/qbd_deposit_cash_back_line'
            - type: 'null'
          description: >-
            Cash back taken out of this deposit and recorded to another account,
            such as Petty Cash.
        externalId:
          anyOf:
            - type: string
              description: >-
                A globally unique identifier (GUID) you, the developer, can
                provide for tracking this object in your external system. This
                field is immutable and can only be set during object creation.
              example: 12345678-abcd-1234-abcd-1234567890ab
            - type: 'null'
        lines:
          type: array
          items:
            $ref: '#/components/schemas/qbd_deposit_line'
          description: >-
            The deposit's deposit lines, each representing either an existing
            payment selected for deposit or a manual transfer from another
            account into the deposit account.
        customFields:
          type: array
          items:
            $ref: '#/components/schemas/qbd_custom_field'
          description: >-
            The custom fields that have a value on this deposit, for the owners
            named in the request's `customFieldOwnerIds` (by default, the public
            custom fields).


            **NOTE**: To set or clear custom field values, use the
            set-custom-fields endpoint. An update cannot change them, and its
            response returns this as an empty array even when values exist;
            retrieve the record to see them.
      required:
        - id
        - objectType
        - createdAt
        - updatedAt
        - revisionNumber
        - transactionDate
        - depositToAccount
        - memo
        - totalAmount
        - currency
        - exchangeRate
        - totalAmountInHomeCurrency
        - cashBack
        - externalId
        - lines
        - customFields
      additionalProperties: false
      title: The Deposit object
      x-conductor-object-type: transaction
      summary: >-
        A deposit records funds moved into a QuickBooks Desktop bank or other
        asset account. It is commonly used to group customer payments from
        Undeposited Funds into the bank deposit that appears on the bank
        statement, and it can also include manual deposit lines and cash back.
    qbd_deposit_cash_back_line:
      type: object
      properties:
        id:
          type: string
          description: >-
            The unique identifier assigned by QuickBooks to this deposit
            cash-back line. This ID is unique across all transaction line types.
          example: 456DEF-1234567890
        objectType:
          description: >-
            The type of object. This value is always
            `"qbd_deposit_cash_back_line"`.
          example: qbd_deposit_cash_back_line
          type: string
          const: qbd_deposit_cash_back_line
        account:
          type: object
          properties:
            id:
              anyOf:
                - type: string
                - type: 'null'
              description: >-
                The unique identifier assigned by QuickBooks to this object.
                This ID is unique across all objects of the same type, but not
                across different QuickBooks object types.
              example: 80000001-1234567890
            fullName:
              anyOf:
                - type: string
                - type: 'null'
              description: >-
                The fully-qualified unique name for this object, formed by
                combining the names of its parent objects with its own `name`,
                separated by colons. Not case-sensitive.
              example: Parent:Child:Grandchild
          required:
            - id
            - fullName
          additionalProperties: false
          description: >-
            The account where this deposit cash-back line's cash-back amount is
            recorded, such as Petty Cash. This amount reduces the total credited
            to the deposit's destination account.
          example:
            id: 80000001-1234567890
            fullName: Petty Cash
        memo:
          anyOf:
            - type: string
            - type: 'null'
          description: A memo or note for this deposit cash-back line.
          example: Cash back from deposit
        amount:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The cash-back amount taken out of the deposit and recorded to this
            deposit cash-back line's account, represented as a decimal string.
          example: '1000.00'
      required:
        - id
        - objectType
        - account
        - memo
        - amount
      additionalProperties: false
      title: The Deposit Cash-Back Line object
      x-conductor-object-type: nested
    qbd_deposit_line:
      type: object
      properties:
        transactionType:
          anyOf:
            - type: string
              enum:
                - ar_refund_credit_card
                - bill
                - bill_payment_check
                - bill_payment_credit_card
                - build_assembly
                - charge
                - check
                - credit_card_charge
                - credit_card_credit
                - credit_memo
                - deposit
                - estimate
                - inventory_adjustment
                - invoice
                - item_receipt
                - journal_entry
                - liability_adjustment
                - paycheck
                - payroll_liability_check
                - purchase_order
                - receive_payment
                - sales_order
                - sales_receipt
                - sales_tax_payment_check
                - transfer
                - vendor_credit
                - ytd_adjustment
                - transfer_inventory
                - unknown
            - type: 'null'
          description: The type of transaction for this deposit line.
          example: invoice
        paymentTransactionId:
          anyOf:
            - type: string
              maxLength: 36
              description: >-
                For payment-based deposit lines, the ID of the source payment
                included in this deposit line. For manual deposit lines, this is
                null.
              example: 123ABC-1234567890
            - type: 'null'
        id:
          type: string
          description: >-
            The unique identifier assigned by QuickBooks to this deposit line.
            This ID is unique across all transaction line types.
          example: 456DEF-1234567890
        objectType:
          description: The type of object. This value is always `"qbd_deposit_line"`.
          example: qbd_deposit_line
          type: string
          const: qbd_deposit_line
        paymentTransactionLineId:
          anyOf:
            - type: string
              maxLength: 36
              description: >-
                For payment-based deposit lines, the line ID of the specific
                source payment line included in this deposit line. For manual
                deposit lines, this is null.
              example: 456DEF-1234567890
            - type: 'null'
        entity:
          anyOf:
            - type: object
              properties:
                id:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: >-
                    The unique identifier assigned by QuickBooks to this object.
                    This ID is unique across all objects of the same type, but
                    not across different QuickBooks object types.
                  example: 80000001-1234567890
                fullName:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: >-
                    The fully-qualified unique name for this object, formed by
                    combining the names of its parent objects with its own
                    `name`, separated by colons. Not case-sensitive.
                  example: Parent:Child:Grandchild
              required:
                - id
                - fullName
              additionalProperties: false
            - type: 'null'
          description: >-
            The customer, vendor, employee, or person on QuickBooks's "Other
            Names" list associated with this deposit line.
          example:
            id: 80000001-1234567890
            fullName: Acme Corporation
        account:
          anyOf:
            - type: object
              properties:
                id:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: >-
                    The unique identifier assigned by QuickBooks to this object.
                    This ID is unique across all objects of the same type, but
                    not across different QuickBooks object types.
                  example: 80000001-1234567890
                fullName:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: >-
                    The fully-qualified unique name for this object, formed by
                    combining the names of its parent objects with its own
                    `name`, separated by colons. Not case-sensitive.
                  example: Parent:Child:Grandchild
              required:
                - id
                - fullName
              additionalProperties: false
            - type: 'null'
          description: >-
            The account associated with this deposit line. For manual deposit
            lines, this is the account the funds were transferred from into the
            deposit's destination account.
          example:
            id: 80000001-1234567890
            fullName: Undeposited Funds
        memo:
          anyOf:
            - type: string
            - type: 'null'
          description: A memo or note for this deposit line.
          example: Payment batched into settlement deposit
        checkNumber:
          anyOf:
            - type: string
            - type: 'null'
          description: The check number of a check received for this deposit line.
          example: '1234567890'
        paymentMethod:
          anyOf:
            - type: object
              properties:
                id:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: >-
                    The unique identifier assigned by QuickBooks to this object.
                    This ID is unique across all objects of the same type, but
                    not across different QuickBooks object types.
                  example: 80000001-1234567890
                fullName:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: >-
                    The fully-qualified unique name for this object, formed by
                    combining the names of its parent objects with its own
                    `name`, separated by colons. Not case-sensitive.
                  example: Parent:Child:Grandchild
              required:
                - id
                - fullName
              additionalProperties: false
            - type: 'null'
          description: The deposit line's payment method (e.g., cash, check, credit card).
          example:
            id: 80000001-1234567890
            fullName: Credit Card
        class:
          anyOf:
            - type: object
              properties:
                id:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: >-
                    The unique identifier assigned by QuickBooks to this object.
                    This ID is unique across all objects of the same type, but
                    not across different QuickBooks object types.
                  example: 80000001-1234567890
                fullName:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: >-
                    The fully-qualified unique name for this object, formed by
                    combining the names of its parent objects with its own
                    `name`, separated by colons. Not case-sensitive.
                  example: Parent:Child:Grandchild
              required:
                - id
                - fullName
              additionalProperties: false
            - type: 'null'
          description: >-
            The deposit line's class. Classes can be used to categorize objects
            into meaningful segments, such as department, location, or type of
            work. In QuickBooks, class tracking is off by default.
          example:
            id: 80000001-1234567890
            fullName: Retail Sales
        amount:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The amount this deposit line contributes to the deposit's
            destination account, represented as a decimal string.
          example: '1000.00'
      required:
        - transactionType
        - paymentTransactionId
        - id
        - objectType
        - paymentTransactionLineId
        - entity
        - account
        - memo
        - checkNumber
        - paymentMethod
        - class
        - amount
      additionalProperties: false
      title: The Deposit Line object
      x-conductor-object-type: nested
    qbd_custom_field:
      type: object
      properties:
        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 the custom field, unique for the specified `ownerId`.
            For public custom fields, this name is visible as a label in the
            QuickBooks UI.
          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.
          example: string_1024_type
        value:
          type: string
          description: The value of this custom field.
          example: Premium
      required:
        - ownerId
        - name
        - type
        - value
      additionalProperties: false
      title: The Custom Field object
      x-conductor-object-type: nested
  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.