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

# Create a bill credit card payment

> Charges one vendor’s bills to a credit card account. Each bill allocation must supply a payment amount, discount, or credit, and you have to use the same accounts payable account that’s on the bills being closed.



## OpenAPI

````yaml POST /quickbooks-desktop/bill-credit-card-payments
openapi: 3.1.0
info:
  title: Conductor API
  version: 0.0.1
servers:
  - url: https://api.conductor.is/v1
security:
  - BearerAuth: []
paths:
  /quickbooks-desktop/bill-credit-card-payments:
    post:
      summary: Create a bill credit card payment
      description: >-
        Charges one vendor’s bills to a credit card account. Each bill
        allocation must supply a payment amount, discount, or credit, and you
        have to use the same accounts payable account that’s on the bills being
        closed.
      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.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                vendorId:
                  description: >-
                    The vendor who sent the bill(s) that this bill credit card
                    payment is paying and who will receive this payment.


                    **IMPORTANT**: This vendor must match the `vendor` on the
                    bill(s) specified in `applyToTransactions`; otherwise,
                    QuickBooks will say the `transactionId` in
                    `applyToTransactions` "does not exist".
                  example: 80000001-1234567890
                  type: string
                  maxLength: 36
                payablesAccountId:
                  description: >-
                    The Accounts-Payable (A/P) account to which this bill credit
                    card payment is assigned, used for accounts-payable
                    tracking. If omitted, QuickBooks Desktop uses the default
                    A/P account configured in the company file.


                    **IMPORTANT**: If this bill credit card payment is linked to
                    other transactions, this A/P account must match the
                    `payablesAccount` used in those other transactions.
                  example: 80000001-1234567890
                  type: string
                  maxLength: 36
                transactionDate:
                  type: string
                  format: date
                  description: >-
                    The date of this bill credit card payment, in ISO 8601
                    format (YYYY-MM-DD).
                  example: '2024-10-01'
                creditCardAccountId:
                  description: >-
                    The credit card account to which this bill credit card
                    payment is being charged. This bill credit card payment will
                    decrease the balance of this account.
                  example: 80000001-1234567890
                  type: string
                  maxLength: 36
                refNumber:
                  description: >-
                    The case-sensitive user-defined reference number for this
                    bill credit card payment, which can be used to identify the
                    transaction in QuickBooks. This value is not required to be
                    unique and can be arbitrarily changed by the QuickBooks
                    user. When left blank in this create request, this field
                    will be left blank in QuickBooks (i.e., it does *not*
                    auto-increment).


                    Maximum length: 11 characters.
                  example: CARD-1234
                  type: string
                  maxLength: 11
                memo:
                  description: A memo or note for this bill credit card payment.
                  example: Payment for office supplies - Invoice INV-1234
                  type: string
                exchangeRate:
                  description: >-
                    The market exchange rate between this bill credit card
                    payment'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
                  type: number
                externalId:
                  type: string
                  format: uuid
                  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.


                    **IMPORTANT**: This field must be formatted as a valid GUID;
                    otherwise, QuickBooks will return an error.
                  example: 12345678-abcd-1234-abcd-1234567890ab
                applyToTransactions:
                  minItems: 1
                  type: array
                  items:
                    type: object
                    properties:
                      transactionId:
                        type: string
                        maxLength: 36
                        description: >-
                          The ID of the target transaction to which this payment
                          is applied.
                        example: 123ABC-1234567890
                      paymentAmount:
                        description: >-
                          The monetary amount to apply to the target
                          transaction, represented as a decimal string.


                          Decimal string format: exactly 2 decimal places when
                          cents are included and up to 13 digits before the
                          decimal point (for example, "123.45").
                        example: '25.00'
                        type: string
                      applyCredits:
                        description: >-
                          Credits to apply to this target transaction, reducing
                          its balance. This creates a link between this target
                          transaction and the specified credit transactions.


                          **IMPORTANT**: By default, QuickBooks will not return
                          any information about the linked transactions in this
                          endpoint's response even when this request is
                          successful. To see the transactions linked via this
                          field, refetch the target transaction and check the
                          `linkedTransactions` response field. If fetching a
                          list of target transactions, you must also specify the
                          parameter `includeLinkedTransactions=true` to see the
                          `linkedTransactions` response field.
                        minItems: 1
                        type: array
                        items:
                          type: object
                          properties:
                            creditTransactionId:
                              type: string
                              maxLength: 36
                              description: >-
                                The unique identifier of the credit transaction
                                to apply to this transaction, such as a credit
                                memo, vendor credit, or journal-entry credit.
                              example: ABCDEF-1234567890
                            appliedAmount:
                              type: string
                              description: >-
                                The amount of the selected credit transaction to
                                apply to this transaction, represented as a
                                decimal string.


                                Decimal string format: exactly 2 decimal places
                                when cents are included and up to 13 digits
                                before the decimal point (for example,
                                "123.45").
                              example: '100.00'
                            overrideCreditApplication:
                              description: Indicates whether to override the credit.
                              example: false
                              default: false
                              type: boolean
                          required:
                            - creditTransactionId
                            - appliedAmount
                          additionalProperties: false
                      discountAmount:
                        description: >-
                          The monetary amount by which to reduce this target
                          transaction's balance, represented as a decimal
                          string.


                          Decimal string format: exactly 2 decimal places when
                          cents are included and up to 13 digits before the
                          decimal point (for example, "123.45").
                        example: '50.00'
                        type: string
                      discountAccountId:
                        description: >-
                          The financial account used to track this target
                          transaction's discount.
                        example: 80000001-1234567890
                        type: string
                        maxLength: 36
                      discountClassId:
                        description: >-
                          The class used to track this target transaction's
                          discount.
                        example: 80000001-1234567890
                        type: string
                        maxLength: 36
                    required:
                      - transactionId
                    additionalProperties: false
                  description: >-
                    The bills to be paid by this bill credit card payment. This
                    will create a link between this bill credit card payment and
                    the specified bills.


                    **IMPORTANT**: In each `applyToTransactions` object, you
                    must specify either `paymentAmount`, `applyCredits`,
                    `discountAmount`, or any combination of these; if none of
                    these are specified, you will receive an error for an empty
                    transaction.


                    **IMPORTANT**: The target bill must have `isPaid=false`,
                    otherwise, QuickBooks will report this object as "cannot be
                    found".
              required:
                - vendorId
                - transactionDate
                - creditCardAccountId
                - applyToTransactions
              additionalProperties: false
      responses:
        '200':
          description: Returns the newly created bill credit card payment.
          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_bill_credit_card_payment'
      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 billCreditCardPayment = await
            conductor.qbd.billCreditCardPayments.create({
              applyToTransactions: [{ transactionId: '123ABC-1234567890' }],
              creditCardAccountId: '80000001-1234567890',
              transactionDate: '2024-10-01',
              vendorId: '80000001-1234567890',
              conductorEndUserId: 'end_usr_1234567abcdefg',
            });


            console.log(billCreditCardPayment.id);
        - lang: Python
          source: >-
            import os

            from datetime import date

            from conductor import Conductor


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

            bill_credit_card_payment =
            conductor.qbd.bill_credit_card_payments.create(
                apply_to_transactions=[{
                    "transaction_id": "123ABC-1234567890"
                }],
                credit_card_account_id="80000001-1234567890",
                transaction_date=date.fromisoformat("2024-10-01"),
                vendor_id="80000001-1234567890",
                conductor_end_user_id="end_usr_1234567abcdefg",
            )

            print(bill_credit_card_payment.id)
