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 QuickBooks-assigned unique identifier of the vendor credit to set custom fields on.

Maximum string length: 36
Example:

"123ABC-1234567890"

Body

application/json
customFields
object[]

The custom field values to set or clear on the vendor credit itself, not on its lines. Custom fields you leave out keep their values.

IMPORTANT: You must specify customFields, lines, or both when setting custom fields on a vendor credit.

Minimum array length: 1
lines
object[]

The lines of the vendor credit whose custom field values to set or clear. Lines you leave out are not changed.

IMPORTANT: You must specify customFields, lines, or both when setting custom fields on a vendor credit.

Minimum array length: 1

Response

200 - application/json

Returns the vendor credit as it is after the change, with its custom fields.

id
string
required

The unique identifier assigned by QuickBooks to this vendor credit. This ID is unique across all transaction types.

Example:

"123ABC-1234567890"

objectType
string
required

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

Allowed value: "qbd_vendor_credit"
Example:

"qbd_vendor_credit"

createdAt
string
required

The date and time when this vendor credit 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
string
required

The date and time when this vendor credit 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
string
required

The current QuickBooks-assigned revision number of this vendor credit 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
object | null
required

The vendor who sent this vendor credit for goods or services purchased.

Example:
payablesAccount
object | null
required

The Accounts-Payable (A/P) account to which this vendor credit is assigned, used for accounts-payable tracking.

IMPORTANT: If this vendor credit is linked to other transactions, this A/P account must match the payablesAccount used in those other transactions.

Example:
transactionDate
string<date>
required

The date of this vendor credit, in ISO 8601 format (YYYY-MM-DD).

Example:

"2024-10-01"

creditAmount
string
required

The monetary amount of the vendor credit, represented as a decimal string. When applied to a vendor bill, this amount reduces the outstanding balance owed to the vendor.

Example:

"25.00"

currency
object | null
required

The vendor credit'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:
exchangeRate
number | null
required

The market exchange rate between this vendor credit'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

creditAmountInHomeCurrency
string | null
required

The monetary amount of the vendor credit, converted to the home currency of the QuickBooks company file. Represented as a decimal string.

Example:

"20.00"

refNumber
string | null
required

The case-sensitive user-defined reference number for this vendor credit, 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:

"VCREDIT-1234"

memo
string | null
required

A memo or note for this vendor credit.

Example:

"Credit for returned merchandise - Invoice INV-1234"

salesTaxCode
object | null
required

The sales-tax code for this vendor credit, determining whether it is taxable or non-taxable. If set, this overrides any sales-tax codes defined on the vendor. This can be overridden on the vendor credit's individual lines.

Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes can also be created in QuickBooks Desktop. If QuickBooks Desktop is not set up to charge sales tax (via the "Do You Charge Sales Tax?" preference), it assigns the default non-taxable sales-tax code configured in the company file to all sales.

Example:
externalId
string | null
required

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"

linkedTransactions
The Linked Transaction object · object[]
required

The vendor credit'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 vendor credits to receive this field because it is not returned by default.

expenseLines
The Expense Line object · object[]
required

The vendor credit's expense lines, each representing one line in this expense.

itemLines
The Item Line object · object[]
required

The vendor credit's item lines, each representing the purchase of a specific item or service.

itemGroupLines
The Item Group Line object · object[]
required

The vendor credit's item group lines, each representing a predefined set of items bundled together because they are commonly purchased together or grouped for faster entry.

openAmount
string | null
required

The remaining unapplied credit on this vendor credit, represented as a decimal string. This equals the original credit amount minus any amounts that have been applied to bills.

NOTE: QuickBooks Desktop can omit this field in rare cases. If you ever encounter openAmount as null, we recommend the following fallback procedure: Re-query the vendor credits with includeLinkedTransactions=true and compute a fallback open amount as creditAmount minus the sum of linkedTransactions[].amount for all entries where linkedTransactions[].linkType is "amount".

Example:

"500.00"

customFields
The Custom Field object · object[]
required

The custom fields that have a value on this vendor credit, 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.