Create a vendor credit
Creates a new vendor credit.
Authorizations
Your Conductor secret key using Bearer auth (e.g., "Authorization: Bearer {{YOUR_SECRET_KEY}}"
).
Headers
The ID of the EndUser to receive this request (e.g., "Conductor-End-User-Id: {{END_USER_ID}}"
).
"end_usr_1234567abcdefg"
Body
The vendor who sent this vendor credit for goods or services purchased.
"80000001-1234567890"
The date of this vendor credit, in ISO 8601 format (YYYY-MM-DD).
"2021-10-01"
The Accounts-Payable (A/P) account to which this vendor credit is assigned, used to track the amount owed. If not specified, QuickBooks Desktop will use its default A/P account.
IMPORTANT: If this vendor credit is linked to other transactions, this A/P account must match the payablesAccount
used in those other transactions.
"80000001-1234567890"
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. When left blank in this create request, this field will be left blank in QuickBooks (i.e., it does not auto-increment).
"VCREDIT-1234"
A memo or note for this vendor credit.
"Credit for returned merchandise - Invoice INV-1234"
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. If QuickBooks is not set up to charge sales tax (via the "Do You Charge Sales Tax?" preference), it will assign the default non-taxable code to all sales.
"80000001-1234567890"
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).
1.2345
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.
"12345678-abcd-1234-abcd-1234567890ab"
The vendor credit's expense lines, each representing one line in this expense.
1
The vendor credit's item lines, each representing the purchase of a specific item or service.
1
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.
1
Response
Returns the newly created vendor credit.
The unique identifier assigned by QuickBooks to this vendor credit. This ID is unique across all transaction types.
"123ABC-1234567890"
The type of object. This value is always "qbd_vendor_credit"
.
"qbd_vendor_credit"
"qbd_vendor_credit"
The date and time when this vendor credit was created, in ISO 8601 format (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone in QuickBooks.
"2021-10-01T17:34:56.000Z"
The date and time when this vendor credit was last updated, in ISO 8601 format (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone in QuickBooks.
"2021-10-01T20:45:30.000Z"
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.
"1721172183"
The vendor who sent this vendor credit for goods or services purchased.
{
"id": "80000001-1234567890",
"fullName": "Acme Supplies Ltd."
}
The Accounts-Payable (A/P) account to which this vendor credit is assigned, used to track the amount owed. If not specified, QuickBooks Desktop will use its default A/P account.
IMPORTANT: If this vendor credit is linked to other transactions, this A/P account must match the payablesAccount
used in those other transactions.
{
"id": "80000001-1234567890",
"fullName": "Accounts-Payable"
}
The date of this vendor credit, in ISO 8601 format (YYYY-MM-DD).
"2021-10-01"
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.
"25.00"
The vendor credit's currency. For built-in currencies, the name and code are standard international values. For user-defined currencies, all values are editable.
{
"id": "80000001-1234567890",
"fullName": "USD"
}
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).
1.2345
The monetary amount of the vendor credit, converted to the home currency of the QuickBooks company file. Represented as a decimal string.
"20.00"
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.
"VCREDIT-1234"
A memo or note for this vendor credit.
"Credit for returned merchandise - Invoice INV-1234"
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. If QuickBooks is not set up to charge sales tax (via the "Do You Charge Sales Tax?" preference), it will assign the default non-taxable code to all sales.
{
"id": "80000001-1234567890",
"fullName": "Non"
}
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.
"12345678-abcd-1234-abcd-1234567890ab"
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.
The vendor credit's expense lines, each representing one line in this expense.
The vendor credit's item lines, each representing the purchase of a specific item or service.
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.
The remaining amount still owed on this vendor credit, represented as a decimal string. This equals the vendor credit's amount minus any credits or discounts.
"500.00"
The custom fields for the vendor credit object, added as user-defined data extensions, not included in the standard QuickBooks object.