components:
  schemas:
    qbd_bill_credit_card_payment:
      type: object
      properties:
        id:
          type: string
          description: >-
            The unique identifier assigned by QuickBooks to this bill credit
            card payment. This ID is unique across all transaction types.
          example: 123ABC-1234567890
        objectType:
          description: >-
            The type of object. This value is always
            `"qbd_bill_credit_card_payment"`.
          example: qbd_bill_credit_card_payment
          type: string
          const: qbd_bill_credit_card_payment
        createdAt:
          type: string
          description: >-
            The date and time when this bill credit card payment 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 bill credit card payment 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 bill credit
            card payment 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'
        vendor:
          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 vendor who sent the bill(s) that this bill credit card payment
            is paying and who will receive this payment.


            **IMPORTANT**: This vendor must match the `vendor` on the bill(s)
            specified in `applyToTransactions`.
          example:
            id: 80000001-1234567890
            fullName: Suppliers:ABC Office Supplies
        payablesAccount:
          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 Accounts-Payable (A/P) account to which this bill credit card
            payment is assigned, used for accounts-payable tracking.


            **IMPORTANT**: If this bill credit card payment is linked to other
            transactions, this A/P account must match the `payablesAccount` used
            in those other transactions.
          example:
            id: 80000001-1234567890
            fullName: Accounts-Payable
        transactionDate:
          type: string
          format: date
          description: >-
            The date of this bill credit card payment, in ISO 8601 format
            (YYYY-MM-DD).
          example: '2024-10-01'
        creditCardAccount:
          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 credit card account to which this bill credit card payment is
            being charged. This bill credit card payment will decrease the
            balance of this account.
          example:
            id: 80000001-1234567890
            fullName: Credit Card
        amount:
          type: string
          description: >-
            The monetary amount of this bill credit card payment, 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 bill credit card payment'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 bill credit card payment'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
        amountInHomeCurrency:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The monetary amount of this bill credit card payment converted to
            the home currency of the QuickBooks company file. Represented as a
            decimal string.
          example: '1234.56'
        refNumber:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The case-sensitive user-defined reference number for this bill
            credit card payment, which can be used to identify the transaction
            in QuickBooks. This value is not required to be unique and can be
            arbitrarily changed by the QuickBooks user.
          example: CARD-1234
        memo:
          anyOf:
            - type: string
            - type: 'null'
          description: A memo or note for this bill credit card payment.
          example: Payment for office supplies - Invoice INV-1234
        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'
        appliedToTransactions:
          type: array
          items:
            $ref: '#/components/schemas/qbd_target_transaction'
          description: The bill(s) paid by this bill credit card payment.
        customFields:
          type: array
          items:
            $ref: '#/components/schemas/qbd_custom_field'
          description: >-
            The custom fields for the bill credit card payment object, added as
            user-defined data extensions, not included in the standard
            QuickBooks object.
      required:
        - id
        - objectType
        - createdAt
        - updatedAt
        - revisionNumber
        - vendor
        - payablesAccount
        - transactionDate
        - creditCardAccount
        - amount
        - currency
        - exchangeRate
        - amountInHomeCurrency
        - refNumber
        - memo
        - externalId
        - appliedToTransactions
        - customFields
      additionalProperties: false
      title: The Bill Credit Card Payment object
      x-conductor-object-type: transaction
      summary: >-
        A bill credit card payment records a payment made via credit card to pay
        off one or more vendor bills. It reduces accounts payable and increases
        the credit card account balance. This transaction links the original
        bill(s) with the payment, allowing QuickBooks to track which bills have
        been paid and maintain accurate vendor balances.
    qbd_target_transaction:
      type: object
      properties:
        transactionId:
          type: string
          maxLength: 36
          description: The ID of the target transaction to which this payment is applied.
          example: 123ABC-1234567890
        transactionType:
          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
          description: The type of transaction for this target transaction.
          example: invoice
        transactionDate:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          description: >-
            The date of this target transaction, in ISO 8601 format
            (YYYY-MM-DD).
          example: '2024-10-01T00:00:00.000Z'
        refNumber:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The case-sensitive user-defined reference number for this target
            transaction, which can be used to identify the transaction in
            QuickBooks. This value is not required to be unique and can be
            arbitrarily changed by the QuickBooks user.
          example: TXN-1234
        balanceRemaining:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The outstanding balance of this target transaction after applying
            any credits or payments. Represented as a decimal string.
          example: '100.00'
        amount:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The monetary amount of this target transaction, represented as a
            decimal string.
          example: '1000.00'
        discountAmount:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The monetary amount by which to reduce this target transaction's
            balance, represented as a decimal string.
          example: '50.00'
        discountAccount:
          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 financial account used to track this target transaction's
            discount.
          example:
            id: 80000001-1234567890
            fullName: Discount Account
        discountClass:
          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 class used to track this target transaction's discount.
          example:
            id: 80000001-1234567890
            fullName: Discounts
        linkedTransactions:
          type: array
          items:
            $ref: '#/components/schemas/qbd_linked_transaction'
          description: >-
            The target transaction's linked transactions, such as payments
            applied, credits used, or associated purchase orders.


            **IMPORTANT**: You must specify the parameter
            `includeLinkedTransactions` when fetching a list of target
            transactions to receive this field because it is not returned by
            default.
      required:
        - transactionId
        - transactionType
        - transactionDate
        - refNumber
        - balanceRemaining
        - amount
        - discountAmount
        - discountAccount
        - discountClass
        - linkedTransactions
      additionalProperties: false
      title: The Target Transaction object
      x-conductor-object-type: nested
    qbd_custom_field:
      type: object
      properties:
        ownerId:
          type: string
          description: >-
            The identifier of the owner of the custom field, which QuickBooks
            internally calls a "data extension". For public custom fields
            visible in the UI, such as those added by the QuickBooks user, this
            is always "0". For private custom fields that are only visible to
            the application that created them, this is a valid GUID identifying
            the owning application. Internally, Conductor always fetches all
            public custom fields (those with an `ownerId` of "0") for all
            objects.
          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. The maximum length depends on the
            field's data type.
          example: Premium
      required:
        - ownerId
        - name
        - type
        - value
      additionalProperties: false
      title: The Custom Field object
      x-conductor-object-type: nested
    qbd_linked_transaction:
      type: object
      properties:
        id:
          type: string
          description: >-
            The unique identifier assigned by QuickBooks to this linked
            transaction. This ID is unique across all transaction types.
          example: 123ABC-1234567890
        objectType:
          description: The type of object. This value is always `"qbd_linked_transaction"`.
          example: qbd_linked_transaction
          type: string
          const: qbd_linked_transaction
        transactionType:
          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
          description: The type of transaction for this linked transaction.
          example: invoice
        transactionDate:
          type: string
          format: date
          description: >-
            The date of this linked transaction, in ISO 8601 format
            (YYYY-MM-DD).
          example: '2024-10-01'
        refNumber:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The case-sensitive user-defined reference number for this linked
            transaction, which can be used to identify the transaction in
            QuickBooks. This value is not required to be unique and can be
            arbitrarily changed by the QuickBooks user.
          example: LINK-1234
        linkType:
          anyOf:
            - type: string
              enum:
                - amount
                - quantity
            - type: 'null'
          description: >-
            Indicates the nature of the link between the transactions: `amount`
            denotes an amount-based link (e.g., an invoice linked to a payment),
            and `quantity` denotes a quantity-based link (e.g., an invoice
            created from a sales order based on the quantity of items received).
          example: amount
        amount:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The monetary amount of this linked transaction, represented as a
            decimal string.
          example: '1000.00'
      required:
        - id
        - objectType
        - transactionType
        - transactionDate
        - refNumber
        - linkType
        - amount
      additionalProperties: false
      title: The Linked Transaction 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.